/* Variables de Color */
:root {
    --primary: #478ac9;
    --palette-2: #db545a; 
    --palette-3: #fdd10d; 
    --dark: #333333;
    --rojo-hover: #c72d1b; 
    --whatsapp-green: #25D366;
    --whatsapp-dark: #128C7E;
}

/* Reset Básico */
* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

body { 
    font-family: 'Roboto', sans-serif; 
    line-height: 1.6; 
    background-color: #fff; 
}

.container { 
    max-width: 1140px; 
    margin: auto; 
    padding: 0 20px; 
}

html { 
    scroll-behavior: smooth; 
}
/* =======================================================
   1. NAVEGACIÓN PRINCIPAL (Diseño para PC - COLOR ROJO)
   ======================================================= */
.navbar { 
    background-color: #c72d1b !important; /* Rojo pasión/acción */
    height: 85px; 
    position: fixed; 
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    border: none !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2); /* Sombra para dar profundidad */
}

.navbar .container { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    width: 100%;
    max-width: 1200px; 
    margin: 0 auto;
    padding: 0 20px;
}

.logo-img {
    height: 65px !important; 
    width: auto;
    display: block;
    object-fit: contain;
    margin: 0 !important;
    /* Sombra blanca suave para que el logo resalte sobre el rojo */
    filter: drop-shadow(0px 0px 2px rgba(255,255,255,0.5));
}

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

.nav-links li { 
    margin-left: 35px; 
}

.nav-links a { 
    text-decoration: none; 
    color: #ffffff !important; 
    font-weight: 900;
    font-size: 1.1rem;
    text-transform: uppercase;
    transition: 0.3s ease-in-out;
}

/* EFECTO HOVER: Un ligero brillo para que sepa que es un enlace */
.nav-links a:hover {
    color: #fdd10d !important; /* El amarillo ahora lo usamos solo para resaltar al tocar */
    opacity: 0.9;
}

/* SECCIÓN HERO - VERSIÓN ESCRITORIO (PC) */
.hero-custom {
    /* Mantenemos el fondo con el degradado para legibilidad */
    background-image: linear-gradient(
        to bottom, 
        rgba(0, 0, 0, 0.3) 0%, 
        rgba(0, 0, 0, 0.6) 100%
    ), 
    url("images/hero.webp") !important; 
    
   /* Cambia el primer 'center' por el porcentaje que necesites */
background-position: 47% center !important; 
background-size: cover !important; 
background-repeat: no-repeat !important;
    
    /* Altura que hace que la foto se luzca en PC */
    min-height: 70vh !important; 
    padding: 120px 40px 80px 40px !important; 
    
    display: flex !important;
    flex-direction: column !important; 
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    color: #ffffff !important;
}

.hero-custom h1 {
    font-size: 3rem !important; /* Tamaño grande para PC */
    line-height: 1.1 !important;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.8) !important;
    margin: 0 auto 135px auto !important; /* Separación amplia para que respire */
    max-width: 1000px !important; /* Que no se abra demasiado el texto */
}

.btn-whatsapp-hero {
    display: inline-block !important;
    background-color: #fdd10d !important; 
    color: #c72d1b !important; 
    
    /* Botón más grande en PC que en móvil */
    padding: 14px 35px !important; 
    font-size: 1.1rem !important; 
    border: 2px solid #fdd10d !important; 
    
    border-radius: 0 !important;
    font-weight: 900 !important;
    text-decoration: none !important;
    text-transform: uppercase !important;
    transition: all 0.3s ease !important;
    
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3) !important; 
    margin-top: 40px !important; 
    letter-spacing: 1px !important;
    width: fit-content !important; 
}

.btn-whatsapp-hero:hover {
    background-color: transparent !important;
    color: #fdd10d !important;
    border: 2px solid #fdd10d !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2) !important;
}

/* --- SECCIÓN QUIÉN SOY (ESTILO ORIGINAL RECUPERADO) --- */

#quien-soy.grid-2 { 
    display: flex;             /* Cambiamos grid por flex para estabilidad */
    flex-direction: row; 
    gap: 40px; 
    align-items: stretch;      /* Mantiene tu lógica de estirar */
    background-color: #ffffff;
    padding-top: 0 !important; 
    padding-bottom: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.col-texto {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;   /* Centrado vertical del texto */
    padding: 40px 0;           /* Tu aire interno original */
}

.col-texto h2 {
    margin-bottom: 20px;
    color: var(--dark);
}

.col-texto p {
    margin-bottom: 25px !important; 
    line-height: 1.6;
}

.col-texto p:last-child {
    margin-bottom: 0 !important;
}

.col-foto {
    flex: 1;
    display: flex;
    align-items: flex-end;     /* Empuja la foto al suelo como querías */
    line-height: 0;
}

.img-colaboracion {
    width: 100%;
    height: auto; 
    display: block;
    margin-bottom: 0 !important;
    border-radius: 8px 8px 0 0; /* Tu redondeo original */
}


/* --- SECCIÓN SERVICIOS (GRID 4) - PC --- */
.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0; 
    margin: 0;
    width: 100%;
    min-height: 350px;
}

.card {
    padding: 60px 40px;
    text-align: left;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    position: relative;
    overflow: hidden;
}

/* Colores de marca */
.card-red { background-color: #c72d1b; color: #ffffff; }
.card-yellow { background-color: #fdd10d; color: #1a1a1a; }

.number {
    font-size: 3.5rem;
    font-weight: 900;
    opacity: 0.2;
    margin-bottom: 10px;
    display: block;
    line-height: 1;
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    font-weight: 900;
    letter-spacing: 1px;
}

.card p {
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

/* Efecto Hover Pro */
.card:hover {
    transform: translateY(-10px);
    z-index: 10;
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
    filter: brightness(1.1);
}

/* --- AJUSTE ESPECIAL TARJETA 03 (SIN FRANJA BLANCA) --- */
.grid-4 .card:nth-child(3) {
    /* Un rojo más oscuro y potente para diferenciar la parte dura */
    background-color: #a82214 !important; 
    /* Sombra interna para dar profundidad sin usar bordes */
    box-shadow: inset 0 0 60px rgba(0,0,0,0.15); 
}

.grid-4 .card:nth-child(3) .number {
    opacity: 0.6; /* El 03 resalta más que los demás */
    color: #ffffff;
}

.grid-4 .card:nth-child(3) h3 {
    /* Le damos un toque extra al título de la acción principal */
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

/* --- SECCIÓN TESTIMONIO - MODO BLANCO (LIMPIO) --- */
.testimonio-section {
    padding: 100px 20px;
    background-color: #ffffff; /* Fondo blanco sólido */
    text-align: center;
}

.testimonio-container {
    max-width: 800px; 
    margin: 0 auto;
}

.testimonio-img-redonda {
    width: 300px;
    height: 300px;
    border-radius: 50% !important;
    object-fit: cover;
    
    /* ESTO ES LO QUE SOLUCIONA TU CORTE: */
    /* 'center' es para el ancho, 'top' es para que la foto se pegue a la parte superior 
       y no se coma la mano/barbilla de abajo. 
       Si 'top' no es suficiente, cambia 'top' por un porcentaje, ej: 'center 10%' */
  object-position: center 33%;
    
    border: 3px solid #ffb703;
    display: inline-block;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.testimonio-text {
    font-size: 1.6rem;
    font-style: italic;
    color: #333333; /* Texto oscuro para máxima legibilidad sobre blanco */
    line-height: 1.5;
    margin-bottom: 25px;
    font-weight: 300;
}

.testimonio-autor strong {
    color: #c72d1b; /* Tu rojo corporativo para el nombre */
    text-transform: uppercase;
    display: block;
    margin-top: 10px;
}

.testimonio-autor span {
    color: #777777; /* Gris suave para el cargo */
    font-size: 0.9rem;
}
/* --- SECCIÓN PARTNERS (ESTÁTICOS) --- */
.partners-section {
    padding: 30px 0;
    background-color: #ffffff;
    text-align: center;
    overflow: hidden;
}

.slider-container {
    width: 100%;
    background-color: #000000; /* Franja negra completa */
    padding: 25px 0;
}

/* ESTILO DEL TÍTULO: BLANCO Y A LA IZQUIERDA */
.partners-title {
    color: #ffffff;             /* Color blanco */
    font-size: 1.0rem;          /* Un poco más pequeño para que no domine */
    font-weight: bold;
    margin-bottom: 10px;        
    text-align: left;           /* Alineado a la izquierda */
    padding-left: 2%;           /* Separación desde el borde izquierdo */
    text-transform: uppercase;
    letter-spacing: 0px;
}

.slider-track {
    display: flex;
    width: 100%; 
    max-width: 1200px;
    margin: 0 auto;
    justify-content: space-evenly;
    align-items: center;
    animation: none;
}

.partner-item {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 120px; 
}

/* Estilo base para todos los logos */
.partner-item img {
    max-width: 250px;
    height: 80px;
    object-fit: contain;
    filter: drop-shadow(0px 0px 8px rgba(255,255,255,0.1));
    transition: 0.3s;
}

/* Agrandar SOLO el logo central */
.slider-track .partner-item:nth-child(2) img {
    max-width: 320px;
    height: 130px;
}
.slider-track .partner-item:nth-child(3) img {
    max-width: 320px;
    height: 130px;
}


.partner-item img:hover {
    transform: scale(1.05);
}
/* --- SECCIÓN CONTACTO --- */
.contacto-section {
    padding: 100px 20px;
    background-color: #ffffff;
}

.contacto-container {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.2fr; /* Formulario un poco más ancho */
    gap: 100px;
}

.contacto-titulo {
    font-size: 3.5rem;
    color: #1a1a1a;
    margin-bottom: 15px;
    font-weight: 800;
}

.contacto-subtitulo {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.6;
}

.info-bloque {
    margin-top: 40px;
}

.info-bloque strong {
    display: block;
    text-transform: uppercase;
    color: #ffb703; /* Amarillo de tu marca */
    letter-spacing: 1px;
    margin-bottom: 5px;
}

/* Redes Sociales */
.redes-sociales {
    margin-top: 60px;
}

.follow-text {
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
    color: #999;
    margin-bottom: 20px;
}

.iconos-redes {
    display: flex;
    gap: 30px;
}

.social-icon {
    width: 45px;
    height: 45px;
    object-fit: contain;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.social-icon:hover {
    transform: translateY(-8px) scale(1.1);
}


/* --- SECCIÓN CONTACTO (TODO CENTRADO) --- */
.contacto-section {
    padding: 100px 20px;
    background-color: #ffffff;
    text-align: center; /* Esto centra los textos por defecto */
}

.contacto-container {
    max-width: 900px; /* Un poco más estrecho para que el centrado luzca mejor */
    margin: 0 auto;
    display: flex;
    flex-direction: column; /* Cambiamos a columna para centrar mejor el flujo */
    align-items: center;
    gap: 60px;
}

.contacto-info {
    width: 100%;
}

.contacto-titulo {
    font-size: 3.5rem;
    color: #1a1a1a;
    margin-bottom: 15px;
    font-weight: 800;
}

.contacto-subtitulo {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto; /* Centra el bloque de texto */
}

.info-bloque {
    margin-top: 30px;
}

.info-bloque strong {
    display: block;
    text-transform: uppercase;
    color: #ffb703;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

/* Redes Sociales Centradas */
.redes-sociales {
    margin-top: 40px;
}

.follow-text {
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
    color: #999;
    margin-bottom: 20px;
}

.iconos-redes {
    display: flex;
    justify-content: center; /* Centra los iconos horizontalmente */
    gap: 30px;
}

.social-icon {
    width: 45px;
    height: 45px;
    object-fit: contain;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.social-icon:hover {
    transform: translateY(-8px) scale(1.1);
}

/* --- SECCIÓN CONTACTO (IZQUIERDA INFO / DERECHA FORM) --- */
.contacto-section {
    padding: 100px 20px;
    background-color: #ffffff;
}

.contacto-container {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr; /* Dos columnas iguales */
    gap: 80px;
    align-items: center; /* Centrado vertical para que no se vea cojo */
}

.contacto-info {
    text-align: left; /* Todo a la izquierda */
}

.contacto-titulo {
    font-size: 3.5rem;
    color: #1a1a1a;
    margin-bottom: 20px;
    font-weight: 800;
}

.contacto-subtitulo {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 40px;
}

.info-bloque {
    margin-bottom: 30px;
}

.info-bloque strong {
    display: block;
    text-transform: uppercase;
    color: #ffb703;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

/* Redes Sociales a la izquierda */
.redes-sociales {
    margin-top: 40px;
}

.follow-text {
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
    color: #999;
    margin-bottom: 20px;
}

.iconos-redes {
    display: flex;
    gap: 25px;
    justify-content: flex-start; /* Asegura que empiecen en la izquierda */
}

.social-icon {
    width: 45px;
    height: 45px;
    transition: transform 0.3s ease;
}

.social-icon:hover {
    transform: translateY(-8px);
}

/* Formulario */
.contacto-form form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.input-group input, .input-group textarea {
    width: 100%;
    padding: 18px;
    border: 2px solid #f0f0f0;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    background-color: #f9f9f9;
    text-align: left; /* El usuario escribe desde la izquierda */
}

.btn-enviar {
    width: 100%; /* ¡AQUÍ ESTÁ! Hace que ocupe todo el ancho del formulario */
    padding: 20px; /* Tu tamaño original intacto */
    background-color: #c72d1b; /* Tu rojo corporativo de base */
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.btn-enviar:hover {
    background-color: #fdd10d; /* El amarillo de la web al pasar el ratón */
    color: #1a1a1a; /* Texto en negro para que contraste y sea legible */
}
/* --- TUS ESTILOS EXISTENTES (Mantén estos) --- */
.main-footer {
    background-color: #c72d1b;
    padding: 20px 10px; /* Ajusté un poco el padding para que quepa el bloque de cookies */
    color: #ffffff;
    text-align: center;
}

.footer-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    max-width: 1100px;
    margin: 0 auto;
}

.main-footer p {
    font-size: 0.85rem;
    margin: 0;
}

/* --- NUEVOS ESTILOS PARA COOKIES --- */
.footer-cookies {
    background-color: #ffffff;
    color: #333;
    padding: 15px;
    margin: 0 auto 20px auto; /* Centrado y con margen inferior */
    max-width: 800px;         /* Que no sea demasiado ancho */
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    font-size: 0.85rem;
}

.footer-cookies a {
    color: #c72d1b;
    text-decoration: underline;
    font-weight: bold;
}

.btn-cookie {
    background-color: #c72d1b;
    color: white;
    border: none;
    padding: 6px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    text-transform: uppercase;
}

.btn-cookie:hover {
    background-color: #000000;
    color: white;
}
/* =======================================================
   BLOQUE PARA PEGAR AL FINAL (Tablet y Móvil)
   ======================================================= */
@media (max-width: 1024px) {
    .navbar {
        height: 80px !important; /* Altura fija para que la B respire */
        display: flex !important;
        align-items: center !important;
        padding: 0 !important;
    }

    .navbar .container {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 0 15px !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    /* Ajuste del Logo recortado */
    .logo-img {
        height: 55px !important; /* Un poco más grande para que se vea bien la B */
        width: auto !important;
        display: block !important;
        margin: 0 !important; /* El flex lo centra solo */
        padding: 0 !important;
        object-fit: contain !important;
    }

    /* El Menú */
    .nav-links {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 12px !important; 
        margin: 0 !important;
        padding: 0 !important;
        list-style: none !important;
    }

    .nav-links li {
        margin: 0 !important;
        padding: 0 !important;
    }

    .nav-links a {
        font-size: 0.8rem !important; 
        font-weight: 900 !important;
        text-transform: uppercase !important;
        color: #ffffff !important;
        white-space: nowrap !important;
        text-decoration: none !important;
    }
}

/* Ajuste fino para móviles muy estrechos (iPhone SE y similares) */
@media (max-width: 375px) {
    .navbar {
        height: 75px !important;
    }
    
    .nav-links {
        gap: 8px !important; /* Estrechamos el espacio para que quepan los 3 textos */
    }
    
    .nav-links a {
        font-size: 0.75rem !important;
    }
    
    .logo-img {
        height: 45px !important;
    }
}

/* =======================================================
   3. SECCIÓN HERO (AJUSTE FINAL OPTIMIZADO)
   ======================================================= */
@media (max-width: 1024px) {
    .hero-custom {
        padding: 80px 20px 60px 20px !important; 
        min-height: 80vh !important;
        background-position: 47% 30% !important; 
        
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        align-items: center !important;
        text-align: center !important;
    }

    .hero-custom h1 {
        font-size: 1.6rem !important;
        line-height: 1.2 !important;
        margin: 0 auto 200px auto !important;
        white-space: normal !important;
    }

    .hero-custom p {
        font-size: 1rem !important;
        max-width: 90% !important;
        margin: 0 auto 30px auto !important;
    }

    /* BOTÓN AJUSTADO: SIN TAMAÑOS FIJOS PARA QUE NO SE VEA GRANDE */
    .btn-whatsapp-hero {
        display: inline-block !important;
        width: auto !important; 
        min-width: unset !important;
        padding: 6px 16px !important;
        font-size: 0.8rem !important;
        font-weight: 800 !important;
        text-transform: uppercase !important;
        border-radius: 0 !important;
        border: 1px solid #fdd10d !important;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2) !important;
        margin: 0 auto !important;
        box-sizing: border-box !important;
    }
}

/* Ajuste para móviles muy estrechos */
@media (max-width: 480px) {
    .hero-custom {
        padding-top: 80px !important;
    }
    
    .hero-custom h1 {
        font-size: 1.4rem !important;
    }
    
    .btn-whatsapp-hero {
        min-width: 90% !important; /* Casi ancho completo pero con margen */
        padding: 12px 15px !important;
        font-size: 0.85rem !important;
    }
}

/* 4. SECCIÓN QUIÉN SOY Y FOTO (BLOQUEO DE ANCHO) */
@media (max-width: 768px) {
    #quien-soy.grid-2 {
        display: block !important;
        padding: 20px 20px 0 20px !important;
        width: 100vw !important; /* Forzamos el ancho de la ventana */
        max-width: 100% !important;
        overflow-x: hidden !important; /* Corta cualquier cosa que intente salir */
    }

    .col-foto {
        width: 100% !important;
        max-width: 100% !important;
        display: block !important;
        overflow: hidden !important;
    }

    .img-colaboracion {
        display: block !important;
        width: 100% !important; /* La foto no puede medir más que el 100% de su padre */
        max-width: 100% !important; /* NUNCA se expandirá más de lo permitido */
        height: auto !important; /* Mantiene la proporción */
        margin: 0 auto !important;
    }
}
/* --- ELIMINACIÓN TOTAL DE ALTURAS MÍNIMAS EN MÓVIL --- */
@media (max-width: 950px) {
    #quien-soy.grid-2, 
    #quien-soy, 
    .grid-2 {
        min-height: auto !important;
        height: auto !important;
        padding-bottom: 0 !important;
        margin-bottom: 0 !important;
    }

    /* Forzamos que el padre del grid no tenga altura extra */
    section {
        height: auto !important;
    }
}

/* 5. SECCIÓN SERVICIOS (GRID-4) */
@media (max-width: 992px) {
    .grid-4 {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 600px) {
    .grid-4 {
        grid-template-columns: 1fr !important;
    }
    .card {
        padding: 50px 30px !important;
        text-align: center !important;
        min-height: auto !important;
    }
    .number {
        font-size: 3rem !important;
        opacity: 0.4 !important;
    }
    .card h3 {
        font-size: 1.8rem !important;
    }
    .card p {
        font-size: 1.1rem !important;
    }
}


/* 6. TESTIMONIOS RESPONSIVE */
@media (max-width: 768px) {
    .testimonio-img-redonda {
        width: 200px !important;
        height: 200px !important;
        /* Mantenemos el mismo encuadre para que no se descuadre la cara */
        object-position: center 40%; 
    }
    
    .testimonio-text {
        font-size: 1.2rem !important;
    }
}

.testimonio-text {
    font-size: 1.6rem;
    font-style: italic;
    color: #333333;
    line-height: 1.5;
    margin-bottom: 25px;
    font-weight: 300;
}

.testimonio-autor strong {
    color: #c72d1b;
    text-transform: uppercase;
    display: block;
    margin-top: 10px;
}

.testimonio-autor span {
    color: #777777;
    font-size: 0.9rem;
}

/* 7. PARTNERS */
@media (max-width: 768px) {
    .partner-item { width: 140px !important; }
    .partner-item img { width: 100px !important; }
    .slider-track { animation: scrollInfinitoMovil 12s linear infinite !important; }
}


/* 8. CONTACTO Y REDES */
@media (max-width: 768px) {
    .contacto-container {
        grid-template-columns: 1fr !important;
        gap: 40px !important;
    }
    .contacto-info, .contacto-form {
        text-align: center !important;
    }
    .iconos-redes {
        justify-content: center !important;
    }
}

/* --- TUS OTROS ESTILOS --- */

/* 9. FOOTER (Tu código original) */
@media (max-width: 768px) {
    .footer-container {
        flex-direction: column !important;
        gap: 10px !important;
    }
    .footer-line {
        display: none !important;
    }
}

/* ADAPTACIÓN DE COOKIES A MÓVILES (Lo nuevo) */
@media (max-width: 600px) {
    .footer-cookies {
        flex-direction: column;
        gap: 15px;
        padding: 20px;
        margin: 0 10px 20px 10px;
        text-align: center;
    }

    .btn-cookie {
        width: 100%;
        padding: 12px;
    }
}

/* 10. MÓVIL TUMBADO (LANDSCAPE) - CORRECCIÓN Y CENTRADO */
@media screen and (max-width: 930px) and (orientation: landscape) {
    .grid-4 {
        grid-template-columns: 1fr !important;
    }
    .card {
        padding: 40px 30px !important;
        overflow: visible !important;
        text-align: center !important;     /* Centra horizontalmente el texto */
        align-items: center !important;    /* Centra horizontalmente los elementos hijos */
        justify-content: center !important; /* Centra verticalmente si es necesario */
    }
    .card p { 
        display: block !important;
        font-size: 1.1rem !important;
        margin: 0 auto !important;         /* Centra el párrafo */
    }
    .card h3 { 
        font-size: 1.5rem !important;
        margin: 0 auto 20px auto !important; /* Centra el título */
    }
}