/* ==========================================
   PETIT COMITÉ — TEMA MÁRMOL / BRONCE
   css/main.css
   ========================================== */

/* --- Variables --- */
:root {
    /* Mármol */
    --marble-white:    #faf7f2;
    --marble-cream:    #f0ebe2;
    --marble-vein:     #d4c5a9;

    /* Bronce / Oro */
    --gold:            #b8963e;
    --gold-light:      #d4b265;
    --gold-dark:       #8a6d1f;
    --bronze:          #7a5c2e;
    --bronze-dark:     #4a3520;

    /* Oscuros */
    --dark:            #1a130d;
    --dark-warm:       #2c1f14;
    --dark-card:       #3d2b1f;

    /* Texto */
    --text-dark:       #2c1f14;
    --text-body:       #4a3d32;
    --text-muted:      #7a6d5f;
    --text-light:      #f0ebe2;
    --text-light-muted:#bfb5a3;

    /* Bordes */
    --border-light:    #d4c5a9;
    --border-dark:     #4a3520;

    /* Fonts */
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body:    'Cormorant Garamond', Garamond, serif;

    /* Layout */
    --section-padding: 100px 0;
    --container-width: 1100px;
    --container-padding: 0 24px;
}

/* --- Reset --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}
body {
    font-family: var(--font-body);
    background: var(--marble-white);
    color: var(--text-body);
    font-size: 19px;
    line-height: 1.75;
    overflow-x: hidden;
    max-width: 100%;
}
img {
    max-width: 100%;
    height: auto;
    display: block;
}
a {
    color: var(--gold-dark);
    text-decoration: none;
    transition: color 0.3s;
}
a:hover {
    color: var(--gold);
}

/* --- Container --- */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: var(--container-padding);
}

/* --- Section base --- */
.section {
    padding: var(--section-padding);
    position: relative;
}

/* Fondo mármol con textura sutil */
.section-marble {
    background:
        radial-gradient(ellipse at 20% 50%, rgba(212, 197, 169, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(212, 197, 169, 0.1) 0%, transparent 40%),
        radial-gradient(ellipse at 60% 80%, rgba(212, 197, 169, 0.08) 0%, transparent 45%),
        var(--marble-white);
    color: var(--text-body);
}

/* Crema suave */
.section-cream {
    background: var(--marble-cream);
    color: var(--text-body);
}

/* Bronce oscuro */
.section-bronze {
    background:
        linear-gradient(170deg, var(--dark) 0%, var(--dark-warm) 100%);
    color: var(--text-light);
}

/* --- Section headers --- */
.section-label {
    font-family: var(--font-body);
    font-size: 0.8rem;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 16px;
    font-weight: 500;
}
.section-bronze .section-label {
    color: var(--gold-light);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4.5vw, 2.8rem);
    font-weight: 400;
    line-height: 1.25;
    margin-bottom: 24px;
    color: var(--text-dark);
}
.section-bronze .section-title {
    color: var(--marble-cream);
}

.section-text {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    line-height: 1.8;
}
.section-bronze .section-text {
    color: var(--text-light-muted);
}

/* ==========================================
   HEADER
   ========================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 12px 0;
    transition: all 0.4s ease;
}
.header.scrolled {
    background: rgba(250, 247, 242, 0.97);
    backdrop-filter: blur(12px);
    padding: 6px 0;
    box-shadow: 0 2px 30px rgba(0,0,0,0.06);
}
.header.scrolled .header-logo-desktop {
    height: 50px !important;
}
.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo */
.header-logo {
    display: flex;
    align-items: center;
}
.header-logo-img {
    width: auto !important;
    height: auto;
    transition: height 0.4s ease;
}
.header-logo-desktop {
    height: 80px !important;
    display: block;
}
.header-logo-mobile {
    display: none;
}

@media (max-width: 767px) {
    .header-logo-desktop {
        display: none !important;
    }
    .header-logo-mobile {
        height: 80px !important;
        display: block;
    }
}
.header-logo-text {
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: var(--gold-dark);
    letter-spacing: 3px;
    font-weight: 400;
    line-height: 1.2;
}
.header-logo-text span {
    display: block;
    font-family: var(--font-body);
    font-size: 0.6rem;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-top: 1px;
}

/* Desktop nav */
.nav-links {
    display: none;
    list-style: none;
    gap: 28px;
    align-items: center;
}
.nav-links a {
    font-family: var(--font-body);
    font-size: 0.82rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 500;
    transition: color 0.3s;
}
.nav-links a:hover {
    color: var(--gold);
}
.nav-cta {
    padding: 8px 24px;
    border: 1px solid var(--gold);
    color: var(--gold) !important;
    transition: all 0.3s;
}
.nav-cta:hover {
    background: var(--gold);
    color: var(--marble-white) !important;
}

/* Hamburger */
.nav-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 5px;
}
.nav-toggle span {
    display: block;
    width: 24px;
    height: 1.5px;
    background: var(--bronze);
    transition: all 0.3s;
}
.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(4px, 5px);
}
.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}
.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -5px);
}

/* Mobile menu */
.nav-mobile {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(26, 19, 13, 0.97);
    z-index: 99;
    justify-content: center;
    align-items: center;
}
.nav-mobile.active {
    display: flex;
}
.nav-mobile ul {
    list-style: none;
    text-align: center;
}
.nav-mobile li {
    margin-bottom: 28px;
}
.nav-mobile a {
    font-family: var(--font-display);
    font-size: 1.8rem;
    color: var(--marble-cream);
    letter-spacing: 2px;
    transition: color 0.3s;
}
.nav-mobile a:hover {
    color: var(--gold-light);
}

/* ==========================================
   HERO
   ========================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}
.hero-bg {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: var(--dark);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: opacity 0.6s ease;
}
.hero-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background:
        linear-gradient(170deg, rgba(28,20,12,0.7) 0%, rgba(44,31,20,0.55) 50%, rgba(60,40,20,0.5) 100%),
        radial-gradient(ellipse at 30% 40%, rgba(184, 150, 62, 0.08) 0%, transparent 50%);
}
.hero-content {
    position: relative;
    z-index: 2;
    padding: 0 24px;
    max-width: 780px;
}
.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 6.5vw, 4rem);
    font-weight: 400;
    line-height: 1.15;
    margin-bottom: 24px;
    color: var(--marble-cream);
}
.hero-title em {
    font-style: italic;
    color: var(--gold-light);
}
.hero-subtitle {
    font-family: var(--font-body);
    font-size: clamp(1.05rem, 2.2vw, 1.25rem);
    color: var(--text-light-muted);
    margin-bottom: 40px;
    line-height: 1.8;
}
.hero-cta {
    display: inline-block;
    padding: 16px 48px;
    border: 1px solid var(--gold);
    color: var(--gold-light);
    font-family: var(--font-body);
    font-size: 0.85rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 500;
    transition: all 0.4s ease;
}
.hero-cta:hover {
    background: var(--gold);
    color: var(--dark);
    border-color: var(--gold);
}
.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}
.hero-scroll span {
    display: block;
    width: 1px;
    height: 50px;
    background: linear-gradient(to bottom, var(--gold), transparent);
}

/* ==========================================
   EL ESPACIO
   ========================================== */
.espacio-layout {
    max-width: 720px;
    margin: 0 auto;
}
.espacio-body {
    margin-top: 16px;
}
.espacio-body p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    line-height: 1.85;
    color: var(--text-body);
}
.espacio-body p:last-child {
    margin-bottom: 0;
}

/* --- Fotos del espacio (Google Drive) --- */
.espacio-fotos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 12px;
    margin: 48px 0;
}
.espacio-fotos:empty {
    display: none;
}
.espacio-foto {
    display: block;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: var(--marble-cream);
    border: 1px solid var(--border-light);
    cursor: pointer;
}
.espacio-foto img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease, opacity 0.4s ease;
    opacity: 0;
}
.espacio-foto img.loaded {
    opacity: 1;
}
.espacio-foto:hover img {
    transform: scale(1.05);
}
.espacio-ver-mas {
    display: block;
    margin: 24px auto 0;
    padding: 12px 32px;
    background: transparent;
    border: 1px solid var(--gold);
    color: var(--gold);
    font-family: var(--font-body);
    font-size: 0.95rem;
    letter-spacing: 1px;
    cursor: pointer;
    transition: background 0.3s, color 0.3s;
}
.espacio-ver-mas:hover {
    background: var(--gold);
    color: var(--marble-white);
}

/* ==========================================
   POR QUÉ AQUÍ
   ========================================== */
.porque-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 48px;
}
.porque-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(184, 150, 62, 0.15);
    padding: 36px 32px;
    position: relative;
    transition: border-color 0.3s;
}
.porque-card:hover {
    border-color: rgba(184, 150, 62, 0.35);
}
.porque-card-accent {
    width: 32px;
    height: 2px;
    background: var(--gold);
    margin-bottom: 20px;
}
.porque-card h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--marble-cream);
    margin-bottom: 12px;
}
.porque-card p {
    font-size: 1rem;
    line-height: 1.75;
    color: var(--text-light-muted);
}

/* ==========================================
   EVENTOS
   ========================================== */
.eventos-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 48px;
}
.evento-card {
    background: var(--marble-cream);
    border: 1px solid var(--border-light);
    border-top: 2px solid var(--gold);
    transition: box-shadow 0.4s, transform 0.4s;
}
.evento-card:hover {
    box-shadow: 0 8px 40px rgba(0,0,0,0.07);
    transform: translateY(-2px);
}
.evento-card-inner {
    padding: 40px 32px;
}
.evento-card h3 {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 400;
    color: var(--text-dark);
    margin-bottom: 16px;
    position: relative;
    padding-bottom: 16px;
}
.evento-card h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 28px;
    height: 2px;
    background: var(--gold);
}
.evento-card p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-muted);
}

/* ==========================================
   PAQUETES
   ========================================== */
.paquetes-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 48px;
}
.paquete {
    background: var(--marble-white);
    border: 1px solid var(--border-light);
    padding: 40px 32px;
    transition: box-shadow 0.3s;
}
.paquete:hover {
    box-shadow: 0 4px 24px rgba(0,0,0,0.05);
}
.paquete-featured {
    border-color: var(--gold);
    box-shadow: 0 4px 24px rgba(184, 150, 62, 0.1);
    position: relative;
}
.paquete-featured::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gold-dark), var(--gold-light), var(--gold-dark));
}
.paquete-name {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--text-dark);
    margin-bottom: 8px;
}
.paquete-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 24px;
    line-height: 1.6;
}
.paquete-includes {
    list-style: none;
}
.paquete-includes li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(212, 197, 169, 0.4);
    font-size: 0.95rem;
    color: var(--text-body);
    display: flex;
    align-items: center;
}
.paquete-includes li:last-child {
    border-bottom: none;
}
.paquete-includes li::before {
    content: '—';
    color: var(--gold);
    margin-right: 12px;
    font-weight: 600;
}

/* ==========================================
   GALERÍA / REDES
   ========================================== */

/* ==========================================
   CALENDARIO
   ========================================== */
.calendario-wrap {
    margin-top: 48px;
    background: var(--marble-white);
    padding: 24px;
    border: 1px solid var(--border-light);
}
/* FullCalendar overrides — tema claro */
.fc {
    font-family: var(--font-body) !important;
}
.fc .fc-toolbar-title {
    font-family: var(--font-display) !important;
    font-size: 1.2rem !important;
    font-weight: 400 !important;
    color: var(--text-dark) !important;
}
.fc .fc-button {
    background: transparent !important;
    border: 1px solid var(--border-light) !important;
    color: var(--text-muted) !important;
    font-family: var(--font-body) !important;
    font-size: 0.8rem !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
}
.fc .fc-button:hover {
    border-color: var(--gold) !important;
    color: var(--gold-dark) !important;
}
.fc .fc-button-active {
    background: var(--gold) !important;
    border-color: var(--gold) !important;
    color: var(--marble-white) !important;
}
.fc .fc-daygrid-day-number {
    color: var(--text-muted) !important;
    font-size: 0.85rem !important;
}
.fc .fc-col-header-cell-cushion {
    color: var(--gold-dark) !important;
    font-size: 0.75rem !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
}
.fc .fc-daygrid-day.fc-day-today {
    background: rgba(184, 150, 62, 0.08) !important;
}
.fc .fc-event {
    border: none !important;
    border-radius: 2px !important;
    font-size: 0.8rem !important;
    padding: 2px 6px !important;
    background: var(--gold) !important;
    color: var(--marble-white) !important;
}
.fc th, .fc td {
    border-color: var(--border-light) !important;
}
.fc .fc-scrollgrid {
    border-color: var(--border-light) !important;
}

/* ==========================================
   CONTACTO
   ========================================== */
.section-bronze .section-text {
    max-width: 600px;
    margin-bottom: 16px;
}
.contacto-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    margin-top: 40px;
}
.contacto-form {
    max-width: 560px;
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.form-group {
    margin-bottom: 18px;
}
.form-group label {
    display: block;
    font-family: var(--font-body);
    font-size: 0.78rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-light-muted);
    margin-bottom: 6px;
    font-weight: 500;
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(184, 150, 62, 0.2);
    color: var(--text-light);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.3s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--gold);
}
.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(191, 181, 163, 0.5);
}
.form-group textarea {
    resize: vertical;
    min-height: 90px;
}
.form-group select {
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}
.form-submit {
    display: inline-block;
    padding: 14px 48px;
    background: var(--gold);
    color: var(--dark);
    border: none;
    font-family: var(--font-body);
    font-size: 0.85rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}
.form-submit:hover {
    background: var(--gold-light);
}
.form-msg {
    margin-top: 16px;
    font-size: 0.9rem;
    display: none;
}
.form-msg.success {
    color: #8bc48b;
    display: block;
}
.form-msg.error {
    color: #d48b8b;
    display: block;
}

.contacto-info {
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.contacto-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}
.contacto-icon {
    font-size: 1.1rem;
    flex-shrink: 0;
    width: 24px;
    text-align: center;
}
.contacto-item strong {
    color: var(--marble-cream);
    display: block;
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 400;
    margin-bottom: 2px;
}
.contacto-item p {
    font-size: 0.95rem;
    color: var(--text-light-muted);
    line-height: 1.5;
}
.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    background: #25d366;
    color: #fff;
    font-family: var(--font-body);
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 500;
    transition: background 0.3s;
    margin-top: 8px;
}
.btn-whatsapp:hover {
    background: #1da851;
    color: #fff;
}

/* ==========================================
   DESDE LA MESA (Blog)
   ========================================== */
.blog-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 48px;
}
.blog-post {
    background: var(--marble-white);
    border: 1px solid var(--border-light);
    padding: 32px;
    transition: box-shadow 0.3s, transform 0.3s;
    display: block;
    color: var(--text-body);
}
.blog-post:hover {
    box-shadow: 0 8px 32px rgba(0,0,0,0.06);
    transform: translateY(-2px);
    color: var(--text-body);
}
.blog-post-date {
    font-size: 0.78rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 8px;
}
.blog-post h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--text-dark);
    margin-bottom: 12px;
}
.blog-post p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-muted);
}
.blog-post-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    margin-bottom: 16px;
}
.blog-empty {
    text-align: center;
    color: var(--text-muted);
    font-size: 1rem;
    padding: 48px 0;
}

/* Porque cards dentro de sección mármol */
.section-marble .porque-grid {
    margin-top: 48px;
}
.section-marble .porque-card {
    background: rgba(44, 31, 20, 0.04);
    border: 1px solid var(--border-light);
}
.section-marble .porque-card:hover {
    border-color: var(--gold);
}
.section-marble .porque-card h3 {
    color: var(--text-dark);
}
.section-marble .porque-card p {
    color: var(--text-muted);
}

/* ==========================================
   FOOTER
   ========================================== */
.footer {
    padding: 48px 0;
    background: var(--dark);
    text-align: center;
}
.footer-logo {
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: var(--gold);
    letter-spacing: 3px;
    margin-bottom: 4px;
}
.footer-tagline {
    font-family: var(--font-body);
    font-size: 0.65rem;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: var(--text-light-muted);
    margin-bottom: 24px;
}
.footer-copy {
    font-size: 0.8rem;
    color: var(--text-light-muted);
}

/* ==========================================
   GSAP ANIMATION STATES
   ========================================== */
[data-animate] {
    opacity: 0;
}
[data-animate="stagger"] {
    opacity: 1;
}
[data-animate="hero"] {
    opacity: 0;
    transform: translateY(30px);
}
[data-animate="fade-up"] {
    opacity: 0;
    transform: translateY(40px);
}
[data-animate="stagger"] > * {
    opacity: 0;
    transform: translateY(30px);
}

/* ==========================================
   RESPONSIVE — TABLET (768px+)
   ========================================== */
@media (min-width: 768px) {
    .porque-grid {
        grid-template-columns: 1fr 1fr;
    }
    .eventos-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .contacto-grid {
        grid-template-columns: 1.2fr 0.8fr;
        align-items: start;
    }
}

/* ==========================================
   RESPONSIVE — DESKTOP (1024px+)
   ========================================== */
@media (min-width: 1024px) {
    .nav-links {
        display: flex;
    }
    .nav-toggle {
        display: none;
    }
}

/* ==========================================
   RESPONSIVE — MOBILE
   ========================================== */
@media (max-width: 767px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}
