/*
static/css/styles.css
=============================================================================
¿Qué es este archivo?
=============================================================================
Este archivo contiene todos los estilos CSS de la página web.

Estructura:
1. Variables CSS (colores, tipografía)
2. Reset y estilos base
3. Tipografía
4. Layout / componentes globales
5. Navbar
6. Hero
7. Sobre la finca
8. Servicios
9. Galería
10. Disponibilidad / Calendario
11. Contacto
12. Footer
13. WhatsApp flotante
14. Animaciones
15. Media queries (responsive)

Diseño mobile-first: estilos base para móvil, luego media queries.
=============================================================================
*/


/* ==========================================================================
   1. VARIABLES CSS (Custom Properties)
   ========================================================================== */

:root {
    /* Paleta de colores principal */
    --color-verde: #2D6A4F;
    --color-verde-oscuro: #1B4332;
    --color-verde-claro: #52B788;
    --color-verde-muy-claro: #D8F3DC;

    /* Colores de acento */
    --color-rojo: #C1121F;
    --color-rojo-hover: #a00f1a;

    /* Colores de fondo */
    --color-crema: #FEFAE0;
    --color-blanco: #FFFFFF;
    --color-gris-claro: #F5F5F5;

    /* Colores de texto */
    --color-texto: #1A1A1A;
    --color-texto-secundario: #8B5E3C;
    --color-texto-claro: #666666;

    /* Tipografía - DM Serif + DM Sans */
    --font-titulo: 'DM Serif Display', Georgia, serif;
    --font-cuerpo: 'DM Sans', system-ui, sans-serif;

    /* Tamaños de fuente base */
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;

    /* Espaciado */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    --spacing-3xl: 6rem;

    /* Bordes */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    /* Sombras */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);

    /* Transiciones */
    --transition-fast: 0.15s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
}


/* ==========================================================================
   2. RESET Y ESTILOS BASE
   ========================================================================== */

*, *::before, *::after {
    box-sizing: border-box;
}

* {
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-cuerpo);
    font-size: var(--text-base);
    line-height: 1.7;
    color: var(--color-texto);
    background-color: var(--color-crema);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

ul, ol {
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}


/* ==========================================================================
   3. TIPOGRAFÍA
   ========================================================================== */

body {
    font-family: var(--font-cuerpo);
    font-size: 16px;
    line-height: 1.7;
    font-weight: 300;
    color: #2c2c2c;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3 {
    font-family: var(--font-titulo);
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.section-title {
    font-family: var(--font-titulo);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    color: var(--color-verde);
    margin-bottom: 0.5rem;
}

p, li {
    font-family: var(--font-cuerpo);
    font-weight: 300;
    line-height: 1.75;
    color: #3d3d3d;
}

.badge, .tag, .label {
    font-family: var(--font-cuerpo);
    font-weight: 500;
    letter-spacing: 0.03em;
    font-size: 0.85rem;
}

.btn, button, a.btn {
    font-family: var(--font-cuerpo);
    font-weight: 500;
    letter-spacing: 0.02em;
}


/* ==========================================================================
   4. LAYOUT / COMPONENTES GLOBALES
   ========================================================================== */

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.section {
    padding: var(--spacing-2xl) 0;
}

.section-title.center {
    text-align: center;
}

.section-subtitle {
    color: var(--color-texto-claro);
    text-align: center;
    margin-bottom: var(--spacing-xl);
    font-size: var(--text-lg);
}

.section-header {
    margin-bottom: var(--spacing-xl);
}

.section-badge {
    display: inline-block;
    background: var(--color-verde-muy-claro);
    color: var(--color-verde);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-sm);
    font-size: var(--text-sm);
    font-weight: 500;
    margin-bottom: var(--spacing-sm);
}

/* Animación de entrada */
.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Botones */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: var(--text-base);
    transition: all 0.25s ease;
}

.btn-primary {
    background: var(--color-blanco);
    color: var(--color-verde);
}

.btn-primary:hover {
    background: var(--color-verde-muy-claro);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-whatsapp {
    background: var(--color-verde);
    color: var(--color-blanco);
}

.btn-whatsapp:hover {
    background: var(--color-verde-oscuro);
    transform: translateY(-2px);
}


/* ==========================================================================
   5. NAVBAR
   ========================================================================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: var(--spacing-sm) 0;
    transition: background 0.4s ease, box-shadow 0.4s ease;
}

/* Navbar transparente al inicio */
.navbar {
    background: transparent;
}

.navbar.scrolled {
    background: var(--color-blanco);
    box-shadow: var(--shadow-md);
}

.navbar.scrolled .nav-logo span,
.navbar.scrolled .nav-link {
    color: var(--color-texto);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo */
.nav-logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-family: var(--font-titulo);
    font-size: var(--text-lg);
    font-weight: 400;
    color: var(--color-blanco);
    transition: color var(--transition-base);
}

.nav-logo span {
    color: inherit;
}

.nav-logo-icon {
    flex-shrink: 0;
}

/* Links de navegación */
.nav-links {
    display: none;
    align-items: center;
    gap: var(--spacing-md);
}

.nav-link {
    color: var(--color-blanco);
    font-weight: 500;
    font-size: var(--text-sm);
    transition: color var(--transition-fast);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-verde-claro);
}

/* Botón Reservar nav */
.btn-reservar-nav {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--color-rojo);
    color: var(--color-blanco);
    font-weight: 600;
    font-size: var(--text-sm);
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    transition: all 0.25s ease;
    box-shadow: 0 2px 8px rgba(193, 18, 31, 0.3);
    animation: pulse-subtle 3s infinite;
}

.btn-reservar-nav:hover {
    background: var(--color-rojo-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(193, 18, 31, 0.4);
}

@keyframes pulse-subtle {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

.nav-btn {
    display: none;
}

.nav-btn-mobile {
    margin-top: var(--spacing-sm);
    padding-top: var(--spacing-sm);
    border-top: 1px solid var(--color-gris-claro);
}

.nav-btn-mobile .btn-reservar-nav {
    justify-content: center;
    width: 100%;
}

/* Botón hamburguesa */
.nav-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    background: transparent;
}

.hamburger {
    width: 24px;
    height: 2px;
    background: var(--color-blanco);
    transition: background var(--transition-base), transform var(--transition-base);
}

.navbar.scrolled .hamburger {
    background: var(--color-texto);
}

/* Menú móvil desplegado */
.nav-links.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-blanco);
    padding: var(--spacing-md);
    box-shadow: var(--shadow-lg);
    gap: var(--spacing-sm);
}

.nav-links.active .nav-link {
    color: var(--color-texto);
    padding: var(--spacing-xs) 0;
}


/* ==========================================================================
   6. HERO
   ========================================================================== */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: #1a3d2b;
}

/* Imagen de fondo */
.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    transform: scale(1.05);
    transition: transform 0.1s ease-out;
}

/* Overlay verde semi-transparente */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(26, 61, 43, 0.82) 0%,
        rgba(45, 106, 79, 0.70) 50%,
        rgba(26, 61, 43, 0.85) 100%
    );
    backdrop-filter: blur(0.5px);
}

/* Sin imagen: fondo degradado */
.hero--sin-imagen {
    background: linear-gradient(135deg, #1a3d2b 0%, #2D6A4F 50%, #1a3d2b 100%);
}

/* Contenido del hero */
.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    padding: 2rem;
    max-width: 800px;
}

.hero-title {
    font-family: var(--font-titulo);
    font-size: clamp(2.2rem, 5vw, 4rem);
    font-style: italic;
    letter-spacing: -0.02em;
    color: var(--color-blanco);
    margin-bottom: var(--spacing-md);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-family: var(--font-cuerpo);
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    font-weight: 300;
    opacity: 0.92;
    letter-spacing: 0.01em;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--spacing-xl);
    line-height: 1.6;
}

/* Botones del hero */
.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    align-items: center;
}

/* Botón WhatsApp hero */
.btn-whatsapp-hero {
    background: #25D366;
    color: var(--color-blanco);
    font-size: var(--text-lg);
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.25s ease;
}

.btn-whatsapp-hero:hover {
    background: #128C7E;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
}

.btn-whatsapp-hero svg {
    flex-shrink: 0;
}

/* Indicador de scroll */
.scroll-indicator {
    position: absolute;
    bottom: var(--spacing-xl);
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: var(--color-blanco);
}

.scroll-text {
    display: block;
    font-size: var(--text-sm);
    margin-bottom: var(--spacing-xs);
    opacity: 0.8;
}

.scroll-arrow {
    font-size: var(--text-xl);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(10px); }
    60% { transform: translateY(5px); }
}


/* ==========================================================================
   7. SOBRE LA FINCA
   ========================================================================== */

.about {
    background: var(--color-blanco);
}

.about-grid {
    display: grid;
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-2xl);
}

.about-text {
    color: var(--color-texto-claro);
    margin-bottom: var(--spacing-md);
    font-size: var(--text-lg);
}

/* Imagen con badge */
.image-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.image-wrapper img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.about-badge {
    position: absolute;
    bottom: var(--spacing-sm);
    right: var(--spacing-sm);
    background: var(--color-rojo);
    color: var(--color-blanco);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-sm);
    font-size: var(--text-sm);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

/* Cards de información */
.about-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
}

.about-card {
    background: var(--color-blanco);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    border-left: 4px solid var(--color-rojo);
    text-align: center;
    transition: transform var(--transition-base);
}

.about-card:hover {
    transform: translateY(-4px);
}

.about-card i {
    font-size: var(--text-2xl);
    color: var(--color-rojo);
    margin-bottom: var(--spacing-xs);
}

.about-card h3 {
    font-size: var(--text-base);
    color: var(--color-verde);
    margin-bottom: var(--spacing-xs);
}

.about-card p {
    font-size: var(--text-sm);
    color: var(--color-texto-claro);
}


/* ==========================================================================
   8. SERVICIOS
   ========================================================================== */

.services {
    background: var(--color-blanco);
}

.services-grid {
    display: grid;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

.service-category {
    background: var(--color-blanco);
    padding: var(--spacing-md);
    border-radius: var(--radius-lg);
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-category:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.category-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-sm);
    border-bottom: 2px solid var(--color-verde-muy-claro);
}

.category-header i {
    font-size: var(--text-xl);
    color: var(--color-verde);
}

.category-header h3 {
    font-family: var(--font-titulo);
    font-size: var(--text-xl);
    color: var(--color-verde);
}

.services-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.service-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    color: var(--color-texto-claro);
}

.service-item i {
    color: var(--color-verde-claro);
    font-size: var(--text-sm);
}

/* Sección "Qué debes traer" */
.bring-section {
    background: var(--color-crema);
    padding: var(--spacing-2xl) 0;
    margin-top: var(--spacing-2xl);
}

.bring-title {
    font-family: var(--font-titulo);
    font-size: var(--text-2xl);
    color: var(--color-verde);
    text-align: center;
    margin-bottom: var(--spacing-sm);
}

.bring-text {
    text-align: center;
    color: var(--color-texto-claro);
    margin-bottom: var(--spacing-xl);
}

.bring-items {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
    max-width: 600px;
    margin: 0 auto;
}

.bring-item {
    text-align: center;
    padding: var(--spacing-md);
    background: var(--color-blanco);
    border-radius: var(--radius-md);
}

.bring-item i {
    font-size: var(--text-2xl);
    color: var(--color-rojo);
    margin-bottom: var(--spacing-xs);
}

.bring-item span {
    display: block;
    font-weight: 600;
    color: var(--color-texto);
    margin-bottom: 4px;
}

.bring-item small {
    color: var(--color-texto-claro);
    font-size: var(--text-sm);
}


/* ==========================================================================
   9. GALERÍA
   ========================================================================== */

.gallery {
    background: var(--color-blanco);
}

.gallery-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    height: 280px;
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-2px);
}

.gallery-item img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    object-position: center;
    transition: transform var(--transition-slow);
}

.gallery-item:hover img {
    transform: scale(1.02);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-base);
}

.gallery-overlay i {
    color: var(--color-blanco);
    font-size: var(--text-2xl);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* Placeholders */
.gallery-placeholder {
    background: linear-gradient(135deg, var(--color-verde-muy-claro), var(--color-verde-claro));
    display: flex;
    align-items: center;
    justify-content: center;
    height: 280px;
    border-radius: var(--radius-md);
}

.placeholder-content {
    text-align: center;
    color: var(--color-verde);
}

.placeholder-content i {
    font-size: var(--text-3xl);
    margin-bottom: var(--spacing-xs);
}

.placeholder-content p {
    font-size: var(--text-base);
    font-weight: 500;
}


/* ==========================================================================
   LIGHTBOX
   ========================================================================== */

.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-md);
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    max-width: 90vw;
    max-height: 90vh;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: var(--radius-md);
}

.lightbox-caption {
    color: var(--color-blanco);
    text-align: center;
    margin-top: var(--spacing-sm);
    font-size: var(--text-lg);
}

.lightbox-close {
    position: absolute;
    top: var(--spacing-md);
    right: var(--spacing-md);
    color: var(--color-blanco);
    font-size: var(--text-2xl);
    padding: var(--spacing-sm);
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-blanco);
    font-size: var(--text-2xl);
    padding: var(--spacing-sm);
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-prev {
    left: var(--spacing-md);
}

.lightbox-next {
    right: var(--spacing-md);
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.2);
}


/* ==========================================================================
   10. DISPONIBILIDAD / CALENDARIO
   ========================================================================== */

.availability {
    background: var(--color-crema);
}

/* Botón consultar disponibilidad */
.btn-consultar-disponibilidad {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--color-verde);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.25s ease;
    box-shadow: 0 4px 15px rgba(45, 106, 79, 0.3);
}

.btn-consultar-disponibilidad:hover {
    background: var(--color-rojo);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(193, 18, 31, 0.3);
}

.btn-consultar-disponibilidad svg {
    flex-shrink: 0;
}


/* ══ CALENDARIO ══ */
#calendario {
  font-family: var(--font-cuerpo);
}

/* Botones de navegación */
.fc .fc-button,
.fc .fc-button-primary {
  background: #2D6A4F !important;
  border-color: #2D6A4F !important;
  color: #fff !important;
  border-radius: 8px !important;
  box-shadow: none !important;
  outline: none !important;
  transition: background 0.2s ease !important;
}
.fc .fc-button:hover { background: #1a3d2b !important; }
.fc .fc-button:focus,
.fc .fc-button:active,
.fc .fc-button:not(:disabled):active {
  background: #2D6A4F !important;
  box-shadow: none !important;
  outline: none !important;
  -webkit-box-shadow: none !important;
}
.fc .fc-today-button {
  background: #6c757d !important;
  border-color: #6c757d !important;
}
.fc .fc-today-button:hover { background: #545b62 !important; }
.fc .fc-today-button:focus,
.fc .fc-today-button:active,
.fc .fc-today-button:not(:disabled):active {
  background: #6c757d !important;
  box-shadow: none !important;
  outline: none !important;
  -webkit-box-shadow: none !important;
}

/* Título centrado */
.fc .fc-toolbar-chunk:nth-child(2) {
  flex: 1;
  display: flex;
  justify-content: center;
}
.fc .fc-toolbar-title {
  font-family: 'DM Serif Display', serif !important;
  font-size: 1.2rem !important;
  color: #2D6A4F !important;
  cursor: pointer;
  transition: color 0.2s;
}
.fc .fc-toolbar-title:hover { color: #C1121F !important; }

/* Cabecera días semana */
.fc .fc-col-header-cell {
  background: #f8faf8;
  padding: 8px 0;
}
.fc .fc-col-header-cell-cushion {
  color: #2D6A4F;
  font-weight: 600;
  font-size: 0.82rem;
  text-decoration: none !important;
}

/* Días pasados */
.fc .fc-day-past {
  background: #f5f5f5 !important;
}
.fc .fc-day-past .fc-daygrid-day-number {
  color: #c0c0c0 !important;
  text-decoration: line-through !important;
}

/* Días futuros disponibles */
.fc .fc-day-future {
  background: rgba(82,183,136,0.06) !important;
}

/* Día actual */
.fc .fc-day-today {
  background: rgba(0,0,0,0.02) !important;
  border: 2px solid #111 !important;
  border-radius: 2px !important;
}
.fc .fc-day-today .fc-daygrid-day-number {
  background: #111 !important;
  color: #fff !important;
  border-radius: 50% !important;
  width: 26px !important;
  height: 26px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-weight: 900 !important;
  font-size: 0.8rem !important;
  margin: 3px 3px 0 0 !important;
  float: right !important;
  position: relative !important;
  z-index: 10 !important;
}
.fc .fc-day-today .fc-daygrid-day-top {
  position: relative !important;
  z-index: 10 !important;
}

/* Evento Ocupado */
.fc .fc-daygrid-event.evento-ocupado,
.fc .fc-h-event.evento-ocupado {
  background: #8B0000 !important;
  border-color: #5c0000 !important;
  opacity: 1 !important;
  z-index: 8 !important;
}
.fc .evento-ocupado .fc-event-main { background: #8B0000 !important; }
.fc .evento-ocupado .fc-event-title {
  color: #fff !important;
  font-weight: 700 !important;
  font-size: 0.8rem !important;
}


/* Responsive calendario */
@media (max-width: 768px) {
  .fc { font-size: 0.78rem !important; }
  .fc .fc-col-header-cell-cushion { font-size: 0.68rem !important; }
  .fc .fc-daygrid-day-number { font-size: 0.7rem !important; }
  .fc .fc-daygrid-day-frame { min-height: 48px !important; }
  .disponible-dot { width: 5px; height: 5px; }
}
@media (max-width: 480px) {
  .fc { font-size: 0.68rem !important; }
  .fc .fc-daygrid-day-frame { min-height: 38px !important; }
  .fc .fc-today-button { display: none !important; }
}

/* ════════════════════════════════════
   11. CONTACTO
   ════════════════════════════════════ */

.contact {
    background: var(--color-blanco);
}

.contact-grid {
    display: grid;
    gap: var(--spacing-xl);
}

.contact-intro {
    color: var(--color-texto-claro);
    margin-bottom: var(--spacing-lg);
    font-size: var(--text-lg);
}

/* Métodos de contacto */
.contact-methods {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.contact-method {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md);
    background: var(--color-gris-claro);
    border-radius: var(--radius-md);
    transition: transform var(--transition-base);
}

.contact-method:hover {
    transform: translateX(4px);
}

.contact-method i {
    font-size: var(--text-xl);
    color: var(--color-verde);
    width: 40px;
    text-align: center;
}

/* WhatsApp grande */
.contact-method.whatsapp-big {
    background: #25D366;
    color: var(--color-blanco);
}

.whatsapp-big i,
.whatsapp-big svg {
    color: var(--color-blanco);
    font-size: var(--text-3xl);
}

.method-label {
    display: block;
    font-size: var(--text-sm);
    opacity: 0.8;
}

.method-value {
    display: block;
    font-weight: 600;
    font-size: var(--text-lg);
}

.method-cta {
    display: block;
    font-size: var(--text-sm);
    margin-top: 4px;
    font-weight: 500;
}

/* Items clickeables */
.contacto-item--clickable {
    text-decoration: none;
    color: inherit;
    display: flex;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.contacto-item--clickable:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.10);
}

.contacto-icono {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
}

.contacto-info {
    display: flex;
    flex-direction: column;
}

/* Teléfono solo clickeable en móvil/tablet */
@media (min-width: 1025px) {
    .contacto-telefono-link {
        pointer-events: none !important;
        cursor: default !important;
        text-decoration: none !important;
    }
    .contacto-telefono-link:hover {
        transform: none !important;
        box-shadow: none !important;
        background-color: var(--color-gris-claro) !important;
    }
}

/* En mobile y tablet: sí es clickeable */
@media (max-width: 1024px) {
    .contacto-telefono-link {
        pointer-events: auto;
        cursor: pointer;
    }
    .contacto-telefono-link:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 16px rgba(0,0,0,0.10);
    }
}

/* Tooltip para teléfono en desktop */
.tel-tooltip {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.75);
    color: white;
    font-size: 0.75rem;
    padding: 5px 10px;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 10;
}

.tel-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: rgba(0,0,0,0.75);
}

.tel-tooltip.visible {
    opacity: 1;
}

/* Botón Ver en Google Maps */
.btn-ver-mapa {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--color-blanco);
    color: var(--color-verde);
    border: 2px solid var(--color-verde);
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: var(--text-base);
    text-decoration: none;
    transition: all 0.25s ease;
    margin-top: var(--spacing-md);
}

.btn-ver-mapa:hover {
    background: var(--color-verde);
    color: var(--color-blanco);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(45, 106, 79, 0.3);
}

/* Mapa */
.contact-map {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.contact-map iframe {
    width: 100%;
    height: 300px;
    border: none;
}


/* ==========================================================================
   12. FOOTER
   ========================================================================== */

.footer {
    background: var(--color-verde);
    color: var(--color-blanco);
    padding: var(--spacing-xl) 0;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.footer-content {
    text-align: center;
}

.footer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
    font-family: var(--font-titulo);
    font-size: var(--text-xl);
    margin-bottom: var(--spacing-md);
}

.footer-brand svg {
    flex-shrink: 0;
}

.footer-brand i {
    color: var(--color-verde-claro);
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

.footer-nav a {
    color: rgba(255, 255, 255, 0.8);
    font-size: var(--text-sm);
    transition: color var(--transition-fast);
}

.footer-nav a:hover {
    color: var(--color-blanco);
}

.footer-copy {
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.6);
}


/* ==========================================================================
   13. WHATSAPP FLOTANTE
   ========================================================================== */

.whatsapp-float {
    position: fixed;
    bottom: calc(var(--spacing-lg) + env(safe-area-inset-bottom));
    right: calc(var(--spacing-lg) + env(safe-area-inset-right));
    z-index: 1000;
    background: #25D366;
    color: var(--color-blanco);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-2xl);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    animation: pulse 2s infinite;
    transition: transform 0.2s ease;
}

.whatsapp-float:hover {
    transform: scale(1.05);
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4); }
    70% { box-shadow: 0 0 0 20px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.whatsapp-tooltip {
    position: absolute;
    right: 70px;
    background: var(--color-texto);
    color: var(--color-blanco);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-sm);
    font-size: var(--text-sm);
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
}

.whatsapp-tooltip::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-left-color: var(--color-texto);
}

.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
    visibility: visible;
}


/* ==========================================================================
   14. ANIMACIONES
   ========================================================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}


/* ==========================================================================
   15. MEDIA QUERIES (RESPONSIVE)
   ========================================================================== */

/* Tablet: 768px y más */
@media (min-width: 768px) {
    /* Tipografía */
    .section-title {
        font-size: var(--text-4xl);
    }

    .hero-title {
        font-size: clamp(2.5rem, 5vw, 4rem);
    }

    /* Navbar */
    .nav-toggle {
        display: none;
    }

    .nav-links {
        display: flex;
    }

    .nav-btn {
        display: inline-flex;
    }

    .nav-btn-mobile {
        display: none;
    }

    /* Hero */
    .hero-buttons {
        flex-direction: row;
        gap: var(--spacing-md);
    }

    /* About */
    .about-grid {
        grid-template-columns: 1fr 1fr;
        align-items: center;
    }

    .about-cards {
        grid-template-columns: repeat(4, 1fr);
    }

    /* Galería */
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Servicios */
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Contacto */
    .contact-grid {
        grid-template-columns: 1fr 1fr;
        align-items: start;
    }

    .contact-map iframe {
        height: 100%;
        min-height: 400px;
    }
}


/* Laptop/Desktop: 1024px y más */
@media (min-width: 1024px) {
    .container {
        padding: 0 var(--spacing-lg);
    }

    .hero {
        min-height: 700px;
    }

    /* Servicios en 4 columnas */
    .services-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    /* Galería en 3 columnas */
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}


/* Desktop grande: 1280px y más */
@media (min-width: 1280px) {
    .container {
        max-width: 1200px;
    }
}


/* Mobile: ajustes para pantallas pequeñas */
@media (max-width: 767px) {
    /* Hero en mobile */
    .hero-bg {
        background-attachment: scroll;
        transform: none;
    }

    /* Touch targets mínimo 44px */
    .nav-link,
    .btn,
    button {
        min-height: 44px;
        min-width: 44px;
    }

    /* Tamaños de texto reducidos */
    .hero-title {
        font-size: 2.2rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    /* Galería en 1 columna */
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    /* Mapa en mobile */
    .contact-map iframe {
        height: 300px;
    }
}


/* ==========================================================================
   ACCESSIBILITY Y UTILIDADES FINALES
   ========================================================================== */

/* Ocultar visualmente pero mantener para lectores de pantalla */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus visible para navegación con teclado */
a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--color-verde);
    outline-offset: 2px;
}

/* Reducir animaciones si el usuario lo prefiere */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ══ SELECTOR DE MES/AÑO ══ */
#smp-panel {
  display: none;
  position: absolute;
  z-index: 9999;
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  width: 270px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
  opacity: 0;
  transform: translateY(-6px) scale(0.97);
  transition: opacity 0.22s ease, transform 0.22s ease;
  font-family: 'DM Sans', sans-serif;
}
#smp-panel.on {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.smp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f0f0f0;
}
#smp-año {
  font-family: 'DM Serif Display', serif;
  font-size: 1.4rem;
  color: #2D6A4F;
}
.smp-header button {
  background: #f5f5f5;
  border: none;
  border-radius: 50%;
  width: 32px; height: 32px;
  font-size: 1.3rem;
  color: #2D6A4F;
  cursor: pointer;
  transition: background 0.2s;
}
.smp-header button:hover { background: #2D6A4F; color: #fff; }
.smp-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 6px;
  margin-bottom: 12px;
}
.smp-mes {
  background: #f8f8f6;
  border: 1.5px solid transparent;
  border-radius: 10px;
  padding: 10px 2px;
  font-size: 0.8rem;
  color: #3d3d3d;
  cursor: pointer;
  transition: all 0.18s;
  font-family: 'DM Sans', sans-serif;
}
.smp-mes:hover {
  background: #e8f5ee;
  border-color: #52B788;
  color: #2D6A4F;
}
.smp-mes.activo {
  background: #2D6A4F;
  border-color: #2D6A4F;
  color: #fff;
  font-weight: 600;
}
#smp-close {
  width: 100%;
  padding: 8px;
  background: none;
  border: 1.5px solid #e0e0e0;
  border-radius: 10px;
  font-size: 0.8rem;
  color: #888;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  transition: all 0.18s;
}
#smp-close:hover { border-color: #C1121F; color: #C1121F; }

/* Móvil — panel centrado en pantalla */
@media (max-width: 480px) {
  #smp-panel {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%,-50%) scale(0.97) !important;
    width: calc(100vw - 40px) !important;
    max-width: 300px !important;
  }
  #smp-panel.on {
    transform: translate(-50%,-50%) scale(1) !important;
  }
}


/* ==========================================================================
   ROSA EN EL TÍTULO HERO
   ========================================================================== */

.hero-rosa-svg {
    display: inline-block;
    vertical-align: middle;
    margin-right: 0.2em;
    margin-bottom: 0.12em;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.35));
    animation: rosa-aparece 0.8s ease both;
}

@keyframes rosa-aparece {
    from { opacity: 0; transform: scale(0.6) rotate(-20deg); }
    to   { opacity: 1; transform: scale(1) rotate(0deg); }
}


/* ==========================================================================
   CALENDARIO — TARJETA Y ERROR
   ========================================================================== */

.calendar-card {
    background: var(--color-blanco);
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
    position: relative;
}

.calendar-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-verde), var(--color-verde-claro), var(--color-rojo));
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.cal-error {
    text-align: center;
    padding: 48px 24px;
    color: var(--color-texto-claro);
}

.cal-error i {
    font-size: 2.5rem;
    color: var(--color-rojo);
    display: block;
    margin-bottom: 1rem;
}


/* ==========================================================================
   BANNER DE COOKIES
   ========================================================================== */

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1500;
    background: rgba(26, 26, 26, 0.96);
    color: #fff;
    padding: 14px 20px calc(14px + env(safe-area-inset-bottom));
    backdrop-filter: blur(8px);
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
}

.cookie-banner.visible {
    transform: translateY(0);
}

.cookie-banner-inner {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.cookie-text {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.88);
    line-height: 1.5;
    flex: 1;
    min-width: 200px;
}

.cookie-text i {
    color: #f5a623;
    margin-right: 6px;
}

.cookie-text strong {
    color: #fff;
}

.cookie-link {
    background: none;
    border: none;
    color: var(--color-verde-claro);
    text-decoration: underline;
    cursor: pointer;
    font-size: inherit;
    padding: 0;
    font-family: inherit;
}

.cookie-link:hover {
    color: #fff;
}

.cookie-btn {
    background: var(--color-verde-claro);
    color: var(--color-verde-oscuro);
    border: none;
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.875rem;
    cursor: pointer;
    white-space: nowrap;
    font-family: var(--font-cuerpo);
    transition: background 0.2s ease, transform 0.15s ease;
    flex-shrink: 0;
}

.cookie-btn:hover {
    background: #fff;
    transform: translateY(-1px);
}


/* ==========================================================================
   MODAL DE POLÍTICA DE PRIVACIDAD
   ========================================================================== */

.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2500;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay.visible {
    display: flex;
}

.modal-card {
    background: var(--color-blanco);
    border-radius: var(--radius-lg);
    max-width: 680px;
    width: 100%;
    max-height: 88vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: modal-entra 0.3s ease;
}

@keyframes modal-entra {
    from { opacity: 0; transform: scale(0.95) translateY(16px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px 16px;
    border-bottom: 1px solid #eee;
    flex-shrink: 0;
}

.modal-header h3 {
    font-family: var(--font-titulo);
    font-size: 1.3rem;
    color: var(--color-verde);
    margin: 0;
}

.modal-close {
    background: #f5f5f5;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    color: var(--color-texto);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
    flex-shrink: 0;
}

.modal-close:hover {
    background: var(--color-rojo);
    color: #fff;
}

.modal-body {
    padding: 20px 24px 24px;
    overflow-y: auto;
    flex: 1;
    font-size: 0.9rem;
    line-height: 1.7;
    color: #444;
}

.modal-updated {
    font-size: 0.8rem;
    color: #999;
    margin-bottom: 16px;
    font-style: italic;
}

.modal-body h4 {
    font-family: var(--font-titulo);
    color: var(--color-verde);
    font-size: 1rem;
    margin: 20px 0 6px;
}

.modal-body h4:first-of-type {
    margin-top: 0;
}

.modal-body ul {
    list-style: disc;
    padding-left: 20px;
    margin: 6px 0 12px;
}

.modal-body li {
    margin-bottom: 4px;
    color: #444;
}

.modal-body a {
    color: var(--color-verde);
    text-decoration: underline;
}

.modal-body a:hover {
    color: var(--color-rojo);
}

.modal-actions {
    margin-top: 24px;
    text-align: center;
}

.modal-actions .cookie-btn {
    background: var(--color-verde);
    color: #fff;
    padding: 12px 32px;
    font-size: 1rem;
}

.modal-actions .cookie-btn:hover {
    background: var(--color-verde-oscuro);
}


/* ==========================================================================
   FOOTER — ENLACES LEGALES
   ========================================================================== */

.footer-legal {
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.footer-legal-link {
    background: none;
    border: none;
    color: rgba(255,255,255,0.5);
    font-size: 0.78rem;
    cursor: pointer;
    font-family: var(--font-cuerpo);
    padding: 4px;
    transition: color 0.2s ease;
}

.footer-legal-link:hover {
    color: rgba(255,255,255,0.9);
    text-decoration: underline;
}

.footer-legal-sep {
    color: rgba(255,255,255,0.3);
    font-size: 0.78rem;
}


/* ==========================================================================
   RESPONSIVE AJUSTES NUEVOS
   ========================================================================== */

@media (max-width: 600px) {
    .cookie-banner-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    .cookie-btn {
        width: 100%;
        text-align: center;
    }
    .hero-rosa-svg {
        width: 36px;
        height: 36px;
    }
    .modal-card {
        border-radius: var(--radius-md);
    }
    .modal-header, .modal-body {
        padding: 16px 18px;
    }
}
