/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Inter', sans-serif;
    color: #1c1c1c;
    background-color: #b3cdb6;
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

/* ===== DESIGN TOKENS ===== */
:root {
    --bg-primary: #b3cdb6;
    --bg-white: #ffffff;
    --bg-green-light: #dce8dd;
    --btn-primary: #778c43;
    --btn-hover: #96ac60;
    --text-dark: #1c1c1c;
    --text-white: #ffffff;
    --text-muted: #4a4a4a;
    --overlay-green: rgba(120, 140, 67, 0.45);
    --overlay-dark: rgba(28, 28, 28, 0.35);
    --shadow-soft: 0 4px 24px rgba(0, 0, 0, 0.08);
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.1);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;
    --transition: 0.3s ease;
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-sans: 'Inter', system-ui, sans-serif;
}

/* ===== TYPOGRAPHY ===== */
h1,
h2,
h3,
h4 {
    font-family: var(--font-serif);
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-dark);
}

p {
    font-family: var(--font-sans);
    line-height: 1.8;
}

/* ===== UTILITY CLASSES ===== */
.section {
    padding: 80px 24px;
    width: 100%;
}

.section--white {
    background-color: var(--bg-white);
}

.section--green {
    background-color: var(--bg-primary);
}

.section--green-light {
    background-color: var(--bg-green-light);
}

.section-content {
    max-width: 480px;
    margin: 0 auto;
    text-align: center;
}

/* ===== ANIMATIONS ===== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 {
    transition-delay: 0.15s;
}

.reveal-delay-2 {
    transition-delay: 0.3s;
}

.reveal-delay-3 {
    transition-delay: 0.45s;
}

.reveal-delay-4 {
    transition-delay: 0.6s;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

/* ===== HERO SECTION ===== */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
            rgba(120, 140, 67, 0.5) 0%,
            rgba(28, 28, 28, 0.45) 100%);
    z-index: 1;
}

.hero__content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 24px;
    animation: fadeInDown 1.2s ease forwards;
}

.hero__names {
    font-family: var(--font-serif);
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-white);
    letter-spacing: 2px;
    margin-bottom: 8px;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

.hero__subtitle {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    font-weight: 400;
    color: var(--text-white);
    letter-spacing: 6px;
    text-transform: uppercase;
    margin-bottom: 16px;
    opacity: 0.95;
}

.hero__date {
    font-family: var(--font-sans);
    font-size: 1.15rem;
    color: var(--text-white);
    letter-spacing: 4px;
    margin-bottom: 32px;
    opacity: 0.9;
}

.hero__quote {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 0.95rem;
    color: var(--text-white);
    max-width: 340px;
    margin: 0 auto 40px;
    opacity: 0.85;
    line-height: 1.7;
}

.hero__divider {
    width: 60px;
    height: 1px;
    background: var(--text-white);
    margin: 0 auto 32px;
    opacity: 0.5;
}

/* ===== COUNTDOWN ===== */
.countdown {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 40px;
    animation: fadeInUp 1.4s ease forwards;
    animation-delay: 0.4s;
    opacity: 0;
}

.countdown__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 14px 12px;
    border-radius: var(--radius-sm);
    min-width: 64px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.countdown__number {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-white);
    line-height: 1;
}

.countdown__label {
    font-family: var(--font-sans);
    font-size: 0.65rem;
    color: var(--text-white);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-top: 6px;
    opacity: 0.8;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 600;
    padding: 16px 36px;
    border-radius: var(--radius-full);
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    letter-spacing: 0.5px;
    min-height: 52px;
}

.btn--primary {
    background-color: var(--btn-primary);
    color: var(--text-white);
    box-shadow: 0 4px 16px rgba(119, 140, 67, 0.4);
}

.btn--primary:hover,
.btn--primary:active {
    background-color: var(--btn-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(119, 140, 67, 0.5);
}

.btn--outline {
    background: transparent;
    color: var(--btn-primary);
    border: 2px solid var(--btn-primary);
}

.btn--outline:hover,
.btn--outline:active {
    background-color: var(--btn-primary);
    color: var(--text-white);
    transform: translateY(-2px);
}

.btn--hero {
    animation: fadeInUp 1.6s ease forwards;
    animation-delay: 0.8s;
    opacity: 0;
}

.btn--large {
    padding: 18px 48px;
    font-size: 1.1rem;
    min-height: 58px;
}

.btn__icon {
    font-size: 1.2em;
}

/* ===== TE ESPERAMOS ===== */
.te-esperamos {
    position: relative;
    padding: 80px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    min-height: 80vh;
}

.te-esperamos__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.te-esperamos__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.te-esperamos__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
            rgba(120, 140, 67, 0.55) 0%,
            rgba(28, 28, 28, 0.5) 100%);
    z-index: 1;
}

.te-esperamos__content {
    position: relative;
    z-index: 2;
}

.te-esperamos .section-divider {
    background: rgba(255, 255, 255, 0.6);
}

.te-esperamos__intro {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    color: var(--text-white);
    line-height: 1.9;
    margin-bottom: 28px;
}

.te-esperamos__message {
    font-family: var(--font-sans);
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
    margin-bottom: 32px;
}

.te-esperamos__ornament {
    margin-bottom: 24px;
    animation: pulse 3s ease-in-out infinite;
}

.te-esperamos__ornament img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    margin: 0 auto;
}

.te-esperamos__closing {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-white);
    letter-spacing: 0.5px;
}

.te-esperamos__signature {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 2.3rem;
    font-weight: 600;
    color: var(--text-white);
    margin-top: 16px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* ===== NUESTRA HISTORIA ===== */
.historia__text {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    color: var(--text-muted);
    line-height: 1.9;
    margin-bottom: 40px;
    font-style: italic;
}

.historia__gallery {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.historia__img {
    width: 100%;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    aspect-ratio: 4/3;
    object-fit: cover;
}

/* ===== DETALLES DEL EVENTO ===== */
.detalles {
    position: relative;
    padding: 80px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    min-height: 80vh;
}

.detalles__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.detalles__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detalles__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
            rgba(120, 140, 67, 0.55) 0%,
            rgba(28, 28, 28, 0.5) 100%);
    z-index: 1;
}

.detalles__content {
    position: relative;
    z-index: 2;
}

.detalles .section-title {
    color: var(--text-white);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.detalles .section-divider {
    background: rgba(255, 255, 255, 0.6);
}

.detalles__card-row {
    display: flex;
    gap: 24px;
    justify-content: center;
    margin-bottom: 24px;
}

.detalles__card-item {
    flex: 1;
    text-align: center;
}

.detalles__card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 40px 28px;
    box-shadow: var(--shadow-card);
    margin-bottom: 24px;
}

.detalles__icon {
    font-size: 2.4rem;
    margin-bottom: 16px;
    animation: float 3s ease-in-out infinite;
}

.detalles__icon img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    margin: 0 auto;
}

.detalles__label {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--btn-primary);
    margin-bottom: 8px;
    font-weight: 600;
}

.detalles__value {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.detalles__sub {
    font-family: var(--font-sans);
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

/* ===== PROGRAMA / TIMELINE ===== */
.timeline {
    position: relative;
    padding-left: 40px;
    text-align: left;
    max-width: 400px;
    margin: 40px auto 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 12px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg,
            var(--btn-primary) 0%,
            var(--btn-hover) 100%);
    border-radius: 2px;
}

.timeline__item {
    position: relative;
    padding-bottom: 40px;
}

.timeline__item:last-child {
    padding-bottom: 0;
}

.timeline__dot {
    position: absolute;
    left: -34px;
    top: 4px;
    width: 16px;
    height: 16px;
    background: var(--btn-primary);
    border-radius: 50%;
    border: 3px solid var(--bg-white);
    box-shadow: 0 0 0 3px var(--btn-primary);
}

.timeline__time {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--btn-primary);
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.timeline__event {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    color: var(--text-dark);
    font-weight: 500;
}

/* ===== CÓDIGO DE VESTIMENTA ===== */
.dresscode {
    position: relative;
    padding: 80px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    min-height: 80vh;
}

.dresscode__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.dresscode__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dresscode__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
            rgba(120, 140, 67, 0.55) 0%,
            rgba(28, 28, 28, 0.5) 100%);
    z-index: 1;
}

.dresscode__content {
    position: relative;
    z-index: 2;
}

.dresscode .section-title {
    color: var(--text-white);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.dresscode .section-divider {
    background: rgba(255, 255, 255, 0.6);
}

.dresscode__badge {
    display: inline-block;
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-white);
    padding: 12px 40px;
    border: 2px solid var(--text-white);
    border-radius: var(--radius-full);
    margin: 24px 0;
    letter-spacing: 3px;
}

.dresscode__desc {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 32px;
}

.dresscode__img {
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    aspect-ratio: 3/4;
    object-fit: cover;
}

/* ===== CONFIRMACIÓN ===== */
.confirmacion__text {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: 32px;
    line-height: 1.8;
}

.confirmacion__date {
    font-weight: 700;
    color: var(--text-dark);
}

/* ===== CIERRE EMOCIONAL ===== */
.cierre {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.cierre__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.cierre__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(2px);
}

.cierre__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
            rgba(179, 205, 182, 0.7) 0%,
            rgba(119, 140, 67, 0.6) 100%);
    z-index: 1;
}

.cierre__content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 40px 24px;
}

.cierre__quote {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 32px;
    line-height: 1.5;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.cierre__names {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 8px;
    letter-spacing: 2px;
}

.cierre__date {
    font-family: var(--font-sans);
    font-size: 1rem;
    color: var(--text-white);
    letter-spacing: 4px;
    opacity: 0.85;
}

.cierre__heart {
    font-size: 2rem;
    margin-bottom: 24px;
    animation: pulse 2s ease-in-out infinite;
}

/* ===== SECTION TITLES ===== */
.section-title {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 12px;
    letter-spacing: 1px;
}

.section-divider {
    width: 50px;
    height: 2px;
    background: var(--btn-primary);
    margin: 0 auto 32px;
    border-radius: 2px;
}

/* ===== FOOTER ===== */
.footer {
    position: relative;
    text-align: center;
    padding: 60px 24px;
    overflow: hidden;
}

.footer__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.footer__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.footer__overlay {
    display: none;
}

.footer__text {
    position: relative;
    z-index: 2;
    font-size: 0.9rem;
    color: var(--text-dark);
    letter-spacing: 1px;
    font-weight: 600;
}

/* ===== RESPONSIVE - TABLET & DESKTOP ===== */
@media (min-width: 768px) {
    .section {
        padding: 120px 48px;
    }

    .section-content {
        max-width: 600px;
    }

    .hero__names {
        font-size: 4.5rem;
    }

    .hero__subtitle {
        font-size: 1.6rem;
        letter-spacing: 10px;
    }

    .hero__date {
        font-size: 1.3rem;
    }

    .hero__quote {
        font-size: 1.1rem;
        max-width: 440px;
    }

    .countdown__item {
        min-width: 80px;
        padding: 18px 16px;
    }

    .countdown__number {
        font-size: 2.2rem;
    }

    .historia__gallery {
        flex-direction: row;
        gap: 24px;
    }

    .historia__img {
        flex: 1;
        aspect-ratio: 3/4;
    }

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

    .cierre__quote {
        font-size: 2rem;
    }

    .cierre__names {
        font-size: 2.4rem;
    }

    .detalles__value {
        font-size: 1.8rem;
    }

    .dresscode__badge {
        font-size: 2.4rem;
    }

    .timeline {
        max-width: 500px;
    }
}

@media (min-width: 1024px) {
    .section-content {
        max-width: 720px;
    }

    .hero__names {
        font-size: 5.5rem;
    }
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .hero__content,
    .countdown,
    .btn--hero {
        animation: none;
        opacity: 1;
    }

    .detalles__icon {
        animation: none;
    }

    .cierre__heart {
        animation: none;
    }

    html {
        scroll-behavior: auto;
    }
}