/* ==========================================================================
   PLANTILLA ROMA - ESTILO BOHO CHIC / ROMÁNTICO DEFINITIVO (APP / STORY VIEW)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400&family=Montserrat:wght@300;400;500&family=Pinyon+Script&display=swap');

@font-face {
  font-family: 'AmeliaFont';
  src: url('../../assets/fonts/amellia_wedding-webfont.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Bertiland';
  src: url('../../assets/fonts/bertiland.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Blunica';
  src: url('../../assets/fonts/blunica.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Ringpink';
  src: url('../../assets/fonts/ringpink.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Shelonia';
  src: url('../../assets/fonts/shelonia.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
    --roma-bg: #FAF6ED;          /* Fondo crema cálido */
    --roma-boton: #b87057;
    --roma-card-bg: #fffaf6;     /* Fondo blanco puro para tarjetas */
    --roma-text: #4A3E3D;        /* Café oscuro principal */
    --roma-muted: #8C7C75;       /* Café grisáceo para subtítulos */
    --roma-accent: #7D645B;      /* Tono topo / rosa viejo para botones */
    --roma-border: #ffead7;      /* Bordes suaves */
    --roma-destacado: #C9AD69;
    --font-heading: 'Cormorant Garamond', serif;
    --font-body: 'Montserrat', sans-serif;
    --font-script: 'AmeliaFont', cursive;
    --font-script2: 'Bertiland', cursive;
    --font-script3: 'Blunica', cursive;
    --font-script4: 'Ringpink', cursive;
    --font-script5: 'Shelonia', cursive;
}

/* ==========================================================================
   1. LIENZO Y FONDO GLOBAL (MÓVIL EN TODAS LAS PANTALLAS)
   ========================================================================== */

body.theme-roma {
    margin: 0;
    padding: 0;
    font-family: var(--font-body);
    background-color: var(--roma-bg, #FAF6ED);
    color: var(--roma-text);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    z-index: 0;
}

/* Textura de papel sutil en el fondo */
body.theme-roma::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../../assets/roma/texture-paper.svg');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    opacity: 0.45;
    z-index: -1;
    pointer-events: none;
}

/* Contenedor principal: En móvil 100%, en PC lienzo móvil fijo de 480px */
.contenedor-invitacion {
    width: 100%;
    margin: 0 auto;
    background-color: var(--roma-bg, #FAF6ED);
    position: relative;
    overflow: hidden; /* Corta vectores o ramas decorativas */
}

/* En monitores / PC: Fondo gris elegante exterior + Lienzo móvil de 480px centrado */
@media (min-width: 768px) {
    body.theme-roma {
        background-color: #E6E4E0; /* Gris cálido / Greige editorial */
        min-height: 100vh;
        display: flex;
        justify-content: center;
        align-items: flex-start;
        padding-top:20px;
        padding-bottom:20px;
        
        
        
        
    }

    .contenedor-invitacion {
        max-width: 480px;          /* Ancho exacto de smartphone */
        width: 100%;
        min-height: 100vh;
        border-radius:6px;
        margin: 0 auto;
        background-color: var(--roma-bg, #FAF6ED);
        box-shadow: 
            0 0 50px rgba(0, 0, 0, 0.07),
            0 0 15px rgba(0, 0, 0, 0.03);
    }
}

/* ==========================================================================
   2. SECCIONES Y CONTENEDOR INTERNO
   ========================================================================== */

section.secciones {
    padding: 40px 0;
    text-align: center;
}

.container {
    width: 100%;
    padding: 1rem;
    max-width: 440px; /* Ajustado al lienzo móvil */
    margin: 0 auto;
    box-sizing: border-box;
}

/* ==========================================================================
   3. TIPOGRAFÍA GENERAL
   ========================================================================== */

h1, h2, h3 { 
    font-family: var(--font-heading); 
    font-weight: 400; 
    margin: 0; 
}

h1.couple-names {
    font-family: var(--font-heading); 
    font-weight: 700; 
    margin: 30px 0; 
    font-size: 44px; 
    text-transform: uppercase; 
    line-height: 2.2rem;
    color: var(--roma-text);
}



p.lugar {
    font-weight: 800;
    color: #000;
    font-size: 1.5rem;
    /* border-bottom: 1px solid #57575714; */
    padding-bottom: 8px;
    /* margin-bottom: 14px; */
}

button.btn-simple {
    background: none;
    padding: 2px;
    font-size: 0.8rem;
    color: #000;
    text-decoration: underline;
    box-shadow: none;
}

button.btn-simple:hover{
    box-shadow: none;
}

h4.tipo-regalo{
    font-family: var(--font-heading); 
    font-size: 1.6rem;
     font-weight: 800;
}

i.icon-ceremony {
    opacity: 0.8;
    font-size: 1rem;
}


span.ampersand-gold {
    font-family: var(--font-heading); 
    font-weight: 100; 
    margin: 0; 
    color: var(--roma-destacado); 
    opacity: 0.57;
}

.section-title { 
    font-family: var(--font-heading);
    font-size: 2.2rem; 
    text-align: center; 
    color: var(--roma-text); 
    margin-bottom: 1.5rem; 
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

h2.section-title {
    font-size: 1.3rem;
}

h3.section-title {
    font-family: var(--font-script2);
    text-transform: capitalize;
    font-weight: 100;
    letter-spacing: -2px;
    font-size: 3.4rem;
    margin-bottom: 0px;
}

p {
    font-family: var(--font-heading);
    font-size: 1.4rem;
}

span.pre-title-hero, 
.wedding-date-hero {
    color: var(--roma-destacado);
    letter-spacing: 0.4rem;
    font-size: 1.1rem;
    font-weight: 600;
}

img.icon-title, 
img.rama-title {
    width: 60px;
    margin: 0 auto 14px;
    display: block;
    filter: brightness(0) saturate(100%) invert(48%) sepia(50%);
}

img.rama-title {
    width: 30px;
}

/* ==========================================================================
   4. HERO SECTION ESTRICTAMENTE VERTICAL (ARCO ARRIBA, TEXTO ABAJO)
   ========================================================================== */

.roma-hero {
    display: flex;
    flex-direction: column-reverse; /* Foto siempre arriba, texto abajo */
    align-items: center;
    justify-content: flex-start;
    padding: 2.5rem 1rem 3rem;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
    filter: grayscale(0.35);
}

.roma-hero-image {
    width: 100%;
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 1;
}

/* Marco exterior en arco */
.roma-arch-frame {
    width: 100%;
    max-width: 310px;
    margin: 0 auto;
    padding: 14px;
    border: 1px solid var(--roma-destacado);
    border-radius: 260px 260px 0 0;
    background-color: transparent;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.03);
    box-sizing: border-box;
}

/* Imagen interior del arco */
.roma-arch-img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    object-position: center top;
    display: block;
    border-radius: 246px 246px 0 0; /* 260 - 14 = 246px */
}

.hero-content {
    position: relative;
    z-index: 2;
    margin-top: 15px;
    width: 100%;
    max-width: 380px;
    text-align: center;
}

/* Separadores dorados (Línea - Rombo - Línea) */
.hero-divider-diamond {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 160px;
    margin: 1.4rem auto;
    color: var(--roma-destacado, #B0947B);
}

.hero-divider-diamond::before,
.hero-divider-diamond::after {
    content: "";
    flex: 1;
    height: 1px;
    background-color: rgba(176, 148, 123, 0.45);
}

.hero-divider-diamond span {
    padding: 0 10px;
    font-size: 0.65rem;
    line-height: 1;
    opacity: 0.85;
}

/* ==========================================================================
   5. VECTORES FLORALES DE FONDO CON EFECTO PARALLAX
   ========================================================================== */

.di-section-relative {
    position: relative;
    overflow: hidden;
}

.di-section-content {
    position: relative;
    z-index: 2;
}

.di-floating-decor {
    position: absolute;
    z-index: 1;
    pointer-events: none;
    user-select: none;
    will-change: transform;
    transition: transform 0.4s ease-out;
}

.di-decor-top-left {
    top: -30px;
    left: -40px;
    width: 180px;
    opacity: 0.5;
}

.di-decor-top-right {
    top: -80px;
    right: -40px;
    width: 180px;
    opacity: 0.5;
}

.di-decor-right {
    right: -60px;
    width: 180px;
    opacity: 0.5;
}

.di-decor-left {
    left: -90px;
    width: 180px;
    opacity: 0.5;
}

.di-decor-bottom-right {
    bottom: -50px;
    right: -40px;
    width: 220px;
    opacity: 0.75;
}

/* ==========================================================================
   6. TARJETAS FLOTANTES Y GRILLA DE UBICACIONES (SIEMPRE 1 COLUMNA)
   ========================================================================== */

.roma-card {
    background: var(--roma-card-bg);
    border-radius: 12px;
    padding: 35px 25px;
    box-shadow: 0 10px 30px rgba(92, 77, 68, 0.05);
    border: 1px solid var(--roma-border);
    margin-bottom: 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.roma-card > p, 
.roma-card > h4 {
    margin: 0px;
}

.roma-card > *:not(.floral-decor-bl) {
    position: relative;
    z-index: 1;
}

/* Grilla de 1 columna SIEMPRE en cualquier pantalla */
.roma-grid-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

div.destacado {
    background: #FAF6ED;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
    border: 1px dashed #cec3b1;
}

/* ==========================================================================
   7. LÍNEA DE TIEMPO (NUESTRA HISTORIA)
   ========================================================================== */

.timeline-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    margin: 40px 0;
    padding: 20px 0;
    overflow-x: auto;
}

.timeline-item {
    text-align: center;
    flex: 1;
    min-width: 130px;
    position: relative;
    padding: 0 10px;
}

.timeline-icon {
    width: 60px;
    height: 60px;
    border: 1px solid var(--roma-accent);
    border-radius: 50%;
    display: flex;
    font-size: 1.4rem;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    background: var(--roma-card-bg);
    color: var(--roma-accent);
}

.timeline-year {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 600;
}

.timeline-desc {
    font-size: 0.85rem;
    color: var(--roma-muted);
}

.timeline-item > p {
    margin: 0px 0px 16px 0px;
    line-height: 120%;
}

/* Si en pantallas muy pequeñas prefieres que vayan en columna vertical: */
@media (max-width: 480px) {
    .timeline-container {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }
    .timeline-item {
        width: 100%;
        min-width: auto;
    }
}

/* ==========================================================================
   8. CONTADOR REGRESIVO (FALTAN)
   ========================================================================== */

.countdown {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.cd-box {
    border: 1px solid var(--roma-border);
    border-radius: 50%;
    width: 75px;
    height: 75px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.cd-num {
    display: block;
    font-family: var(--font-body);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--roma-text);
    line-height: 1;
}

.cd-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--roma-muted);
    margin-top: 4px;
}

/* ==========================================================================
   9. GALERÍA EN MARCO POLAROID
   ========================================================================== */

.di-gallery-layout-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    width: 100%;
    margin: 0 auto;
}

.di-polaroid-frame {
    background: #FFFFFF;
    padding: 14px 14px 42px 14px;
    box-shadow: 0 15px 35px rgba(45, 42, 38, 0.12), 0 5px 15px rgba(0,0,0,0.05);
    border-radius: 8px;
    position: relative;
    width: 94%;
    max-width: 360px;
    box-sizing: border-box;
}

.di-gallery-swiper {
    width: 100% !important;
    position: static !important;
}

.di-photo-container {
    width: 100%;
    aspect-ratio: 4 / 5;
    overflow: hidden;
}

.di-photo-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 6px;
}

/* Cintas adhesivas decorativas */
.di-tape-top {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%) rotate(1deg);
    width: 70px;
    height: 22px;
    background: rgba(230, 220, 205, 0.65);
    border-left: 1px dashed rgba(0,0,0,0.05);
    border-right: 1px dashed rgba(0,0,0,0.05);
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    z-index: 10;
}

.di-tape-bottom {
    position: absolute;
    bottom: -10px;
    left: 20%;
    transform: rotate(-3deg);
    width: 60px;
    height: 20px;
    background: rgba(230, 220, 205, 0.55);
    z-index: 10;
}

.di-polaroid-caption-fixed {
    text-align: center;
    margin-top: 10px;
}

.di-polaroid-caption-fixed .caption-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.6rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    color: #4A4540;
    line-height: 1.1;
    text-transform: uppercase;
}

.di-polaroid-caption-fixed .caption-names {
    font-family: var(--font-script2), cursive;
    font-size: 2.8rem;
    letter-spacing: -1px;
    color: var(--roma-accent, #D4A373);
    margin-top: 10px;
    line-height: 150%;
}

.swiper-pagination-bullet-active {
    background: var(--roma-destacado);
}

/* Botones de navegación del Swiper */
.di-gallery-swiper .swiper-button-prev,
.di-gallery-swiper .swiper-button-next {
    color: var(--roma-accent) !important;
    font-size: 0rem;
    padding: 10px;
    background: #fff;
    border-radius: 50px;
    width: 70px;
    height: 70px;
    transform: scale(0.6);
    box-shadow: 0 15px 35px rgba(45, 42, 38, 0.12), 0 5px 15px rgba(0,0,0,0.05);
}

.swiper-button-prev:after, 
.swiper-button-next:after {
    font-size: 1.8rem;
}

.swiper-button-prev.di-swiper-nav { left: -20px; }
.swiper-button-next.di-swiper-nav { right: -20px; }

/* ==========================================================================
   10. BOTONES Y FORMULARIOS
   ========================================================================== */

.btn-primary {
    display: inline-block;
    padding: 12px 35px;
    background-color: var(--roma-boton);
    color: #FFF;
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.4rem;
    font-family: var(--font-heading);
    border: none;
    cursor: pointer;
    transition: opacity 0.3s, transform 0.2s;
    margin-top: 28px;
    letter-spacing: 1px;
}

.btn-primary:hover { 
    opacity: 0.9; 
    transform: translateY(-2px); 
    color: #FFF; 
}

.btn-whatsapp {
    background-color: #57b864 !important;
    padding: 8px 16px;
    letter-spacing: 0px;
    margin: 10px 0px 0px 0px;
}

.roma-input {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 15px;
    border: 1px solid var(--roma-border);
    background: rgba(255,255,255,0.7);
    border-radius: 6px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--roma-text);
    box-sizing: border-box;
}

select.roma-input {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 15px;
    border: 1px solid var(--roma-border);
    background: rgba(255,255,255,0.7);
    border-radius: 6px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--roma-text);
    box-sizing: border-box;
}

.roma-input:focus { 
    outline: none; 
    border-color: var(--roma-accent); 
}

/* ==========================================================================
   11. BOTÓN FLOTANTE DE MÚSICA — ESTILO EDITORIAL (CON ONDA SONORA)
   ========================================================================== */

.di-audio-btn {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(180, 165, 155, 0.65);
    color: var(--roma-text, #2c2c2c);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    opacity: 0.65;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.di-audio-btn:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.95);
    transform: translateX(-50%) scale(1.06);
    border-color: var(--roma-accent, #c5a059);
}

.di-audio-btn.playing {
    opacity: 0.95;
    border-color: var(--roma-accent, #c5a059);
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 4px 20px rgba(197, 160, 89, 0.15);
}

.di-audio-btn::after {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border-radius: 50%;
    border: 1px solid var(--roma-accent, #c5a059);
    opacity: 0;
    pointer-events: none;
}

.di-audio-btn.playing::after {
    animation: romaSoundRing 2.4s infinite cubic-bezier(0.21, 0.53, 0.56, 0.8);
}

.di-audio-icon {
    font-size: 1.25rem;
    line-height: 1;
    transition: transform 0.3s ease;
}



.di-audio-waves {
    display: none;
    position: absolute;
    gap: 3px;
    align-items: flex-end;
    height: 14px;
}

.di-audio-waves i {
    display: block;
    width: 2px;
    background: var(--roma-accent, #c5a059);
    border-radius: 2px;
    animation: soundWave 0.7s infinite ease-in-out alternate;
}

.di-audio-waves i:nth-child(1) { height: 6px; animation-delay: 0.0s; }
.di-audio-waves i:nth-child(2) { height: 14px; animation-delay: 0.25s; }
.di-audio-waves i:nth-child(3) { height: 8px; animation-delay: 0.5s; }

.di-audio-btn.playing .di-audio-icon { display: none; }
.di-audio-btn.playing .di-audio-waves { display: flex; }

@keyframes soundWave {
    0%   { height: 3px; }
    100% { height: 14px; }
}

@keyframes romaSoundRing {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }
    100% {
        transform: scale(1.65);
        opacity: 0;
    }
}

/* ==========================================================================
   12. FOOTER
   ========================================================================== */

.roma-footer { 
    padding: 40px 10px; 
    text-align: center; 
    background: #EFE9DE; 
    color: var(--roma-muted); 
    font-size: 0.8rem; 
    letter-spacing: 0.2em; 
    text-transform: uppercase; 
}

.roma-footer p {
    font-size: 16px;
    margin: 0px;
}        }
        50% {
            background-position: 100% 50%;
        }
        100% {
            background-position: 0% 50%;
        }
    }

    /* 3. El lienzo móvil permanece fijo, nítido y sin distorsiones */
    .contenedor-invitacion {
        max-width: 480px;
        width: 100%;
        min-height: 100vh;
        margin: 0 auto;
        background-color: var(--roma-bg, #FAF6ED);
        box-shadow: 
            0 0 50px rgba(0, 0, 0, 0.08),
            0 0 15px rgba(0, 0, 0, 0.03);
        position: relative;
        z-index: 10; /* Asegura que quede por encima de cualquier efecto del fondo */
    }

    /* La invitación se restringe al ancho ideal de un smartphone (480px) */
    .contenedor-invitacion {
        max-width: 480px;          /* Ancho exacto de diseño móvil */
        width: 100%;
        min-height: 100vh;
        margin: 0 auto;            /* Centrado horizontal en el monitor */
        background-color: var(--roma-bg, #FAF6ED);
        
        /* Sombra difuminada para despegar la invitación del fondo gris del monitor */
        box-shadow: 
            0 0 50px rgba(0, 0, 0, 0.07),
            0 0 15px rgba(0, 0, 0, 0.03);
    }
}

section.asistencia {
    padding: 30px 12px;
}

