:root {
    --dark-blue: #0a0e27;
    --bright-orange: #f58220;
    --leaf-green: #8cc63f;
    --sky-blue: #00aef0;
}

body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    
    /* Configuración del Fondo */
    background-image: url('../images/fondo.jpeg'); /* Cambia 'tu-fondo.jpg' por el nombre real de tu archivo */
    background-size: cover;           /* Hace que la imagen cubra toda la pantalla */
    background-position: center;      /* Centra la imagen */
    background-repeat: no-repeat;     /* Evita que la imagen se duplique como mosaico */
    background-attachment: fixed;     /* Opcional: El fondo se queda quieto al hacer scroll (efecto elegante) */
    background-color: var(--dark-blue); /* Se mantiene como respaldo si la imagen falla */
    
    color: white;
    overflow-x: hidden;
}

/* Header */
.navbar {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 5%;
    align-items: center;
    position: relative;
    z-index: 10;
}

.nav-links a {
    color: white;
    text-decoration: none;
    margin-left: 2rem;
    font-weight: 500;
}

/* Hero Section */
.hero {
    position: relative;
    height: 80vh;
    display: flex;
    align-items: center;
}

.container {
    width: 90%;
    margin: 0 auto;
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

/* Círculos y Formas */
.image-section {
    position: relative;
    flex: 1;
}

.circle-container {
    position: relative;
    width: 450px;
    height: 450px;
}

.main-image {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    z-index: 3;
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.border-orange, .border-green {
    position: absolute;
    border-radius: 50%;
    border: 15px solid;
    top: -5px; left: -5px; right: -5px; bottom: 5px;
}

.border-orange { border-color: var(--bright-orange); z-index: 2; transform: translate(-5px, 5px); }
.border-green { border-color: var(--leaf-green); z-index: 1; transform: translate(15px, -5px); }

.icon-globe {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: white;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    z-index: 5;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Fondo verde lateral */
.bg-shape-green {
    position: absolute;
    right: -10%;
    top: -20%;
    width: 60%;
    height: 140%;
    background: rgba(142, 250, 0, 0.15);
    border-radius: 100%;
    z-index: 0;
}

/* Nueva forma angular en la esquina inferior izquierda */
.bg-shape-corner-left {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40%;          /* Ajusta este valor según qué tan ancho lo quieras */
    height: 70%;         /* Ajusta este valor según qué tan alto lo quieras */
    background-color: rgba(140, 198, 63, 0.8); /* Color verde con transparencia */
    /* Esta propiedad "recorta" el cuadrado para darle la forma angular */
    clip-path: polygon(0% 100%, 20% 0%, 100% 70%, 100% 100%);
    z-index: 1; /* Se coloca detrás del contenido principal */
}

/* Capa adicional para crear el efecto de borde */
.bg-shape-corner-left-border {
    position: absolute;
    bottom: -5px; /* Ligeramente desplazado para que se vea el borde */
    left: -5px;
    width: 41%;   /* Ligeramente más grande que la forma principal */
    height: 71%;
    /* Puedes usar un gradiente para imitar el borde naranja/azul de la imagen */
    background: linear-gradient(45deg, var(--bright-orange), var(--sky-blue));
    /* Usamos el mismo recorte para que coincida con la forma */
    clip-path: polygon(0% 100%, 20% 0%, 100% 70%, 100% 100%);
    z-index: 0; /* Se coloca detrás de la forma verde */
}

/* Texto */
.text-section {
    flex: 1;
    z-index: 2;
}

.badge {
    background: white;
    color: var(--bright-orange);
    padding: 8px 25px;
    border-radius: 10px;
    font-weight: bold;
    font-size: 1.5rem;
}

h1 {
    font-size: 5rem;
    margin-top: 20px;
    line-height: 1.1;
}

/* ============================= */
/* NAV LINKS */
/* ============================= */
.nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

/* Estilo base */
.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    position: relative;
    padding: 10px 15px;
    transition: all 0.3s ease;
}

/* Línea inferior animada */
.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 5px;
    left: 15px;
    background-color: var(--sky-blue);
    transition: width 0.3s ease, background-color 0.3s ease;
}

/* Hover */
.nav-links a:hover {
    color: var(--sky-blue);
    transform: translateY(-2px);
}

.nav-links a:hover::after {
    width: calc(100% - 30px);
}

/* Activo */
.nav-links a.active {
    color: var(--leaf-green) !important;
}

.nav-links a.active::after {
    width: calc(100% - 30px);
    background-color: var(--leaf-green);
}


/* ============================= */
/* SCROLL SUAVE GLOBAL */
/* ============================= */
html {
    scroll-behavior: smooth;
}

/* ============================= */
/* SECCIONES GENERALES */
/* ============================= */
section {
    position: relative;
    width: 100%;
    z-index: 2;
}

/* ============================= */
/* EFECTO REVEAL AL SCROLL */
/* ============================= */
.reveal {
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ============================= */
/* NOSOTROS */
/* ============================= */
.nosotros-section {
    padding: 120px 8%;
    background: linear-gradient(
        180deg,
        rgba(10, 14, 39, 0.95),
        rgba(10, 14, 39, 0.85)
    );
}

.nosotros-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 70px;
}

.nosotros-text h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--leaf-green);
}

.nosotros-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #e2e6ff;
}

.nosotros-image img {
    width: 380px;
    height: 370px;
    object-fit: cover;
    border-radius: 50%;
    border: 6px solid var(--bright-orange);
    box-shadow: 0 15px 60px rgba(0, 0, 0, 0.6);
}

/* ============================= */
/* DAMOS SENTIDO A TU IDEA */
/* ============================= */

.idea-section {
    padding: 120px 8%;
    background: linear-gradient(
        180deg,
        rgba(10, 14, 39, 0.473),
        rgba(10, 14, 39, 0.295)
    );
}
.idea-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 70px;
}

/* TEXTO */
.idea-text {
    flex: 1;
}

.idea-text h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--bright-orange);
}

.idea-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #ffffff;
}

/* SUBTÍTULO */
.idea-subtitle {
    display: inline-block;
    color: var(--bright-orange);
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 15px;
}

/* ============================= */
/* LÍNEAS CURVAS NARANJAS */
/* ============================= */

.idea-decoration {
    flex: 1;
    position: relative;
    height: 260px;
}

.curve-line {
    position: absolute;
    width: 320px;
    height: 160px;
    border: 4px solid var(--bright-orange);
    border-color: var(--bright-orange) transparent transparent transparent;
    border-radius: 50%;
    top: 40px;
    left: 0;
    transform: rotate(-10deg);
    opacity: 0.9;
}

.curve-line.second {
    top: 120px;
    left: 80px;
    width: 260px;
    height: 120px;
    transform: rotate(8deg);
    opacity: 0.6;
}

/* ============================= */
/* SOLUCIONES */
/* ============================= 
.soluciones-section {
    padding: 140px 8%;
    background: linear-gradient(
        135deg,
        rgba(14, 26, 58, 0.95),
        rgba(10, 14, 39, 0.95)
    );
    text-align: center;
}

.soluciones-section h2 {
    font-size: 3rem;
    margin-bottom: 25px;
    color: var(--sky-blue);
}

.soluciones-section p {
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.7;
    color: #d4dbff;
}
*/

/* ============================= */
/* NAVBAR - AJUSTES FINALES */
/* ============================= */
.navbar {
    backdrop-filter: blur(6px);
}

.nav-links a.active {
    color: var(--leaf-green) !important;
}

.nav-links a.active::after {
    width: calc(100% - 30px) !important;
    background-color: var(--leaf-green) !important;
}

/* ============================= */
/* RESPONSIVE */
/* ============================= 
@media (max-width: 1024px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
    }

    .circle-container {
        width: 350px;
        height: 350px;
    }

    h1 {
        font-size: 3.5rem;
    }

    .nosotros-container {
        flex-direction: column;
        text-align: center;
    }

    .nosotros-image img {
        width: 300px;
        height: 300px;
    }
}
*/

/* HERO ANIMATION STATES */
.hero-hidden {
    opacity: 0;
    transform: translateX(60px) scale(0.95);
}

.hero-show {
    opacity: 1;
    transform: translateX(0) scale(1);
    transition: all 1s ease-out;
}

/* ============================= */
/* HEADER STICKY */
/* ============================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 95%;
    padding: 0.7rem 3%;
    display: flex;
    justify-content: space-between;
    align-items: center;

    background: transparent;
    transition: all 0.4s ease;
    z-index: 999;
}

/* Cuando haces scroll */
.navbar.scrolled {
    background: rgba(10, 14, 39, 0.85);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

/* Espacio para que el hero no se esconda */
.hero {
    padding-top: 150px;
}

/* ============================= */
/* SOLUCIONES - DISEÑO PREMIUM */
/* ============================= */
.soluciones-section {
    padding: 160px 6.5%;
    background: linear-gradient(
        135deg,
        rgba(10, 14, 39, 0.95),
        rgba(14, 26, 58, 0.95)
    );
    text-align: center;
}

.soluciones-header {
    display: flex;
    justify-content: center;
    margin-bottom: 6px;
}

.soluciones-title {
    font-size: 3rem;
    margin-bottom: 80px;
    color: #ffffff;
    
}

.soluciones-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 5px;
    background: linear-gradient(90deg, #00c6ff, #00ff99);
    margin: 18px auto 0;
    border-radius: 2px;
}

/* Contenedor de cards */
.soluciones-cards {
    display: flex;
    justify-content: flex-start; /* 👈 se va a la izquierda */
    gap: 45px;
    flex-wrap: wrap;
}

/* Card individual */
.solucion-card {
    width: 320px;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 60px 20px 30px;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    transition: all 0.4s ease;
}

/* Hover elegante */
.solucion-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.8);
}

/* Badge superior */
.solucion-badge {
    position: absolute;
    top: -28px;
    left: 50%;
    transform: translateX(-50%);
    background: #ffffff;
    color: #007f5f;
    padding: 12px 28px;
    border-radius: 15px;
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.2;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

/* Texto */
.solucion-card p {
    font-size: 1rem;
    line-height: 1.7;
    color: #e2e6ff;
}

/* Responsive 
@media (max-width: 1024px) {
    .soluciones-cards {
        gap: 30px;
    }

    .solucion-card {
        width: 100%;
        max-width: 360px;
    }
}*/

/* ============================= */
/* WHATSAPP FLOAT BUTTON */
/* ============================= */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 62px;
    height: 62px;
    background: linear-gradient(135deg, #25d366, #1ebe5d);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 12px 30px rgba(37, 211, 102, 0.45);
    z-index: 999;
    transition: all 0.3s ease;
}

.whatsapp-float img {
    width: 32px;
    height: 32px;
}

/* Hover */
.whatsapp-float:hover {
    transform: scale(1.12);
    box-shadow: 0 18px 40px rgba(37, 211, 102, 0.7);
}

/* Responsive 
@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 55px;
        height: 55px;
    }

    .whatsapp-float img {
        width: 28px;
        height: 28px;
    }
}
    */

/* ============================= */
/* PAGINAS WEB SECTION */
/* ============================= */
.web-section {
    padding: 80px 1%;
    background: linear-gradient(
        130deg,
        rgba(10, 14, 39, 0.95),
        rgba(14, 26, 58, 0.95)
    );
}

.web-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 80px;
}

/* ===== IMAGENES ===== */
.web-images {
    position: relative;
    flex: 1;
    min-height: 500px;
}

.web-circle {
    position: absolute;
    border-radius: 50%;
    background: #fff;
    padding: 19px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

.web-circle img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
}

/* Tamaños */
.web-circle.big {
    width: 240px;
    height: 240px;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    border: 6px solid var(--bright-orange);
}

.web-circle.medium {
    width: 230px;
    height: 230px;
    right: 90px;
    border: 5px solid var(--leaf-green);
}

.web-circle.top {
    top: 0;
}

.web-circle.bottom {
    bottom: 0;
}

/* ===== TEXTO ===== */
.web-content {
    flex: 1;
    color: #fff;
    display: flex;                 /* 🔥 ACTIVAMOS FLEX */
    flex-direction: column;
    justify-content: center;       /* 🔥 CENTRADO VERTICAL */
    align-items: flex-start;       /* 🔥 TEXTO A LA IZQUIERDA */
}

.web-content h2 {
    font-size: 3.2rem;
    margin-bottom: 20px;
}

.web-badge {
    display: inline-block;
    background: #ffffff;
    color: var(--leaf-green);
    padding: 8px 22px;
    border-radius: 10px;
    font-weight: 700;
    margin-bottom: 25px;
}

.web-content p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #dbe1ff;
    margin-bottom: 35px;
}

/* ===== BOTON ===== */
.web-btn {
    display: inline-block;
    background: linear-gradient(45deg, var(--leaf-green), #6fbf3c);
    color: #fff;
    padding: 14px 35px;
    border-radius: 10px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(140, 198, 63, 0.5);
    transition: all 0.3s ease;
}

.web-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(140, 198, 63, 0.7);
}

/* ============================= */
/* DESCARGAS */
/* ============================= */

.descargas-section {
    padding: 200px 1%;
    background: linear-gradient(
        180deg,
        rgba(10, 14, 39, 0.658),
        rgba(10, 14, 39, 0.438)
    );
    text-align: center;
}

.descargas-title {
    font-size: 3rem;
    color: var(--leaf-green);
    margin-bottom: 15px;
}

.descargas-subtitle {
    color: #cfd6ff;
    margin-bottom: 70px;
}

/* CONTENEDOR */
.descargas-container {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
}

/* CARD CLICKABLE */
.descarga-card {
    width: 990px;
    text-decoration: none;
    color: white;
    transition: all 0.4s ease;

    display: flex;
    align-items: center;
    gap: 25px;
}

.descarga-card:hover {
    transform: translateY(-10px);
}

/* CÍRCULO */
.descarga-circle {
    width: 100px;
    height: 100px;
    margin: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 5px solid var(--bright-orange);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    transition: all 0.4s ease;
    flex-shrink: 0; /* evita que se achique */

}

.descarga-text {
    text-align: left;
}

.descarga-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.descarga-card p {
    font-size: 0.95rem;
    color: #cfd6ff;
    line-height: 1.4;
}

.descarga-circle img {
    width: 70%;
    height: auto;
}

/* HOVER EFECT */
.descarga-card:hover .descarga-circle {
    transform: scale(1.08);
    border-color: var(--leaf-green);
}

/* TEXTO */
.descarga-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.descarga-card p {
    font-size: 0.95rem;
    color: #cfd6ff;
}

/* ===== MODAL BASE ===== */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    z-index: 999;
}

/* ACTIVO */
.modal.active {
    opacity: 1;
    visibility: visible;
}

/* CONTENIDO */
.modal-content {
    background: linear-gradient(135deg, #0a0e27, #121c45);
    padding: 40px;
    border-radius: 20px;
    max-width: 450px;
    width: 90%;
    text-align: center;
    color: #fff;
    position: relative;
    animation: modalIn 0.5s ease;
}

/* TITULO */
.modal-content h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--leaf-green);
}

/* TEXTO */
.modal-content p {
    font-size: 1.05rem;
    line-height: 1.6;
    color: #dbe1ff;
}

/* BOTÓN CERRAR */
.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    cursor: pointer;
    color: #fff;
    transition: color 0.3s;
}

.modal-close:hover {
    color: var(--bright-orange);
}

/* ANIMACIÓN */
@keyframes modalIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* CURSOR + HOVER EN CÍRCULOS */
.web-circle {
    cursor: pointer;
    transition: transform 0.3s ease;
}

.web-circle:hover {
    transform: scale(1.08);
}

/* ===== BOTÓN DEL MODAL ===== */
.modal-btn {
    display: inline-block;
    margin-top: 30px;
    padding: 12px 32px;
    background: linear-gradient(
        45deg,
        var(--leaf-green),
        #9fe870
    );
    color: #0a0e27;
    font-weight: 700;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(140, 198, 63, 0.4);
}

.modal-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 35px rgba(140, 198, 63, 0.6);
}

/* ===================== */
/* FOOTER */
/* ===================== */

.footer {
    background: linear-gradient(
        180deg,
        rgba(10, 14, 39, 0.98),
        rgba(5, 8, 20, 1)
    );
    padding: 20px 6.5% 30px;
    color: #dbe1ff;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    margin-bottom: 4px;
}

/* BRAND */
.footer-brand img {
    width: 150px;
    margin-bottom: 20px;
}

.footer-brand p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #b8c0ff;
}

/* LINKS */
.footer-links h4,
.footer-contact h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: #ffffff;
}

.footer-links a {
    display: block;
    color: #b8c0ff;
    text-decoration: none;
    margin-bottom: 12px;
    transition: color 0.3s ease, transform 0.3s ease;
}

.footer-links a:hover {
    color: var(--leaf-green);
    transform: translateX(5px);
}

/* CONTACT */
.footer-contact p {
    font-size: 0.95rem;
    margin-bottom: 12px;
}

/* BOTTOM */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 2px;
    text-align: center;
    font-size: 0.8rem;
    color: #9aa4ff;
}

/* ============================= */
/* RESPONSIVE - TABLET */
/* ============================= */
@media (max-width: 1024px) {

    /* HERO */
    .hero-content {
        flex-direction: column;
        text-align: center;
    }

    .circle-container {
        width: 350px;
        height: 350px;
    }

    h1 {
        font-size: 3.5rem;
    }

    /* NOSOTROS */
    .nosotros-container {
        flex-direction: column;
        text-align: center;
    }

    .nosotros-image img {
        width: 300px;
        height: 300px;
    }

    /* SOLUCIONES */
    .soluciones-cards {
        gap: 30px;
    }

    .solucion-card {
        width: 100%;
        max-width: 360px;
    }

    /* WEB */
    .web-container {
        flex-direction: column;
        text-align: center;
    }

    .web-images {
        min-height: 420px;
    }

    .web-circle.big {
        left: 50%;
        transform: translate(-50%, -50%);
    }

    .web-circle.medium {
        left: 50%;
        right: auto;
        transform: translateX(-50%);
    }
}

/* ============================= */
/* RESPONSIVE - MOBILE */
/* ============================= */
@media (max-width: 768px) {
    .descargas-container {
        gap: 40px;
    }

    .descarga-circle {
        width: 150px;
        height: 150px;
    }

    h1 {
        font-size: 2.6rem;
    }
    .idea-container {
        flex-direction: column;
        text-align: center;
    }

    .idea-decoration {
        height: 200px;
    }

    .curve-line,
    .curve-line.second {
        left: 50%;
        transform: translateX(-50%);
    }
    .navbar {
        padding: 0.5rem 4%;
    }

    /* WHATSAPP */
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 55px;
        height: 55px;
    }

    .whatsapp-float img {
        width: 28px;
        height: 28px;
    }

    /* FOOTER */
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
}
