html {
    scroll-behavior: smooth; /* Habilita el scroll suave nativo del navegador */
}

section[id] {
    /* Crea un margen "invisible" para el scroll, igual a la altura de la cabecera */
    scroll-margin-top: var(--header-height, 120px);
}

/* --- Reset y Estilos Globales --- */
:root {
    --primary-color: #006A71; /* Teal oscuro del logo */
    --secondary-color: #0E8388; /* Teal más claro para acentos */
    --accent-color: #F4A261; /* Un toque cálido mediterráneo */
    --light-gray: #ecf0f1;
    --dark-gray: #777;
    --text-color: #333;
    --font-main: 'Roboto', sans-serif;
    --font-headings: 'Montserrat', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--text-color);
    line-height: 1.6;
    background-color: #ffffff;
}

h1, h2, h3, h4 {
    font-family: var(--font-headings);
    font-weight: 700;
    color: var(--primary-color);
}

.container {
    max-width: 1100px;
    margin: auto;
    padding: 1.5rem 2rem 3rem; /* Reducido el padding superior para acercar el título a la cabecera */
    text-align: center;
}

section h3 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

section h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--secondary-color);
}

/* --- Nueva Cabecera Fija --- */
.main-header.fixed-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.top-bar {
    background-color: var(--primary-color); /* Color corporativo */
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 3rem;
    font-size: 0.9rem;
}

.top-bar .contact-info span {
    margin-right: 1.5rem;
}

.top-bar i {
    margin-right: 0.5rem;
}

.top-bar .social-info a {
    color: white;
    font-size: 1.2rem;
}

.main-header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 3rem;
}

.nav-logo {
    max-height: 65px; /* Aumentamos el tamaño del logo */
}

.main-header nav ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.main-header nav ul li a {
    color: var(--dark-gray);
    text-decoration: none;
    font-weight: bold;
    padding: 1rem;
    transition: color 0.3s ease;
}

.main-header nav ul li a:hover,
.main-header nav ul li a.active {
    color: var(--secondary-color); /* Verde para el hover y el estado activo */
}

.nav-cta {
    font-size: 0.9rem;
    padding: 0.8rem 1.5rem;
}

/* --- Ajuste Contenido Principal --- */
main {
    padding-top: 110px; /* Empuja el contenido para dejar espacio a la cabecera fija */
}

/* --- Header y Hero Section --- */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('https://www.prolyco.com/wp-content/uploads/2019/05/prolyco-apartamento.jpg') no-repeat center center/cover;
    color: white;
    height: 100vh; /* Ocupa toda la altura de la pantalla para un efecto más inmersivo */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.hero-content h2 {
    font-size: 3.5rem;
    color: white;
    animation: popIn 1s 0.5s backwards;
}

.hero-content p {
    font-size: 1.5rem;
    animation: popIn 1s 0.8s backwards;
}



.cta-button {
    background-color: var(--secondary-color);
    color: white;
    padding: 1rem 2.5rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    animation: popIn 1s 1.1s backwards;
}

.cta-button:hover {
    background-color: #2980b9;
    transform: translateY(-3px);
}

/* --- Secciones --- */
#servicios .servicios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.servicio-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.servicio-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 25px rgba(0,0,0,0.15);
}

.servicio-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    aspect-ratio: 1/1;
}

.servicio-card h4 {
    font-size: 1.5rem;
    padding: 1.5rem 1.5rem 0.5rem 1.5rem;
}

.servicio-card p {
    padding: 0 1.5rem 1.5rem 1.5rem;
}

#galeria {
    background-color: var(--light-gray);
    padding: 4rem 0;
    text-align: center;
}

#galeria h3 {
    margin-bottom: 3rem;
}

.galeria-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1rem;
}

.galeria-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 5px;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.galeria-grid img:hover {
    transform: scale(1.05);
    opacity: 0.8;
}

/* --- Testimonios --- */
#testimonios {
    background-color: var(--light-gray);
    padding: 4rem 0;
}

#testimonios .container {
    padding-top: 0;
}

.trustpilot-badge {
    background-color: #ffffff;
    border-radius: 10px;
    padding: 1.5rem;
    max-width: 400px;
    margin: 0 auto 0.1rem auto; /* Reducido el margen inferior para juntar con las tarjetas */
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.trustpilot-badge p {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.stars {
    font-size: 2rem;
    color: #f1c40f; /* Amarillo para las estrellas */
}

.testimonial-slider {
    width: 100%;
    padding: 2rem 50px; /* Añadido padding para que las flechas quepan dentro */
    position: relative;
    overflow: hidden; /* Evita el desbordamiento antes de que JS se cargue */
}

.swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 1rem; /* Espacio para que las sombras no se corten */
}

.testimonial-card {
    background: #fff;
    padding: 2rem;
    border-radius: 10px;
    width: 100%;
    max-width: 350px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.popup-header-whatsapp {
    background-color: #075E54; /* Verde oscuro de WhatsApp */
    color: white;
    display: flex;
    align-items: center;
    padding: 10px 15px;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
}

.whatsapp-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
    object-fit: cover;
}

.whatsapp-contact-info {
    flex-grow: 1;
}

.whatsapp-name {
    font-weight: bold;
}

.whatsapp-status {
    font-size: 0.8rem;
    opacity: 0.8;
}

.whatsapp-chat-area {
    flex-grow: 1;
    padding: 20px 15px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

/* Estilos para las burbujas de chat */
.chat-message {
    padding: 10px 15px;
    border-radius: 15px;
    margin-bottom: 10px;
    max-width: 80%;
    line-height: 1.4;
    word-wrap: break-word;
    font-size: 14.5px;
}

.chat-message.received {
    background-color: #fff;
    align-self: flex-start;
    border-top-left-radius: 5px; /* Esquina recta para estilo WhatsApp */
    box-shadow: 0 1px 1px rgba(0,0,0,0.05);
}

.chat-message span {
    color: #333;
}

.message {
    display: flex;
    margin-bottom: 10px;
}

.message.received {
    justify-content: flex-start;
}

.message p {
    background-color: #fff;
    padding: 10px 15px;
    border-radius: 15px;
    max-width: 80%;
    box-shadow: 0 1px 1px rgba(0,0,0,0.1);
    line-height: 1.4;
    font-size: 0.95rem;
}

.message.received p {
    border-top-left-radius: 0;
}

.whatsapp-input-area {
    display: flex;
    padding: 10px;
    background-color: #f0f0f0;
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
}

#whatsapp-input {
    flex-grow: 1;
    border: none;
    padding: 10px;
    border-radius: 20px;
    margin-right: 10px;
}

#whatsapp-send-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 1.1rem;
    text-decoration: none;
    transition: background-color 0.3s;
}

#whatsapp-send-btn:hover {
    background-color: var(--secondary-color);
}

.chat-popup {
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 400px;
    margin: 0 auto;
}

.profile-pic {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid var(--secondary-color);
    margin-bottom: 0.5rem;
    object-fit: cover;
}

.review-stars {
    color: #f1c40f;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.testimonial-card .quote {
    font-style: italic;
    flex-grow: 1;
    margin-bottom: 1rem;
}

.testimonial-card .author {
    font-weight: bold;
    color: var(--primary-color);
}

.testimonial-card .source {
    font-size: 0.9rem;
    color: var(--dark-gray);
    margin-top: 0.25rem;
}

/* Estilos para la navegación de Swiper */
.swiper-button-next, .swiper-button-prev {
    background-color: white;
    width: 44px;
    height: 44px;
    border-radius: 8px; /* Cambiado a forma cuadrada */
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
    color: var(--primary-color) !important; /* !important para sobreescribir estilos de swiper */
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.swiper-button-next:hover, .swiper-button-prev:hover {
    background-color: var(--light-gray);
    transform: scale(1.1);
}

.swiper-button-next:hover::after, .swiper-button-prev:hover::after {
    transform: scale(1.1);
}

.swiper-pagination-bullet-active {
    background: var(--primary-color);
}

/* --- Formulario de Contacto --- */
#contacto form {
    max-width: 600px;
    margin: 3rem auto 0 auto;
    text-align: left;
}

.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

/* Estilos para el checkbox personalizado */
.single-checkbox {
    margin: 1.5rem 0;
    text-align: left;
}

.custom-checkbox {
    display: flex;
    align-items: flex-start;
    position: relative;
    padding-left: 30px;
    cursor: pointer;
    font-size: 0.9rem;
    line-height: 1.4;
    color: var(--text-color);
    user-select: none;
}

/* Ocultar el checkbox por defecto */
.custom-checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

/* Crear el checkbox personalizado */
.checkmark {
    position: absolute;
    top: 2px;
    left: 0;
    height: 20px;
    width: 20px;
    background-color: #fff;
    border: 2px solid var(--primary-color);
    border-radius: 4px;
    transition: all 0.2s ease;
}

/* Al pasar el ratón sobre el checkbox */
.custom-checkbox:hover input ~ .checkmark {
    background-color: #f0f8ff;
}

/* Cuando el checkbox está marcado */
.custom-checkbox input:checked ~ .checkmark {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Crear el indicador de check (escondido cuando no está marcado) */
.checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Mostrar el indicador cuando está marcado */
.custom-checkbox input:checked ~ .checkmark:after {
    display: block;
}

/* Estilo para el texto del checkbox */
.checkbox-text {
    margin-left: 5px;
    line-height: 1.4;
}

/* Estilo para el enlace de privacidad */
.privacy-link {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.privacy-link:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

/* Estilo para el foco en el checkbox */
.custom-checkbox input:focus ~ .checkmark {
    box-shadow: 0 0 0 2px rgba(0, 106, 113, 0.3);
}

#contacto input, #contacto textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    font-family: var(--font-main);
}

#contacto input:focus, #contacto textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 5px rgba(52, 152, 219, 0.5);
}

#contacto button {
    display: block;
    width: 100%;
}

/* --- Footer --- */
footer {
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    padding: 2rem;
}

.designer {
    color: #5dade2; /* Mantenemos el azul para el nombre por petición explícita */
    cursor: pointer;
    font-weight: bold;
    transition: color 0.3s ease;
}

.designer:hover {
    color: #8ecdee;
}

.hidden {
    display: none;
}

#phone-number {
    margin-top: 0.5rem;
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--light-gray);
}

/* WhatsApp Floating Button & Popup */
.whatsapp-fab {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    cursor: pointer;
    z-index: 1000;
    transition: transform 0.3s ease;
}

.whatsapp-fab:hover {
    transform: scale(1.1);
}

.chat-popup {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 280px; /* Ancho ajustado */
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.15);
    z-index: 1000;
    overflow: hidden;
    display: none; /* Oculto por defecto */
    flex-direction: column;
    transform-origin: bottom right;
    animation: popIn 0.3s ease-out forwards;
    background-color: #E5DDD5; /* Fondo tipo WhatsApp */
}

.chat-popup.active {
    display: flex;
}

.popup-header-whatsapp {
    background-color: #075E54; /* Verde oscuro de WhatsApp */
    color: white;
    padding: 10px 15px;
    display: flex;
    align-items: center;
}

.whatsapp-avatar {
    width: 45px; /* Avatar más grande */
    height: 45px; /* Avatar más grande */
    border-radius: 50%;
    margin-right: 12px;
}

.whatsapp-contact-info {
    flex-grow: 1;
}

.whatsapp-name {
    font-weight: bold;
}

.whatsapp-status {
    font-size: 0.8rem;
    opacity: 0.8;
}

.close-popup-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

.whatsapp-chat-area {
    flex-grow: 1;
    padding: 20px 15px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    min-height: 300px; /* Más alto */
}

/* Estilos para las burbujas de chat */
.chat-message {
    padding: 10px 15px;
    border-radius: 15px;
    margin-bottom: 10px;
    max-width: 80%;
    line-height: 1.4;
    word-wrap: break-word;
    font-size: 14.5px;
}

.chat-message.received {
    background-color: #fff;
    align-self: flex-start;
    border-top-left-radius: 5px; /* Esquina recta para estilo WhatsApp */
    box-shadow: 0 1px 1px rgba(0,0,0,0.05);
}

.chat-message span {
    color: #333;
}

.message.received {
    justify-content: flex-start;
}

.message p {
    background-color: #fff; /* Burbuja de mensaje blanca */
    padding: 10px 15px;
    border-radius: 15px;
    max-width: 80%;
    box-shadow: 0 1px 1px rgba(0,0,0,0.05);
    line-height: 1.4;
}

.whatsapp-input-area {
    display: flex;
    padding: 10px;
    background-color: #f0f0f0;
    align-items: center;
}

#whatsapp-input {
    flex-grow: 1;
    border: none;
    padding: 10px;
    border-radius: 20px;
    margin-right: 10px;
}

#whatsapp-input:focus {
    outline: none;
}

#whatsapp-send-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 1.2rem;
    text-decoration: none;
    transition: background-color 0.3s;
}

#whatsapp-send-btn:hover {
    background-color: var(--secondary-color);
}

/* --- Footer --- */
footer {
    background-color: #f8f9fa;
    color: var(--dark-gray);
    padding: 2rem 0;
    border-top: 1px solid #e7e7e7;
    font-size: 0.9rem;
}

.footer-content {
    max-width: 1100px;
    margin: auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    text-align: center;
}

.footer-content p {
    margin: 0.5rem 0;
}

.footer-legal a {
    color: var(--dark-gray);
    text-decoration: none;
    margin: 0 0.5rem;
    transition: color 0.3s;
}

.footer-legal a:hover {
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
    }

    .footer-legal {
        margin-top: 1rem;
    }
}

/* --- Animaciones --- */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInLeft {
    from { transform: translateX(-100px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideInRight {
    from { transform: translateX(100px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes popIn {
    from { transform: scale(0.5); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* --- Responsividad --- */

/* Tablets y dispositivos medianos (hasta 992px) */
@media (max-width: 992px) {
    .container {
        padding: 1.5rem 1.5rem 3rem;
    }

    .top-bar {
        padding: 0.5rem 1.5rem;
        font-size: 0.85rem;
    }

    .main-header nav {
        padding: 0.5rem 1.5rem;
    }

    .main-header nav ul li a {
        padding: 1rem 0.8rem;
    }

    .hero-content h2 {
        font-size: 3rem;
    }

    .hero-content p {
        font-size: 1.3rem;
    }

    #servicios .servicios-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

/* Móviles (hasta 768px) */
@media (max-width: 768px) {
    .top-bar {
        display: none; /* Ocultar la barra superior en móvil */
    }

    main {
        padding-top: 80px; /* Ajustar el padding para la cabecera fija (solo nav) */
    }

    .main-header nav {
        padding: 0.5rem 1rem;
        justify-content: space-between;
    }

    .nav-logo {
        max-height: 50px;
        margin-right: 1rem;
    }

    .main-header nav ul {
        display: flex;
        flex-grow: 1;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch; /* Scroll suave en iOS */
        scrollbar-width: none; /* Ocultar scrollbar en Firefox */
    }

    .main-header nav ul::-webkit-scrollbar {
        display: none; /* Ocultar scrollbar en Chrome/Safari */
    }

    .main-header nav ul li a {
        white-space: nowrap; /* Evitar que el texto del enlace se rompa */
        padding: 1rem 0.8rem;
        font-size: 0.9rem;
    }

    .nav-cta {
        display: inline-block;
        white-space: nowrap;
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
        margin-left: 1rem;
    }

    .menu-toggle {
        display: none; /* Ocultar definitivamente el botón de hamburguesa */
    }

    main {
        padding-top: 80px; /* Ajustar el padding para la cabecera fija */
    }

    .hero {
        height: 80vh;
    }

    .hero-content h2 {
        font-size: 2.2rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    section h3 {
        font-size: 2rem;
    }

    #contacto form {
        padding: 0 1rem;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-section {
        margin-bottom: 2rem;
    }

    .chat-popup {
        width: 90%;
        max-width: 300px;
        right: 5%;
        bottom: 80px;
    }
}

/* Estilos para el botón de hamburguesa (oculto por defecto) */


/* ===== Footer Styles ===== */
.site-footer {
    background-color: #1a1a1a;
    color: #fff;
    padding: 3rem 0 0;
    font-size: 0.95rem;
    line-height: 1.8;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2.5rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.7rem;
}

.footer-section h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-logo {
    max-width: 150px;
    margin-bottom: 1.5rem;
}

.footer-about {
    color: #bbb;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #fff;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-links li,
.footer-services li {
    margin-bottom: 0.7rem;
}

.footer-links a,
.footer-services a {
    color: #bbb;
    transition: color 0.3s ease;
    text-decoration: none;
}

.footer-links a:hover,
.footer-services a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-contact p {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
    color: #bbb;
}

.footer-contact i {
    margin-right: 10px;
    color: var(--primary-color);
    min-width: 20px;
    margin-top: 3px;
}

.footer-contact a {
    color: #bbb;
    transition: color 0.3s ease;
    text-decoration: none;
}

.footer-contact a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    background-color: #111;
    padding: 1.5rem 0;
    text-align: center;
}

.footer-legal {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.footer-legal p {
    color: #999;
    font-size: 0.9rem;
    margin: 0;
}

.footer-legal-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.7rem;
}

.footer-legal-links a {
    color: #bbb;
    font-size: 0.85rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-legal-links a:hover {
    color: var(--primary-color);
}

.footer-legal-links span {
    color: #555;
    font-size: 0.85rem;
}

/* Responsive Footer */
@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .footer-section h4::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-social {
        justify-content: center;
    }

    .footer-contact p {
        justify-content: center;
    }
}

/* --- Cookie Consent Banner --- */
#cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(20, 20, 20, 0.95);
    color: white;
    padding: 20px;
    z-index: 2000;
    display: none; /* Oculto por defecto, se muestra con JS */
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    border-top: 1px solid var(--primary-color);
}

#cookie-consent-banner p {
    margin: 0;
    flex-grow: 1;
    font-size: 0.9rem;
    text-align: center;
}

#cookie-consent-banner a {
    color: var(--secondary-color);
    text-decoration: underline;
}

#cookie-consent-accept {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
}

#cookie-consent-accept:hover {
    background-color: var(--secondary-color);
}

@media (min-width: 768px) {
    #cookie-consent-banner {
        flex-wrap: nowrap;
    }
    #cookie-consent-banner p {
        text-align: left;
    }
}
