/* ===================================================
   1. VARIABLES Y FUENTES
   =================================================== */
:root {
    --verde: #d7fca6;
    --crema: #f9f2e0;
    --negro: #0c0c14;
}

@font-face { font-family: 'Fraunces'; src: url('../fonts/Fraunces72pt-Light.woff2') format('woff2'); font-weight: 300; font-style: normal; }
@font-face { font-family: 'Fraunces'; src: url('../fonts/Fraunces72pt-SemiBold.woff2') format('woff2'); font-weight: 600; font-style: normal; }
@font-face { font-family: 'Fraunces'; src: url('../fonts/Fraunces72ptSoft-Italic.woff2') format('woff2'); font-weight: 500; font-style: italic; }
@font-face { font-family: 'Fraunces'; src: url('../fonts/Fraunces72ptSoft-SemiBoldItalic.woff2') format('woff2'); font-weight: 600; font-style: italic; }
@font-face { font-family: 'SpaceGrotesk'; src: url('../fonts/SpaceGrotesk-Light.woff2') format('woff2'); font-weight: 300; }
@font-face { font-family: 'SpaceGrotesk'; src: url('../fonts/SpaceGrotesk-Regular.woff2') format('woff2'); font-weight: 400; }
@font-face { font-family: 'SpaceGrotesk'; src: url('../fonts/SpaceGrotesk-Medium.woff2') format('woff2'); font-weight: 500; }
@font-face { font-family: 'SpaceGrotesk'; src: url('../fonts/SpaceGrotesk-Bold.woff2') format('woff2'); font-weight: 700; }

/* ===================================================
   2. RESET Y BASE
   =================================================== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'SpaceGrotesk', sans-serif;
    color: var(--crema);
    background: var(--negro) url('../img/1-fondo-unido-home.webp') no-repeat top center;
    background-size: cover;
    background-attachment: scroll;
    min-height: 100vh;
    overflow-x: hidden;
}

.f-light { font-weight: 300; }
.f-semibold { font-weight: 600; }
.spacegrotesk { font-family: 'SpaceGrotesk', sans-serif; }
.fraunces { font-family: 'Fraunces', serif; }
.f-italic { font-style: italic; font-weight: 500; }
.f-italic-semibold { font-style: italic; font-weight: 600; }
.sg-light { font-weight: 300; } .sg-medium { font-weight: 500; } .sg-bold { font-weight: 700; }
.text-verde { color: var(--verde); } .text-crema { color: var(--crema); } .text-negro { color: var(--negro); }
.centrado { text-align: center; }
.derecha { text-align: right; }
.mt-20 { margin-top: 20px; }
.mt-40 { margin-top: 40px; }

.wrapper { width: 90%; max-width: 1600px; margin: 0 auto; position: relative; }

button { background: none; border: none; padding: 0; cursor: pointer; display: block; }

/* VISIBILIDAD PC */
.pc-only { display: block; }
.header-pc { display: flex; justify-content: space-between; align-items: center; padding: 120px; }
.header-mobile, .mobile-only, .mobile-drawer, .astronauta-container-mobile { display: none !important; }

/* ===================================================
   3. CABECERA PC
   =================================================== */
.main-header { width: 100%; z-index: 1000; position: relative; }
.nav-links { display: flex; list-style: none; gap: 4vw; }
.nav-links a { text-decoration: none; color: var(--crema); font-size: clamp(18px, 1.5vw, 25px); transition: color 0.3s ease; }
.nav-links a:hover { color: var(--verde); }
.btn-login img { height: clamp(54px, 4.5vw, 65px); display: block; width: auto; transition: filter 0.3s ease; }
.btn-login:hover img { filter: grayscale(100%) brightness(1) sepia(75%) saturate(60%) contrast(100%); }

/* --- ESTILOS SUBMENÚ SERVICIOS PC --- */
.header-pc .nav-links li.has-submenu {
    position: relative; /* Necesario para posicionar el bocadillo */
}

.submenu-bocadillo {
    display: none; /* Oculto por defecto */
    position: absolute;
    top: 100%; /* Justo debajo del texto Servicios */
    left: -50px; /* Ajuste para alinear el pico del bocadillo */
    width: 311px; /* Ancho ajustado a la imagen */
    padding: 60px 40px 40px 50px;
    background: url('../img/elementos-home-submenu.png') no-repeat center center;
    background-size: contain;
    z-index: 1001;
    flex-direction: column;
    gap: 25px;
}

/* Mostrar al pasar el cursor */
.header-pc .nav-links li.has-submenu:hover .submenu-bocadillo {
    display: flex;
}

.submenu-bocadillo a {
    color: var(--crema) !important;
    font-size: 17px !important;
    line-height: 1.2 !important;
    text-align: left;
    transition: color 0.3s ease;
}

.submenu-bocadillo a:hover {
    color: var(--verde) !important;
}

/* ===================================================
   4. SECCIÓN HERO Y BIO PC
   =================================================== */
.hero-home { padding-top: 100px; }
.hero-container-shared { display: flex; width: 100%; justify-content: center; }
.main-sentence { text-align: center; width: 100%; }
.t-111 { font-size: clamp(80px, 6.7vw, 111px); line-height: 1.05; }

.bio-block-pc { margin-top: 160px; display: flex; justify-content: flex-end; width: 100%; }
.bio-container { position: relative; max-width: 26vw; margin-right: 13%; }
.t-35 { font-size: clamp(24px, 2.4vw, 35px); line-height: 1.1; }
.t-25 { font-size: clamp(18px, 1.7vw, 25px); line-height: 1.4; }
.mt-separation-pc { margin-top: 20px; }

.bio-img-sello { position: absolute; right: -70px; bottom: -200px; width: clamp(150px, 15vw, 210px); z-index: 5; }
.bio-container img { width: 100%; height: auto; }

/* ===================================================
   5. SECCIÓN ¿QUÉ NECESITAS? PC
   =================================================== */
.necesitas-section { margin-top: 400px; }
.necesitas-header { margin-bottom: 100px; }
.t-tit-necesitas { font-size: clamp(65px, 5.4vw, 90px); line-height: 1.05; }
.t-nube-inner { font-size: clamp(14px, 1.4vw, 22px); line-height: 1.2; }
.grid-necesitas { display: flex; justify-content: center; gap: 3vw; width: 100%; }
.item-necesidad { position: relative; width: 17vw; max-width: 350px; }
.img-base { width: 100%; height: auto; display: block; }
.nube-text-content { position: absolute; top: 42%; left: 70%; transform: translate(-50%, -50%); width: 90%; }

.btn-overlay-center { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 3.5vw; min-width: 40px; background: none; border: none; cursor: pointer; }
.btn-overlay-bottom-nube, .btn-overlay-bottom-integracion { position: absolute; bottom: 20%; left: 50%; transform: translate(-50%, 0); width: 6vw; min-width: 80px; background: none; border: none; cursor: pointer; display: inline-block; text-decoration: none; text-align: center; }
.btn-overlay-bottom-integracion { bottom: 30%; width: 8vw; }
.btn-overlay-center img, .btn-overlay-bottom-nube img, .btn-overlay-bottom-integracion img { width: 100%; display: block; transition: filter 0.3s ease; }
.btn-overlay-center:hover img { filter: sepia(100%) saturate(500%) hue-rotate(35deg) brightness(1.1); }
.btn-overlay-bottom-nube:hover img, .btn-overlay-bottom-integracion:hover img { filter: grayscale(100%) brightness(1) sepia(75%) saturate(60%) contrast(100%); }

/* ===================================================
   6. SECCIÓN UN PRIMER PASO PC
   =================================================== */
.paso-section { margin-top: 240px; padding-bottom: 150px; }
.paso-central-col { width: 75%; display: flex; flex-direction: column; align-items: center; }
.t-tit-paso-container { position: relative; z-index: 20; transform: translateY(-15px); margin-bottom: -35px; }
.paso-layout { display: flex; align-items: flex-start; justify-content: center; width: 100%; }
.huella-container { position: relative; width: 100%; z-index: 10; }
.img-huella { width: 60vw; max-width: 1150px; display: block; margin: 0 auto; }
.cliente { position: absolute; color: var(--crema); font-size: clamp(31px, 3.1vw, 48px); line-height: 0.95; text-align: center; white-space: nowrap; }
.c-reale { top: 26%; left: 0; } .c-axa { top: 18%; left: 38%; } .c-cruzroja { top: 13%; left: 81%; } .c-vithas { top: 48%; left: 88%; } .c-direct { top: 71%; left: 70%; } .c-xunta { top: 76%; left: 30%; } .c-aegon { top: 54%; left: 23%; }
.paso-text-side { width: 25%; margin-top: 80px; padding-left: 0; }

/* ===================================================
   8. SECCIÓN ÚLTIMOS PROYECTOS PC
   =================================================== */
.proyectos-section {
    position: relative;
    /* Solapamiento: pisa la imagen de la huella por encima */
    margin-top: -150px; 
    padding-bottom: 200px;
    z-index: 40; /* Por encima de la sección huella (30) */
}

/* Imagen Destacados: Completa y adaptable */
.destacados-bg-layer {
    position: absolute;
    top: -900px;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.destacados-bg-layer img {
   width: 100%;
    height: auto;
    display: block;
}

.z-index-content { position: relative; z-index: 10; }

.proyectos-container-align {
    display: flex;
    flex-direction: column;
    align-items: flex-end; /* Alineado a la dcha */
    padding-top: 300px; /* Ajuste para que el texto caiga en la zona transparente */
}

.proyectos-header {
    text-align: center;
    margin-right: 4vw;
}

/* Espacio doble (mt-20 * 2) */
.proyectos-carousel-area {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-top: 90px; 
    width: 100%;
}

.carousel-window {
    width: 58vw; /* Espacio para 3 elementos exactos */
    overflow: hidden;
}

.proyectos-track {
    display: flex;
    gap: 2vw;
    /* Iniciamos desplazados 20vw a la izquierda para empezar en Quirón */
    transform: translateX(0); 
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.item-proyecto {
    position: relative;
    width: 17vw; 
    flex-shrink: 0;
}

.quiron-text-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 85%;
}

.btn-carousel-arrow {
    margin-left: 1vw;
    width: 1.7vw;
    min-width: 25px;
    transition: all 0.3s ease;
}

.btn-carousel-arrow img { width: 25px;}

/* Clase para invertir la flecha en JS */
.flipped { transform: scaleX(-1); }

/* --- NUEVAS CLASES PARA EL PIE PC --- */
.footer-pc-content { margin-top: 500px; width: 100%; }
.line-height-tight { line-height: 0.9; }
.mt-120 { margin-top: 140px; } /* Aproximadamente 3 saltos de línea */
.mt-80 { margin-top: 50px; } /* Aproximadamente 2 saltos de línea */
.mt-60 { margin-top: 60px; }
.legal-nav-pc { display: flex; justify-content: space-between; width: 100%; }
.legal-nav-pc a { text-decoration: none; transition: opacity 0.3s; }
.legal-nav-pc a:hover { opacity: 0.7; }
.t-67 { font-size: clamp(40px, 4vw, 67px); }



/* --- ESTILOS ESPECÍFICOS APARTADO HINRICHS --- */

/* 1. Fondo específico */
body.page-hinrichs {
    background-image: url('../img/2-fondo-unido-hinrichs.webp');
}

/* 2. Forzar color verde en enlace activo (seleccionando directamente la etiqueta 'a') */
.page-hinrichs .nav-links a.text-verde, 
.page-hinrichs .drawer-nav a.text-verde {
    color: var(--verde) !important;
}

/* 3. Astronauta PC: Posicionado para no alterar el menú */
.header-pc { position: relative; } 

.btn-astronauta-pc {
    position: absolute;
    right: 40vw; 
    top: 50%;
    transform: translateY(-50%);
    list-style: none;
}

.btn-astronauta-pc img {
    height: 7vw;
    width: auto;
    display: block;
    transition: transform 0.3s ease;
}
.btn-astronauta-pc:hover img {
    transform: translateY(-5px) rotate(-10deg);
}

/* Espacio muy grande hasta el pie */
.page-hinrichs .proyectos-section.pc-only {
    margin-top: 800px;
}



/* --- ESTILOS ESPECÍFICOS APARTADO PRODUCTOS --- */

body.page-productos {
    background-image: url('../img/3-fondo-unido-productos.webp');
}

.page-productos .nav-links a.text-verde, 
.page-productos .drawer-nav a.text-verde {
    color: var(--verde) !important;
}

.productos-listado {
    padding-top: 200px;
}

/* CONTENEDOR: Flex para que tenga 'peso' y empuje */
.item-producto {
    position: relative;
    width: 100%;
    padding-left: 15%;
    margin-bottom: 200px; /* Margen base entre elementos */
    display: flex;
    align-items: flex-start; /* Centrado vertical del título con la imagen */
    transition: margin-bottom 0.3s ease;
}

/* Cuando se expande, alineamos al inicio para que el texto crezca hacia abajo */
.item-producto.is-expanded {
    align-items: flex-start;
    padding-top: 0; /* Para que la imagen no suba */
}

.img-prod-bg {
    width: 13vw;
    min-width: 130px;
    max-width: 200px;
    height: auto;
    display: block;
    flex-shrink: 0; /* Evita que la imagen se deforme */
    z-index: 1;
}

/* CONTENIDO: Relativo para que pueda empujar la página */
.item-prod-content {
    position: relative;
    z-index: 10;
    /* El 'Bite' o solapamiento: lo metemos dentro de la imagen con margen negativo */
    margin-left: -6.9vw; 
    padding-top: 3.7vw;
    width: 60vw;
    text-align: left;
}

.item-producto.is-expanded .item-prod-content {
    margin-top: 0; /* Para que el título en modo expandido no se mueva de su sitio */
}

.item-prod-content h3 {
    margin: 0;
    line-height: 1;
}

/* TEXTO OCULTO: al ser relativo, estirará el padre al mostrarse */
.prod-info-extra {
    display: grid;
    grid-template-rows: 0fr; /* Altura inicial */
    transition: grid-template-rows 0.5s ease, opacity 0.4s ease, margin-top 0.5s ease;
    opacity: 0;
    margin-top: 0; /* Sin margen cuando está cerrado */
    overflow: hidden;
    max-width: 40vw;
}

.prod-info-extra.is-visible {
    grid-template-rows: 1fr; /* El grid se expande al tamaño real del contenido */
    opacity: 1;
    margin-top: 25px; /* Aparece el margen suavemente */
}

.prod-sangria {
    padding-left: 120px;
}

.prod-sangria li {
    margin-left: 20px;
    max-width: 22vw;
}

/* BOTONES Y OTROS */
.btn-mas {
    margin-top: 25px;
    width: 60px;
    text-align: left;
}

.btn-mas img {
    width: 100%;
    display: block;
    transition: filter 0.3s ease;
}

.btn-mas:hover img { filter: sepia(100%) saturate(500%) hue-rotate(35deg) brightness(1.1); }

.prod-link {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 25px;
    text-decoration-color: var(--crema);
}
.prod-link img, .prod-link span { transition: filter 0.3s ease; }
.prod-link:hover img, .prod-link:hover span { filter: sepia(100%) saturate(500%) hue-rotate(35deg) brightness(1.1); }
.flecha-icon { height: 35px; width: auto; }

.dudas-cta { margin-top: 250px; }
.img-btn-dudas { width: clamp(206px, 20.6vw, 300px); height: auto; transition: filter 0.3s ease; }
.img-btn-dudas:hover { filter: grayscale(100%) brightness(1) sepia(75%) saturate(60%) contrast(100%); }

.page-productos .proyectos-section.pc-only {
    margin-top: -250px;
}



/* --- ESTILOS APARTADO SERVICIOS - INTEGRACIÓN (y algunos comunes al resto de apartados de Servicios)
/* Fondo para la página de Integración */
body.page-integracion {
    background-image: url('../img/4-2-fondo-unido-integracion.webp');
}

/* Color activo para el menú en esta página */
.page-integracion .nav-links a.text-verde, 
.page-integracion .drawer-nav a.text-verde,
.page-cloud .nav-links a.text-verde, 
.page-cloud .drawer-nav a.text-verde,
.page-seguridad .nav-links a.text-verde, 
.page-seguridad .drawer-nav a.text-verde {
    color: var(--verde) !important;
}
.page-integracion .submenu-bocadillo a.text-verde,
.page-cloud .submenu-bocadillo a.text-verde,
.page-seguridad .submenu-bocadillo a.text-verde {
    color: var(--verde) !important;
}

/* --- ESTILOS CONTENIDO INTEGRACIÓN PC --- */

.seccion-columnas {
    padding-top: 150px; 
}

/* FIX: Forzar el tamaño de la imagen al ancho del contenedor */
.img-titulo-servicio {
    position: absolute;
    top: 0;
    left: 0;
    width: 13vw;
    min-width: 130px;
    max-width: 200px;
    z-index: 5;
}

.img-titulo-servicio img {
    width: 100% !important; /* Para que no se reduzcan */
    height: auto;
    display: block;
}

.columnas-paralelas {
    display: flex;
    justify-content: space-between;
    margin: 0 3vw 0 5vw;
}

.columna-servicio {
    flex: 1;
    position: relative;
    margin-right: 5vw;
    padding: 3.5vw 0 3.5vw 3.5vw; /* Para que el texto empiece dentro de la imagen */
}

.texto-servicio {
    font-size: clamp(18px, 1.7vw, 25px); 
    color: var(--crema);
    line-height: 1.4;
}

.columna-servicio.columna-solucion {
    margin-right: 0;
    padding-right: 3vw;
}

.texto-servicio .text-verde { margin: 0 0 30px 30px; }

/* --- LISTA: Único punto color Crema --- */
.lista-servicio {
    list-style: none;
    margin: 0;
    padding: 0;
}

.lista-servicio li {
    padding-left: 1.5em;
    position: relative;
    margin-bottom: 20px;
    color: var(--crema);
}

.lista-servicio li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--crema);
    font-weight: bold;
}

/* --- BLOQUE RESULTADO --- */
.bloque-resultado {
    position: relative;
    margin-left: 5vw;
    padding: 3.5vw 7vw 3.5vw 3.5vw; /* Para que el texto empiece dentro de la imagen */
}

.texto-resultado p {
    font-size: clamp(60px, 6.2vw, 104px);
    font-weight: 500; /* sg-medium */
    line-height: 1;
    color: var(--crema);
}

/* --- BOTÓN DUDAS --- */
.dudas-cta-servicio {
    margin-top: 20px;
    padding-bottom: 120px;
}

.dudas-cta-servicio img {
    width: clamp(220px, 22vw, 320px);
}



/* --- ESTILOS APARTADO SERVICIOS - CLOUD
/* Fondo para la página de Cloud */
body.page-cloud {
    background-image: url('../img/4-1-fondo-unido-cloud.webp');
}

.page-cloud .texto-resultado p, .page-seguridad .texto-resultado p {
    font-size: clamp(58px, 6vw, 100px);
}



/* --- ESTILOS APARTADO SERVICIOS - SEGURIDAD
/* Fondo para la página de Seguridad */
body.page-seguridad {
    background-image: url('../img/4-3-fondo-unido-seguridad.webp');
}

.page-seguridad .texto-resultado p span.t-96 {
    font-size: clamp(55px, 5.7vw, 96px);
}



/* --- ESTILOS APARTADO CONTACTO
/* Fondo para la página de Contacto */
body.page-contacto {
    background-image: url('../img/5-fondo-unido-contacto.webp');
}

/* Forzar color verde en enlace activo */
.page-contacto .nav-links a.text-verde, 
.page-contacto .drawer-nav a.text-verde {
    color: var(--verde) !important;
}

/* Espaciado doble solicitado */
.seccion-formulario {
    margin-top: 230px;
    display: flex;
    justify-content: center;
}

.form-container {
    position: relative;
    width: 35%; /* Ancho PC solicitado */
    text-align: left;
}

.img-escribenos {
    position: absolute;
    left: -4vw; /* Muerde el texto desde la izquierda */
    top: -60px;
    width: 12vw;
    z-index: 5;
    pointer-events: none;
}

/* Estilo de los campos (Raya debajo) */
.form-group {
    margin-bottom: 40px;
    width: 100%;
}

.form-group input, .form-group textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--crema);
    color: var(--crema);
    padding: 30px 0;
    outline: none;
}

.form-group input::placeholder, .form-group textarea::placeholder {
  color: var(--crema);
  opacity: 1; /* Importante: Firefox aplica opacidad por defecto */
}

.form-group textarea {
    resize: none;
    overflow: hidden;
}

/* Botón No Robot */
.robot-verify-wrapper {
    margin-top: 30px;
    text-align: left;
}

.btn-no-robot:active {
    transform: scale(0.95);
}

.btn-no-robot img {
    width: clamp(95px, 7.3vw, 135px);
    transition: transform 0.2s ease;
}

.btn-no-robot:hover img { filter: grayscale(100%) brightness(1) sepia(75%) saturate(60%) contrast(100%); }

.spacer-contacto-footer {
    height: 800px; /* Espacio muy grande hasta el pie */
}


/* --- ESTILOS ESPECÍFICOS APARTADOS LEGALES --- */

/* Fondo específico */
body.page-legal {
    background-image: none;
}
.t-18 { font-size: 18px; line-height: 1.2; }
.text-b-i { font-weight: bold; font-style: italic;}
.page-legal .hero-home .wrapper .text-crema img {
    display: inline-block;
    vertical-align: middle; 
    height: 1.1em; 
    width: auto;
    position: relative;
    top: 0; 
    margin-left: 3px;
}
.page-legal .hero-home .wrapper .text-crema a { color: var(--crema); transition: color 0.3s ease; }
.page-legal .hero-home .wrapper .text-crema a:hover { text-decoration: none; color: var(--verde); }




/* PC PEQUEÑO (portátil 15") */
@media (max-width: 1440px) and (min-width: 769px) {
    .item-prod-content { padding-top: 5.5vw; margin-left: -8.5vw; }

    .columna-servicio { padding: 4.5vw 0 3.5vw 4vw; }

    .bloque-resultado { padding: 4vw 7vw 3.5vw 4.5vw; }
}



/* ===================================================
   7. RESPONSIVE MÓVIL (768px o menos)
   =================================================== */
@media (max-width: 768px) {
    * { -webkit-tap-highlight-color: transparent; outline: none; }
    body { background-image: url('../img/estatico.webp'); }
    .header-pc, .pc-only { display: none !important; }
    .header-mobile, .mobile-only, .astronauta-container-mobile { display: block !important; }
    .header-mobile { display: flex !important; justify-content: space-between; align-items: center; padding: 40px 5%; width: 100%; }
    .brand-mobile { font-size: 32px; line-height: 1.0; text-align: left; }
    .burger-menu { width: 50px; height: 35px; display: flex; flex-direction: column; justify-content: space-between; cursor: pointer; }
    .burger-menu span { height: 4px; width: 100%; background-color: var(--crema); }
    .mobile-drawer { position: fixed; top: 0; right: -100%; width: 100%; height: 100%; background-color: var(--negro); z-index: 2000; transition: right 0.4s; padding: 60px 40px; display: block !important; }
    .mobile-drawer.active { right: 0; }
    .close-menu { font-size: 50px; color: var(--verde); text-align: right; margin-bottom: 40px; cursor: pointer; }
    .drawer-nav { display: flex; flex-direction: column; gap: 35px; }
    .drawer-nav a { text-decoration: none; color: var(--crema); font-size: 32px; }
    .btn-login-mobile img { height: 48px !important; margin-top: 20px; }

    /* --- SUBMENÚ MÓVIL --- */
    .mobile-has-submenu {
        display: flex;
        flex-direction: column;
    }

    .mobile-submenu {
        display: none; /* Oculto por defecto */
        flex-direction: column;
        padding-left: 20px; /* Ligera sangría */
        gap: 15px;
        margin-top: 15px;
        border-left: 1px solid var(--verde); /* Opcional: guía visual para la sangría */
    }

    /* Clase que activaremos con JS */
    .mobile-submenu.open {
        display: flex;
    }

    .mobile-submenu a {
        font-size: 18px !important; /* Tamaño inferior al menú principal (32px) */
        color: var(--crema);
        text-decoration: none;
    }

    
    /* Hero y Bio Móvil */
    .hero-home { padding-top: 50px; }
    .hero-container-shared { display: flex !important; flex-direction: row; align-items: flex-end; justify-content: flex-start; flex-wrap: nowrap; }
    .main-sentence { text-align: left; width: 65%; }
    .main-sentence p { font-size: 30px !important; line-height: 1.1; }
    .astronauta-container-mobile { width: 35% !important; transform: translateY(40px); flex-shrink: 0; }
    .astronauta-img-mobile { width: 100%; display: block; }
    .bio-block-mobile { margin-top: 100px; width: 100%; }
    .bio-mobile-container { width: 80% !important; text-align: left; }
    .t-bio-m { font-size: 14px !important; line-height: 1.5; }
    .mt-separation-m { margin-top: 20px; }
    .bio-footer-mobile { display: flex !important; justify-content: space-between; align-items: center; margin-top: 45px; position: relative; }
    .cta-verde-m { display: block; width: 50%; background-color: var(--verde); color: var(--negro); padding: 12px 0; border-radius: 40px; text-align: center; text-decoration: none; font-weight: 700; font-size: 14px; }
    .bio-img-sello-mobile { width: 80px; }
    .bio-img-sello-mobile img { width: 100%; }


    /* ¿Qué necesitas? Móvil */
    .necesitas-mobile { background-color: var(--verde); width: 100%; margin-top: 45px; padding: 60px 0; }
    .necesitas-mobile-content { width: 90%; margin: 0 auto; text-align: center; }
    .t-tit-m { font-size: 30px; line-height: 1.1; font-family: 'Fraunces', serif; font-weight: 600; color: var(--negro); }
    .t-sub-m { font-size: 12px !important; line-height: 1.4; font-family: 'SpaceGrotesk', sans-serif; font-weight: 300; color: var(--negro); margin-top: 20px; }
    .grid-m-necesitas { display: grid; grid-template-columns: 1fr 1fr; gap: 60px 20px; margin-top: 50px; margin-bottom: 60px; }
    .item-m { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; }
    .t-item-m { font-size: 16px; line-height: 1.2; margin-bottom: 15px; font-weight: 300; color: var(--negro); }
    .t-subitem-m { font-size: 12px; line-height: 1.3; margin-bottom: 15px; text-align: center; color: var(--negro); }
    
    /* Limpieza botones móvil */
    .btn-m-black, .btn-m-black-nube, .btn-m-black-integracion { background: none !important; border: none !important; box-shadow: none !important; padding: 0 !important; margin: 0 auto !important; display: inline-block; text-decoration: none; text-align: center; }
    .btn-m-black img { width: 35px; filter: brightness(0); display: block; }
    .btn-m-black-nube img { width: 80px; filter: brightness(0); display: block; }
    .btn-m-black-integracion img { width: 100px; filter: brightness(0); display: block; }

    .cta-negro-m { display: block; width: 40%; background-color: var(--negro); color: var(--verde); padding: 12px 0; border-radius: 40px; text-align: center; text-decoration: none; font-weight: 700; font-size: 14px; margin: 0 auto; }


    /* ESTILOS PASO MÓVIL (INYECTADO AL FINAL) */
    .paso-mobile { margin-top: 50px; padding-bottom: 80px; }
    .t-tit-m-hero { font-size: 30px !important; line-height: 1.1; }
    .m-space-title { margin-bottom: 45px; } 
    .m-width-75 { width: 75% !important; margin: 0 auto; }
    .m-space-desc { margin-bottom: 30px; } 
    .huella-container-mobile { position: relative; width: 94%; margin: 0 auto; }
    .img-base-m { width: 100%; height: auto; display: block; }
    .cliente-m { position: absolute; color: var(--crema); font-size: clamp(13px, 4.7vw, 16px); line-height: 1; text-align: center; white-space: nowrap; }
    .c-reale-m { top: 25%; left: 5%; } .c-axa-m { top: 10%; left: 40%; } .c-cruzroja-m { top: 20%; left: 75%; } .c-vithas-m { top: 45%; left: 82%; } .c-direct-m { top: 70%; left: 65%; } .c-xunta-m { top: 78%; left: 30%; } .c-aegon-m { top: 55%; left: 20%; }


    /* --- SECCIÓN ÚLTIMOS PROYECTOS MÓVIL --- */
    .proyectos-mobile {
        position: relative;
        margin-top: -220px; 
        padding-bottom: 60px;
        overflow: hidden;
    }

    .destacados-bg-m {
        position: absolute;
        top: 0; left: 0;
        width: 100%;
        z-index: 1;
    }
    .destacados-bg-m img { width: 100%; height: auto; display: block; }

    .proyectos-m-content {
        position: relative;
        z-index: 10;
        padding: 210px 0 40px 25%; 
    }

    .proyectos-m-header {
        padding-right: 8%;
    }

    .m-space-line { height: 1em; }
    .m-space-triple { height: 2.5em; }
    .m-space-double { height: 1.8em; }

    .carousel-m-window {
        width: 100%;
        overflow: visible;
    }

    .carousel-m-track {
        display: flex;
        gap: 10px;
        transition: transform 0.6s cubic-bezier(0.25, 1, 0.2, 1);
    }

    .carousel-m-item {
        flex: 0 0 45%; 
        /* Centrado de texto y elementos internos */
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .btn-m-plus {
        width: 25px;
        margin-top: 10px;
        outline: none;
        display: inline-block;
        text-decoration: none;
        text-align: center;
    }
    .btn-m-plus img { width: 100%; }
    
    .btn-m-arrow {
        width: 35px;
        display: inline-block;
        outline: none;
    }
    .btn-m-arrow img { width: 100%; transition: transform 0.3s; }
    
    .padding-flecha-m {
        padding-right: 12%;
    }

    .mt-10 { margin-top: 10px; }

    .t-18-m { font-size: 18px; line-height: 1.1; }
    .t-12 { font-size: 12px; }
    .t-10 { font-size: 10px; }
    .t-9 { font-size: 9px; }

    /* --- PIE MÓVIL FINAL --- */
    .cta-wrapper-m {
        width: 100vw;
        margin-left: -25vw; /* Compensa el padding-left del padre */
        display: flex;
        justify-content: center;
    }

    .cta-negro-final {
        display: block;
        width: 40%;
        background-color: var(--negro);
        color: var(--crema);
        padding: 12px 0;
        border-radius: 40px;
        text-align: center;
        text-decoration: none;
        font-weight: 700;
        font-size: 14px;
    }

    .footer-mobile-info {
        width: 100vw;
        margin-left: -25vw; /* Compensa el padding-left del padre */
        text-align: center;
        margin-top: 80px;
        padding-bottom: 60px;
    }

    .t-16 { font-size: 16px; }
    .mt-40 { margin-top: 45px; } /* Aproximadamente 2 saltos de línea */

    .legal-nav-m {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .legal-nav-m a {
        text-decoration: none;
        display: block;
    }


    
    /* APARTADOS (no Inicio) */


    /* HINRICHS MÓVIL */

    /* Forzamos el reparto de espacio: Astronauta izquierda, Hamburguesa derecha */
    .page-hinrichs .header-mobile {
        display: flex !important;
        justify-content: space-between; 
        align-items: center;
        padding: 0 5%; 
    }

    /* Sacamos el astronauta del modo absoluto y lo bajamos un poco */
    .page-hinrichs .astronauta-m-link {
        position: static !important; 
        transform: translateY(8px) !important; 
        width: 80px; 
        display: block;
    }

    /* Aseguramos que la hamburguesa no se mueva y la subimos un poco */
    .page-hinrichs .burger-menu {
        margin: 0 !important;
        transform: translateY(-9px) !important;
    }

    .page-hinrichs .main-sentence { width: 85%; }

    /* Espacio hasta el pie */
    .page-hinrichs .proyectos-mobile {
        margin-top: 100px;
    }


    /* PRODUCTOS MÓVIL */

    .page-productos .main-sentence { width: 85%; }
    
    .productos-listado {
        padding-top: 60px;
    }

    .item-producto {
        position: relative;
        width: 100%;
        padding-left: 3%;
        margin-bottom: 80px; /* Margen natural cuando está cerrado */
        display: flex;
        flex-direction: column; /* Imagen arriba, texto debajo */
        align-items: flex-start !important;
        transition: margin-bottom 0.5s ease;
    }

    .img-prod-bg {
        width: 60vw !important;
        max-width: none;
        margin: 0;
        display: block;
        z-index: 1;
    }

    .item-prod-content {
        /* CAMBIO CLAVE: Relativo para que empuje el contenido */
        position: relative; 
        z-index: 10;
        /* Solapamiento visual: subimos el texto sobre la imagen */
        margin-top: -30vw !important; 
        margin-left: 17vw; 
        width: 75vw;
        text-align: left;
    }

    .item-prod-content h3 {
        white-space: normal;
        font-size: 26px !important;
        line-height: 1.1;
        margin: 0;
    }

    /* --- ANIMACIÓN DE DESPLIEGUE SUAVE --- */
    .prod-info-extra {
        display: grid; /* Lógica de rejilla para animar altura */
        grid-template-rows: 0fr; 
        transition: grid-template-rows 0.5s ease, opacity 0.4s ease, margin-top 0.5s ease;
        opacity: 0;
        margin-top: 0;
        overflow: hidden;
        max-width: 100%; /* Ocupa el ancho del contenedor de texto */
    }

    .prod-info-extra.is-visible {
        grid-template-rows: 1fr;
        opacity: 1;
        margin-top: 25px; /* Aparece el espacio al desplegar */
    }

    /* El contenedor interno para que el grid funcione */
    .prod-info-extra > div {
        min-height: 0;
    }

    .prod-sangria {
        padding-left: 30px; /* Reducido para móvil */
        margin-top: 15px;
    }

    .prod-sangria li {
        margin-left: 10px;
        max-width: 90%; /* Más aire en móvil */
        font-size: 14px;
        margin-bottom: 10px;
    }

    /* BOTONES */
    .btn-mas {
        margin: 25px 0 0 0 !important;
        width: 40px;
        text-align: left;
    }

    .prod-link {
        justify-content: flex-start !important;
        margin-top: 25px;
        gap: 12px;
    }

    .item-producto.is-expanded {
        padding-top: 0 !important;
        margin-bottom: 100px; /* Un poco de aire extra al estar abierto */
    }

    /* Botón Dudas: se posiciona solo al final del flujo */
    .dudas-cta {
        margin-top: 100px;
        padding-bottom: 60px;
        position: relative;
        z-index: 999;
    }


    /* SERVICIOS - INTEGRACIÓN MÓVIL */
    
    .page-integracion .wrapper, .page-cloud .wrapper, .page-seguridad .wrapper { width: 100%; }
    .page-integracion .main-sentence, .page-cloud .main-sentence, .page-seguridad .main-sentence { width: 100%; text-align: center; }

    .seccion-columnas {
        padding-top: 40px;
        padding-left: 0;
    }

    .columnas-paralelas {
        display: block; /* Apilado vertical */
        margin-bottom: 0;
    }

    /* Contenedores en flujo normal (no flex-start) */
    .columna-servicio, .bloque-resultado {
        position: relative;
        width: 100%;
        padding-left: 5%; /* Margen general de la página */
        margin-bottom: 20px; /* Espacio entre bloques */
        display: block; 
    }

    /* Imagen: 60vw como en Productos */
    .img-titulo-servicio {
        width: 60vw !important;
        margin-left: -3vw;
        display: block;
        position: relative;
        z-index: 1;
    }

    .img-titulo-servicio img {
        width: 100%;
        height: auto;
    }

    /* TEXTO: empujando el contenido */
    .texto-servicio, 
    .texto-resultado {
        position: relative; /* Cambiado de absolute a relative */
        z-index: 10;
        width: 85%;
        /* El margen izquierdo lo mete 'dentro' de la imagen */
        margin-left: 12vw; 
        /* El margen superior negativo lo sube a la mitad de la imagen 
           (Si la imagen mide 60vw de ancho, 30vw es la mitad aprox) */
        margin-top: -31vw; 
        text-align: left;
    }

    .texto-servicio p,
    .lista-servicio li {
        font-size: 12px !important;
        line-height: 1.2;
        color: var(--crema);
        margin-bottom: 10px;
    }

    .texto-servicio .text-verde {
        font-size: 26px !important;
        color: var(--verde);
        font-family: 'Fraunces', serif;
        margin-bottom: 15px;
        margin-left: 10px;
        display: block;
    }

    /* Elemento 3: Resultado */
    .texto-resultado p, .texto-resultado p span.t-96 {
        font-size: 20px !important; 
        line-height: 1.1;
        font-family: 'Fraunces', serif;
        color: var(--crema);
    }

    .lista-servicio {
        padding-left: 0;
        margin-top: 15px;
    }

    .lista-servicio li {
        padding-left: 1.2em;
    }

    .dudas-cta-servicio {
        margin-top: 200px;
        padding-bottom: 20px;
        text-align: center;
        position: relative !important;
        z-index: 999 !important;
        pointer-events: auto !important;
    }

    .dudas-cta-servicio a {
        display: inline-block !important;
        position: relative !important;
        z-index: 1000 !important;
    }
    
    .dudas-cta-servicio img {
        width: 65vw;
        height: auto;
    }


    /* CONTACTO */

    .page-contacto .main-sentence { width: 100%; text-align: center; }

    .form-container {
        width: 70%; /* Ancho móvil solicitado */
        margin-top: -50px;
    }

    .img-escribenos {
        width: 40vw;
        left: -12vw;
        top: -30px;
    }

    .btn-no-robot {
        width: 160px;
    }
    
    .spacer-contacto-footer {
        height: 300px;
    }


    /* --- APARTADOS LEGALES MÓVIL --- */

    .t-35 { font-size: 16px !important; }
    .t-18 { font-size: 11px !important; }
    .page-legal .hero-home .wrapper .text-crema img { height: 2.3em; }
}

/* PORTÁTIL 15" */
@media (max-width: 1440px) and (min-width: 769px) {
    .header-pc { padding: 80px 100px; }
    .bio-container { max-width: 32vw; margin-right: 10%; }
    .necesitas-section, .paso-section { margin-top: 350px; }
    .item-necesidad { width: 20vw; }
}

/* Pantalla pequeña PC */
@media (max-width: 1281px) and (min-width: 769px) {
     .paso-section { padding-bottom: 50px; }

     .paso-text-side { margin-top: 20px; margin-left: -20px; width: 30%; }

    .destacados-bg-layer { top: -500px; }
}