/* Declaración de la fuente personalizada */
@font-face {
    font-family: 'Darling Vintage';
    src: url('fonts/Rose\ Mary-Regular.woff2') format('woff2'),
         url('fonts/Rose\ Mary-Regular.woff') format('woff');
    font-weight: lighter;
    font-style: normal;
    font-display: swap; 
}

@font-face {
    font-family: 'Bois de Jasmin';
    src: url('fonts/Bois\ de\ Jasmin\ 1\ Sans-Regular.woff2') format('woff2'),
         url('fonts/Bois\ de\ Jasmin\ 1\ Sans-Regular.woff') format('woff');
    font-weight: lighter;
    font-style: normal;
    font-display: swap;
}

/* Paleta de Colores Bosque / Jardín de Hongos */
:root {
    --bg-white: #ffffff;
    --stripe-pink: #f7ebeb;       /* Tono crema / rosa muy pálido */
    --accent-pink: #4b181d;       /* Ciruela oscuro / vino principal */
    --accent-mauve: #76424e;      /* Palo de rosa / malva intermedio */
    --accent-green: #8a8957;      /* Verde musgo de la paleta */
    --text-dark: #31090a;         /* Tono café oscuro ciruela para textos */
    --glass-bg: rgba(255, 255, 255, 0.75);
}

/* --- 1. RESET Y CANDADO ANTI-SCROLL HORIZONTAL --- */
* {
    box-sizing: border-box;
}

html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden !important;
    position: relative;
}

.decorations {
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

html {
    height: 100%;
}

body {
    margin: 0;
    padding: 2rem 1rem;
    font-family: 'Montserrat', sans-serif;
    color: var(--text-dark);
    background: transparent; 
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Capa de fondo fija */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    background: radial-gradient(circle at center,#eedce8  0%, #faf7f3 100%);
    -webkit-transform: translate3d(0,0,0);
    pointer-events: none;
}

.container {
    max-width: 650px;
    width: 100%;
    padding: 3rem 2.5rem;
    text-align: center;
    position: relative;
    z-index: 10;
    border-radius: 24px;
}

/* Tipografía de Títulos */
h1, h2, h3 {
    font-family: 'Darling Vintage', cursive, serif;
    margin: 0;
    font-size: 4rem;
    color: var(--accent-pink);
    font-weight: 100;
}

h1 {
    font-size: 4.5rem;
    color: var(--accent-pink);
    line-height: 1;
    margin-top: 10px;
}

.surfboard-img {
    max-width: 100%;
    width: 750px;
    height: auto;
    margin: 0 auto 1.5rem auto;
    display: block;
    filter: drop-shadow(0 8px 15px rgba(75, 24, 29, 0.2));
    transition: transform 0.3s ease;
}

.surfboard-img:hover {
    transform: scale(1.02);
}

.parents-name {
    color: var(--accent-mauve);
    font-size: 6rem;
    margin-bottom: 0.5rem;
    font-weight: lighter;
}

.baby-name {
    font-family: 'Darling Vintage', cursive, serif;
    font-size: 8rem;
    color: var(--accent-green);
    line-height: 0.8;
    margin: 0;
}

.subtitle {
    font-family: 'Bois de Jasmin', cursive, serif;
    font-size: 1.6rem;
    letter-spacing: 2px;
    color: var(--text-dark);
    opacity: 0.75;
    margin: 1rem 0 0 0;
}

/* Separador Ondulado con tono Ciruela */
.wavy-divider {
    border: 0;
    height: 8px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 10" preserveAspectRatio="none"><path d="M0,5 Q12.5,10 25,5 T50,5 T75,5 T100,5" fill="none" stroke="%234b181d" stroke-width="2"/></svg>') repeat-x;
    margin: 2.5rem 0;
    opacity: 0.45;
}

.info-card {
    background: rgba(255, 255, 255, 0.5);
    padding: 1.5rem;
    border-radius: 16px;
    margin-top: 1.5rem;
}

.info-item {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.address {
    font-size: 0.95rem;
    color: #666;
}

/* Botones */
.btn-outline {
    display: inline-block;
    margin-top: 15px;
    color: var(--accent-pink);
    text-decoration: none;
    font-weight: 600;
    border: 2px solid var(--accent-pink);
    padding: 8px 20px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: var(--accent-pink);
    color: white;
}

.btn-solid {
    background-color: var(--accent-pink);
    color: white;
    border: none;
    padding: 12px 28px;
    font-size: 1.1rem;
    border-radius: 25px;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 15px rgba(75, 24, 29, 0.3);
}

.btn-solid:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(75, 24, 29, 0.45);
}

.input-wrapper {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 1rem;
}

.input-wrapper input {
    width: 60%;
    margin-top: 0;
}

input[type="text"], input[type="password"], select, textarea {
    width: 100%;
    padding: 12px;
    margin-top: 5px;
    border: 1px solid #ddd;
    border-radius: 12px;
    font-family: 'Montserrat', sans-serif;
    background: rgba(255,255,255,0.8);
    transition: border-color 0.3s;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--accent-pink);
}

.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

p {
    font-family: 'Bois de Jasmin', sans-serif;
    font-size: 1rem;
}

.hidden { display: none; }
.error-msg { color: #8a202b; font-size: 0.9rem; margin-top: 10px; }

/* Posicionamiento de Decoraciones */
.decorations {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.deco {
    position: absolute;
    height: auto;
    filter: drop-shadow(2px 4px 6px rgba(0,0,0,0.12));
}

.deco-tl {
    top: 0px;
    left: -5px;
    max-width: 260px;
}

.deco-tr {
    top: -60px;
    right: -20px;
    max-width: 280px;
}

/* --- ANIMACIÓN FLOTANTE SUTIL PARA MARIPOSAS --- */
@keyframes butterflyFloatLeft {
    0% {
        transform: translateY(-50%) rotate(10deg) scale(1);
    }
    50% {
        transform: translateY(-54%) rotate(12deg) scale(0.97, 1.02);
    }
    100% {
        transform: translateY(-47%) rotate(8deg) scale(1.02, 0.98);
    }
}

@keyframes butterflyFloatRight {
    0% {
        transform: translateY(-50%) rotate(-5deg) scale(1);
    }
    50% {
        transform: translateY(-46%) rotate(-3deg) scale(0.98, 1.02);
    }
    100% {
        transform: translateY(-53%) rotate(-7deg) scale(1.02, 0.98);
    }
}

/* --- APLICACIÓN EN TUS CLASES EXISTENTES --- */
.deco-ml {
    top: 55%;
    left: 170px;
    max-width: 200px;
    transform-origin: center center;
    will-change: transform;
    animation: butterflyFloatLeft 5s ease-in-out infinite alternate;
}

.deco-mr {
    top: 50%;
    right: 300px;
    max-width: 125px;
    transform-origin: center center;
    will-change: transform;
    animation: butterflyFloatRight 6.5s ease-in-out infinite alternate;
}

.deco-bl {
    bottom: -80px;
    left: 0px;
    max-width: 200px;
    transform: rotate(7deg);
    -webkit-transform: rotate(7deg);
    -moz-transform: rotate(7deg);
    -ms-transform: rotate(7deg);
    -o-transform: rotate(7deg);
}

.deco-br {
    bottom: -50px;
    right: 20px;
    max-width: 280px;
}

.fade-in {
    animation: fadeIn 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 600px) {
    .surfboard-img { width: 260px; }
    h1 { font-size: 3.5rem; }
    .parents-name { font-size: 2rem; }
    .input-wrapper { flex-direction: column; }
    .input-wrapper input { width: 100%; }
}

@media (max-width: 768px) {
    .deco {
        max-width: 100px; 
        opacity: 0.8;
    }
    .deco-tl { max-width: 130px; left: -10px; top: -10px; }
    .deco-br { max-width: 120px; bottom: 0; }
}

/* --- SECCIÓN DE REGALOS --- */
.gift-section {
    margin-top: 1rem;
}

.gift-intro {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    padding: 0 10px;
    opacity: 0.9;
}
.gift-intro strong {
    color: var(--accent-pink);
    font-family: 'Darling Vintage', cursive;
    font-size: 2rem;
}

.gift-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin-bottom: 2rem;
}

.gift-grid h3 {
    font-family: 'Darling Vintage', cursive, serif;
    font-size: 2.8rem;
}

.gift-grid p {
    font-family: 'Bois de Jasmin', cursive, serif;
    font-size: 2rem;
    line-height: 1.4;
}

.gift-card {
    /* background: rgba(255, 255, 255, 0.6); */
    padding: 1.5rem;
    border-radius: 20px;
    flex: 1;
    min-width: 260px;
    max-width: 320px;
    /* border: 1px solid rgba(75, 24, 29, 0.15); */
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease;
}

.gift-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.85);
}

.gift-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.gift-card p {
    font-size: 0.9rem;
    margin-bottom: 1.2rem;
    line-height: 1.4;
}

/* Zelle Pill */
.zelle-pill {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: transparent; 
    border: none;
    box-shadow: none;
    width: 100%;
    cursor: pointer;
    margin-top: 5px;
    padding: 5px;
    transition: transform 0.2s;
}

.zelle-pill:active {
    transform: scale(0.95);
    background-color: transparent; 
}

.zelle-pill:hover {
    transform: scale(1.05);
}

.zelle-address {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: var(--text-dark);
    font-size: 1rem;
    letter-spacing: 1px;
    text-decoration-color: var(--accent-pink);
    text-underline-offset: 4px;
}

.zelle-address,
.zelle-address a,
a[href^="tel"] {
    color: var(--text-dark) !important;
    text-decoration-color: var(--accent-pink) !important;
}

.copy-icon {
    color: var(--accent-pink);
    display: flex;
    align-items: center;
}

.envelope-note {
    margin-top: 10px;
    font-size: 0.95rem;
    opacity: 0.85;
}

.qr-container {
    margin-bottom: 15px;
    padding: 8px;
    background: white;
    border-radius: 12px;
}
.qr-code { width: 110px; height: 110px; display: block; }
.full-width { width: 100%; box-sizing: border-box; text-align: center; }

.copy-msg {
    font-size: 0.8rem;
    color: var(--accent-green);
    margin-top: 8px;
    font-weight: 600;
    animation: fadeInUp 0.3s ease;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* =========================================
   RSVP
========================================= */
.script-title {
  font-family: 'Darling Vintage', cursive;
  font-size: 4rem;
  line-height: 0.8;
  margin: 0 0 20px 0;
  color: var(--accent-pink);
  font-weight: normal;
}

.script-title-small {
  font-family: 'Darling Vintage', cursive;
  font-size: 3rem;
  line-height: 1;
  margin: 0 0 15px 0;
  color: var(--accent-pink);
}

.instruction-text {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 30px;
  color: var(--text-dark);
}

.deadline-text {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 30px;
  color: #888;
}

.input-wrapper-centered {
  display: flex;
  justify-content: center;
  width: 100%;
}

.rsvp-code-style {
  width: 100%;
  max-width: 250px;
  padding: 10px;
  text-align: center;
  border: none;
  border-bottom: 1px solid var(--text-dark);
  font-family: 'Montserrat', sans-serif;
  font-size: 1.2rem;
  letter-spacing: 3px;
  margin-bottom: 30px;
  outline: none;
  text-transform: uppercase;
  background: transparent;
  transition: border-color 0.3s;
  border-radius: 0;
  color: var(--accent-pink);
}

.rsvp-code-style:focus {
  border-bottom: 2px solid var(--accent-pink);
}

.editorial-btn {
  background: var(--accent-pink);
  color: #fff;
  padding: 14px 40px;
  border: none;
  font-family: 'Montserrat', sans-serif;
  letter-spacing: 2px;
  font-size: 0.85rem;
  cursor: pointer;
  text-transform: uppercase;
  transition: all 0.3s;
  margin-top: 10px;
  border-radius: 25px;
}

.editorial-btn:hover {
  background: var(--accent-mauve);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(75, 24, 29, 0.3);
}

.editorial-btn.full-width {
  width: 100%;
}

.guest-block, .common-fields {
  width: 100%;
  text-align: left;
  margin-bottom: 20px;
}

.input-label {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
  color: var(--text-dark);
  font-weight: 600;
}

.rsvp-input-style, .rsvp-select-style {
  width: 100%;
  padding: 12px;
  margin-bottom: 20px;
  border: 1px solid #e0e0e0;
  background-color: #fafafa;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.95rem;
  color: var(--text-dark);
  outline: none;
  box-sizing: border-box;
  border-radius: 8px;
}

.rsvp-input-style:focus, .rsvp-select-style:focus {
  border-color: var(--accent-pink);
  background-color: #fff;
}

.common-field-title {
  font-family: 'Darling Vintage', cursive;
  font-size: 1.8rem;
  margin: 20px 0 15px 0;
  text-align: center;
  color: var(--accent-pink);
}

.success-text {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.1rem;
  margin-bottom: 20px;
}

.success-divider {
  width: 50px;
  height: 1px;
  background: var(--accent-pink);
  margin: 0 auto 20px auto;
}

.success-subtext {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent-green);
}

@media (max-width: 600px) {
  .rsvp-card-inner {
    padding: 60px 40px; 
  }
  .rsvp-card-inner::before {
    top: 8px; left: 8px; right: 8px; bottom: 8px;
  }
  .rsvp-card-inner::after {
    top: 10px; left: 10px; right: 10px; bottom: 10px;
  }
  .script-title { font-size: 3rem; }
  .script-title-small { font-size: 2.5rem; }
}

.hidden { display: none !important; }
.fade-in-up { animation: fadeInUp 0.6s ease forwards; }

/* ============================================
   SECCIÓN DE DETALLES DEL EVENTO
   ============================================ */
.event-info {
    margin: 3rem 0;
}

.event-info h2 {
    font-size: 4rem;
    margin-bottom: 2rem;
    color: var(--accent-pink);
}

.info-card-elegant {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    padding: 3rem 2.5rem;
    border-radius: 20px;
    border: 2px solid rgba(75, 24, 29, 0.12);
    box-shadow: 0 10px 30px rgba(75, 24, 29, 0.1);
    max-width: 450px;
    margin: 0 auto;
    opacity: 0;
    animation: fadeInScale 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.3s forwards;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.info-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.2rem 0;
}

.info-label {
    font-family: 'Darling Vintage', cursive;
    font-size: 2.4rem;
    letter-spacing: 2px;
    color: var(--accent-pink);
    font-weight: 600;
    margin-bottom: 0.8rem;
}

.info-value {
    font-family: 'Bois de Jasmin', sans-serif;
    font-size: 1.8rem;
    color: var(--text-dark);
    line-height: 1.3;
}

.info-address {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    color: #666;
    margin-top: 0.5rem;
    line-height: 1.6;
}

.divider-dot {
    width: 6px;
    height: 6px;
    background: var(--accent-green);
    border-radius: 50%;
    margin: 1rem auto;
    opacity: 0.6;
}

.maps-btn {
    display: inline-block;
    margin-top: 2rem;
}

@media (max-width: 600px) {
    .info-card-elegant {
        padding: 2.5rem 1.8rem;
    }
    .info-value {
        font-size: 1.5rem;
    }
}

.guest-block {
    text-align: left;
    margin-bottom: 10px;
}

.guest-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    margin-top: 10px;
}

.guest-number {
    font-family: 'Darling Vintage', cursive;
    font-size: 1.8rem;
    color: var(--accent-pink);
}

.guest-badge {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.7rem;
    text-transform: uppercase;
    background: var(--stripe-pink);
    color: var(--accent-pink);
    padding: 2px 8px;
    border-radius: 10px;
    letter-spacing: 1px;
    font-weight: 600;
}

.divider-small {
    height: 1px;
    background: #eee;
    margin: 30px 0;
    width: 100%;
}

footer {
    text-align: center;
    padding-top: 40px;
    width: 100%;
    position: relative;
    z-index: 10;
}

footer a {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--text-dark);
    opacity: 0.45;
    text-decoration: none;
    transition: all 0.3s ease;
}

footer a:hover {
    opacity: 1;
    color: var(--accent-pink);
    letter-spacing: 4px;
    cursor: pointer;
}

/* --- AJUSTES PARA MÓVIL --- */
@media (max-width: 768px) {
    .surfboard-img {
        max-width: 100%;
        width: 750px;
    }
    .parents-name {
        font-size: 4rem;
    }
    .baby-name {
        font-size: 6rem;
    }
    .subtitle {
        font-size: 1.2rem;
    }
    .deco-tl {
        max-width: 160px;
        top: -10px;
        left: -20px;
    }
    .deco-tr {
        max-width: 140px;
        top: -30px;
        right: -50px;
    }
    .deco-ml {
        max-width: 110px;
        top: 50%;
        left: -10px;
    }
    .deco-mr {
        max-width: 90px;
        top: 60%; 
        right: 5px;
    }
    .deco-bl {
        max-width: 150px;
        bottom: -50px;
        left: -10px;
    }
    .deco-br {
        max-width: 160px;
        bottom: -10px;
        right: -10px;
    }

    .container {
        padding: 2rem 1.5rem;
    }
    .hero {
        margin-bottom: 1.5rem;
    }
    .baby-name {
        margin-bottom: 0;
        line-height: 0.9;
    }
    .divider-dot {
        margin: .5rem auto;
    }
    .event-info, 
    .dress-code, 
    .gift-section {
        margin: 2rem 0;
    }
    .event-info {
        margin-top: 1rem;
    }
    .wavy-divider {
        margin: 1.5rem 0;
    }
    .info-card-elegant {
        padding: 1.5rem 1.2rem;
    }
    .info-row {
        padding: 0.8rem 0;
    }
    .info-label {
        margin-bottom: 0.4rem;
    }
    .maps-btn {
        margin-top: 1.5rem;
    }
    .gift-intro {
        margin-bottom: 1.5rem;
    }
    .gift-grid {
        gap: 15px;
        margin-bottom: 1.5rem;
    }
    .rsvp-editorial-section {
        padding: 0px 0 40px 0;
    }
    .rsvp-card {
        margin-top: 20px;
    }
    .rsvp-card-inner {
        padding: 40px 25px;
    }
    .instruction-text, .deadline-text {
        margin-bottom: 20px;
    }
    footer {
        padding-top: 20px;
        padding-bottom: 30px;
    }
}