* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Nunito', system-ui, sans-serif;
}


/* FONDO GENERAL */

body {
    background: #f7f4f0;
    /* crema */
    color: #333;
    line-height: 1.5;
}


.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5vw;

    position: fixed;
    top: 0;
    left: 0;
    right: 0;

    background: #f7f4f0cc;
    /* crema con transparencia */
    backdrop-filter: blur(6px);
    z-index: 1000;
    border-bottom: 1px solid #e3ddd5;
}

.nav .logo {
    font-weight: 700;
    font-size: 1.2rem;
    color: #8b6f5a;
    text-decoration: none;
}

/* UL del menú */
.nav ul {
    list-style: none;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* 🔹 Links del menú (NO la logo) */
.nav ul a {
    text-decoration: none;
    font-size: 0.95rem;
    color: #8b6f5a;
    font-weight: 500;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

/* Estado hover / tap / focus */
.nav ul a:hover,
.nav ul a:focus,
.nav ul a:active {
    background-color: #e7ddd3;
    /* se ve clarito pero no desaparece */
    color: #5c3d28;
    /* un poquito más oscuro para contraste */
    text-decoration: none;
    /* sacamos subrayado */
}




.subtitle {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* COUNTDOWN */

.countdown {
    display: inline-flex;
    gap: 1rem;
    background: rgba(247, 244, 240, 0.9);
    /* crema translúcida */
    padding: 1rem 1.5rem;
    border-radius: 999px;
}

.countdown div {
    text-align: center;
    min-width: 60px;
}

.countdown span {
    display: block;
    font-size: 1.3rem;
    font-weight: 700;
    color: #8b6f5a;
}

/* SECCIONES GENERALES */

.section {
    padding: 3rem 5vw;

}

.section h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    text-align: center;
    color: #8b6f5a;
    /* marrón suave */
}

.section p {
    max-width: 700px;
    margin: 0.5rem auto;
    text-align: center;
}

/* SOLO el primer párrafo de "Nuestra boda" (a prueba de cache y overrides) */
#info p.boda-intro{
  font-size: 1.10rem;     /* un toque menos si querés */
  line-height: 1.75;
  max-width: 820px;
  margin: 0.8rem auto 0.9rem;  /* menos espacio abajo */
}

#info p.boda-intro em{
  display: block;
  margin-top: 0.25rem;    /* antes 0.55, ahora más prolijo */
  font-style: italic;
}

.info-sep{
  border: 0;
  height: 1px;
  background: #e3ddd5;  /* mismo tono que tu nav */
  width: min(520px, 80%);
  margin: 1.1rem auto; /* ajustá si querés más/menos aire */
  opacity: 0.9;
}


.section-alt {
    background: #fff;
}


/* GALERÍA NUESTRA ESCRITORIO*/

.grid-galeria {
    margin-top: 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 2rem;
    justify-items: center;
}


/* 📱 Vista celular: tira horizontal scrolleable */
@media (max-width: 768px) {
    .grid-galeria {
        display: flex;
        /* pasamos de grid a flex */
        flex-wrap: nowrap;
        /* todas en una sola fila */
        overflow-x: auto;
        /* scroll horizontal */
        gap: 0.75rem;
        padding-bottom: 0.5rem;
        /* espacio para que no quede pegado al borde */
        scroll-snap-type: x proximity;
        ;
        /* se acomodan “a clics” al deslizar */
    }

    .foto-card {
        flex: 0 0 75%;
        /* cada foto ocupa ~75% del ancho de la pantalla */
        max-width: 75%;
        scroll-snap-align: center;
        margin-top: 0;
        /* sacamos los saltitos del collage en celus */
    }

    .foto-card img {
        height: 200px;
        /* podés ajustar este valor */
        object-fit: cover;
    }
}




/* BOTÓN GENERAL (ej: ver galería) */

a.button {
    display: inline-block;
    background: #8BAF8A;
    /* verde salvia */
    padding: 0.7rem 1.4rem;
    border-radius: 8px;
    font-weight: bold;
    transition: 0.2s;
}

body {
    background: #f7f4f0;
}

/* Tarjeta centrada */
.centered-card {
    max-width: 420px;
    margin: 4rem auto;
    text-align: center;
    padding: 2rem 1.5rem;
}

/* Título */
.centered-card h2 {
    color: #8b6f5a;
    margin-bottom: 0.8rem;
    font-size: 1.8rem;
}

/* Texto pequeño */
.centered-card p {
    margin-bottom: 1rem;
    font-size: 1rem;
}

/* INPUT de clave */
.centered-card input[type="password"] {
    width: 100%;
    padding: 0.85rem 1rem;
    border-radius: 10px;
    border: 1px solid #ccc;
    font-size: 1.1rem;
    margin-top: 0.3rem;
}

/* BOTÓN */
.centered-card button {
    width: 100%;
    padding: 0.9rem;
    margin-top: 1rem;
    border-radius: 999px;
    border: none;
    background: #8BAF8A;
    /* verde salvia */
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
}

.centered-card button:hover {
    filter: brightness(0.95);
}

/* Error */
.error-msg {
    color: #b00020;
    margin-top: .5rem;
    font-size: 0.95rem;
}

/* Notas */
.small-note {
    font-size: 0.9rem;
    color: #666;
}

/* Mejoras en móvil */
@media (max-width: 480px) {
    .centered-card {
        margin: 2rem 1rem;
        padding: 2rem 1.2rem;
    }

    .centered-card h2 {
        font-size: 1.6rem;
    }

    .centered-card p {
        font-size: 0.95rem;
    }

    .centered-card input[type="password"] {
        font-size: 1rem;
        padding: 0.8rem;
    }

    .centered-card button {
        font-size: 1rem;
    }
}



/* Fuerza color y sin subrayado tanto en normal como visitado */
a.button:link,
a.button:visited {
    color: #fff;
    text-decoration: none;
}

a.button:hover {
    background: #789d74;
    /* salvia más oscuro */
}



/* Estilo polaroid */
.foto-card {
    background: #fff;
    border-radius: 14px;
    padding: 0.75rem 0.75rem 1.4rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
    position: relative;
    max-width: 230px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    cursor: pointer;
}

/* La foto en sí */
.foto-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 10px;
    display: block;
}

/* Rotaciones del collage */
.foto-card:nth-child(3n) {
    transform: rotate(-2.5deg);
}

.foto-card:nth-child(3n+1) {
    transform: rotate(2.2deg);
}

.foto-card:nth-child(3n+2) {
    transform: rotate(-1.2deg);
}

.foto-card:hover {
    transform: rotate(0deg) translateY(-6px) scale(1.03);
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.12);
}

.foto-card:nth-child(4n) {
    margin-top: 10px;
}

.foto-card:nth-child(4n+2) {
    margin-top: -6px;
}

/* 📱 Mobile: modo slider horizontal */
@media (max-width: 768px) {

    .grid-galeria {
        display: flex;
        /* pasamos a flex */
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        gap: 0.75rem;
        padding: 0 1rem 0.75rem;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
    }

    .grid-galeria::-webkit-scrollbar {
        display: none;
    }

    .foto-card {
        flex: 0 0 80%;
        /* ocupa ~80% del ancho */
        max-width: 80%;
        scroll-snap-align: center;
        margin-top: 0;
        /* sacamos los desniveles en celu */
    }

    .foto-card:nth-child(4n),
    .foto-card:nth-child(4n+2) {
        margin-top: 0;
    }

    .foto-card:hover {
        transform: none;
        /* en celu el hover es raro, lo apagamos */
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
    }

    .foto-card img {
        max-height: 230px;
        object-fit: contain;
    }
}

/* REGALOS */

.regalos-grid {
    margin-top: 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.5rem;
}

.regalo-card {
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
    border-left: 4px solid #8BAF8A;
    /* detalle verde salvia */
}

/* --- Imagen decorativa en Regalos --- */

#regalos {
    position: relative;
    /* sacamos overflow hidden para probar; si después querés lo volvemos a poner */
    overflow: visible;
}

.regalos-bg {
    position: absolute;
    top: 40px;        /* o 50px si lo querés un pelín más abajo */
    right: 80px;
    width: 160px;     /* un poco más chico si pinta */
    opacity: 0.35;    /* o 0.25 si lo querés más sutil */
    transform: rotate(8deg);
    pointer-events: none;
    z-index: 1;
}


/* Contenido por encima del dibujito */
#regalos h2,
#regalos p,
#regalos .regalos-grid {
    position: relative;
    z-index: 2;
}

/* En celulares la escondemos */
@media (max-width: 768px) {
    .regalos-bg {
        display: none;
    }
}


/* FORMULARIOS (RSVP / SUBIR FOTOS) */

.card {
    background: #fff;
    padding: 1.5rem;
    border-radius: 12px;
    margin: 1.5rem auto 0;
    max-width: 600px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
}

.form label {
    display: block;
    text-align: left;
    margin-top: 0.75rem;
    font-size: 0.95rem;
    color: #8b6f5a;
}

.form input,
.form select,
.form textarea {
    width: 100%;
    margin-top: 0.3rem;
    padding: 0.6rem 0.7rem;
    border-radius: 8px;
    border: 1px solid #A7C4A0;
    /* borde verde musgo claro */
    font-size: 0.95rem;
}

.form input:focus,
.form select:focus,
.form textarea:focus {
    outline: none;
    border-color: #8BAF8A;
    box-shadow: 0 0 0 2px rgba(139, 175, 138, 0.25);
}

.form button {
    margin-top: 1.2rem;
    width: 100%;
    padding: 0.8rem;
    border-radius: 999px;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    background: #e89fb1;
    /* rosa viejo */
    color: #fff;
}

.form button:hover {
    filter: brightness(0.95);
}

/* NOTAS PEQUEÑAS */

.nota {
    font-size: 0.85rem;
    color: #666;
    margin-top: 0.5rem;
}

/* MAPA */
.map-container{
  width: min(800px, 100%);
  margin: 2rem auto 0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);

  position: relative;
  aspect-ratio: 16 / 9; /* mantiene proporción en mobile */
}

/* el iframe se adapta al contenedor */
.map-container iframe{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* FOOTER */

.footer {
    text-align: center;
    padding: 1.5rem;
    font-size: 0.9rem;
    color: #8b6f5a;
}

.hero {
    background: linear-gradient(120deg, #f6e7dd, #f3d7ce, #f7f2eb);
    /* background-image: url('https://www.transparenttextures.com/patterns/diamond-upholstery.png'); */
    background-image: url('https://www.transparenttextures.com/patterns/subtle-white-feathers.png');

    padding-top: 6rem;
    /* espacio por la barra fija */
    padding-bottom: 4rem;
    position: relative;
    overflow: hidden;
    min-height: 420px;
    /* altura real del hero */
}

.hero-content {
    text-align: center;
    padding: 3rem 5vw 3.5rem;
    /* si lo ves muy pegado arriba, subí el 3rem a 4rem */
    color: #8b6f5a;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

/* RESPONSIVE */

@media (max-width: 700px) {
    .nav ul {
        justify-content: center;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .countdown {
        flex-wrap: wrap;
    }
}

/* --- LIGHTBOX --- */

.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity .35s ease;
    z-index: 9999;
}

.lightbox-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-content {
    max-width: 90vw;
    max-height: 80vh;
    border-radius: 12px;
    overflow: hidden;
    transform: scale(0.8);
    transition: transform .35s cubic-bezier(.18, .89, .32, 1.28);
    background: #000;
}

.lightbox-overlay.active .lightbox-content {
    transform: scale(1);
}

.lightbox-img,
.lightbox-video {
    max-width: 100%;
    max-height: 80vh;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    background: #000;
}

.lightbox-close {
    position: absolute;
    top: 25px;
    right: 25px;
    font-size: 2.2rem;
    color: white;
    cursor: pointer;
    user-select: none;
}

.lightbox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2.5rem;
    color: white;
    cursor: pointer;
    user-select: none;
    padding: 0.5rem;
}

.lightbox-arrow.left {
    left: 15px;
}

.lightbox-arrow.right {
    right: 15px;
}

@media (max-width: 480px) {
    .lightbox-content {
        max-width: 95%;
        max-height: 80%;
    }

    .lightbox-arrow {
        font-size: 2rem;
    }
}

html {
    scroll-behavior: smooth;
}

h1,
h2,
h3,
.logo {
    font-family: 'Playfair Display', serif;
}

#confetti-container {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.confetti {
    position: absolute;
    top: -10vh;
    animation-name: confetti-fall;
    animation-timing-function: linear;
    animation-fill-mode: forwards;
}

@keyframes confetti-fall {
    0% {
        transform: translateY(-10vh) rotate(0deg);
        opacity: 1;
    }

    100% {
        transform: translateY(110vh) rotate(360deg);
        opacity: 0;
    }
}


/*GIFS*/

/* Gif de Estefa y Santi a la derecha del hero */
.hero-gif-couple {
    position: absolute;
    bottom: 0px;
    right: 5%;
    width: 150px;
    /* ajustá a gusto */
    z-index: 20;

}

/* --- Mano con cámara en "Subí tus fotos" --- */

.section-fotos {
    position: relative;
    overflow: hidden;
    /* por si la imagen se va un poco para afuera */
}

/* Mano decorativa a la izquierda */
.foto-mano-bg {
    position: absolute;
    left: 0;
    bottom: 0;
    /* que siempre esté pegada a la esquina y un poco “salida” */
    transform: translate(-15%, 10%);
    /* ajustá estos dos valores a gusto */

    width: clamp(260px, 30vw, 450px);
    opacity: 0.28;
    pointer-events: none;
    z-index: 1;
}

/* Contenido por encima de la mano */
.section-fotos h2,
.section-fotos p,
.section-fotos .card,
.section-fotos a.button,
.section-fotos .nota {
    position: relative;
    z-index: 2;
}

/* En celus la escondemos */
@media (max-width: 768px) {
    .grid-galeria {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 0.75rem;
        padding-bottom: 0.5rem;
        scroll-snap-type: x mandatory;
    }

    .foto-card {
        flex: 0 0 75%;
        max-width: 75%;
        scroll-snap-align: center;
        margin-top: 0;
    }

    /* importante: NO fijar height acá */
    .foto-card img {
        height: auto;
        max-height: 230px;
        /* si querés un poco más baja en celu */
        object-fit: contain;
    }

    .foto-card:nth-child(4n),
    .foto-card:nth-child(4n+2) {
        margin-top: 0;
    }
}


/* --- Imagen decorativa en RSVP (como foto-mano) --- */

#rsvp {
    position: relative;
    overflow: hidden;
    /* por si el dibujito se sale un poquito */
}

.rsvp-bg {
    position: absolute;
    /* en vez de right: 0; + translate(20%, 0) */
    right: 8%;
    /* la traemos un poco hacia adentro */
    top: 25%;
    /* subí o bajá según lo veas */
    transform: rotate(10deg);
    /* ya no necesitamos el translate */

    width: clamp(220px, 22vw, 380px);
    opacity: 0.28;
    pointer-events: none;
    z-index: 1;
}

/* Que el contenido pase por encima del dibujito */
#rsvp h2,
#rsvp p,
#rsvp .card {
    position: relative;
    z-index: 2;
}

/* En celulares la escondemos */
@media (max-width: 768px) {
    .rsvp-bg {
        display: none;
    }
}

.hero {
    position: relative;
    /* ya lo tenés, pero lo dejo marcado porque es clave */
}

/* Contenedor de Berta + ustedes + Teo */
.hero-gifs {
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 2.5rem;
    /* separa más a los tres */
    z-index: 30;
}

/* Asegurarse de que las imágenes NO sean absolutas */
.hero-gifs img {
    position: static;
}

/* Estilo general de los perritos */
.perrito {
    width: 60px;
    image-rendering: pixelated;
}

/* Berta un poquito más chica */
.perrito-berta {
    width: 40px;
}


/* Versión mobile */
@media (max-width: 768px) {
    .hero-gifs {
        position: absolute;
        bottom: 4px;
        left: 0;
        right: 0;
        transform: none;
        /* sacamos el translateX */
        width: 100%;
        display: flex;
        align-items: flex-end;
        justify-content: center;
        /* centro del contenedor */
        padding: 0 1.5rem;
        /* un poco de aire a los lados */
        gap: 0.5rem;
        z-index: 30;
    }

    .hero-gif-couple {
        width: 120px;
        /* ajustá si hace falta */
        margin: 0 auto;
        /* centro */
    }

    .perrito-berta {
        width: 35px;
        margin-right: auto;
        /* la empuja a la izquierda */
    }

    .perrito-teo {
        width: 60px;
        margin-left: auto;
        /* lo empuja a la derecha */

    }
}

/* --- Imagen decorativa en Ubicación (pin) --- */

#ubicacion {
    position: relative;
    overflow: hidden;
}

.ubicacion-bg {
    position: absolute;
    /* 👇 en vez de left: 0; + translate(-25%, 0) */
    left: 6%;
    /* lo metemos un poco hacia adentro */
    top: 23%;
    /* bajalo/subilo según te guste */
    transform: rotate(-10deg);
    /* ya no hace falta el translate */

    width: clamp(160px, 17vw, 280px);

    opacity: 0.28;
    pointer-events: none;
    z-index: 1;
}


/* Que el contenido pase por encima del pin */
#ubicacion h2,
#ubicacion p,
#ubicacion .map-container,
#ubicacion .card {
    position: relative;
    z-index: 2;
}

/* En celulares lo escondemos */
@media (max-width: 768px) {
    .ubicacion-bg {
        display: none;
    }
}

:root{
  --nav-offset: 96px;  /* ajustamos para desktop */
}

html{
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-offset);
}

/* lo que “recibe” el scroll cuando vas a #ubicacion, #regalos, etc */
.section{
  scroll-margin-top: var(--nav-offset);
}

/* en celu tu nav es más alta (2 filas), subimos el offset */
@media (max-width: 768px){
  :root{
    --nav-offset: 140px; /* probá 140–170 si querés fino */
  }
}
#inv{
  text-transform: uppercase;
  letter-spacing: .08em;
}
