/* ============================================
   CECI BODAS — Global Styles
   Nueva paleta: Durazno + Crema cálida + Dorado secundario
   ============================================ */

/*
  PALETA:
  --canvas:        #FEF8F5  (crema con toque durazno)
  --surface:       #F7EDE8  (durazno claro, secciones)
  --primary:       #1C100A  (marrón oscuro cálido)
  --peach:         #CB7D68  (durazno principal)
  --peach-hover:   #A8604D  (durazno oscuro)
  --peach-light:   #E8A898  (durazno suave)
  --peach-blush:   #FAF0EC  (durazno muy claro)
  --gold:          #B89060  (dorado secundario cálido)
  --gray:          #7A6A62  (gris cálido)
  --dark:          #120A08  (oscuro cálido para cards)
*/

/* ── PRELOADER ─────────────────────────────── */
#preloader {
    position: fixed;
    inset: 0;
    background-color: #FEF8F5;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.9s cubic-bezier(0.76, 0, 0.24, 1),
                visibility 0.9s cubic-bezier(0.76, 0, 0.24, 1);
}

.preloader-text-container {
    position: relative;
    overflow: hidden;
    user-select: none;
    text-align: center;
}

.preloader-bg-text {
    font-family: 'Playfair Display', serif;
    font-size: 2.25rem;
    font-weight: 300;
    letter-spacing: 0.4em;
    color: rgba(28, 16, 10, 0.1);
    text-transform: uppercase;
}

@media (min-width: 768px) {
    .preloader-bg-text { font-size: 3.5rem; }
}

.preloader-fill-text {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    overflow: hidden;
    white-space: nowrap;
    transition: width 2s cubic-bezier(0.25, 1, 0.5, 1);
}

.preloader-fg-text {
    font-family: 'Playfair Display', serif;
    font-size: 2.25rem;
    font-weight: 300;
    letter-spacing: 0.4em;
    color: #CB7D68;   /* Durazno */
    text-transform: uppercase;
}

@media (min-width: 768px) {
    .preloader-fg-text { font-size: 3.5rem; }
}

/* ── FLOATING NAVBAR ─────────────────────────
   Más pequeña, centrada, efecto glass máximo
   ─────────────────────────────────────────── */
#main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 50;
    padding-left: 1rem;
    padding-right: 1rem;
    padding-top: 1.25rem;
    padding-bottom: 0;
    transition: all 0.5s cubic-bezier(0.76, 0, 0.24, 1);
    display: flex;
    justify-content: center;
}

@media (min-width: 768px) {
    #main-header {
        padding-left: 3rem;
        padding-right: 3rem;
        padding-top: 1.5rem;
    }
}

@media (min-width: 1280px) {
    #main-header {
        padding-left: 6rem;
        padding-right: 6rem;
    }
}

#navbar-container {
    max-width: 900px;
    width: 100%;
    background: rgba(254, 248, 245, 0.68);  /* Canvas color peachy */
    backdrop-filter: blur(28px) saturate(180%) brightness(1.04);
    -webkit-backdrop-filter: blur(28px) saturate(180%) brightness(1.04);
    border: 1px solid rgba(203, 125, 104, 0.15);  /* Peach border */
    box-shadow:
        0 4px 24px -8px rgba(28, 16, 10, 0.07),
        inset 0 1px 0 rgba(255, 255, 255, 0.55);
    border-radius: 9999px !important;
    padding: 0.6rem 1.5rem;
    transition: all 0.5s cubic-bezier(0.76, 0, 0.24, 1);
}

@media (min-width: 768px) {
    #navbar-container {
        padding: 0.75rem 2.5rem;
    }
}

#main-header.scrolled {
    padding-top: 0.75rem;
}

#main-header.scrolled #navbar-container {
    background: rgba(254, 248, 245, 0.88);
    backdrop-filter: blur(32px) saturate(200%) brightness(1.03);
    -webkit-backdrop-filter: blur(32px) saturate(200%) brightness(1.03);
    box-shadow:
        0 8px 32px -12px rgba(203, 125, 104, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.65);
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

@media (min-width: 768px) {
    #main-header.scrolled #navbar-container {
        padding-top: 0.6rem;
        padding-bottom: 0.6rem;
    }
}

/* ── CINEMATIC HERO ──────────────────────────
   Tamaños refinados y elegantes
   ─────────────────────────────────────────── */
.hero-gradient-overlay {
    background: linear-gradient(
        to bottom,
        rgba(28, 16, 10, 0.15) 0%,
        rgba(28, 16, 10, 0.05) 30%,
        rgba(28, 16, 10, 0.45) 65%,
        rgba(28, 16, 10, 0.82) 100%
    );
}

.hero-headline {
    font-family: 'Playfair Display', serif;
    font-weight: 300;
    line-height: 1.08;
    letter-spacing: 0.01em;
    text-shadow: 0 2px 24px rgba(28, 16, 10, 0.5);
}

.hero-headline-top {
    font-size: clamp(1.75rem, 4vw, 3rem);
    color: rgba(255, 255, 255, 0.92);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-weight: 300;
}

.hero-headline-gold {
    font-size: clamp(2.5rem, 6.5vw, 5rem);
    color: #E8B4A0;   /* Durazno claro en modo oscuro = más legible */
    text-shadow: 0 2px 40px rgba(203, 125, 104, 0.35);
    font-style: italic;
}

.hero-parallax-img {
    transform: scale(1.04);
    transition: transform 10s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.loaded .hero-parallax-img {
    transform: scale(1);
}

.hero-cta-btn {
    display: inline-block;
    padding: 0.7rem 2rem;
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.45s cubic-bezier(0.76, 0, 0.24, 1);
    font-size: 10px;
    letter-spacing: 0.28em;
    border-radius: 9999px !important;
}

.hero-cta-btn:hover {
    border-color: #E8B4A0;
    color: #E8B4A0;
    background: rgba(203, 125, 104, 0.08);
    box-shadow: 0 0 20px rgba(203, 125, 104, 0.15);
}

/* ── STACKED CARDS — scroll-driven deck ──────
   sc-scene  → crea la distancia de scroll (300vh)
   sc-pin    → contenedor sticky
   sc-card   → cartas absolutamente apiladas
   ─────────────────────────────────────────── */

.sc-scene {
    position: relative;
    height: 300vh;
}

.sc-pin {
    position: sticky;
    top: 70px;
    height: calc(100vh - 70px);
    overflow: hidden;
}

.sc-card {
    position: absolute;
    inset: 0;
    overflow: hidden;
    transform-origin: top center;
    will-change: transform, opacity;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: 20px !important;
    /* Card shadow for depth */
    box-shadow:
        0 -2px 0 rgba(255,255,255,0.08),
        0 30px 80px rgba(28, 16, 10, 0.2);
}

/* Cards start: first visible, rest below */
.sc-card:first-child { transform: translateY(0%); }
.sc-card:not(:first-child) { transform: translateY(100%); }

.sc-card-body {
    height: 100%;
    width: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

/* Dot indicator */
.sc-dots {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    z-index: 100;
    pointer-events: none;
}

.sc-dot {
    width: 3px;
    height: 4px;
    background: rgba(28, 16, 10, 0.2);
    border-radius: 9999px;
    transition: height 0.4s cubic-bezier(0.76,0,0.24,1),
                background 0.4s cubic-bezier(0.76,0,0.24,1);
}

/* Mobile: disable stacked cards */
@media (max-width: 767px) {
    .sc-scene { height: auto; }
    .sc-pin {
        position: relative;
        height: auto;
        overflow: visible;
        top: 0;
    }
    .sc-card {
        position: relative;
        transform: none !important;
        opacity: 1 !important;
        filter: none !important;
        height: auto;
        min-height: 0;
        box-shadow: none;
    }
    .sc-dots { display: none; }
}

/* ── ANIMATION SYSTEM ────────────────────────
   Revelaciones premium de scroll
   ─────────────────────────────────────────── */

.reveal-on-scroll {
    will-change: transform, opacity;
}

.reveal-fade {
    opacity: 0;
    transition: opacity 1s cubic-bezier(0.76, 0, 0.24, 1);
}

.reveal-up {
    opacity: 0;
    transform: translateY(24px);
    transition:
        opacity 0.9s cubic-bezier(0.76, 0, 0.24, 1),
        transform 0.9s cubic-bezier(0.76, 0, 0.24, 1);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-28px);
    transition:
        opacity 1s cubic-bezier(0.76, 0, 0.24, 1),
        transform 1s cubic-bezier(0.76, 0, 0.24, 1);
}

.reveal-right {
    opacity: 0;
    transform: translateX(28px);
    transition:
        opacity 1s cubic-bezier(0.76, 0, 0.24, 1),
        transform 1s cubic-bezier(0.76, 0, 0.24, 1);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.97);
    transition:
        opacity 1.1s cubic-bezier(0.76, 0, 0.24, 1),
        transform 1.1s cubic-bezier(0.76, 0, 0.24, 1);
}

.reveal-blur {
    opacity: 0;
    filter: blur(6px);
    transform: translateY(10px);
    transition:
        opacity 1.2s cubic-bezier(0.76, 0, 0.24, 1),
        filter 1.2s cubic-bezier(0.76, 0, 0.24, 1),
        transform 1.2s cubic-bezier(0.76, 0, 0.24, 1);
}

.reveal-clip {
    clip-path: inset(100% 0 0 0);
    transition: clip-path 1.2s cubic-bezier(0.76, 0, 0.24, 1);
}

.reveal-clip-x {
    clip-path: inset(0 100% 0 0);
    transition: clip-path 1s cubic-bezier(0.76, 0, 0.24, 1);
}

.reveal-on-scroll.is-visible {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    clip-path: inset(0 0 0 0) !important;
}

.delay-100  { transition-delay: 80ms; }
.delay-200  { transition-delay: 160ms; }
.delay-300  { transition-delay: 240ms; }
.delay-400  { transition-delay: 320ms; }
.delay-500  { transition-delay: 400ms; }
.delay-600  { transition-delay: 480ms; }
.delay-700  { transition-delay: 560ms; }

/* ── BOTONES ─────────────────────────────────── */
.btn-primary {
    border: 1px solid #1C100A;
    background: transparent;
    color: #1C100A;
    transition: all 0.45s cubic-bezier(0.76, 0, 0.24, 1);
    position: relative;
    overflow: hidden;
    z-index: 1;
    border-radius: 9999px !important;
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background-color: #1C100A;
    z-index: -1;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.45s cubic-bezier(0.76, 0, 0.24, 1);
}

.btn-primary:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.btn-primary:hover {
    color: #FEF8F5 !important;
    border-color: #1C100A;
}

/* Botón durazno */
.btn-peach {
    border: 1px solid #CB7D68;
    background: #CB7D68;
    color: #FEF8F5;
    transition: all 0.45s cubic-bezier(0.76, 0, 0.24, 1);
    position: relative;
    overflow: hidden;
    border-radius: 9999px !important;
}

.btn-peach:hover {
    background: #A8604D;
    border-color: #A8604D;
    box-shadow: 0 8px 30px rgba(203, 125, 104, 0.3);
}

/* Ghost underline link */
.link-ghost {
    position: relative;
    display: inline-block;
}

.link-ghost::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -2px;
    left: 0;
    background-color: #CB7D68;  /* Durazno */
    transition: width 0.4s cubic-bezier(0.76, 0, 0.24, 1);
}

.link-ghost:hover::after { width: 100%; }

/* ── EFECTOS DE IMAGEN ──────────────────────── */
.zoom-image-hover { overflow: hidden; }

.zoom-image-hover img {
    transition: transform 1s cubic-bezier(0.76, 0, 0.24, 1);
}

.zoom-image-hover:hover img {
    transform: scale(1.04);
}

/* ── LAYOUT ─────────────────────────────────── */
.asymmetric-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 32px;
}

.image-overlay-gradient {
    background: linear-gradient(to top, rgba(28,16,10,0.75) 0%, rgba(28,16,10,0) 100%);
}

/* ── FORMULARIOS ────────────────────────────── */
input:focus ~ label,
textarea:focus ~ label {
    color: #CB7D68 !important;  /* Durazno */
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px #FEF8F5 inset !important;
    -webkit-text-fill-color: #1C100A !important;
    transition: background-color 5000s ease-in-out 0s;
}

/* ── BORDE FIRMA ────────────────────────────── */
.signature-border {
    border: 1px solid rgba(203, 125, 104, 0.3);
    box-shadow: 0 0 30px rgba(203, 125, 104, 0.06);
}

/* ── LÍNEA DIVISORA DURAZNO ─────────────────── */
.gold-line {
    display: block;
    height: 1px;
    background: linear-gradient(to right, transparent, #CB7D68, transparent);
    opacity: 0.5;
}

/* ── HOVER MAGNÉTICO ────────────────────────── */
.magnetic {
    transition: transform 0.3s cubic-bezier(0.76, 0, 0.24, 1);
}
