/* =========================================================
   INVITACIÓN DE BODA — Brayan & Valentina
   Paleta: crema, dorado y verde oliva
   ========================================================= */

:root {
    --crema: #F8F1E4;
    --marfil: #FFFCF6;
    --oliva-oscuro: #4B5530;
    --oliva: #6B7A4A;
    --oliva-claro: #93A06B;
    --dorado: #B8954A;
    --dorado-claro: #D9BD7C;
    --carbon: #3A3528;
    --verde-bienvenida: #A3B18A;

    --sombra-suave: 0 10px 40px rgba(75, 85, 48, 0.12);
    --radio-tarjeta: 4px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    height: 100%;
}

body {
    margin: 0;
    min-height: 100%;
    background: var(--crema);
    color: var(--carbon);
    font-family: 'Lora', serif;
    -webkit-font-smoothing: antialiased;
}

h1, h2 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 500;
    color: var(--oliva-oscuro);
    margin: 0;
    letter-spacing: 0.02em;
}

p {
    line-height: 1.75;
    color: var(--carbon);
}

img {
    max-width: 100%;
    display: block;
}

/* ---------------------------------------------------------
   ELEMENTOS COMPARTIDOS
   --------------------------------------------------------- */

.eyebrow {
    font-family: 'Lora', serif;
    font-size: 0.72rem;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--dorado);
    margin: 0 0 0.6rem;
}

.eyebrow-claro {
    color: var(--dorado-claro);
}

.nombres-script {
    font-family: 'Bodoni Moda', 'Playfair Display', serif;
    font-style: normal;
    font-size: 3.6rem;
    line-height: 1.15;
    font-weight: 700;
    color: var(--oliva-oscuro);
}

.separador-punto {
    width: 80px;
    height: 1px;
    margin: 1.8rem auto;
    background: var(--dorado);
    position: relative;
}
.separador-punto::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 6px;
    height: 6px;
    border: 1px solid var(--dorado);
    border-radius: 50%;
    background: var(--marfil);
    transform: translate(-50%, -50%);
}

.separador::before {
    content: "✦";
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background: var(--crema);
    color: var(--dorado);
    font-size: 0.8rem;
    padding: 0 10px;
}

.separador-claro::before {
    background: var(--oliva-oscuro);
    color: var(--dorado-claro);
}

/* ---------------------------------------------------------
   PANTALLA DE BIENVENIDA
   --------------------------------------------------------- */

.bienvenida {
    min-height: 100vh;
    min-height: 100dvh;
    width: 100%;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: var(--marfil);
    overflow: hidden;
}

.bienvenida::before {
    content: "B & V";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -52%);
    font-family: 'Cormorant Garamond', serif;
    font-size: 14rem;
    font-weight: 600;
    color: rgba(75, 85, 48, 0.06);
    white-space: nowrap;
    pointer-events: none;
    z-index: 0;
}

.caja-bienvenida {
    max-width: 440px;
    width: 100%;
    text-align: center;
    position: relative;
    z-index: 1;
    animation: aparecer 1.1s ease both;
}

.caja-bienvenida p {
    color: var(--carbon);
    font-size: 1.02rem;
}

.caja-bienvenida .eyebrow {
    color: var(--dorado);
    opacity: 1;
}

.caja-bienvenida .nombres-script {
    color: var(--oliva-oscuro);
}

.botones {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
    margin-top: 2.2rem;
}

button {
    font-family: 'Lora', serif;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 1rem 2.2rem;
    border-radius: 999px;
    border: 1px solid var(--oliva-oscuro);
    background: var(--oliva-oscuro);
    color: var(--marfil);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(75, 85, 48, 0.18);
    width: 100%;
    max-width: 280px;
}

button:hover {
    background: var(--oliva);
    border-color: var(--oliva);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(75, 85, 48, 0.22);
}

button.secundario {
    background: transparent;
    color: var(--oliva-oscuro);
    border: 1px solid var(--dorado);
    box-shadow: none;
}

button.secundario:hover {
    background: rgba(184, 149, 74, 0.08);
}

/* ---------------------------------------------------------
   INVITACIÓN — CONTENEDOR
   --------------------------------------------------------- */

#invitacion {
    display: none;
}

/* ---------------------------------------------------------
   PORTADA
   --------------------------------------------------------- */

.portada {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    background:
        linear-gradient(180deg, rgba(20, 22, 12, 0.15) 0%, rgba(20, 22, 12, 0.55) 50%, rgba(20, 22, 12, 0.15) 100%),
        url('imagenes/foto1.jpeg') center / cover no-repeat;
    background-color: var(--oliva-oscuro);
    position: relative;
}

.portada .overlay {
    position: relative;
    z-index: 1;
    color: var(--marfil);
    padding: 2.6rem 1.8rem;
    background: rgba(20, 22, 12, 0.5);
    backdrop-filter: blur(1px);
    border: 1px solid rgba(217, 189, 124, 0.35);
    border-radius: 4px;
    max-width: 380px;
    margin: 0 auto;
}

.nombres-apilados {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    margin: 0;
}

.nombre-individual {
    font-family: 'Bodoni Moda', 'Playfair Display', serif;
    font-style: normal;
    font-weight: 700;
    font-size: 3rem;
    line-height: 1.1;
    color: var(--marfil);
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.7), 0 1px 4px rgba(0, 0, 0, 0.8);
}

.circulo-ampersand {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--oliva);
    color: var(--marfil);
    font-family: 'Bodoni Moda', 'Playfair Display', serif;
    font-style: italic;
    font-size: 1.6rem;
    font-weight: 600;
    margin: 0.3rem 0;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

.linea-nombres {
    width: 90px;
    height: 1px;
    background: rgba(255, 255, 255, 0.75);
    margin: 2rem auto 0;
}

.portada .eyebrow-claro {
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.6);
    font-size: 0.62rem;
    line-height: 1.6;
    margin-bottom: 1.4rem;
}

.portada h2 {
    color: var(--dorado-claro);
    font-weight: 400;
    font-size: 1.5rem;
    letter-spacing: 0.08em;
    margin-top: 1.6rem;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.95), 0 1px 14px rgba(0, 0, 0, 0.8);
}

/* ---------------------------------------------------------
   CONTADOR
   --------------------------------------------------------- */

.contador-section {
    text-align: center;
    padding: 5.5rem 1.5rem;
    background: var(--oliva);
    color: var(--marfil);
}

.contador-anillos {
    position: relative;
    z-index: 1;
    width: 340px;
    height: 340px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contador-circulo {
    position: relative;
    z-index: 2;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    background: var(--oliva);
    border-radius: 50%;
    padding: 2.2rem 2.6rem;
}

.anillo {
    position: absolute;
    top: 50%;
    left: 50%;
    width: clamp(220px, 42vw, 420px);
    height: clamp(220px, 42vw, 420px);
    border-radius: 70%;
    border: 2px solid rgba(217, 189, 124, 0.55);
    pointer-events: none;
}

.anillo-1 { transform: translate(-56%, -54%); border-color: rgba(217, 189, 124, 0.6); }
.anillo-2 { transform: translate(-44%, -56%); border-color: rgba(217, 189, 124, 0.45); }
.anillo-3 { transform: translate(-54%, -44%); border-color: rgba(217, 189, 124, 0.65); }
.anillo-4 { transform: translate(-46%, -46%); border-color: rgba(217, 189, 124, 0.4); }

.contador-titulo {
    font-family: 'Bodoni Moda', serif;
    color: rgba(217, 189, 124, 0.65);
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    margin: 0;
}

.contador-rubrica {
    width: 64px;
    height: 10px;
    margin: 0.3rem auto 0.9rem;
    border-bottom: 1.5px solid var(--dorado);
    border-radius: 50%;
}

.contador {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 0.4rem;
}

.contador-bloque {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 0.55rem;
    position: relative;
}

.contador-bloque + .contador-bloque::before {
    content: "";
    position: absolute;
    left: -1px;
    top: 0.2rem;
    height: 2.4rem;
    width: 1px;
    background: rgba(53, 61, 29, 0.25);
}

.contador-numero {
    font-family: 'Bodoni Moda', serif;
    font-size: 2.8rem;
    line-height: 1;
    color: var(--marfil);
    font-weight: 600;
}

.contador-label {
    margin-top: 0.45rem;
    font-family: 'Lora', serif;
    font-style: italic;
    font-size: 0.82rem;
    letter-spacing: 0.06em;
    text-transform: lowercase;
    color: rgba(217, 189, 124, 0.65);
}

.contador-corazon {
    margin-top: 1rem;
    font-size: 1.1rem;
}

.contador-final {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    color: var(--oliva-oscuro);
}

/* ---------------------------------------------------------
   TARJETAS GENERALES
   --------------------------------------------------------- */

.card {
    max-width: 600px;
    margin: 0 auto;
    padding: 4rem 2rem;
    text-align: center;
    position: relative;
    
}

.card h2 {
    font-size: 2rem;
    margin-bottom: 1.1rem;
    font-family: 'Allura', cursive;
}

.card p {
    font-size: 1.02rem;
    max-width: 480px;
    margin: 0 auto;
}

.icono-rama {
    display: inline-block;
    font-size: 1.6rem;
    margin-bottom: 0.6rem;
    filter: grayscale(0.15) sepia(0.25);
}

.icono-anillos {
    display: flex;
    justify-content: center;
    margin-bottom: 0.8rem;
    color: var(--dorado);
}
.icono-anillos svg { width: 56px; height: 34px; }

.icono-iglesia {
    display: flex;
    justify-content: center;
    margin-bottom: 0.8rem;
    color: var(--dorado);
    position: relative;
    z-index: 1;
}
.icono-iglesia svg { width: 46px; height: 50px; }

.icono-celebracion {
    display: flex;
    justify-content: center;
    margin-bottom: 0.8rem;
    color: var(--dorado);
    position: relative;
    z-index: 1;
    
}
.icono-celebracion svg { width: 54px; height: 46px; }

.boton-mapa {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.4rem;
    padding: 0.65rem 1.4rem;
    border: 1px solid var(--dorado);
    border-radius: 999px;
    color: var(--oliva-oscuro);
    font-family: 'Lora', serif;
    font-size: 0.76rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.boton-mapa:hover {
    background: rgba(184, 149, 74, 0.1);
}

.icono-regalo {
    display: flex;
    justify-content: center;
    margin-bottom: 0.8rem;
    color: var(--dorado);
}

.icono-regalo svg {
    width: 52px;
    height: 48px;
}

.icono-familia {
    display: flex;
    justify-content: center;
    margin-bottom: 0.8rem;
    color: var(--dorado);
    position: relative;
    z-index: 1;
}

.icono-familia svg {
    width: 58px;
    height: 46px;
}

/* ---------------------------------------------------------
   TARJETAS DE EVENTO (con fondo acuarela)
   --------------------------------------------------------- */

.card-evento {
    background: #f7faf5;
    max-width: 460px;
    border-radius: var(--radio-tarjeta);
    box-shadow: var(--sombra-suave);
    border: 1px solid rgba(147, 160, 107, 0.25);
    margin: 2.5rem auto;
    padding: 3rem 2.2rem;
    position: relative;
    overflow: hidden;
    border: 1px dashed var(--dorado);
}

/* El SVG de fondo ocupa toda la tarjeta */
.acuarela-fondo {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

/* Todo lo que viene después del SVG queda sobre él */
.card-evento > *:not(.acuarela-fondo),
.card-cupos > *:not(.acuarela-fondo) {
    position: relative;
    z-index: 1;
}

.detalle-evento {
    margin-top: 1.4rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.detalle-evento p {
    font-size: 1rem;
    color: var(--oliva-oscuro);
    letter-spacing: 0.02em;
}

/* ---------------------------------------------------------
   DRESS CODE
   --------------------------------------------------------- */

.card-vestimenta {
    background: var(--marfil);
    max-width: 520px;
    border-radius: var(--radio-tarjeta);
    box-shadow: var(--sombra-suave);
    border: 1px solid rgba(184, 149, 74, 0.22);
    margin: 2.5rem auto;
    padding: 3.5rem 2.6rem;
    border: 1px dashed var(--dorado);
}

.vestimenta-intro {
    font-size: 0.94rem;
    color: var(--carbon);
    opacity: 0.8;
    margin-bottom: 2.6rem;
    font-style: italic;
    line-height: 1.8;
}

.vestimenta-columnas {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    gap: 0;
    margin-bottom: 2.2rem;
    border-top: 1px solid rgba(184, 149, 74, 0.2);
    border-bottom: 1px solid rgba(184, 149, 74, 0.2);
    padding: 2.4rem 0;
}

.vestimenta-col {
    width: 50%;
    padding: 0 1.8rem;
    position: relative;
}

.vestimenta-col:first-child {
    border-right: 1px solid rgba(184, 149, 74, 0.25);
}

.vestimenta-col h3 {
    font-family: 'Lora', serif;
    font-size: 0.68rem;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--dorado);
    margin: 0 0 1.2rem;
    text-align: center;
    font-weight: 500;
}

.vestimenta-img {
    width: 100%;
    max-width: 150px;
    height: 210px;
    object-fit: cover;
    object-position: top;
    border-radius: 2px;
    margin: 0 auto 1.4rem;
    display: block;
    filter: grayscale(8%) sepia(5%);
}

.vestimenta-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.vestimenta-col li {
    font-size: 0.86rem;
    color: var(--oliva-oscuro);
    padding-left: 1.1rem;
    position: relative;
    text-align: left;
    line-height: 1.55;
}

.vestimenta-col li::before {
    content: "—";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--dorado);
    font-size: 0.7rem;
    line-height: 1.6;
}

.vestimenta-evitar-titulo {
    font-size: 0.64rem;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--dorado);
    margin-bottom: 1.2rem;
}

.chips-evitar {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.chip-evitar {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.7rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--carbon);
    opacity: 0.75;
}

.chip-evitar .circulo {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid rgba(58, 53, 40, 0.2);
    position: relative;
}

.chip-evitar .circulo::after {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: 50%;
    background: linear-gradient(135deg, transparent 44%, rgba(184,149,74,0.7) 44%, rgba(184,149,74,0.7) 56%, transparent 56%);
}

.chip-blanco .circulo    { background: #FFFFFF; }
.chip-champagne .circulo { background: #E9D9B8; }
.chip-beige .circulo     { background: #DCC9A6; }
.chip-jeans .circulo     { background: #6E8CAD; }

/* ---------------------------------------------------------
   CUPOS
   --------------------------------------------------------- */

.card-cupos {
    background: #f7faf5;
    border-radius: var(--radio-tarjeta);
    max-width: 460px;
    border: 1px dashed var(--dorado);
    overflow: hidden;
    position: relative;
}

#cupos {
    font-weight: 500;
    color: var(--oliva-oscuro);
    letter-spacing: 0.02em;
}

/* ---------------------------------------------------------
   CONFIRMAR ASISTENCIA
   --------------------------------------------------------- */

.icono-paloma {
    display: flex;
    justify-content: center;
    margin-bottom: 0.8rem;
    color: var(--dorado);
}

.icono-paloma svg {
    width: 48px;
    height: 42px;
}

.boton-confirmar {
    display: inline-block;
    margin-top: 1.4rem;
    padding: 1rem 2.4rem;
    border-radius: 999px;
    border: 1px solid var(--oliva-oscuro);
    background: var(--oliva-oscuro);
    color: var(--marfil);
    font-family: 'Lora', serif;
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(75, 85, 48, 0.18);
}

.boton-confirmar:hover {
    background: var(--oliva);
    border-color: var(--oliva);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(75, 85, 48, 0.22);
}

/* ---------------------------------------------------------
   GALERÍA
   --------------------------------------------------------- */

.galeria {
    text-align: center;
    padding: 4.5rem 1.5rem 5rem;
}

.galeria h2 {
    font-size: 3rem;
    margin-bottom: 2.5rem;
    font-family: 'Allura', cursive;
}

.fotos {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem;
    max-width: 900px;
    margin: 0 auto;
}

.fotos img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    border-radius: var(--radio-tarjeta);
    box-shadow: var(--sombra-suave);
    transition: transform 0.4s ease;
}

.fotos img:hover {
    transform: scale(1.03);
}

/* ---------------------------------------------------------
   FOOTER
   --------------------------------------------------------- */

footer {
    text-align: center;
    background: var(--oliva-oscuro);
    color: var(--marfil);
    padding: 3.5rem 1.5rem 3rem;
}

.footer-firma {
    font-size: 2.2rem;
    color: var(--marfil);
    margin: 0;
}

footer .nombres-script {
    font-size: 2.2rem;
}

.footer-texto {
    color: var(--dorado-claro);
    font-size: 0.95rem;
    letter-spacing: 0.08em;
    margin-top: 0.3rem;
}

@media (max-width: 640px) {
    .footer-firma,
    footer .nombres-script {
        font-size: 1.6rem;
    }
}
/* ---------------------------------------------------------
   ANIMACIONES
   --------------------------------------------------------- */

@keyframes aparecer {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}

.card, .card-evento, .galeria {
    animation: aparecer 0.9s ease both;
}

@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; }
}

/* ---------------------------------------------------------
   RESPONSIVE
   --------------------------------------------------------- */

@media (max-width: 640px) {

    .card h2 { font-size: 2.4rem; }
    .contador-section { padding: 4.5rem 1.5rem 4rem; }
    .nombres-script { font-size: 2.7rem; }
    .nombre-individual { font-size: 2.3rem; }

    .circulo-ampersand {
        width: 46px;
        height: 46px;
        font-size: 1.3rem;
    }

    .contador-anillos { width: 268px; height: 268px; }
    .anillo { width: 236px; height: 236px; }

    .contador-circulo {
        width: 196px;
        height: 196px;
        padding: 1.1rem;
    }

    .contador-numero { font-size: 2rem; }
    .contador-bloque { padding: 0 0.4rem; }
    .caja-bienvenida { padding: 2.4rem 1.6rem; }

    .fotos { grid-template-columns: 1fr; }
    .fotos img { height: 220px; }

    .card, .card-evento { padding: 3rem 1.4rem; }

    .vestimenta-col { padding: 0 1rem; }
}

/* ---------------------------------------------------------
   ACCESIBILIDAD
   --------------------------------------------------------- */

button:focus-visible {
    outline: 2px solid var(--dorado);
    outline-offset: 3px;
}