@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap");

:root {
    /* Fondo oscuro para estética de streaming y contraste profesional */
    --bg-main: #0c0c0c;
    --text-main: #f3f4f6;
    --text-muted: #9ca3af;

    /* Glassmorphism */
    --card-bg: rgba(255, 255, 255, 0.04);
    --card-border: rgba(255, 255, 255, 0.15);

    /* Acento de marca */
    --brand-gradient: linear-gradient(135deg, #8700ef, #064ff9, #d700fd);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 85px;
}

*,
*::after,
*::before {
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

body {
    background-color: var(--bg-main) !important;
    color: var(--text-main);
    min-height: 100vh;
    margin: 0;
    padding-top: 70px;
    position: relative;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

/* =========================================
   ILUMINACIONES DE FONDO (GLOWS)
   ========================================= */
body::before {
    content: "";
    position: absolute;
    top: -80px;
    right: -60px;
    width: 480px;
    height: 580px;
    background: var(--brand-gradient);
    filter: blur(130px);
    opacity: 0.25;
    z-index: 0;
    pointer-events: none;
    animation: breathe 8s ease-in-out infinite;
}

body::after {
    content: "";
    position: absolute;
    top: 50%;
    left: -100px;
    width: 400px;
    height: 400px;
    background: var(--brand-gradient);
    filter: blur(130px);
    opacity: 0.2;
    z-index: 0;
    pointer-events: none;
    animation: breathe 13s ease-in-out infinite 3s;
}

/* =========================================
   NAVBAR & NAVEGACIÓN
   ========================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    z-index: 1000;
    background-color: rgba(1, 28, 61, 0.8) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--card-border);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.navbar-brand {
    display: flex;
    align-items: center;
    padding: 0;
    margin: 0;
}

#Logo {
    height: 40px;
    width: auto;
    object-fit: contain;
    display: block;
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
}

.nav-links .nav-link {
    padding: 0.4rem 0.8rem;
}

.nav-links .nav-link a {
    color: white;
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-links .nav-link a:hover {
    color: #ffffff;
}

.hide-toggle,
.menu-toggle {
    display: none;
}

/* =========================================
   SECCIÓN DE PRESENTACIÓN (QUIÉNES SOMOS)
   ========================================= */
.container-presentation {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
    max-width: 1200px;
    margin: 3rem auto;
    padding: 0 1.5rem;
    animation: weare 1.2s ease-out;
}

.image-presentation {
    flex: 1;
    max-width: 450px;
}

.image-presentation h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: #ffffff;
}

.image-presentation img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    border-radius: 24px;
    object-fit: cover;
    display: block;
    box-shadow: 0 20px 40px rgba(44, 0, 239, 0.25);
    border: 1px solid var(--card-border);
}

.text-presentation {
    flex: 1.2;
}

.text-presentation h1 {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.presentation-desc {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-muted);
    text-align: left;
    margin: 0;
}

/* =========================================
   SECCIÓN DE CONTENIDO Y CARRUSEL
   ========================================= */
.container-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-gap: 3rem;
    align-items: center;
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 1.5rem;
}

.text-content h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.content-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    font-size: 1.05rem;
    color: var(--text-main);
}

/* =========================================
    CARRUSEL DE IMÁGENES
   ========================================= */

.image-content {
    width: 100%;
}

.carousel {
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(44, 0, 239, 0.25);
    border: 1px solid var(--card-border);
}

ul.slides {
    display: block;
    position: relative;
    height: 380px;
    margin: 0;
    padding: 0;
    overflow: hidden;
    list-style: none;
}

.slides * {
    user-select: none;
    -webkit-user-select: none;
}

ul.slides input {
    display: none;
}

.slide-container {
    display: block;
}

.slide-image {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.6s ease-in-out;
}

.slide-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
}

.carousel-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    z-index: 99;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1rem;
    pointer-events: none;
}

.carousel-controls label {
    display: none;
    pointer-events: auto;
    cursor: pointer;
    background-color: rgba(0, 0, 0, 0.45);
    color: #fff;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    backdrop-filter: blur(4px);
    transition: background-color 0.2s ease,
        transform 0.2s ease;
}

.carousel-controls label:hover {
    background-color: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

.carousel-dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 15px;
    z-index: 90;
    text-align: center;
}

.carousel-dots .carousel-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #ffffff;
    opacity: 0.4;
    margin: 0 5px;
    cursor: pointer;
    pointer-events: auto !important;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

input:checked+.slide-container .slide-image {
    opacity: 1;
    pointer-events: auto;
}

input:checked+.slide-container .carousel-controls label {
    display: flex;
}

input#img-1:checked~.carousel-dots label#img-dot-1,
input#img-2:checked~.carousel-dots label#img-dot-2,
input#img-3:checked~.carousel-dots label#img-dot-3 {
    opacity: 1;
    transform: scale(1.2);
}

/* =========================================
   DISPOSITIVOS COMPATIBLES
   ========================================= */
.icons-content {
    grid-column: 1 / -1;
    margin-top: 2rem;
    text-align: center;
}

.text-icons {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: #ffffff;
}

.icons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
}

figure {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0;
    gap: 0.75rem;
}

.icons img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    display: block;
    filter: brightness(0) invert(1);
    opacity: 0.85;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.icons img:hover {
    transform: translateY(-4px);
    opacity: 1;
}

figcaption {
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* =========================================
   PREGUNTAS FRECUENTES (FAQ)
   ========================================= */
.questions-content {
    max-width: 1200px;
    margin: 5rem auto;
    padding: 0 1.5rem;
}

.question-tittle {
    text-align: center;
    margin-bottom: 3.5rem;
}

.question-tittle h2 {
    font-size: 2.2rem;
    color: #ffffff;
}

.questions-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 1.75rem;
}

.question {
    display: flex;
    flex-direction: column;
    flex: 1 1 320px;
    max-width: 380px;
    padding: 2rem;
    border: 1px solid var(--card-border);
    border-radius: 18px;
    background-color: var(--card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.question:hover {
    transform: translateY(-4px);
    border-color: rgba(135, 0, 239, 0.4);
}

.question h3 {
    font-size: 1.25rem;
    color: #ffffff;
    margin-bottom: 1rem;
}

.question p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
    flex-grow: 1;
}

/* =========================================
   CONTACTO & CTA WHATSAPP
   ========================================= */
.contact-content {
    max-width: 800px;
    margin: 5rem auto;
    padding: 0 1.5rem;
    text-align: center;
}

.contact-content h2 {
    font-size: 2.2rem;
    color: #ffffff;
    margin-bottom: 0.75rem;
}

.contact-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
}

.whatsapp {
    display: flex;
    justify-content: center;
}

.btn-whatsapp,
.btn-whatsapp:visited {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    background-color: #25d366;
    color: #ffffff !important;
    text-decoration: none !important;
    font-size: 1.15rem;
    font-weight: 600;
    padding: 0.95rem 2.2rem;
    border-radius: 50px;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.btn-whatsapp img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.btn-whatsapp:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 14px 30px rgba(37, 211, 102, 0.5);
    filter: brightness(1.05);
    color: #ffffff !important;
}

/* =========================================
   DIVISOR Y FOOTER LEGAL
   ========================================= */
.section-divider {
    border: 0;
    height: 1px;
    background-color: var(--card-border);
    margin: 4rem auto;
    max-width: 1100px;
    width: 90%;
}

.footer-legal {
    padding: 3rem 1.5rem 2.5rem;
    background-color: #080808;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.legal-text,
.credits-text {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 900px;
    margin: 0 auto 0.75rem;
}

.footer-legal a {
    color: #d1d5db;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.footer-legal a:hover {
    color: #ffffff;
}

/* =========================================
   MEDIA QUERIES (TABLETS Y MÓVILES)
   ========================================= */
@media (max-width: 991.98px) {
    .container-presentation {
        gap: 2.5rem;
    }

    .text-presentation h1 {
        font-size: 2.3rem;
    }

    .container-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .icons {
        gap: 2rem;
    }
}

@media (max-width: 767.98px) {
    body {
        padding-top: 65px;
    }

    .navbar {
        height: 65px;
    }

    #Logo {
        height: 34px;
    }

    .menu-toggle {
        display: block;
        cursor: pointer;
        color: #ffffff;
        font-size: 1.4rem;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        padding: 2.5rem 1.5rem;
        background-color: rgba(11, 13, 20, 0.98);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        box-shadow: -15px 0 35px rgba(0, 0, 0, 0.8);
        z-index: 1050;
        transform: translateX(100%);
        transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .nav-links.show {
        transform: translateX(0);
    }

    .nav-links .hide-toggle {
        display: block;
        position: absolute;
        top: 20px;
        right: 20px;
        cursor: pointer;
        font-size: 1.5rem;
        color: #ffffff;
    }

    .nav-links .nav-link {
        width: 100%;
        padding: 0.9rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }

    .container-presentation {
        flex-direction: column-reverse;
        text-align: center;
        gap: 2rem;
        margin-top: 2rem;
    }

    .image-presentation {
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
    }

    .presentation-desc {
        text-align: center;
    }

    ul.slides {
        height: 260px;
    }

    .icons {
        gap: 1.5rem;
    }

    .icons img {
        width: 48px;
        height: 48px;
    }

    figcaption {
        font-size: 0.85rem;
    }

    .btn-whatsapp {
        width: 100%;
        justify-content: center;
        padding: 0.85rem 1.5rem;
        font-size: 1.05rem;
    }
}

/* =========================================
   ANIMACIONES
   ========================================= */
@keyframes breathe {

    0%,
    100% {
        transform: scale(1) translateZ(0);
        opacity: 0.15;
    }

    50% {
        transform: scale(1.15) translateZ(0);
        opacity: 0.3;
    }
}

@keyframes weare {
    0% {
        transform: translateY(2.5rem);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

/* =========================================================
   RESPONSIVE HARDENING — MOBILE FIRST / UX
   Mantiene la identidad visual original y refuerza:
   - pantallas pequeñas (320px+)
   - tablets
   - orientación horizontal
   - safe areas de móviles
   - accesibilidad táctil
   ========================================================= */

:root {
    --page-gutter: clamp(1rem, 4vw, 1.5rem);
    --section-space: clamp(3rem, 8vw, 5rem);
    --touch-target: 44px;
}

html {
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    overflow-x: clip;
}

img {
    max-width: 100%;
}

/* Evita que el contenido de Bootstrap cree scroll horizontal */
.navbar .container,
.container-presentation,
.container-content,
.questions-content,
.contact-content {
    width: 100%;
}

/* ---------- NAVBAR ---------- */
.navbar {
    height: 70px;
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
}

.navbar .container {
    padding-left: max(var(--page-gutter), env(safe-area-inset-left));
    padding-right: max(var(--page-gutter), env(safe-area-inset-right));
}

#Logo {
    max-width: min(180px, 42vw);
}

/* El icono de menú debe tener un área táctil real */
.menu-toggle {
    width: var(--touch-target);
    height: var(--touch-target);
    display: none;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.menu-toggle i {
    display: block;
    font-size: 1.35rem;
}

/* ---------- CONTENIDO GENERAL ---------- */
.container-presentation,
.container-content,
.questions-content,
.contact-content {
    padding-left: var(--page-gutter);
    padding-right: var(--page-gutter);
}

.container-presentation {
    margin-top: clamp(2rem, 6vw, 4rem);
    margin-bottom: clamp(3rem, 7vw, 4rem);
}

.text-presentation h1 {
    font-size: clamp(2rem, 5vw, 2.8rem);
    line-height: 1.1;
}

.image-presentation h2,
.text-content h2,
.text-icons,
.question-tittle h2,
.contact-content h2 {
    font-size: clamp(1.55rem, 4vw, 2.2rem);
    line-height: 1.2;
}

.presentation-desc {
    font-size: clamp(0.98rem, 2vw, 1.1rem);
    line-height: 1.75;
}

/* ---------- CONTENIDO + CARRUSEL ---------- */
.container-content {
    gap: clamp(2rem, 5vw, 3rem);
    margin-top: var(--section-space);
    margin-bottom: var(--section-space);
}

.content-list {
    font-size: clamp(0.95rem, 2vw, 1.05rem);
    line-height: 1.55;
}

.content-list li {
    overflow-wrap: anywhere;
}

.carousel {
    width: 100%;
    max-width: 100%;
    aspect-ratio: 16 / 9;
}

ul.slides {
    width: 100%;
    height: 100%;
    min-height: 0;
    aspect-ratio: 16 / 9;
}

.carousel-controls {
    padding: 0 clamp(0.5rem, 2vw, 1rem);
}

.carousel-controls label {
    width: var(--touch-target);
    height: var(--touch-target);
}

.carousel-dots {
    bottom: max(12px, env(safe-area-inset-bottom));
}

.carousel-dots .carousel-dot {
    width: 11px;
    height: 11px;
    margin: 0 6px;
}

/* ---------- DISPOSITIVOS ---------- */
.icons-content {
    margin-top: clamp(0.5rem, 4vw, 2rem);
}

.icons {
    width: 100%;
    gap: clamp(1rem, 5vw, 2.5rem);
}

.icons figure {
    min-width: 74px;
    max-width: 110px;
    text-align: center;
}

.icons img {
    width: clamp(44px, 10vw, 60px);
    height: clamp(44px, 10vw, 60px);
}

figcaption {
    line-height: 1.35;
    overflow-wrap: anywhere;
}

/* ---------- FAQ ---------- */
.questions-content {
    margin-top: var(--section-space);
    margin-bottom: var(--section-space);
}

.question-tittle {
    margin-bottom: clamp(2rem, 6vw, 3.5rem);
}

.questions-list {
    gap: clamp(1rem, 3vw, 1.75rem);
}

.question {
    width: 100%;
    max-width: 380px;
    min-width: 0;
    padding: clamp(1.25rem, 4vw, 2rem);
}

.question h3 {
    font-size: clamp(1.05rem, 3vw, 1.25rem);
    line-height: 1.35;
}

.question p {
    font-size: clamp(0.9rem, 2vw, 0.95rem);
}

/* ---------- CTA ---------- */
.contact-content {
    margin-top: var(--section-space);
    margin-bottom: var(--section-space);
}

.contact-subtitle {
    font-size: clamp(0.95rem, 2.5vw, 1.1rem);
}

.btn-whatsapp {
    min-height: var(--touch-target);
    max-width: 100%;
}

.btn-whatsapp span {
    overflow-wrap: anywhere;
}

/* ---------- FOOTER ---------- */
.footer-legal {
    padding-left: max(1rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
    padding-bottom: max(2.5rem, env(safe-area-inset-bottom));
}

.legal-text,
.credits-text {
    overflow-wrap: anywhere;
}

/* =========================================================
   MOBILE
   ========================================================= */
@media (max-width: 767.98px) {
    body {
        padding-top: 65px;
    }

    .navbar {
        height: 65px;
    }

    #Logo {
        height: 34px;
        max-width: 150px;
        /* Evita que el escalado del desktop invada el menú */
        transform: scale(1);
        transform-origin: left center;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-links {
        width: min(86vw, 340px);
        max-width: none;
        height: 100dvh;
        min-height: 100vh;
        padding-top: max(4.5rem, calc(2.5rem + env(safe-area-inset-top)));
        padding-bottom: max(2rem, env(safe-area-inset-bottom));
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .nav-links .hide-toggle {
        width: var(--touch-target);
        height: var(--touch-target);
        top: max(12px, env(safe-area-inset-top));
        right: 14px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .nav-links .nav-link {
        padding: 0;
    }

    .nav-links .nav-link a {
        display: flex;
        align-items: center;
        min-height: 52px;
        width: 100%;
        font-size: 1rem;
    }

    .container-presentation {
        flex-direction: column;
        gap: clamp(1.5rem, 5vw, 2rem);
        margin-top: 1.75rem;
    }

    .image-presentation {
        width: 100%;
        max-width: 520px;
    }

    .image-presentation img {
        border-radius: 18px;
    }

    .text-presentation h1 {
        margin-bottom: 1rem;
    }

    .presentation-desc {
        text-align: center;
    }

    .container-content {
        grid-template-columns: 1fr;
    }

    .text-content h2 {
        margin-bottom: 1.25rem;
    }

    .content-list {
        gap: 0.65rem;
    }

    .carousel {
        border-radius: 16px;
    }

    .icons {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        justify-items: center;
        align-items: start;
        gap: 1.5rem 0.75rem;
    }

    .icons figure {
        width: 100%;
        min-width: 0;
    }

    .icons figure:nth-child(4) {
        grid-column: 1 / 2;
    }

    .icons figure:nth-child(5) {
        grid-column: 3 / 4;
    }

    .question {
        max-width: none;
    }

    .btn-whatsapp {
        width: 100%;
        justify-content: center;
        padding: 0.85rem 1rem;
        font-size: 1rem;
        border-radius: 16px;
    }

    .section-divider {
        margin-top: 3rem;
        margin-bottom: 3rem;
    }
}

/* Móviles muy pequeños: 320–380px */
@media (max-width: 380px) {
    .navbar .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    #Logo {
        max-width: 130px;
    }

    .nav-links {
        width: 90vw;
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    .container-presentation,
    .container-content,
    .questions-content,
    .contact-content {
        padding-left: 0.9rem;
        padding-right: 0.9rem;
    }

    .content-list {
        font-size: 0.9rem;
    }

    .icons {
        gap: 1.25rem 0.35rem;
    }

    figcaption {
        font-size: 0.76rem;
    }

    .btn-whatsapp {
        font-size: 0.92rem;
    }
}

/* Móviles en horizontal: no desperdiciar toda la pantalla */
@media (max-width: 900px) and (orientation: landscape) {
    .nav-links {
        justify-content: flex-start;
        overflow-y: auto;
        padding-top: 4rem;
    }

    .container-presentation {
        flex-direction: row;
        align-items: center;
    }

    .image-presentation {
        max-width: 42%;
    }

    ul.slides,
    .carousel {
        max-height: 70vh;
    }
}

/* Reduce movimiento para usuarios que lo solicitan */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Preserve the original desktop carousel proportions; use 16:9 when space is constrained. */
@media (min-width: 992px) {
    .carousel {
        aspect-ratio: auto;
    }

    ul.slides {
        height: 380px;
        aspect-ratio: auto;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {

    .carousel,
    ul.slides {
        aspect-ratio: 16 / 9;
        height: auto;
    }

    ul.slides {
        min-height: 280px;
    }
}