/* Extraído de index.html: estilos en línea movidos a este archivo */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', sans-serif
}

body {
    background: #f5f7fa;
    color: #333
}

/* HERO */
.hero {
    height: 100vh;
    background:
        linear-gradient(rgba(15, 23, 42, .55), rgba(15, 23, 42, .55)),
        url("./public/pepsi.jpg");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    position: relative;
}

.hero-content {
    z-index: 2
}

.hero img {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    border: 4px solid #fff;
    object-fit: cover;
    margin-bottom: 20px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, .45);
}

.hero h1 {
    font-size: 3rem
}

.hero h2 {
    font-weight: 300;
    font-size: 1.5rem
}

/* COUNTDOWN */
.countdown-hero {
    margin-top: 35px;
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.time-box {
    background: rgba(255, 255, 255, .9);
    backdrop-filter: blur(6px);
    border-radius: 14px;
    padding: 16px 20px;
    min-width: 90px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, .25);
}

.time-box span {
    font-size: 2rem;
    font-weight: 700;
    color: #4f46e5
}

.time-box small {
    font-size: .75rem;
    color: #475569;
    text-transform: uppercase
}

/* INTRO */
.intro {
    padding: 60px 20px;
    max-width: 800px;
    margin: auto;
    text-align: center;
}

.intro h3 {
    font-size: 2rem;
    margin-bottom: 15px
}

/* TIMELINE */
.timeline-days {
    background: #fff;
    padding: 70px 20px
}

.timeline-days h3 {
    text-align: center;
    font-size: 2.3rem;
    margin-bottom: 60px
}

.day-block {
    max-width: 800px;
    margin: 0 auto 70px
}

.day-block h4 {
    font-size: 1.6rem;
    margin-bottom: 30px;
    color: #4f46e5
}

.timeline {
    position: relative;
    padding-left: 40px
}

.timeline::before {
    content: "";
    position: absolute;
    left: 18px;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #e5e7eb
}

.event {
    display: flex;
    margin-bottom: 30px
}

.icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    margin-left: -18px;
    margin-right: 20px;
}

.food {
    background: #22c55e
}

.beer {
    background: #f59e0b
}

.travel {
    background: #3b82f6
}

.culture {
    background: #8b5cf6
}

.bike {
    background: #ef4444
}

.party {
    background: #ec4899
}

.rest {
    background: #64748b
}

.home {
    background: #0f172a
}

.cake {
    background: #f43f5e
}

.details {
    background: #f1f5f9;
    padding: 15px 20px;
    border-radius: 10px;
    width: 100%;
}

.details span {
    font-weight: bold;
    color: #4f46e5;
    display: block
}

/* SÁBADO */
.day-block.birthday {
    background: linear-gradient(135deg, #f43f5e, #ec4899);
    padding: 40px;
    border-radius: 20px;
    color: #fff;
}

.day-block.birthday h4,
.day-block.birthday span {
    color: #fff
}

/* Mejora de legibilidad: detalles dentro del bloque birthday deben ser legibles sobre el degradado */
.day-block.birthday .details {
    background: rgba(0, 0, 0, 0.18); /* caja más oscura para contraste */
    color: #fff;
}

.day-block.birthday .details a {
    color: #fff;
    opacity: 0.95;
    text-decoration: underline;
}

.day-block.birthday .details span {
    color: #fff;
}

/* FOOTER */
footer {
    text-align: center;
    padding: 30px;
    background: #111827;
    color: #fff;
}

/* NYAN SWARM */
.nyan-cat {
    position: fixed;
    left: -300px;
    pointer-events: none;
    z-index: 9999;
    animation-name: nyan-fly;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .35));
}

@keyframes nyan-fly {
    0% {
        transform: translateX(0);
        opacity: 0
    }

    5% {
        opacity: 1
    }

    100% {
        transform: translateX(calc(100vw + 400px));
        opacity: 1
    }
}

@media(max-width:600px) {
    .hero h1 {
        font-size: 2.2rem
    }
}

/* GALLERY */
.gallery {
    padding: 60px 20px;
    max-width: 1100px;
    margin: 40px auto;
    text-align: center;
}
.gallery h3 {
    font-size: 2rem;
    margin-bottom: 8px;
}
.gallery-sub {
    color: #6b7280;
    margin-bottom: 22px;
}
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 14px;
    cursor: pointer;
    box-shadow: 0 12px 30px rgba(15, 23, 42, .12);
    transform: translateY(0);
    transition: transform .28s ease, box-shadow .28s ease;
}
.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: transform .6s cubic-bezier(.2,.8,.2,1);
}
.gallery-item .caption {
    position: absolute;
    left: 12px;
    bottom: 12px;
    background: linear-gradient(90deg, rgba(15,23,42,.9), rgba(79,70,229,.9));
    color: #fff;
    padding: 6px 10px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.9rem;
    transform: translateY(8px);
    opacity: 0;
    transition: transform .28s ease, opacity .28s ease;
}
.gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 22px 48px rgba(15,23,42,.18);
}
.gallery-item:hover img {
    transform: scale(1.08) rotate(-1deg);
}
.gallery-item:hover .caption {
    transform: translateY(0);
    opacity: 1;
}

/* responsive */
@media (max-width: 1000px) {
    .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 700px) {
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 420px) {
    .gallery-grid { grid-template-columns: 1fr; }
}

/* LIGHTBOX */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(2,6,23,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    z-index: 99999;
    opacity: 0;
    pointer-events: none;
    transition: opacity .22s ease;
}
.lightbox[aria-hidden="false"] {
    opacity: 1;
    pointer-events: auto;
}
.lightbox .lb-img {
    max-width: 92vw;
    max-height: 82vh;
    border-radius: 10px;
    box-shadow: 0 24px 60px rgba(2,6,23,.6);
}
.lightbox .lb-close {
    position: absolute;
    top: 18px;
    right: 20px;
    background: rgba(255,255,255,0.06);
    color: #fff;
    border: none;
    font-size: 28px;
    line-height: 1;
    padding: 6px 10px;
    border-radius: 8px;
    cursor: pointer;
}
.lightbox .lb-caption {
    margin-top: 12px;
    color: #e6eef8;
    font-weight: 600;
}

/* RSVP section */
.rsvp-section {
    background: linear-gradient(90deg, #4f46e5, #ec4899);
    color: #fff;
    padding: 40px 20px;
    margin-top: 30px;
}
.rsvp-inner {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}
.rsvp-inner h3 {
    font-size: 1.8rem;
    margin-bottom: 8px;
}
.rsvp-inner p { margin-bottom: 12px; color: rgba(255,255,255,0.95); }
.rsvp-btn {
    display: inline-block;
    background: #fff;
    color: #111827;
    padding: 12px 18px;
    border-radius: 10px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 12px 30px rgba(15,23,42,.18);
    transition: transform .18s ease, box-shadow .18s ease;
}
.rsvp-btn:hover { transform: translateY(-4px); box-shadow: 0 20px 40px rgba(15,23,42,.22); }
.rsvp-note { margin-top: 8px; font-size: .85rem; color: rgba(255,255,255,0.9); }

@media (max-width: 600px) {
    .rsvp-inner h3 { font-size: 1.4rem; }
    .rsvp-btn { width: 100%; padding: 14px; }
}
