/* ============================================= */
/* ===== ESTILOS PARA UX/UI, GRAPHIC DESIGN, E ILLUSTRATION ===== */
/* ============================================= */

/* ===== DECLARACIONES DE FUENTE ===== */
@font-face { font-family: 'Halogen'; src: url('fonts/Halogen-Thin.otf') format('opentype'); font-weight: 100; font-style: normal; font-display: swap; }
@font-face { font-family: 'Halogen'; src: url('fonts/Halogen-Light.otf') format('opentype'); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: 'Halogen'; src: url('fonts/Halogen-Regular.otf') format('opentype'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Halogen'; src: url('fonts/Halogen-Medium.otf') format('opentype'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Halogen'; src: url('fonts/Halogen-Bold.otf') format('opentype'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Halogen'; src: url('fonts/Halogen-Black.otf') format('opentype'); font-weight: 900; font-style: normal; font-display: swap; }

/* ================================================= */
/* ===== HERO DE LA PÁGINA (CON MODELO 3D) ===== */
/* ================================================= */

.page-hero {
    width: 100%;
    min-height: 100vh;
    box-sizing: border-box;
    background-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    gap: 2rem;
    padding: 2rem;
}
.header-logo {
  display: flex;
  align-items: center;
  height: 100%;
}

.header-logo img {
  display: block;
  max-height: 100%;
  margin: auto 0;
}

@media (min-width: 900px) {
    .page-hero {
        flex-direction: row;
        justify-content: center;
        gap: 5vw;
        padding: 0 5vw;
    }
}

.page-hero-content {
    flex-shrink: 0;
    max-width: 550px;
    margin: 0 auto; /* Centra el bloque de texto */
    text-align: center;
}


@media (min-width: 900px) {
    .page-hero-content {
        text-align: left;
    }
}

.page-hero-model-container {
    flex-shrink: 0;
    width: 100%;
    max-width: 600px;
    height: 100vh;
}

@media (min-width: 900px) {
    .page-hero-model-container {
        width: 50vw;
        max-width: 800px;
        height: 80vh;
    }
}

/* Estilos para el video de fondo DEL HERO */

.hero-background-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    max-height: 100vh;
    z-index: 0;
    object-fit: cover;
    opacity: 0.2; /* Ajusta este valor si quieres que el video sea más o menos visible */
}

.page-hero-content,
.page-hero-model-container {
    position: relative;
    z-index: 1; /* Asegura que el contenido esté por encima del video */
}

/* --- ESTILOS DE TEXTO DEL HERO (CORREGIDOS) --- */
.page-title {
    font-weight: 700;
    font-size: clamp(2.5rem, 6vw, 5rem);
    color: #2E5A44;
    line-height: 1.1;
    text-transform: uppercase;
    margin-top: 25px;
    margin-bottom: 25px;
    margin-left: 150px;
}

.page-subtitle {
    font-size: clamp(0.9rem, 2.2vw, 1rem);
    color: #2E5A44;
    opacity: 1;
    margin: 1.5rem 0 0;
    width: 600px;
    line-height: 1.7;
    margin-left: 150px;
}


/* ================================================= */
/* ===== GALERÍA DE PROYECTOS 3D ===== */
/* ================================================= */

.projects-gallery {
    display: flex;
    align-items: center;
    justify-content: center;
    max-height: 100vh;
    box-sizing: border-box;
    padding: 100px 5vw;
    background-color: #F7B81E;
    border-top-left-radius: 80px;
    border-top-right-radius: 80px;
    overflow: hidden;
    flex-direction: column;
    justify-content: center;
    opacity: 0;
    transform: translateY(80px);
    will-change: opacity, transform;
}

.projects-title {
    font-family: var(--font-main);
    font-weight: 900;
    font-size: 2rem;
    color: #020502;
    text-transform: uppercase;
    margin-top: 40px;
    margin-bottom: 40px;
    text-align: center;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
    justify-content: center;
}

.card-scene {
    width: 100%;
    height: 350px;
    perspective: 1200px;
    cursor: pointer;
    transform: scale(0.75);
    transform-origin: center center;
}

.card-cube {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.card-scene:hover .card-cube {
    transform: rotateY(180deg);
}

.card-face {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    overflow: hidden;
}

.card-front {
    transform: rotateY(0deg);
    padding: 0;
}

.card-front img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-back {
    background-color: #ffffff;
    transform: rotateY(180deg);
    flex-direction: column;
    gap: 15px;
    color: #6fb767;
    font-family: var(--font-main);
    font-weight: 700;
    font-size: 1.5rem;
    text-transform: uppercase;
}

.card-back i {
    font-size: 2rem;
}


/* ================================================= */
/* ===== ESTILOS ESPECÍFICOS DE PÁGINA ===== */
/* ================================================= */

/* --- Graphic Design Page --- */
.graphicdesign-page {
    background-color: #F7B81E !important;
}

.graphicdesign-page .page-hero {
    background-color: #F7B81E !important;
}

.graphicdesign-page .page-hero .page-title,
.graphicdesign-page .page-hero .page-subtitle {
    color: #020502 !important;
}

.graphicdesign-page .projects-gallery {
    background-color: #6fb767 !important;
}

/* --- Illustration Page --- */
body.illustration-page {
    background-color: #98D4E2;
}

body.illustration-page .page-hero {
    background-color: #98D4E2 !important;
}

body.illustration-page .project-media-gallery {
    background-color: #2E5A44 !important;
    border-top-left-radius: 40px;
    border-top-right-radius: 40px;
}

body.illustration-page .page-title,
body.illustration-page .page-subtitle {
    color: #020502 !important;
}


/* ================================================= */
/* ===== GALERÍA DE MEDIOS (Illustration) ===== */
/* ================================================= */
.project-media-gallery {
    padding: 50px 20px;
    background-color: #2E5A44;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: minmax(150px, auto);
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
}

.gallery-item {
    overflow: hidden;
    border-radius: 20px;
    position: relative;
    height: 100%;
    min-height: unset;
}

.gallery-item video,
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-item.item-1 { grid-column: span 3; grid-row: span 2; min-height: 400px; }
.gallery-item.item-2 { grid-column: span 1; grid-row: span 2; min-height: 180px; }
.gallery-item.item-3 { grid-column: span 2; grid-row: span 1; min-height: 400px; }
.gallery-item.item-4 { grid-column: span 2; grid-row: span 1; min-height: 180px; }
.gallery-item.item-5 { grid-column: span 1; grid-row: span 2; max-height: 513px; }
.gallery-item.item-6 { grid-column: span 3; grid-row: span 2; max-height: 513px; }
.gallery-item.item-7 { grid-column: span 1; grid-row: span 1; min-height: 505px; max-width: 350px; }


/* ================================================= */
/* ===== RESPONSIVIDAD GENERAL DE GALERÍAS (Tablets) ===== */
/* ================================================= */

@media (min-width: 768px) and (max-width: 992px) {
  body.illustration-page .gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 0 1rem;
    justify-content: center;
    align-items: stretch;
  }

  body.illustration-page .gallery-item {
    grid-column: span 1 !important;
    grid-row: auto !important;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 20px;
  }

  body.illustration-page .gallery-item img,
  body.illustration-page .gallery-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 20px;
  }
}

/* ===== TABLET GALERIA PROJECTS PAGINA UX ===== */

@media (min-width: 768px) and (max-width: 992px) {
  body.ux-page .projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1rem;
    justify-content: center;
    justify-items: center;
  }
  
    body.ux-page .projects-gallery {
    height: 470px !important; /* ⬅️ Antes estaba en 650px o más */
    padding: 60px 5vw !important;
    box-sizing: border-box;
    overflow: hidden;
    border-top-left-radius: 30px;
    border-top-right-radius: 30px;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
  }

  body.ux-page .card-scene {
    transform: scale(0.65) !important;
    height: 280px !important; /* ⬅️ Ajuste fino del alto */
    width: 250px;
    margin: 0 auto !important;
    perspective: none !important;
    cursor: default !important;
  }

  body.ux-page .card-cube {
    transform: none !important;
    transition: none !important;
  }

  body.ux-page .card-scene:hover .card-cube {
    transform: none !important;
  }

  body.ux-page .card-front {
    display: none !important;
  }

  body.ux-page .card-back {
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: 1rem;
    gap: 10px;
    width: 100%;
    height: 100%;
    transform: none !important;
    backface-visibility: visible !important;
  }
}


/* ===== TABLET GALERIA PROJECTS PAGINA GRAPHIC DESIGN ===== */
@media (min-width: 768px) and (max-width: 992px) {
  body.graphicdesign-page .projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1rem;
    justify-content: center;
    justify-items: center;
  }

  body.graphicdesign-page .projects-gallery {
    height: 470px !important;
    padding: 60px 5vw !important;
    box-sizing: border-box;
    overflow: hidden;
    border-top-left-radius: 30px;
    border-top-right-radius: 30px;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
  }

  body.graphicdesign-page .card-scene {
    transform: scale(0.65) !important;
    height: 280px !important;
    width: 250px;
    margin: 0 auto !important;
    perspective: none !important;
    cursor: default !important;
  }

  body.graphicdesign-page .card-cube {
    transform: none !important;
    transition: none !important;
  }

  body.graphicdesign-page .card-scene:hover .card-cube {
    transform: none !important;
  }

  body.graphicdesign-page .card-front {
    display: none !important;
  }

  body.graphicdesign-page .card-back {
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: 1rem;
    gap: 10px;
    width: 100%;
    height: 100%;
    transform: none !important;
    backface-visibility: visible !important;
  }
}




/* ================================================= */
/* ===== SEPARADOR BLANCO PARA VIDEO FOOTER ===== */
/* ================================================= */

.white-separator {
    width: 100%;
    height: 150px;
    background-color: #FFFFFF;
}
/* ================================================= */
/* ===== VIDEO FOOTER ===== */
/* ================================================= */

.video-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 640px;
    overflow: hidden;
    background-color: #ffffff;
}

.video-footer video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ================================================= */
/* ===== MOBILE VERSION ONLY (max-width: 768px) ===== */
/* ================================================= */

@media (max-width: 768px) {

    
    @media (max-width: 768px) {
  .page-hero {
    padding: 0 0 !important;
  }
}
    /* === GALERÍA GENERAL (Illustration) === */
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .gallery-item { grid-column: span 1; grid-row: span 1; min-height: auto; }
    .gallery-item.item-1 { min-height: 200px; }
    .gallery-item.item-2 { min-height: 150px; }
    .gallery-item.item-3 { min-height: 200px; }
    .gallery-item.item-4 { min-height: 150px; }
    .gallery-item.item-5 { min-height: 200px; }
    .gallery-item.item-6 { min-height: 200px; }

    /* === TÍTULO Y SUBTÍTULO CENTRADOS === */
    .page-title,
    .page-subtitle {
        margin-left: 0;
        text-align: center;
        width: 100%;
        padding: 0 1rem;
    }
    .page-title {
        font-size: 1.8rem;
    }
    .page-subtitle {
        font-size: 0.70rem;
        margin-bottom: 10px;
        max-width: 300px;
        align-items: center;

    }

    /* === MENU HAMBURGUESA === */
    .main-header {
        padding: 0.5em 1em;
        display: flex;
        align-items: center;
    }
    .header-logo img {
        height: 20px;
    }
    .hamburger-menu {
        display: block;
        background: none;
        border: none;
        cursor: pointer;
        padding: 10px;
        z-index: 1010;
        position: relative;
        width: 40px;
        height: 100px;
    }
    .hamburger-line {
        display: block;
        width: 25px;
        height: 3px;
        background-color: #2E5A44;
        margin: 5px 0;
        transition: transform 0.3s ease, opacity 0.3s ease;
    }
    .header-nav {
        display: none;
    }
    .header-nav.nav-open {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        position: absolute;
        top: 100%;
        right: 0;
        background-color: white;
        padding: 20px;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
        z-index: 1000;
        width: 150px;
    }
    .header-nav.nav-open ul {
        display: flex;
        flex-direction: column;
        text-align: center;
        gap: 30px;
        margin-left: 25px;
    }
    .header-nav.nav-open ul li a {
        font-size: 1rem;
    }
    .header-nav ul li {
        margin-left: 0;
    }
    .hamburger-menu.is-active .hamburger-line:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .hamburger-menu.is-active .hamburger-line:nth-child(2) {
        opacity: 0;
    }
    .hamburger-menu.is-active .hamburger-line:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    /* === HERO === */
    .page-hero-model-container {
        height: 250px;
        display: flex;
        justify-content: center;
        align-items: center;
        position: relative;
    }
    .model-canvas {
        transform: translate(-40%, -40%) scale(0.4);
        position: absolute;
        top: 50%;
        left: 50%;
        max-width: 100%;
        height: auto;
        pointer-events: none;
    }

    /* ===== OCULTAR VIDEO DE FONDO EN MÓVIL ===== */
    .hero-background-video {
        display: none;
    }
    
    /* === GRAPHIC DESIGN 3D OBJECT (Para que no se recorte) === */

     body.graphicdesign-page .page-title {
      margin-top: 60px;
    }

    body.graphicdesign-page .page-hero-model-container {
      width: calc(100% + 4rem); 
      margin-left: -2rem;
      margin-right: -2rem;
    }
    
    /* === PROJECTS SECTION (General) === */
    .projects-gallery {
      border-radius: 20px;
      height: 650px;
      margin-top: -80px;
      box-sizing: border-box;
    }
    .card-front {
        display: none;
    }
    .projects-title {
        font-size: 1.5rem;
        margin-top: -10PX;
        margin-bottom: 30px;
        text-align: center;
    }
    .card-back {
        display: flex;
        flex-direction: column;
        justify-content: center;
        height: 120px;
        width: 100%;
        align-items: center;
        backface-visibility: visible;
        transform: none;
        font-size: 1rem;
        gap: 5px;
    }
    .projects-grid {
        display: grid;
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 2px;
    }
    .project-card-link {
        margin: 0;
        padding: 0;
        display: block; 
        line-height: 0;
    }
    .card-scene {
        width: 250px !important;
        height: 120px !important;
        margin: 0;
    }

@media (max-width: 768px) {
    body.graphicdesign-page .page-subtitle {
        text-align: center;
        margin: 0 auto;
    }
}
/* ======================================================= */
/* ===== ILLUSTRATION PROJECTS - CÓDIGO FINAL CORREGIDO ===== */
/* ======================================================= */

body.illustration-page .page-title {
    margin-top: 60px;
}

/* 1. El contenedor principal: le devolvemos su altura y lo hacemos una columna vertical */
body.illustration-page .project-media-gallery {
    display: flex !important;
    flex-direction: column !important; /* <-- VITAL: Lo vuelve a poner en columna */
    align-items: center !important;   /* <-- VITAL: Centra la columna horizontalmente */
    min-height: 100vh;                /* Le da altura suficiente para que quepa todo */
    padding: 40px 1rem 100px !important;
    border-radius: 20px;
}

/* 2. La columna de imágenes: definimos su tamaño */
body.illustration-page .gallery-grid {
    display: flex;
    flex-direction: column;
    align-items: center !important;
    gap: 30px;
    width: 100%;
    max-width: 400px;
    /* margin: 0 auto; */ /* <-- QUITAMOS ESTA LÍNEA. Es innecesaria y causa el conflicto. */
}

/* 3. Las imágenes se adaptan automáticamente */
body.illustration-page .gallery-item {
    width: 100%;
    height: auto;
    min-height: unset;
    max-height: none;
    overflow: hidden;
    border-radius: 20px;
}
body.illustration-page .gallery-item img,
body.illustration-page .gallery-item video {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

/* ======================================================= */
/* ===== AJUSTE SEPARADOR SOLO EN ILLUSTRATION MÓVIL ===== */
/* ======================================================= */

body.illustration-page .white-separator {
  margin-top: -10px; /* <-- CAMBIA ESTE VALOR. Originalmente era 150px. */
  margin-bottom: -200px;
}

/* ======================================================= */
/* MARGEN VIDEO-FOOTER SOLO EN ILLUSTRATION MÓVIL */
/* ======================================================= */
body.illustration-page .video-footer {
  display: none;
}


/* ===== FOOTER - VERSIÓN DEFINITIVA ===== */

/* --- Contenedor Principal --- */
.footer {
    background-color: #020502; 
    color: #FFFFFF;
    text-transform: none;
    overflow: hidden;
    position: relative;
    padding: 12vh 0 6rem 5vw; 
}

/* --- Layout del Grid --- */
.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5vw;
}

/* --- Contenido de Texto --- */
.footer-text-content {
    text-align: left;
}

.footer-text-content h3 {
    font-family: 'Halogen', sans-serif;
    font-weight: 900;
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 1rem;
    text-transform: none !important;
    line-height: 1.1; /* Añade espacio entre las líneas del párrafo */
}

.footer-text-content p {
    font-size: 1rem;
    line-height: 1.6; /* AÑADIDO: Espaciado para evitar que el texto se pegue */
    margin-bottom: 1.5rem;
    opacity: 0.8;
    max-width: 450px;
}

/* --- Botón "Get in Touch" --- */

.footer-email {
    display: inline-flex; /* CAMBIO CLAVE: Usa inline-flex para que el botón no ocupe todo el ancho */
    justify-content: center; /* Centra el texto y la flecha horizontalmente */
    align-items: center; /* Centra el texto y la flecha verticalmente */
    
    position: relative;
    font-size: 1.1rem;
    font-weight: 600;
    color: #FFFFFF;
    text-decoration: none;
    padding: 8px 18px; /* MANTENIDO: El padding original para el tamaño correcto */
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    overflow: hidden;
    transition: color 0.4s ease, border-color 0.4s ease, padding-right 0.4s ease;
}

/* El pseudo-elemento para el efecto de barrido de color */
.footer-email::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background-color: #FFFFFF;
    z-index: -1;
    transition: width 0.4s ease;
    border-radius: 20px;
}

/* El texto dentro del botón */
.footer-email span {
    position: relative;
    z-index: 1;
    transition: color 0.4s ease;
}

/* Flecha (oculta por defecto) */
.footer-email::after {
    content: '→';
    opacity: 0;
    width: 0;
    transition: opacity 0.3s ease, width 0.3s ease, margin-left 0.4s ease;
    margin-left: 0;
    font-size: 3.5rem;
    line-height: 1;
}

/* Efecto Hover */
.footer-email:hover {
    background-color: #F7B81E;
}

/* Barrido de color */
.footer-email:hover::before {
    width: 100%;
}

/* Color del texto al hacer hover */
.footer-email:hover span {
    color: #2E5A44;
    font-weight: 600;
}

/* Muestra la flecha al hacer hover */
.footer-email:hover::after {
    opacity: 1;
    width: auto;
    margin-left: 25px;
    color: #2E5A44;
}

/* --- Hexágono Animado (Columna Derecha) --- */
.footer-image-content {
    display: none;
    justify-content: flex-end; /* AÑADIDO: Para alinear a la derecha */
    align-items: center;
    padding-right: 5vw;
}

.footer-hexagon {
    max-width: 250px;
    animation: spin 25s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* --- Línea de Copyright --- */
.footer-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 0;
    text-align: center;
}

.footer-bottom p {
    margin: 0;
    font-size: 0.6rem;
    opacity: 0.6;
    text-transform: none;
}

/* --- Media Query para Escritorio --- */
@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-image-content {
        display: flex;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
  #work .cards-wrapper {
    display: flex !important;
    flex-direction: row !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 40px !important;
    flex-wrap: nowrap !important;
  }

  #work .card-front {
    font-size: 0.8rem !important;
    line-height: 1.1 !important;
    margin: 0 !important;
  }
}

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


/* ===== ILLUSTRATION PAGE MOVIL===== */

@media (max-width: 768px) {
  body.illustration-page .page-hero-content {
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 auto !important;
    padding: 0 0 !important;
    text-align: center !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
  }

  body.illustration-page .page-title,
  body.illustration-page .page-subtitle {
    text-align: center !important;
    width: 100% !important;
    padding: 0 !important;
  }

  body.illustration-page .gallery-item.item-10 {
        display: none;
    }

  body.illustration-page .page-title {
    font-size: 1.8rem !important;
    margin-top: 60px !important;
    margin-bottom: 10px !important;
    margin: 60px auto 10px auto;
  }

  body.illustration-page .page-subtitle {
    font-size: 0.7rem !important;
    margin-bottom: 10px !important;
    line-height: 1.5 !important;
    max-width: 300px;
  }
  
}
/* ===== FOOTER MOVIL===== */

@media (max-width: 768px) {
  .footer-text-content h3 {
    word-break: break-word; /* Rompe el título en dos líneas en pantallas pequeñas */
    line-height: 1.4; /* Añade espacio entre las líneas del párrafo */
  }

  .footer-text-content p {
    text-transform: none; /* Cambia el texto a letras normales */
    line-height: 1.6; /* Añade espacio entre las líneas del párrafo */
  }

  .footer-email {
    display: inline-flex !important;   /* <-- AÑADIDO */
    align-items: center !important;   /* <-- AÑADIDO */
    justify-content: center !important; /* <-- AÑADIDO */
    font-size: 0.75rem !important;
    padding: 6px 12px !important;
    border-radius: 10px !important;
    background-color: #F7B81E !important;
    color: #020502 !important;
    transition: none !important;
    pointer-events: auto !important;
  }

  .footer-email:hover,
  .footer-email:focus,
  .footer-email:active {
    background-color: #F7B81E !important;
    color: #020502 !important;
    border-color: transparent !important;
    box-shadow: none !important;
    transform: none !important;
    cursor: default !important;
    transition: none !important;
  }

  .footer-email::before,
  .footer-email::after {
    display: none !important;
    content: none !important;
    transition: none !important;
  }

  /* Extra: desactiva cualquier animación residual */
  .footer-email *,
  .footer-email *:hover {
    animation: none !important;
    transition: none !important;
  }
  .footer-text-content h3 {
    width: 65%; /* Ajusta el ancho para forzar el salto de línea */
}
}

}