/* ================================================= */
/*          KIT FINAL Y FUNCIONAL - v2               */
/* ================================================= */

/* --- Variables y Reset Básico --- */
:root {
    --color-marisma-calma: #0d47a1;
    --color-ciudad-pulso: #ff8f00;
    --color-whatsapp: #25D366; /* <-- Color verde de WhatsApp AÑADIDO */
    --color-texto-principal: #333;
    --color-fondo: #f8f-fa;
    --blanco: #fff;
    --fuente-titulares: 'Georgia', 'Times New Roman', serif;
    --fuente-texto: 'Helvetica', 'Arial', sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: var(--fuente-texto);
    background-color: var(--color-fondo);
    color: var(--color-texto-principal);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

/* --- Header --- */
header {
    background-color: var(--blanco);
    padding: 1rem 7%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.08);
    position: sticky; top: 0; z-index: 1000;
}
.logo-link { text-decoration: none; }
.logo { font-family: var(--fuente-titulares); font-size: 1.8rem; font-weight: bold; color: var(--color-marisma-calma); }
.header-derecha { display: flex; align-items: center; gap: 2.5rem; }
.navegacion-principal { display: flex; gap: 2.5rem; }
.navegacion-principal a { color: var(--color-texto-principal); text-decoration: none; font-weight: bold; font-size: 1rem; padding-bottom: 0.5rem; position: relative; transition: color 0.3s ease; }
.navegacion-principal a:hover,
.navegacion-principal a.active { color: var(--color-ciudad-pulso); }
.navegacion-principal a.active::after { content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 3px; background-color: var(--color-ciudad-pulso); }
.boton-llamada-header { background-color: var(--color-ciudad-pulso); color: var(--blanco); padding: 0.8rem 1.5rem; border-radius: 50px; text-decoration: none; font-weight: bold; display: flex; align-items: center; gap: 8px; transition: background-color 0.3s ease; box-shadow: 0 2px 8px rgba(0,0,0,0.15); }
.boton-llamada-header:hover { background-color: #e69500; box-shadow: 0 4px 12px rgba(0,0,0,0.2); }
.menu-hamburguesa { display: none; }

/* --- Hero Section --- */
.hero { background: linear-gradient(rgba(40,40,40,0.7), rgba(40,40,40,0.7)), url('/images/vistas-marismas.webp'); background-size: cover; background-position: center; text-align: center; padding: 8rem 2rem; color: var(--blanco); }
.hero h1 { font-family: var(--fuente-titulares); font-size: 4rem; margin-bottom: 1rem; font-weight: normal; }
.hero .subtitulo { font-size: 1.3rem; max-width: 650px; margin: 0 auto 2.5rem auto; line-height: 1.6; font-weight: 300; }
.cta-button { background-color: var(--color-ciudad-pulso); color: var(--blanco); padding: 1rem 2.5rem; border-radius: 50px; text-decoration: none; font-weight: bold; font-size: 1.1rem; transition: transform 0.3s ease, box-shadow 0.3s ease; box-shadow: 0 4px 15px rgba(0,0,0,0.2); }
.cta-button:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(0,0,0,0.3); }

/* --- Dos Mundos Section --- */
.dos-mundos { background-color: var(--blanco); padding: 5rem 7%; }
.columnas-container { display: flex; flex-direction: column; gap: 3rem; max-width: 1200px; margin: 0 auto; }
.columna { text-align: center; }
.columna img { width: 100%; border-radius: 8px; margin-bottom: 1.5rem; box-shadow: 0 10px 20px rgba(0,0,0,0.1); transition: transform 0.3s ease; }
.columna img:hover { transform: scale(1.03); }
.columna h3 { font-family: var(--fuente-titulares); font-size: 1.8rem; color: var(--color-marisma-calma); margin-bottom: 0.5rem; }
.columna p { font-size: 1rem; color: #666; max-width: 450px; margin: 0 auto; }

/* --- Footer --- */
footer { background-color: var(--color-texto-principal); color: #ccc; text-align: center; padding: 3rem 1rem; margin-top: 2rem; }
.footer-content p { margin-bottom: 1.5rem; }
.social-links a { color: var(--blanco); font-size: 1.8rem; margin: 0 1rem; transition: color 0.3s ease; }
.social-links a:hover { color: var(--color-ciudad-pulso); }

/* --- BOTÓN FLOTANTE DE WHATSAPP --- */
.whatsapp-flotante {
    position: fixed;
    bottom: 25px;
    right: 25px;
    bottom: calc(25px + env(safe-area-inset-bottom));
    background-color: var(--color-whatsapp); /* <-- CORRECCIÓN: Usando la variable verde */
    color: white;
    width: 60px; height: 60px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 32px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.25);
    z-index: 999;
    transition: transform 0.3s ease;
}
.whatsapp-flotante:hover { transform: scale(1.1); }


/* ================================================= */
/*          MEDIA QUERIES PARA RESPONSIVE (CORREGIDO) */
/* ================================================= */

@media (max-width: 992px) {
    /* --- Ajustes del Header en Móvil --- */
    header {
        padding: 1rem 5%;
    }
    .logo {
        font-size: 1.3rem; /* Hacemos el logo un poco más pequeño */
    }
    
    /* --- Lógica del Menú Desplegable --- */
    .navegacion-principal {
        position: fixed;
        top: 0;
        left: -100%; /* Empieza totalmente a la izquierda, fuera de la vista */
        width: 100%;
        max-width: 300px; /* Ancho del panel del menú */
        height: 100vh;
        background: var(--blanco);
        box-shadow: 5px 0 15px rgba(0,0,0,0.1);
        
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        
        transition: left 0.4s ease-in-out;
        z-index: 1000;
    }
    
    .navegacion-principal.active {
        left: 0; /* Lo traemos a la vista */
    }
    
    .navegacion-principal a {
        font-size: 1.5rem;
    }
    
    /* --- Visibilidad y Estilo de Acciones en Móvil --- */
    .menu-hamburguesa {
        display: block; /* Mostramos la hamburguesa */
        font-size: 2rem;
        cursor: pointer;
        color: var(--texto-principal);
        z-index: 1001; /* Siempre por encima del menú */
    }
    
    .boton-llamada-header {
        padding: 0.7rem; /* Lo hacemos redondo */
        border-radius: 50%;
        font-size: 1rem;
    }
    
    .boton-llamada-header .texto-boton {
        display: none; /* Ocultamos el texto "Llamar Ahora" en móvil */
    }
}
/* ================================================= */
/*          ESTILOS PARA LA SECCIÓN DE BLOG          */
/* ================================================= */

/* --- Estilos para la página de listado (/blog) --- */
.blog-container {
    max-width: 900px;
    margin: 4rem auto; /* Centra el contenido y le da espacio */
    padding: 0 2rem;
}

.blog-container h1 {
    font-family: var(--fuente-titulares);
    font-size: 3rem;
    color: var(--color-marisma-calma);
    text-align: center;
    margin-bottom: 1rem;
}

.blog-container .subtitulo-blog {
    text-align: center;
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 4rem;
}

.post-list {
    display: grid;
    gap: 2rem;
}

.post-card {
    background-color: var(--blanco);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    overflow: hidden; /* Para que el radio afecte a la imagen */
    display: flex;
    flex-direction: column;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.post-card-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.post-card-content {
    padding: 1.5rem;
}

.post-card-content h2 {
    font-family: var(--fuente-titulares);
    color: var(--color-texto-principal);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.post-card-content p {
    color: #777;
    font-size: 0.9rem;
}


/* --- Estilos para la página de artículo individual (/blog/[slug]) --- */
.post-article {
    max-width: 800px;
    margin: 4rem auto;
    padding: 0 2rem;
}

.post-header img {
    width: 100%;
    height: auto;
    max-height: 450px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.post-header h1 {
    font-family: var(--fuente-titulares);
    font-size: 3.5rem;
    line-height: 1.2;
    color: var(--color-marisma-calma);
    margin-bottom: 1rem;
}

.post-meta {
    color: #666;
    margin-bottom: 3rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 1.5rem;
}

.post-body h2, .post-body h3 {
    font-family: var(--fuente-titulares);
    color: var(--color-texto-principal);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.post-body p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.post-body a {
    color: var(--color-ciudad-pulso);
    text-decoration: underline;
}

.post-body ul, .post-body ol {
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.post-body blockquote {
    border-left: 4px solid var(--color-ciudad-pulso);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: #555;
}