:root {

    --purple: #892be2;
    --purple-light: #a855f7;

    --pink: #ff00aa;
    --pink-light: #ff59c7;

    --gradient:
        linear-gradient(
            110deg,
            #892be2c8 0%,
            #ff00aaa0 100%
        );

    --white: #ffffff;

    --glass:
        rgba(255, 255, 255, 0.78);

    --glass-strong:
        rgba(255, 255, 255, 0.90);

    --dark: #18121c;

    --text: #27212b;

    --muted: #6d6472;

    --radius: 30px;

    --shadow:
        0 20px 60px rgba(57, 0, 80, .18);

    --glow:
        0 0 35px rgba(255, 255, 255, .55);
}


/* =========================================================
   RESET
========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    /* Evita que el texto se desborde en pantallas muy estrechas */
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

.aladin-regular {
  font-family: "Aladin", system-ui;
  font-weight: 400;
  font-style: normal;
}


.edu-tas-beginner-<uniquifier> {
  font-family: "Edu TAS Beginner", cursive;
  font-optical-sizing: auto;
  font-weight: <weight>;
  font-style: normal;
}



html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}


body {
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;

    overflow-x: hidden;

    color: var(--text);
    font-family: "Playfair Display", serif;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: scroll;
    background-image: url(../IMG/FONDOS.jpg);
    

   
}


/* Mantiene el contenido por encima */
.animacion .wrapper{
    position: relative;
    z-index: 2;
}



/* =========================================
   CONTENIDO DEL HERO
========================================= */

.hero-content {
    position: relative;
    z-index: 2;

    min-height: 97vh;
    min-height: 97svh;

    width: 100%;

    display: flex;
    flex-direction: column;
    align-items: center;

    padding: 0 1rem;
}

/* =========================================================
   HERO
========================================================= */

.hero {
    position: relative;
}


/* =========================================================
   SOCIAL
========================================================= */

.social-bar {
    position: absolute;
    top: 30%;
    right: 30px;

    transform: translateY(-50%);

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;

    z-index: 20;
}


.shiny-btn {
  padding: 15px;
  border-radius: 50%;
  font-family: "Aladin", system-ui;
	width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
/* Camuflar con el fondo */
  background: transparent;
  border: 2px solid rgba(212, 175, 55, 0.85);
  /* Efecto flotante */
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #fff;
  text-decoration: none;
}

/* =========================================================
   SOCIAL - MÓVIL
========================================================= */

@media (max-width: 768px) {

    .social-bar {
        top: 12px;
        right: 12px;

        transform: none;

        flex-direction: row;
        gap: 8px;
        z-index: 30;
    }

    .social-bar a {
        width: 34px;
        height: 34px;
        padding: 0;

        font-size: 10px;
    }

}

@media (max-width: 400px) {

    .social-bar a {
        width: 30px;
        height: 30px;
        font-size: 9px;
    }
}

.saber {
  margin-top: clamp(40px, 12vw, 220px);
  width: 100%;
  min-height: clamp(140px, 30vw, 400px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 16px;
}

.saber-mas {
  color: #fff;
  text-decoration: none;
  font-family: "Aladin", system-ui;
  font-size: clamp(1.6rem, 5vw, 50px);
  transition: all 0.3s ease;
  box-sizing: border-box;
  /* clave para que el hover se ajuste al texto */
  display: inline-block;
  position: relative;
/* animación de flotar */
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

/* =========================================================
   ORNAMENTO INFERIOR
   SOLO APARECE CON HOVER
   ========================================================= */
.saber-mas::before {
    content: "༺───༻";
    position: absolute;
    z-index: 1;
    left: 50%;
    bottom: -15px; /* ajusta según lo quieras separado del texto */
    transform: translate(-50%, 8px);
    color: #d6b477;
    font-family: "Aladin", system-ui;
    font-size: clamp(16px, 3vw, 30px);
    font-weight: normal;
    letter-spacing: 0.5px;
    white-space: nowrap;
    line-height: 1;
    opacity: 0;
    pointer-events: none;
    transition:
        opacity 0.4s ease,
        transform 0.4s cubic-bezier(.22, 1, .36, 1);
}

.saber-mas:hover::before,
.saber-mas:focus-visible::before {
    opacity: 1;
    transform: translate(-50%, 0);
}

.saber-mas:hover {
    color: #f3d8b1;
    text-shadow:
        0 0 6px rgba(243, 216, 177, 0.22);
    background:
        radial-gradient(
            ellipse at center bottom,
            rgba(212, 175, 55, 0.07),
            transparent 65%
        );
}

/* =========================================================
   NAV
   ========================================================= */

/*
   El nav permanece en su posición dentro del header
   y NO se mueve ni se pega al hacer scroll.
*/

.bottom-menu {
    position: static;
    /* Posición y tamaño */
    width: 100%;
    height: 50px;
    /* Layout */
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 0 30px;
    box-sizing: border-box;

    /* Fondo */
    background: linear-gradient(
    135deg,
    #3d1b61 100%     /* lila oscuro/violeta profundo */
    #c0b8d8 25%,     /* plata-lila */
    #9b7fc7 50%,     /* lila medio */
    #6b3fb0 75%,     /* lila intenso */
    #3d1b61 100%     /* lila oscuro/violeta profundo */
  );

    /* Bordes */
    border: 1px solid rgba(212, 175, 55, 0.28);
    border-bottom: 1px solid rgba(212, 175, 55, 0.85);

    /* Efecto glass */
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);

    /* Sombras */
    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.45),
        0 -1px 8px rgba(212, 175, 55, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);

    /*
       Permite que la decoración permanezca
       dentro del nav.
    */
    overflow: hidden;
}


/* =========================================================
   ELEMENTOS DEL NAV
   ========================================================= */

.menu-item {
    position: relative;
    z-index: 101;
	flex: 1 1 0;       /* todos los ítems reparten el mismo ancho */
    min-width: 0;
    height: 50px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: rgba(245, 235, 241, 0.78);

    text-decoration: none;

    font-family: "Edu TAS Beginner", cursive;
    font-size: clamp(13px, 1.6vw, 20px);
    cursor: pointer;

    /*
       Dejamos espacio inferior para que la
       ornamentación tenga aire.
    */
    padding: 0 12px;

    transition:
        color 0.3s ease,
        background 0.35s ease,
        text-shadow 0.3s ease;
}


/* =========================================================
   TÍTULO
   SIEMPRE VISIBLE
   ========================================================= */

.menu-text {
    position: relative;
    z-index: 2;

    display: block;

    visibility: visible;
    opacity: 1;

    transform: none;

    width: auto;
    height: auto;

    margin: 0;
    padding: 0;

    text-align: center;

    white-space: nowrap;

    pointer-events: none;

    color: inherit;

    font-family: inherit;
    font-size: inherit;

    transition:
        color 0.3s ease,
        text-shadow 0.3s ease;
}


/* =========================================================
   ORNAMENTO INFERIOR
   SOLO APARECE CON HOVER
   ========================================================= */

/*
   ::before se utiliza para la decoración.

   ::after ya está reservado para los
   separadores verticales.
*/

.menu-item::before {
    content: "༺───༻";

    position: absolute;
    z-index: 1;

    left: 50%;
    bottom: 3px;

    /*
       Estado inicial:
       ligeramente desplazado hacia abajo.
    */
    transform: translate(-50%, 8px);

    color: #d6b477;

    font-family: Georgia, "Times New Roman", serif;
    font-size: 11px;
    font-weight: normal;

    letter-spacing: 0.5px;

    white-space: nowrap;
    line-height: 1;

    /*
       OCULTO inicialmente.
    */
    opacity: 0;

    pointer-events: none;

    transition:
        opacity 0.4s ease,
        transform 0.4s cubic-bezier(.22, 1, .36, 1);
}


/* =========================================================
   HOVER DEL ORNAMENTO
   ========================================================= */

.menu-item:hover::before {
    /*
       Aparece suavemente.
    */
    opacity: 1;

    /*
       Sube hasta su posición final.
    */
    transform: translate(-50%, 0);
}


/* =========================================================
   HOVER DEL ELEMENTO
   ========================================================= */

.menu-item:hover {
    color: #f3d8b1;

    /*
       Pequeño brillo dorado.
    */
    text-shadow:
        0 0 6px rgba(243, 216, 177, 0.22);

    /*
       Iluminación muy sutil debajo.
    */
    background:
        radial-gradient(
            ellipse at center bottom,
            rgba(212, 175, 55, 0.07),
            transparent 65%
        );
}


/* =========================================================
   HOVER DEL TEXTO
   ========================================================= */

.menu-item:hover .menu-text {
    color: #f3d8b1;

    text-shadow:
        0 0 5px rgba(232, 197, 142, 0.25),
        0 0 12px rgba(232, 197, 142, 0.08);
}


/* =========================================================
   SEPARADORES
   ========================================================= */

/*
   Los separadores permanecen siempre visibles.
   NO se confunden con la ornamentación porque
   utilizamos ::after para ellos.
*/

.menu-item:nth-child(1)::after,
.menu-item:nth-child(2)::after,
.menu-item:nth-child(3)::after {
    content: "";

    position: absolute;

    right: 0;
    top: 50%;

    width: 1px;
    height: 34px;

    transform: translateY(-50%);

    background: rgba(212, 175, 55, 0.85);

    pointer-events: none;
}


/* =========================================================
   ELEMENTO ACTIVO
   ========================================================= */

.menu-item.active {
    color: rgba(255, 245, 250, 0.95);

    text-shadow:
        0 0 8px rgba(232, 197, 142, 0.12);
}


/* =========================================================
   INDICADOR ACTIVO
   ========================================================= */

.menu-indicator {
    position: absolute;

    z-index: 3;

    left: 50%;
    bottom: 0;

    width: 48px;
    height: 2px;

    transform: translateX(-50%);

    background: #e8c58e;

    pointer-events: none;

    /*
       Oculto hasta hover.
    */
    opacity: 0;

    transition:
        opacity 0.3s ease,
        background 0.3s ease,
        width 0.35s ease;
}


/* =========================================================
   HOVER DEL INDICADOR
   ========================================================= */

.menu-item:hover .menu-indicator {
    width: 48px;

    opacity: 1;

    background: #d8b77c;
}


/* =========================================================
   HOVER MÁS ELEGANTE DEL INDICADOR
   ========================================================= */

.menu-item:hover .menu-indicator {
    box-shadow:
        0 0 5px rgba(216, 183, 124, 0.25);
}


/* =========================================================
   SEGURIDAD
   EL TEXTO NO SE OCULTA NUNCA
   ========================================================= */

.bottom-menu .menu-text,
.bottom-menu .menu-item .menu-text {
    display: block !important;

    visibility: visible !important;
    opacity: 1 !important;

    transform: none !important;
}


/* =========================================================
   BOX-SIZING
   ========================================================= */

.bottom-menu,
.menu-item,
.menu-icon,
.menu-text,
.menu-indicator {
    box-sizing: border-box;
}


/* =========================================================
   RESPONSIVE — TABLET / MÓVIL
   ========================================================= */

@media (max-width: 700px) {

    .bottom-menu {

        /*
           Ya NO es sticky:
           no se pega a la parte superior al hacer scroll.
        */
        position: static;

        width: calc(100% - 24px);
        max-width: none;

        height: auto;
        min-height: 82px;

        flex-wrap: wrap;

        margin: 0 auto;

        padding: 10px 12px;

        border-radius: 14px;
    }


    /* =====================================
       ELEMENTOS
       ===================================== */

    .menu-item {
        flex: 1 1 45%;
        height: 46px;

        gap: 5px;

        padding: 0 5px;

        font-size: 13px;
    }


    /* =====================================
       ICONOS
       ===================================== */

    .menu-icon {
        width: 23px;
        height: 23px;

        font-size: 23px;
    }


    /* =====================================
       SEPARADORES
       ===================================== */

    .menu-item:nth-child(1)::after,
    .menu-item:nth-child(2)::after,
    .menu-item:nth-child(3)::after {
        display: none;
    }


    /* =====================================
       TEXTO
       ===================================== */

    .menu-text {
        font-size: 12px;

        line-height: 1.2;

        max-width: none;

        white-space: normal;
    }


    /* =====================================
       ORNAMENTO
       ===================================== */

    .menu-item::before {
        bottom: 2px;

        font-size: 9px;

        letter-spacing: 0;
    }


    /* =====================================
       INDICADOR
       ===================================== */

    .menu-indicator {
        width: 42px;
        height: 2px;

        bottom: 3px;
    }


    .menu-item:hover .menu-indicator {
        width: 42px;
    }
}


/* =========================================================
   PANTALLAS MUY PEQUEÑAS
   ========================================================= */

@media (max-width: 400px) {

    .bottom-menu {
        width: 100%;

        padding: 8px 5px;
    }


    /* =====================================
       ELEMENTOS
       ===================================== */

    .menu-item {
        flex: 1 1 100%;
        font-size: 12px;

        padding: 0 3px;
    }


    /* =====================================
       ICONOS
       ===================================== */

    .menu-icon {
        width: 21px;
        height: 21px;

        font-size: 21px;
    }


    /* =====================================
       TEXTO
       ===================================== */

    .menu-text {
        font-size: 11px;

        max-width: none;
    }


    /* =====================================
       ORNAMENTO
       ===================================== */

    .menu-item::before {
        bottom: 2px;

        font-size: 8px;
    }


    /* =====================================
       INDICADOR
       ===================================== */

    .menu-indicator {
        width: 38px;
    }


    .menu-item:hover .menu-indicator {
        width: 42px;
    }
}


/* =========================================================
   ACCESIBILIDAD
   ========================================================= */

/*
   Para personas que prefieren menos movimiento,
   reducimos las animaciones.
*/

@media (prefers-reduced-motion: reduce) {

    .menu-item,
    .menu-text,
    .menu-item::before,
    .menu-indicator,
    .saber-mas,
    .card-image img,
    .magic-card,
    .card-button,
    .carta {
        transition: none !important;
        animation: none !important;
    }
}


/* =========================================
   BOTÓN SABER MÁS
========================================= */

.saber-mas span {
    font-size: clamp(13px, 1.6vw, 16px);

    transition:
        color 0.25s ease;
}


.saber-mas:hover {
    background-color: rgba(212, 175, 55, 0.12);

    border-color: #F0D77A;

    /* Sin scale */
    transform: none;
}


.saber-mas:hover span {
    /* Sin movimiento */
    transform: none;

    color: #F0D77A;
}

.hero-logo {
    width: clamp(160px, 50%, 900px);
    height: auto;
    max-height: 40vh;
    left: 25%;
    transform: translateX(-50%);
    top: 10px;
	position: relative;
}

@media (max-width: 700px) {
    .hero-logo {
        width: clamp(140px, 70%, 320px);
        max-height: 30vh;
        top: 6px;
    }
}

.wrapper video {
    border-radius: 30px;
    overflow: hidden;
    width: 100%;
    height: min(100vh, 900px);
    max-height: 92vh;
    display: block;
    object-fit: cover;
}

/* =========================================================
   VÍDEO DE FONDO EN EL HEADER — SOLO MÓVIL Y TABLET
   Umbral: 900px (por debajo = móvil/tablet, por encima = escritorio)
   ========================================================= */

/* Oculto por defecto (escritorio) */
.hero-video {
    display: none;
}

@media (max-width: 900px) {

    /* El vídeo de dentro del wrapper ya no se muestra:
       en móvil/tablet el único vídeo visible es el del header */
    .wrapper video {
        display: none;
    }

    .hero {
        position: relative;
        z-index: 0;
        overflow: hidden;
        height: 100px;
    }

    .hero-video {
        display: block;

        position: absolute;
        inset: 0;

        width: 100%;
        height: 100%;

        object-fit: cover;

        /* Al ir en negativo, queda detrás de TODO el contenido
           en flujo normal del header (menú, logo, redes, "saber más"),
           sin tener que tocar el z-index de cada uno */
        z-index: -2;
    }

    /* Capa oscura suave para que el menú, el logo y los iconos
       se lean bien encima del vídeo, sea cual sea la escena */
    .hero::before {
        content: "";

        position: absolute;
        inset: 0;

        background: linear-gradient(
            180deg,
            rgba(10, 0, 25, .55) 0%,
            rgba(10, 0, 25, .15) 35%,
            rgba(10, 0, 25, .25) 65%,
            rgba(10, 0, 25, .6) 100%
        );

        z-index: -1;
        pointer-events: none;
    }
}

@media (max-width: 500px) {
    .hero {
        min-height: clamp(420px, 130vw, 620px);
    }
}

/* CONTENEDOR PRINCIPAL */

.wrapper {
    font-family: 'Playfair Display';
    width: 96%;
    max-width: 1690px;
    margin: 20px auto 0;
    background: transparent;
    border-radius: 30px;
    padding: clamp(14px, 3vw, 22px);
    border: 1px solid #E5E4E2;
    box-shadow:
    0 0 0 1px #E5E4E2,
    0 0 2px #E5E4E2,
    0 10px 25px #E5E4E2,
    inset 0 1px 0 #E5E4E2;
}

.wrapper p {
    background:#efefeff5;
    margin-top: 20px;
    border-radius:22px;
    padding: clamp(16px, 3vw, 26px);
    border:1px solid rgba(255,255,255,.9);
    box-shadow:
    inset 0 2px 1px rgba(255,255,255,.95),
    inset 0 -3px 8px rgba(0,0,0,.05),
    0 0 18px rgba(0,180,170,.20);
    font-family: "Edu TAS Beginner", cursive;
    font-size: clamp(0.95rem, 2vw, 25px);
    line-height: 1.6;
}

.titulo {
  margin-top: clamp(24px, 6vw, 60px);
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.titulo h2, p, h3 {
  margin: 0;
}

.titulo h2 {
  font-size: clamp(1.7rem, 5.5vw, 3rem);
  line-height: 1.15;
	 
}

.titulo-destacado {
  font-family: "Aladin", system-ui;
  font-size: clamp(1.5rem, 4.5vw, 2.5rem);
  font-style: italic;
  color: #ffffff;
  font-weight: 600;
}

.titulo .subtitulo {
  
  font-size: clamp(1.3rem, 4.5vw, 40px) !important;
  color: #ffffff;
  background: none !important;
  border: none !important;
}


/* TITULO */

.title-box {

    padding: clamp(16px, 3vw, 26px);
    margin-bottom:22px;
  
   box-shadow:
   inset 0 2px 1px rgba(255,255,255,.95),
   inset 0 -3px 8px rgba(0,0,0,.05),
    0 0 18px rgba(0,180,170,.20);
	
	 /* Fondo */
    background: linear-gradient(
    135deg,
    #3d1b61 100%     /* lila oscuro/violeta profundo */
    #c0b8d8 25%,     /* plata-lila */
    #9b7fc7 50%,     /* lila medio */
    #6b3fb0 75%,     /* lila intenso */
    #3d1b61 100%     /* lila oscuro/violeta profundo */
  );

    /* Bordes */
    border: 1px solid rgba(212, 175, 55, 0.28);
    border-bottom: 1px solid rgba(212, 175, 55, 0.85);

    /* Efecto glass */
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);

    /* Sombras */
    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.45),
        0 -1px 8px rgba(212, 175, 55, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);

    /*
       Permite que la decoración permanezca
       dentro del nav.
    */
    overflow: hidden;
}

.title-box h1 {
    font-family: "Aladin", system-ui;
    text-align:center;
    color: #ffffff;
    font-size: clamp(1.75rem, 5vw, 48px);
    font-weight:800;
    letter-spacing:-1px;
    text-transform:uppercase;
}

/* =========================================================
   SECCIÓN CARDS
   Diseño inspirado exactamente en la referencia
========================================================= */

.cards-section {
  width: 96%;
    max-width: 1690px;
    margin: 20px auto 0;
    background: transparent;
    border-radius: 30px;
    padding: clamp(14px, 3vw, 22px);
    border: 1px solid #E5E4E2;
    box-shadow:
    0 0 0 1px #E5E4E2,
    0 0 2px #E5E4E2,
    0 10px 25px #E5E4E2,
    inset 0 1px 0 #E5E4E2;
    position: relative;
}


/* =========================================================
   DESTELLOS DEL FONDO
========================================================= */

.cards-section::before {

    content: "";

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(20, 0, 50, .38),
            rgba(80, 0, 100, .10),
            rgba(20, 0, 50, .38)
        );

    pointer-events: none;

    z-index: 0;
    border-radius: inherit;
}


.cards-section::after {

    content: "";

    position: absolute;

    width: clamp(300px, 45vw, 800px);
    height: clamp(160px, 22vw, 400px);

    right: -250px;
    bottom: -180px;

    background:
        radial-gradient(
            ellipse,
            rgba(255, 69, 201, 0.42),
            transparent 70%
        );

    filter: blur(30px);

    pointer-events: none;
}


/* =========================================================
   CONTENEDOR PRINCIPAL DE CRISTAL
========================================================= */

.cards-glass {

    position: relative;

    z-index: 2;

    width: 100%;
    padding:
        clamp(18px, 3vw, 42px)
        clamp(16px, 4vw, 52px);

    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 24px;

    align-items: center;

    border-radius: 22px;

    /* Cristal */
    background: transparent;

    border:
        1px solid rgba(255, 255, 255, 0.32);

    box-shadow:

        0 20px 60px
        rgba(35, 0, 65, 0.35),

        inset 0 1px 1px
        rgba(255, 255, 255, 0.35),

        inset 0 -1px 1px
        rgba(255, 100, 220, 0.18);

    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}


/* =========================================================
   BRILLO DEL CONTENEDOR
========================================================= */

.cards-glass::before {

    content: "";

    position: absolute;

    inset: 0;

    border-radius: inherit;

    pointer-events: none;

    background:
        linear-gradient(
            120deg,
            transparent 15%,
            rgba(255,255,255,.10) 35%,
            transparent 55%
        );

    opacity: .8;
}

/* =========================================================
   CABECERA DE EMOCIONES
========================================================= */

.emociones__header {
    height: 70px;

    display: flex;
    justify-content: center;
    align-items: center;

    position: relative;
    overflow: hidden;
    padding: clamp(16px, 3vw, 26px);
    margin-bottom: 22px;

    /* Fondo */
    background: transparent;

    /* Bordes */
    border: 1px solid rgba(212, 175, 55, 0.28);
    border-bottom: 1px solid rgba(212, 175, 55, 0.85);

    /* Efecto glass */
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);

    /* Sombras */
    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.45),
        0 -1px 8px rgba(212, 175, 55, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.04),
        inset 0 -3px 8px rgba(0, 0, 0, 0.05),
        0 0 18px rgba(0, 180, 170, 0.20);
}

.emociones__header h2 {
    position: relative;
    z-index: 1;
    margin: 0;
    padding: 0 25px;

    font-family: "Aladin", system-ui;
    font-size: clamp(20px, 3.4vw, 30px);
    line-height: 1.1;
    font-weight: 800;
    color: #ffffff;
    text-transform: uppercase;
    text-align: center;

    text-shadow:
        0 3px 6px rgba(0, 0, 0, 0.5),
        0 0 12px rgba(255, 255, 255, 0.35);
}

/* línea izquierda */
.emociones__header h2::before {
    content: "";
    position: absolute;
    top: 50%;
    right: 100%;

    width: clamp(30px, 8vw, 120px);
    height: 1px;

    background: linear-gradient(
        to right,
        transparent,
        rgba(212, 175, 55, 0.8)
    );
}

/* línea derecha */
.emociones__header h2::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 100%;

    width: clamp(30px, 8vw, 120px);
    height: 1px;

    background: linear-gradient(
        to left,
        transparent,
        rgba(212, 175, 55, 0.8)
    );
}

.emociones__header p {
  position: relative;
  z-index: 1;
  margin: 0;
  font-family: "Edu TAS Beginner", cursive;
  font-size: clamp(13px, 1.8vw, 17px);
  color: black;
}


/* =========================================================
   CARD
========================================================= */

.magic-card {
    position: relative;
    z-index: 3;
    width: 100%;
    height: auto;
    overflow: visible;
    display: flex;
    flex-direction: column;
	justify-content: center;
    border-radius: 24px;
    padding: 10px;

    background: linear-gradient(160deg, #2a0a3d, #4a1259 60%, #6a1a6e);
    border: 1.5px solid transparent;
    background-clip: padding-box;

    box-shadow:
        0 12px 30px rgba(55, 0, 80, .25),
        0 0 18px rgba(255, 155, 239, .22);

    transition:
        transform .35s ease,
        box-shadow .35s ease;
}

/* Glow difuminado alrededor de la card */
.magic-card::before {
    content: "";
    position: absolute;
    inset: -6px;
    border-radius: 28px;
    background: linear-gradient(160deg, #ff4fd8, #a238ff, #ff4fd8);
    filter: blur(20px);
    opacity: 0.6;
    z-index: -1;
}

/* Borde luminoso fino sobre el contorno */
.magic-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 24px;
    padding: 1.5px;
    background: linear-gradient(160deg, #ff9ce8, #a238ff);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

/* =========================================================
   IMAGEN / VÍDEO DENTRO DE LA CARD
   Mismo tamaño para todas, sin depender del wrapper .card-image
========================================================= */

.magic-card > img,
.magic-card > video {
    width: 100%;
    height: auto; /* ajusta este valor a tu gusto */
    object-fit: cover;
    display: block;
    border-radius: 18px;
    border: 2px solid rgba(255,255,255,.65);
    box-shadow:
        0 4px 15px rgba(130, 45, 180, .20),
        inset 0 0 15px rgba(255,255,255,.35);
    transition: transform .5s ease, filter .5s ease;
}

.magic-card:hover > img,
.magic-card:hover > video {
    transform: scale(1.05);
    filter: brightness(1.05) saturate(1.05);
}


/* =========================================================
   EFECTO HOVER
========================================================= */

.magic-card:hover {

    transform: translateY(-8px);

    box-shadow:

        0 22px 40px
        rgba(52, 0, 75, .30),

        0 0 30px
        rgba(255, 105, 225, .45),

        inset 0 1px 1px
        rgba(255,255,255,.95);
}


/* =========================================================
   ÁREA DE IMAGEN
========================================================= */

.card-image {

    position: relative;

    width: 100%;

    height: 45%;

    overflow: hidden;

    border-radius: 18px;

    border:
        2px solid
        rgba(255,255,255,.65);

    box-shadow:

        0 4px 15px
        rgba(130, 45, 180, .20),

        inset 0 0 15px
        rgba(255,255,255,.35);

}


/* =========================================================
   IMAGEN
========================================================= */

.card-image img {

    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    transition:
        transform .5s ease,
        filter .5s ease;
}


.magic-card:hover .card-image img {

    transform: scale(1.05);

    filter:
        brightness(1.05)
        saturate(1.05);
}


/* =========================================================
   BRILLO SOBRE LA IMAGEN
========================================================= */

.card-image::after {

    content: "";

    position: absolute;

    inset: 0;

    pointer-events: none;

    background:
        linear-gradient(
            135deg,
            rgba(255,255,255,.18),
            transparent 40%,
            rgba(255,95,211,.12)
        );

    mix-blend-mode: screen;
}


/* =========================================================
   CONTENIDO
========================================================= */

.card-content {

    flex: 1;

    display: flex;

    flex-direction: column;

    justify-content: space-between;

    align-items: center;

    padding:
        clamp(14px, 2.5vw, 28px)
        clamp(12px, 2vw, 20px)
        clamp(14px, 2.5vw, 25px);

    min-height: 0;
}


/* =========================================================
   TÍTULO
========================================================= */

.card-content h3 {

    width: 100%;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 12px;

    margin: 0;

    color: #ffffff;

    font-family: "Edu TAS Beginner", cursive;

    font-size: clamp(15px, 1vw, 18px);

    font-style: italic;

    text-align: center;

    white-space: normal;
    line-height: 1.3;

    text-shadow:
        0 1px 2px
        rgba(255,255,255,.8);
}


/* =========================================================
   LÍNEAS DECORATIVAS
========================================================= */

.decor-line {

    position: relative;

    display: block;

    width: clamp(24px, 5vw, 55px);

    height: 1px;

    flex-shrink: 1;

    background:
        linear-gradient(
            90deg,
            transparent,
            #db65c9
        );
}


.decor-line::after {

    content: "";

    position: absolute;

    top: 50%;

    right: -1px;

    width: 5px;
    height: 5px;

    transform:
        translateY(-50%)
        rotate(45deg);

    background: #db65c9;
}


/* Línea izquierda */
.card-content h3 .decor-line:first-child {

    transform: scaleX(-1);
}


/* =========================================================
   BOTÓN
========================================================= */

.card-button {

    position: relative;

    width: 82%;

    max-width: 225px;

    min-height: 48px;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 12px;

    padding: 10px clamp(14px, 3vw, 24px);

    border-radius: 50px;
	letter-spacing: 2px;   
    color: white;

    text-decoration: none;

    font-family: "Aladin", system-ui;

    font-size: clamp(14px, 1.8vw, 19px);

    font-weight: 600;

   /* Fondo */
background: linear-gradient(
    135deg,
    #4a0e2e 0%,       /* magenta muy oscuro (esquina) */
    #d6367a 25%,      /* rosa medio-claro */
    #e0468f 50%,      /* rosa/magenta vibrante (centro) */
    #c2185b 75%,      /* magenta intenso */
    #3d0a26 100%      /* magenta oscuro profundo (esquina) */
);

/* Bordes */
border: 1px solid rgba(212, 175, 55, 0.28);
border-bottom: 1px solid rgba(212, 175, 55, 0.85);

/* Efecto glass */
backdrop-filter: blur(16px);
-webkit-backdrop-filter: blur(16px);

/* Sombras */
box-shadow:
    0 10px 40px rgba(0, 0, 0, 0.45),
    0 -1px 8px rgba(212, 175, 55, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);

/*
   Permite que la decoración permanezca
   dentro del nav.
*/
overflow: hidden;
}


.card-button span {


    font-size: clamp(18px, 2.2vw, 25px);

    line-height: 1;

    transition:
        transform .3s ease;
}


.card-button:hover {

    transform: translateY(-3px);

    filter: brightness(1.08);

    box-shadow:

        0 10px 22px
        rgba(128, 42, 190, .40),

        0 0 22px
        rgba(255, 125, 221, .65),

        inset 0 1px 2px
        rgba(255,255,255,.85);
}


.card-button:hover span {

    transform: translateX(5px);
}


/* =========================================================
   TABLETS
========================================================= */

@media (max-width: 1200px) {

    .cards-glass {

        grid-template-columns:
            repeat(3, 1fr);

        padding: 35px;

    }

    .magic-card {

        height: clamp(360px, 48vw, 430px);

    }

}


/* =========================================================
   TABLETS PEQUEÑAS
========================================================= */

@media (max-width: 850px) {

    .cards-section {

        padding: 40px 20px;

    }

    .cards-glass {

        grid-template-columns:
            repeat(2, 1fr);

        width: 100%;

        padding: 25px;

        gap: 20px;

    }

    .magic-card {
        height: clamp(340px, 55vw, 420px);
    }

}


/* =========================================================
   MÓVIL
========================================================= */

@media (max-width: 560px) {

    .cards-section {

        min-height: auto;

        padding:
            30px 15px;

    }

    .cards-glass {

        grid-template-columns: 1fr;

        padding: 20px;

        gap: 22px;

        border-radius: 18px;

    }

    .magic-card {

        height: clamp(360px, 90vw, 430px);

    }

    .card-image {

        height: 220px;

    }

    .card-content {

        padding:
            25px 18px 22px;

    }

    .card-button {

        width: 85%;

    }

}

/* MARCO FOTO */

.image-box {
    padding: clamp(10px, 2vw, 16px);
    ackground: transparent;
    border-radius:24px;
    border:1px solid rgba(255,255,255,.9);
    box-shadow:
    inset 0 1px 0 rgba(255,255,255,.9),
    0 0 5px rgba(0,180,170,.22),
    0 8px 18px rgba(0,0,0,.08);
    overflow: hidden;
}

.image-box img {
    display:block;
    width:100%;
    height: auto;
    border-radius:18px;
}

/* CONTENEDOR */
.carousel_1{
    width: 100%;
    padding: clamp(30px, 6vw, 60px) clamp(12px, 4vw, 20px);
    background: linear-gradient(135deg,#f3eef6,#ece6ef);
    border-radius: 30px;
}

/* GRID */
.track_1{
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(min(280px, 100%),1fr));
    gap: clamp(18px, 3vw, 30px);
    max-width: 1300px;
    margin: auto;
}

/* TARJETA */
.card_1{
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(0,0,0,.12);
    transition: .3s;
    display: flex;
    flex-direction: column;
}

.card_1:hover{
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,.18);
}

/* CABECERA DEL CALENDARIO */
.fecha{
    background: linear-gradient(to right, #892be234 0%, #ff00aa88 100%);
    color: white;
    font-size: clamp(0.95rem, 1.6vw, 1.1rem);
    font-weight: bold;
    text-align: center;
    padding: 18px;
    letter-spacing: .5px;
    position: relative;
}

/* Simula los agujeros del calendario */
.fecha::before,
.fecha::after{
    content:"";
    position:absolute;
    width:16px;
    height:16px;
    background:#fff;
    border-radius:50%;
    top:-8px;
}

.fecha::before{
    left:35px;
}

.fecha::after{
    right:35px;
}

/* CONTENIDO */
.card_1 h2{
    font-size: clamp(1.1rem, 2.6vw, 1.7rem);
    text-align: center;
    margin: 30px 20px 15px;
    font-weight: 700;
	font-family: "Aladin", system-ui;
}

.lugar{
    margin: 0 20px;
    padding: 18px;
    background: #f5f5f7;
    border-radius: 15px;
    text-align: center;
    color: #555;
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    border: 1px solid #eee;
}

/* BOTÓN */
.btn{
    margin: 30px auto;
    text-decoration: none;
    background: linear-gradient(90deg,#d8b6ff,#ff59ba);
    color: #111;
    font-weight: bold;
    padding: 12px 35px;
    border-radius: 40px;
    transition: .3s;
}

.btn:hover{
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(255,89,186,.35);
}

.fecha{
    color:#666;
    font-size: clamp(0.95rem, 1.6vw, 18px);
    margin-bottom:22px;
    font-family: "Poppins", Sans-serif;
}

.card_1 h2{
    color: #000000;
    font-family: "Aladin", system-ui;
    font-size: clamp(1.1rem, 2vw, 22px);
    font-weight:700;
    line-height:1.2;
    text-transform:uppercase;
    margin-bottom:auto;
}

.image-box .eventos .card_1 .lugar{
    color:#555;
    font-family: "Poppins", Sans-serif;
    font-size: clamp(1rem, 1.8vw, 20px);
    margin:23px 0;
    width: 100%;
    height: auto;
    min-height: 60px;
    filter: drop-shadow(0 0 8px #e862a38b);
}

.btn{
    font-family: "Raleway", Sans-serif;
    align-self:center;
    padding:12px 34px;
    border-radius:30px;
    color: #000000;
    border: 1px solid rgba(255,255,255,0.15);
    background: linear-gradient(to right, #892be234 0%, #ff00aa88 100%);
    text-decoration:none;
    font-weight:700;
    transition:.3s;
}

.btn:hover{
  
    color: #838383;
    transform:translateY(-2px);
}


/*====================================================
VARIABLES
====================================================*/

:root{
    --card-width: min(200px, 80vw);
    --card-height: min(200px, 805vh);
    --radius:38px;
    --pink:#ff2c9c;
    --white:#ffffff;
}

/* Contenedor principal */
.carousel {
    width: 100%;
    max-width: 2000px;
    position:relative;
    margin-left: 0;
    margin-inline: auto;
}

/* Oculta las tarjetas que salen del área */
.viewport {
    padding: clamp(10px, 2vw, 20px);
    overflow:hidden;
    perspective:1800px;
}

/* Contenedor que se moverá con JS */
.track {
    display:flex;
    gap: clamp(12px, 2vw, 30px);
    justify-content:center;
    flex-wrap: wrap;
    transform-style:preserve-3d;
    transition:transform .6s;
    transform: translateX(0);
    /* Nota: si tu JS calcula el translateX en píxeles fijos basados en el
       ancho original de las tarjetas (250px), revisa esa lógica: ahora el
       ancho de .carta es fluido (ver var(--card-width)), así que conviene
       calcular el desplazamiento con offsetWidth/getBoundingClientRect()
       en tiempo real en vez de un valor fijo en píxeles. */
}

/* Tarjetas */
.carta{
    flex: 0 0 var(--card-width);
    width: var(--card-width);
    height: min(520px, 70vh);
    border-radius:35px;
    transform-origin:center center;
    transform-style:preserve-3d;
    transition:.6s;
    opacity:.35;
    filter:brightness(.6);
}

/* Tarjeta activa */
.carta.active{
    transform: translateZ(140px) scale(1);
    opacity:1;
    filter:brightness(1);
    z-index:20;
}

.carta.left{
    transform: rotateY(60deg) translateX(70px) translateZ(-120px) scale(.80);
}

.carta.right{
    transform: rotateY(-60deg) translateX(-70px) translateZ(-120px) scale(.80);
}

.carta.hide{
    transform: rotateY(65deg) scale(.7);
    opacity:.15;
}

/* Título */
.carta h2{
    color: #000000;
    font-family: "Aladin", system-ui;
    font-size: clamp(1.4rem, 3.5vw, 40px);
    margin-top:20px;
}

/* Texto */
.carta p{
    margin-top:15px;
    color:#ffffff;
    font-family: "Edu TAS Beginner", cursive;
    font-size: clamp(0.9rem, 1.6vw, 1rem);
    background: linear-gradient(to right, #892be234 0%, #ff00aa88 100%);
}

/* Pantallas muy estrechas: evita perspectiva 3D exagerada que corta tarjetas */
@media (max-width: 480px) {
    .viewport {
        perspective: 900px;
    }

    .carta {
        --card-width: min(240px, 86vw);
    }
}

/* ===========================
   TESTIMONIOS
=========================== */

.testimonios{
    padding: clamp(40px, 8vw, 90px) clamp(12px, 4vw, 20px);
    position:relative;
    overflow:hidden;
    background: transparent;
    border-radius: 20px;
}
.testimonios::before{
    content: "";
    position: absolute;
    width: clamp(180px, 25vw, 350px);
    height: clamp(180px, 25vw, 350px);
    top:20px;
    left: 5%;
    pointer-events: none;
}
.testimonios::after{
    content: "";
    position: absolute;
    width: clamp(150px, 20vw, 280px);
    height: clamp(150px, 20vw, 280px);
    bottom:-70px;
    right: 5%;
    pointer-events: none;
}
.container{
    max-width:1200px;
    margin:auto;
    text-align:center;
    position:relative;
    z-index:2;
	background: transparent;
}
.subtitulo{
    color: #ffffff;
    letter-spacing:2px;
    font-size: clamp(20px, 2vw, 22px);
    font-family: "Edu TAS Beginner", cursive;
}
h2{
    color: #ffffff;
    font-family: "Aladin", system-ui;
    font-size: clamp(1.6rem, 4vw, 42px);
    margin:10px 0 20px;
}

.descripcion {
	font-family: "Edu TAS Beginner", cursive;
    max-width: 90%;
    margin:auto;
    color: #ffffff;
    margin-bottom: clamp(30px, 6vw, 60px);
    font-size: clamp(2rem, 3vw, 2rem);
	background-color: #160d1d;
	height: 70px;

    display: flex;
    justify-content: center;
    align-items: center;

    position: relative;
    padding: clamp(16px, 3vw, 26px);
    margin-bottom: 22px;

    /* Fondo */
    background: transparent;

    /* Bordes */
    border: 1px solid rgba(212, 175, 55, 0.28);
    border-bottom: 1px solid rgba(212, 175, 55, 0.85);

    /* Efecto glass */
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);

    /* Sombras */
    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.45),
        0 -1px 8px rgba(212, 175, 55, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.04),
        inset 0 -3px 8px rgba(0, 0, 0, 0.05),
        0 0 18px rgba(0, 180, 170, 0.20);
	
}

/* línea izquierda */
.descripcion::before {
    content: "";
    position: absolute;
    top: 50%;
    right: 100%;

    width: clamp(30px, 8vw, 120px);
    height: 1px;

    background: linear-gradient(
        to right,
        transparent,
        rgba(212, 175, 55, 0.8)
    );
}

/* línea derecha */
.descripcion::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 100%;

    width: clamp(30px, 8vw, 120px);
    height: 1px;

    background: linear-gradient(
        to left,
        transparent,
        rgba(212, 175, 55, 0.8)
    );
}

.emociones__header p {
  position: relative;
  z-index: 1;
  margin: 0;
  font-family: "Edu TAS Beginner", cursive;
  font-size: clamp(13px, 1.8vw, 17px);
  color: black;
}



/* --- WRAPPER que contiene slider + flechas --- */
.slider-wrapper{
    position:relative;
    width:100%;
    padding: 0 clamp(28px, 6vw, 50px);
}

/* --- SLIDER --- */
.slider{
    position:relative;
    width:100%;
    min-height: auto;
    display:flex;
    justify-content:center;
    align-items:flex-start;
    flex-wrap: wrap;
    gap: clamp(20px, 4vw, 40px);
}

.slide{
    display:none;
    position:relative;
    box-sizing:border-box;
    width: 470px;
    max-width: calc(50% - 20px);
    margin-top: 55px;
}
.slide.active{
    display:block;
}

.comment{
    width: 100%;
    box-sizing:border-box;
    background: transparent;
    border-radius: 25px;
    padding: clamp(55px, 10vw, 70px) clamp(20px, 4vw, 35px) clamp(30px, 4vw, 40px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    position:relative;
}

.avatar-wrap {
  position: absolute;
  top: -51px; /* antes -45px, ajustado por los 6px extra */
  left: 50%;
  transform: translateX(-50%);
  width: calc(clamp(75px, 12vw, 95px) + 12px);
  height: calc(clamp(75px, 12vw, 95px) + 12px);
  border-radius: 50%;
  z-index: 2;
}

.avatar-wrap img {
  position: absolute;
  top: 6px;
  left: 6px;
  width: clamp(75px, 12vw, 95px);
  height: clamp(75px, 12vw, 95px);
  border-radius: 50%;
  object-fit: cover;
  z-index: 1;
}

.avatar-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  padding: 6px;
  background: conic-gradient(
    from 0deg,
    #fceabb,
    #f8b500,
    #fceabb,
    #d4af37,
    #fceabb
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  box-shadow:
    0 0 10px 2px rgba(255, 215, 0, 0.6),
    0 0 25px 6px rgba(255, 190, 0, 0.4),
    0 0 45px 12px rgba(255, 170, 0, 0.25);
  animation: pulso-dorado 2.5s ease-in-out infinite;
  z-index: 0;
}
.stars{
    color: #f5a623;
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    letter-spacing: 4px;
    margin-bottom: 18px;
}

.comment p{
    line-height:1.8;
    color:#333;
    margin-bottom:30px;
    font-family: "Edu TAS Beginner", cursive;
    font-size: clamp(0.9rem, 1.6vw, 1rem);
}
.comment h3{
    font-family: "Aladin", system-ui;
    color: #ff00aa;
    margin-bottom:6px;
    letter-spacing: 1px;
    font-size: clamp(1rem, 1.6vw, 1.2rem);
}
.comment span{
    color:#888;
    font-family: "Aladin", system-ui;
    font-size:13px;
    letter-spacing: 1px;
}

/* --- FLECHAS: ahora relativas al slider-wrapper --- */
.flecha{
    width: clamp(2.4rem, 5vw, 4rem);
    position:absolute;
    top:50%;
    transform:translateY(-50%);
    border:none;
    border-radius: 50px;
    background:none;
    font-size: clamp(1.6rem, 5vw, 55px);
    background: linear-gradient(to right, #892be215 0%, #ff00aa2d 100%);
    color: #000000;
    cursor:pointer;
    z-index:10;
}
.izquierda{ left: 0; }
.derecha{ right: 0; }
.flecha:hover{ color: #a2a0a1e6; }
.wrappercomment{ margin-top: 20px; }

/* En móvil, una sola tarjeta por vista y flechas más pegadas */
@media (max-width: 768px){
    .slider-wrapper{
        padding: 0 clamp(20px, 8vw, 34px);
    }
    .slide{
        max-width: 100%;
        width: 100%;
        margin-top: 45px;
    }
    .flecha{
        width: 2.2rem;
        font-size: 1.8rem;
    }
    .izquierda{ left: -6px; }
    .derecha{ right: -6px; }
}

@media (max-width: 400px) {
    .comment{
        padding: clamp(45px, 14vw, 60px) 16px 28px;
        border-radius: 18px;
    }
}


/* ===========================
   FOOTER
=========================== */
.footer{
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)),
            linear-gradient(to right, #892be2c8 0%, #ff00aaa0 100%);
    color:#f5f5f5;
    padding:clamp(40px,5vw,80px) clamp(14px, 4vw, 20px) 30px;
    width: 100%;
    margin:auto;
    display: flex;
    flex-direction: column;
    text-align:center;
}

/* ===== Contenedor principal (FALTABA ESTO) ===== */
.footer-container{
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    max-width: 1300px;
    width: 100%;
    margin: 0 auto;
    text-align: center;
}

/* ===== Logo ===== */
.footer-logo{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:15px;
    margin-bottom:25px;
}
.footer-logo img{
    width: clamp(120px, 15.96vw, 216px);
    height:auto;
}
/* ===== Información ===== */
.footer-info p {
    max-width:500px;
    margin: 0 auto;
    line-height:1.8;
    color: #ffffff;
    font-family: "Edu TAS Beginner", cursive;
    font-size: clamp(1.549rem, 2.753vw, 1.721rem);
}
/* ===== Títulos ===== */
.footer h4{
    margin-bottom:20px;
    color: #e0468f;
    font-size: clamp(1.631rem, 2.898vw, 1.812rem);
	text-shadow: 0 0 6px rgba(255, 255, 255, 0.2);
	letter-spacing: 2px;
    font-family: "Aladin", system-ui;
}
/* ===== Enlaces ===== */
.footer-links ul{
    list-style:none;
    padding:0;
}
.footer-links li{
    margin-bottom:14px;
}
.footer-links ul li a{
    font-family: "Edu TAS Beginner", cursive;
    font-size: clamp(1.549rem, 2.753vw, 1.721rem);
	color: #ffffff;
}
.footer-links a{
    color: #ffffff;
    text-decoration:none;
    transition:.3s;
}
.footer-links a:hover{
    color:white;
}
/* ===== Contacto ===== */
.footer-contact p{
    margin-bottom:14px;
    color: #ffffff;
    font-family: "Edu TAS Beginner", cursive;
    font-size: clamp(1.549rem, 2.753vw, 1.721rem);
    word-break: break-word;
}
/* ===== Copyright ===== */
.footer-bottom{
    max-width:1300px;
    margin:50px auto 0;
    padding-top:25px;
    text-align:center;
    font-size: clamp(1.035rem, 1.84vw, 1.15rem);
    font-family:"Edu TAS Beginner", cursive;
    color:#d8d8d8;
    border-top:1px solid rgba(255,255,255,.15);
}

/* ===========================
   TABLET
=========================== */
@media (min-width:768px){
    .footer-container{
        grid-template-columns:repeat(2,1fr);
        text-align:left;
    }
    .footer-info{
        grid-column:1 / -1;
    }
    .footer-logo{
        justify-content:flex-start;
    }
    .footer-info p{
        margin:0;
    }
}

/* ===========================
   ESCRITORIO
=========================== */
@media (min-width:992px){
    .footer-container{
        grid-template-columns:2fr 1fr 1.3fr;
        gap:80px;
    }
    .footer-info{
        grid-column: auto; /* recupera su propia columna, como en la imagen */
    }
}

/* ===========================
   PANTALLAS GRANDES
=========================== */
@media (min-width:1400px){
    .footer{
        padding:80px 40px 35px;
    }
    .footer-container{
        gap:100px;
    }
}

/* ===========================
   PANTALLAS EXTRA GRANDES (4K / ultrawide)
   Evita que el contenido se estire demasiado
=========================== */
@media (min-width: 1920px) {
    .wrapper,
    .cards-section {
        max-width: 1800px;
    }
}

/* =========================================================
   CORRECCIÓN DEFINITIVA — MÓVIL 400px
   ========================================================= */

@media (max-width: 400px) {

html,
body {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Todos los elementos deben respetar el ancho disponible */
*,
*::before,
*::after {
    max-width: 100%;
    box-sizing: border-box;
}


/* =========================================================
   CONTENEDOR PRINCIPAL
   ========================================================= */

.wrapper {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 12px;
    border-radius: 0;
}


/* =========================================================
   HERO
   ========================================================= */

.hero,
.hero-content {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}


/* =========================================================
   HEADER
   ========================================================= */

header {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0;
    padding-left: 10px;
    padding-right: 10px;
}


/* =========================================================
   LOGO
   ========================================================= */

.hero-logo {
    width: min(75vw, 300px);
    max-width: 75vw;
    height: auto;
    left: auto;
    transform: none;
    margin: 0 auto;
    display: block;
}


/* =========================================================
   MENÚ
   ========================================================= */

.bottom-menu {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin-left: 0;
    margin-right: 0;
    padding-left: 5px;
    padding-right: 5px;
}


/* =========================================================
   ITEMS DEL MENÚ
   ========================================================= */

.menu-item {
    min-width: 0;
    max-width: 100%;
}


/* =========================================================
   IMÁGENES
   ========================================================= */

img {
    max-width: 100%;
    height: auto;
}


/* =========================================================
   VIDEOS
   ========================================================= */

video {
    display: block;
    width: 100%;
    max-width: 100%;
}


/* =========================================================
   SECCIONES
   ========================================================= */

section,
.cards-section,
.carousel_1,
.carousel,
.testimonios,
.footer {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}


/* =========================================================
   CARDS
   ========================================================= */

.cards-section {
    margin-left: 0;
    margin-right: 0;
    padding-left: 12px;
    padding-right: 12px;
}

.cards-glass {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

}


/* =========================================================
   400px EXACTOS
   ========================================================= */

@media (max-width: 400px) {

    html,
    body {
        width: 100vw;
        max-width: 100vw;
        overflow-x: hidden;
    }

    .wrapper {
        width: 100vw;
        max-width: 100vw;
        padding: 10px;
    }

    .bottom-menu {
        width: 100%;
        max-width: 100%;
    }

    .cards-section {
        width: 100%;
        padding-left: 10px;
        padding-right: 10px;
    }

    .cards-glass {
        width: 100%;
        padding: 15px 10px;
    }

    .magic-card {
        width: 100%;
        max-width: 100%;
    }

    .card-image {
        width: calc(100% - 20px);
        max-width: calc(100% - 20px);
    }

}

/* =========================================================
   RESPONSIVE DEL HEADER
   NO CAMBIA EL DISEÑO ORIGINAL
   ========================================================= */

@media (max-width: 700px) {

    /* El menú continúa horizontal */
    .bottom-menu {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;

        width: 100%;
        max-width: 100%;

        justify-content: space-between;
        align-items: center;

        overflow: hidden;
    }

    /* Cada opción ocupa una cuarta parte */
    .bottom-menu .menu-item {
        flex: 1 1 25%;
        width: 25%;
        min-width: 0;

        white-space: nowrap;

        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* El texto se reduce, pero no baja de línea */
    .bottom-menu .menu-text {
        white-space: nowrap;
        text-align: center;

        font-size: clamp(9px, 2.5vw, 18px);
    }


    /* =====================================================
       REDES SOCIALES — SIEMPRE VERTICALES
       ===================================================== */

    .social-bar {
        flex-direction: column !important;

        align-items: center;
        justify-content: center;
		top: 180px;
        gap: 10px;
    }

    .social-bar .shiny-btn {
        flex-shrink: 0;
    }
}


/* =========================================================
   400 PX
   ========================================================= */

@media (max-width: 400px) {

    .bottom-menu {
        width: 100%;
        max-width: 100%;
        flex-direction: row;
        flex-wrap: nowrap;

        padding-left: 0;
        padding-right: 0;
    }

    .bottom-menu .menu-item {
        flex: 1 1 25%;
        width: 25%;
        min-width: 0;

        padding-left: 1px;
        padding-right: 1px;
    }

    .bottom-menu .menu-text {
        font-size: 9px;
        white-space: nowrap;
    }


    /* Redes en columna */
    .social-bar {
        flex-direction: column !important;
        gap: 7px;
		top: 180px;
    }
}

/* =========================================================
   VÍDEO DEL HEADER — DIMENSIONES ORIGINALES
   MÓVIL Y TABLET (mismo rango que activa .hero-video)
   ========================================================= */
@media (max-width: 900px) {

    .hero-video {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);

        width: auto;
        height: auto;
        max-width: 100%;
        max-height: 100%;

        object-fit: contain;
    }

}

/* =========================================================
   HEADER MÓVIL / TABLET
   - Oculta logo y "saber más"
   - El vídeo ocupa TODO el header
   - Nav y social-bar quedan por encima del vídeo
   ========================================================= */

@media (max-width: 900px) {

    /* Ocultar logo */
    .hero-logo {
        display: none;
    }

    /* Ocultar "Saber más" */
    .saber {
        display: none;
    }

    /* El vídeo llena todo el header, sin bandas negras */
    .hero-video {
        display: block;

        position: absolute;
        inset: 0;

        width: 100%;
        height: 100%;

        object-fit: cover;      /* cubre todo el área, recorta si hace falta */
        object-position: center;

        transform: none;        /* anula el translate(-50%,-50%) anterior */

        z-index: -2;             /* se mantiene detrás del contenido */
    }

    /* Asegura que .hero sea el contexto de apilamiento
       y que el nav/social-bar queden encima del vídeo */
    .hero {
        position: relative;
        z-index: 0;
        overflow: hidden;
    }
}

/* =========================================================
   AJUSTE FINAL DEL VÍDEO DEL HEADER
   Mantiene la proporción original sin deformarse
   ========================================================= */

@media (max-width: 900px) {

    .hero-video {
        position: absolute;
        inset: 0;

        width: 100%;
        height: 100%;

        /* 'cover' respeta la proporción del vídeo,
           solo recorta lo que sobra, nunca lo deforma */
        object-fit: cover;
        object-position: center top;

        transform: none;

        z-index: -2;
    }

}

/* =========================================================
   REDUCIR ALTURA DEL BOTTOM-MENU EN MÓVIL Y TABLET
   ========================================================= */

@media (max-width: 700px) {

    .bottom-menu {
        min-height: 60px;   /* antes 82px */
        padding: 6px 10px;  /* menos aire arriba/abajo */
    }

    .menu-item {
        height: 38px;       /* antes 46px */
    }

    .menu-text {
        font-size: 11px;    /* ajusta si el texto se corta */
    }
}

@media (max-width: 400px) {

    .bottom-menu {
        min-height: 50px;
        padding: 5px 4px;
    }

    .menu-item {
        height: 34px;
    }

    .menu-text {
        font-size: 10px;
    }
}

/* =========================================================
   SUBIR SOCIAL-BAR EN MÓVIL Y TABLET
   ========================================================= */

@media (max-width: 700px) {

    .social-bar {
        top: 20px;   /* ajusta este valor a tu gusto */
    }
}

@media (max-width: 400px) {

    .social-bar {
        top: 80px;   /* un poco menos en pantallas muy pequeñas */
    }
}

@media (max-width: 900px) {

    .bottom-menu {
        box-shadow: none;
    }

    .hero::before {
        display: none;
    }

}

@media (max-width: 900px) {

    .hero {
        min-height: 0 !important;
        height: auto !important;
    }

}

@media (max-width: 900px) {
    /* Haz que la sección del cuerpo suba y recubra el espacio inferior */
    .animacion {
        position: relative;
        margin-top: 100px; /* Prueba ajustando este valor en negativo según lo que necesites subir */
        z-index: 3;
    }
}

@media (max-width: 900px) {

    .wrapper video {
        display: none;
    }

    .hero {
        position: relative;
        z-index: 0;
        overflow: hidden;
        min-height: auto;
		background-image:
		
        url("../IMG/FONFOVIDEO.png");
       
    }

    .hero-video {
        display: block;

        position: absolute;
        inset: 0;

        width: 100%;
        height: 100%;

        object-fit: contain; /* antes: cover */

        z-index: -2;
		
		/* --- DIFUMINADO TOTAL EN LOS 4 LADOS --- */
    -webkit-mask-image: 
        linear-gradient(to right, transparent 0%, black 15%, black 85%, transparent 100%),
        linear-gradient(to bottom, transparent 0%, black 15%, black 85%, transparent 100%);
    -webkit-mask-composite: source-in; /* Interseca ambas direcciones en Safari/Chrome antiguo */
    
    mask-image: 
        linear-gradient(to right, transparent 0%, black 15%, black 85%, transparent 100%),
        linear-gradient(to bottom, transparent 0%, black 15%, black 85%, transparent 100%);
    mask-composite: intersect; /* Interseca ambas direcciones en navegadores modernos */
    }

}

@media (max-width: 900px) {
    .wrapper {
        margin-top: -95px; /* Prueba con valores negativos o un número más bajo como 0 / 5px */
		border-radius: 10px;
    }
}

/* =========================================================
   ALTURA ÚNICA PARA .HERO EN MÓVIL Y TABLET (Añadir al final)
========================================================= */
@media (max-width: 900px) {
    .hero {
        height: 200px !important;     /* Cambia '450px' por los píxeles que quieras */
        min-height: 200px !important;
        max-height: 450px !important;
    }
}

/* =========================================================
   CORRECCIÓN FINAL: CARDS UNA DEBAJO DE LA OTRA EN MÓVIL Y TABLET
========================================================= */
@media (max-width: 900px) {
    .cards-glass {
        grid-template-columns: 1fr !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 20px 15px !important;
        gap: 20px !important;
    }

    .magic-card {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        min-height: auto !important;
    }
}

/* =========================================================
   AJUSTES RESPONSIVE PARA TESTIMONIOS (MÓVIL Y TABLET)
   ========================================================= */

@media (max-width: 1024px) {
    .slider-wrapper {
        padding: 0 35px; /* Da espacio para las flechas laterales */
    }

    .slide {
        max-width: 100% !important;
        width: 100% !important;
        margin-top: 50px;
    }
}

/* Específicamente para Móviles */
@media (max-width: 768px) {
    .testimonios {
        padding: 40px 10px; /* Reduce padding exterior para aprovechar la pantalla */
    }

    .slider-wrapper {
        padding: 0 28px; /* Ajusta el espacio de las flechas */
    }

    .slide {
        max-width: 100% !important;
        width: 100% !important;
        margin-top: 45px;
    }

    .comment {
        padding: 55px 18px 25px 18px !important; /* Estructura interior simétrica y cómoda */
        border-radius: 20px;
    }

    .comment p {
        font-size: 0.95rem;
        line-height: 1.6;
        margin-bottom: 20px;
    }

    /* Posicionamiento de las flechas de navegación en móvil */
    .flecha {
        font-size: 1.5rem;
        width: 2rem;
        height: 2rem;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .izquierda {
        left: -2px;
    }

    .derecha {
        right: -2px;
    }
}

/* Para pantallas ultra estrechas (ej. iPhone SE / 360px - 400px) */
@media (max-width: 400px) {
    .testimonios {
        padding: 30px 5px;
    }
    
    .slider-wrapper {
        padding: 0 22px;
    }

    .comment {
        padding: 50px 14px 20px 14px !important;
    }

    .comment p {
        font-size: 0.88rem;
    }
}

@media (max-width: 900px) {
    .wrapper-testimonios {
		border-radius: 20px;
        margin-top: 20px; !important; /* El margen que necesites para que baje y no se solape */
    }
	
	.wrapper-testimonios .wrapper {
		width: 100%;
		margin-top: 16px !important; /* El margen que necesites para que baje y no se solape */
    }

	.wrapper-testimonios .wrapper .descripcion {
		font-size: 18px;
	}
	
	
}

/* Tablets */
@media (max-width: 1024px) {
    .footer-container {
        flex-wrap: wrap;
        gap: 30px;
    }
	
	.footer-logo logo {
	width: 300px;
	}

    .footer-info,
    .footer-links,
    .footer-contact {
        
		font-family: "Edu TAS Beginner", cursive;
    }
}

/* Móviles y tablets pequeñas */
@media (max-width: 768px) {
	
	.footer h4 {
	font-family: "Aladin", system-ui;
	color: #e0468f;
	font-size: 1.5rem;
	
	}
	
    .footer-container {
		display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 25px;
    }

    .footer-info,
    .footer-links,
    .footer-contact {
		
        font-family: "Edu TAS Beginner", cursive;
    }

    .footer-logo {
        display: flex;
        justify-content: center;
		color: #ffffff;
    }

	.footer-logo logo {
	width: 300px;
	}
	
	
    .footer-links ul {
        font-family: "Edu TAS Beginner", cursive;
		color: #ffffff;
    }

    .footer-bottom {
        text-align: center;
        padding: 15px 10px;
    }
}

/* Móviles pequeños */
@media (max-width: 480px) {
    .footer-container {
        gap: 20px;
        padding: 0 15px;
		color: #ffffff;
    }
	
	.footer-logo logo {
	width: 300px;
	}

    .footer-bottom {
		font-family: "Edu TAS Beginner", cursive;
        font-size: 0.85rem;
		color: #ffffff;
    }
}


