/* =========================================================
   INVITACIÓN — style.css
   1. Variables          7. Formulario
   2. Tipografías        8. Preguntas frecuentes
   3. Base               9. Fotos con parallax y frase
   4. Header            10. Botón, audio, footer
   5. Contador e info   11. Animaciones
   6. Timeline          12. Componentes opcionales
                        13. Responsive y accesibilidad
   ========================================================= */


/* ---------- 1. VARIABLES ---------- */
:root {
  /* Colores */
  --color-fondo: #ffffff;
  --color-acento: #BE9896;                 /* rosa viejo: header, form, footer, botones */
  --color-salvia: #abb08b;                 /* títulos e íconos */
  --color-texto: #8D8B5D;                  /* salvia oscuro: párrafos */
  --color-linea: rgba(171, 176, 139, .40);
  --color-salvia-suave: rgba(171, 176, 139, .12);
  --color-placeholder: #a9ad95;
  --vidrio: rgba(255, 255, 255, .78);      /* fondo de tarjetas */

  /* Tipografías */
  --font-script: 'MiTipografia', cursive;
  --font-serif: 'Ibarra Real Nova', Georgia, serif;

  /* Escala de tamaños */
  --fs-chico: .9rem;
  --fs-texto: 1.05rem;
  --fs-destacado: 1.25rem;
  --fs-frase: 1.6rem;
  --fs-subtitulo: 2rem;
  --fs-titulo: 2.4rem;
  --fs-hero: 3.2rem;

  /* Formas */
  --radio: 22px;
  --sombra: 0 14px 34px -18px rgba(110, 115, 86, .45);
  --ancho-contenido: 520px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}


/* ---------- 2. TIPOGRAFÍAS ---------- */
@font-face {
  font-family: 'MiTipografia';
  src: url('WhisperMelody-Regular.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}


/* ---------- 3. BASE ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  width: 100%;
  min-width: 320px;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  font-family: var(--font-script);
  color: var(--color-texto);
  background-color: var(--color-fondo);
  background-image: url(./newimages/textura.png);
  background-repeat: repeat;
  background-size: contain;
  -webkit-font-smoothing: antialiased;
}

p {
  font-family: var(--font-serif);
  font-size: var(--fs-texto);
  line-height: 1.55;
}

h2,
h3 {
  font-family: var(--font-script);
  font-weight: normal;
}

img {
  max-width: 100%;
}

.linea,
.linea img {
  width: 100%;
  margin: 0;
  padding: 0;
}

/* Contenedor de íconos (sin círculo) */
.icono {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  transition: transform .4s var(--ease);
}

.icono img {
  width: 60px;
  height: auto;
}

.icono-grande {
  width: 96px;
  height: 96px;
}

.icono-grande img {
  width: 84px;
}


/* ---------- 4. HEADER ---------- */
header {
  position: relative;
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-color: var(--color-acento);
  background-image: radial-gradient(circle at 50% 40%, rgba(255, 255, 255, .14), transparent 60%);
  color: var(--color-fondo);
  overflow: hidden;
}

header p {
  font-family: var(--font-script);
  font-size: var(--fs-subtitulo);
  margin: 0;
  padding: 8px 0;
  animation: aparecer 2.4s var(--ease) both;
}

header > img {
  width: min(300px, 75vw);
  animation: aparecer-escala 2.4s var(--ease) both;
}

header h2 {
  font-size: var(--fs-hero);
  margin: 0;
  padding: 8px 0;
}

.heartd {
  position: absolute;
  top: 48px;
  right: 30px;
  z-index: 10;
  padding: 10px;
  animation: flotar-suave 7s ease-in-out infinite;
}

.heartl {
  position: absolute;
  bottom: 13px;
  left: 16px;
  z-index: 10;
  padding: 10px;
  animation: flotar-suave 8s ease-in-out infinite reverse;
}

.heartd img,
.heartl img {
  width: 100px;
}

/* Flecha para bajar */
.scroll-hint {
  position: absolute;
  bottom: 28px;
  left: 50%;
  translate: -50% 0;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, .6);
  border-radius: 50%;
  color: var(--color-fondo);
  font-size: 1.1rem;
  text-decoration: none;
  animation: bajar 2.2s ease-in-out infinite;
}


/* ---------- 5. CONTADOR E INFO ---------- */
.title {
  margin: 64px 0 18px;
  text-align: center;
  font-family: var(--font-serif);
  font-size: var(--fs-chico);
  font-weight: normal;
  letter-spacing: .35em;
  color: var(--color-acento);
  scroll-margin-top: 24px;
}

.contador {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 0;
  padding: 0 16px 40px;
  color: var(--color-acento);
}

.bloque {
  min-width: 70px;
  padding: 0 4px;
  text-align: center;
}

.numero {
  font-family: var(--font-script);
  font-size: 2.8rem;
  line-height: 1.1;
}

.etiqueta {
  margin: 4px 0 0;
  padding: 0;
  font-family: var(--font-serif);
  font-size: .75rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--color-texto);
}

.information {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  width: 100%;
  padding: 24px 16px 72px;
}

.information-bloque {
  flex: 1 1 280px;
  max-width: 400px;
  padding: 16px 24px;
  text-align: center;
}

.bloque2 {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.bloque2 .icono {
  margin-bottom: 16px;
}

.bloque2 p {
  margin: 4px 0;
  color: var(--color-texto);
}

/* Horario de cada lugar */
.bloque2 p:first-of-type {
  font-size: var(--fs-chico);
  letter-spacing: .12em;
  color: var(--color-acento);
}

.bloque2 h3 {
  margin: 6px 0 4px;
  font-size: var(--fs-subtitulo);
  line-height: 1.15;
  color: var(--color-salvia);
}

.bloque2 .boton {
  margin-top: 18px;
}


/* ---------- 6. TIMELINE ---------- */
.timeline {
  position: relative;
  width: 100%;
  padding: 72px 0 80px;
}

.timeline h2 {
  margin: 0 0 32px;
  text-align: center;
  font-size: var(--fs-titulo);
  color: var(--color-salvia);
}

.timeline .iconos {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px 20px;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 16px;
}

.iconos-block {
  flex: 0 1 130px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

.iconos-block .icono img {
  animation: flotar 3.6s ease-in-out infinite;
}

/* Cada ícono flota con un pequeño desfase */
.iconos-block:nth-child(2) .icono img { animation-delay: -.5s; }
.iconos-block:nth-child(3) .icono img { animation-delay: -1s; }
.iconos-block:nth-child(4) .icono img { animation-delay: -1.5s; }
.iconos-block:nth-child(5) .icono img { animation-delay: -2s; }
.iconos-block:nth-child(6) .icono img { animation-delay: -2.5s; }
.iconos-block:nth-child(7) .icono img { animation-delay: -3s; }

.iconos-block p {
  margin: 0;
  font-size: var(--fs-destacado);
  line-height: 1.3;
  color: var(--color-texto);
}

.hora {
  display: block;
  font-size: var(--fs-chico);
  letter-spacing: .12em;
  color: var(--color-acento);
}

.heart1 {
  position: absolute;
  top: -45px;
  right: 20px;
  z-index: 10;
  padding: 10px;
  animation: flotar-suave 7s ease-in-out infinite;
}

.heart2 {
  position: absolute;
  bottom: -54px;
  left: 8px;
  z-index: 10;
  padding: 10px;
  animation: flotar-suave 8s ease-in-out infinite reverse;
}

.timeline .heart2 {
  bottom: -138px;
}

.heart1 img,
.heart2 img {
  width: 100px;
}


/* ---------- 7. FORMULARIO ---------- */
.forms {
  padding: 72px 16px;
  text-align: center;
  background-color: var(--color-acento);
  background-image: radial-gradient(circle at 50% 0%, rgba(255, 255, 255, .14), transparent 55%);
  color: var(--color-fondo);
}

.forms h2 {
  margin: 0;
  font-size: var(--fs-titulo);
  color: var(--color-fondo);
}

.forms p {
  max-width: 420px;
  margin: 0 auto;
  color: var(--color-fondo);
  opacity: .92;
}

.formulario {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 480px;
  margin: 28px auto 36px;
  text-align: center;
}

.formulario .formtitle {
  margin: 0 0 4px;
  font-family: var(--font-serif);
  font-size: var(--fs-destacado);
  color: var(--color-fondo);
}

.radio-group {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 8px;
}

/* Sí / No como píldoras */
.radio-option {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 24px;
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 50px;
  font-family: var(--font-serif);
  font-size: var(--fs-texto);
  color: var(--color-fondo);
  cursor: pointer;
  transition: background-color .3s ease, color .3s ease;
}

/* El círculo del radio queda oculto: la píldora entera es el botón */
.radio-option {
  position: relative;
}

.radio-option input[type="radio"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.radio-option:has(input:checked) {
  background-color: var(--color-fondo);
  border-color: var(--color-fondo);
  color: var(--color-acento);
}

.radio-option:has(input:focus-visible) {
  outline: 2px solid var(--color-fondo);
  outline-offset: 3px;
}

.formulario input[type="text"],
.formulario select,
.formulario textarea {
  width: 100%;
  padding: .9rem 1.1rem;
  border: 2px solid transparent;
  border-radius: 14px;
  background-color: var(--color-fondo);
  font-family: var(--font-serif);
  font-size: var(--fs-texto);
  color: var(--color-texto);
  transition: border-color .3s ease, box-shadow .3s ease;
}

.formulario input::placeholder,
.formulario textarea::placeholder {
  color: var(--color-placeholder);
}

.formulario input:focus,
.formulario select:focus,
.formulario textarea:focus {
  outline: none;
  border-color: var(--color-salvia);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, .25);
}

.formulario textarea {
  min-height: 90px;
  resize: vertical;
}

.formulario .boton {
  align-self: center;
  margin-top: 8px;
  padding: 12px 40px;
  font-size: var(--fs-texto);
  background-color: var(--color-fondo);
  color: var(--color-acento);
}


/* ---------- 8. PREGUNTAS FRECUENTES ---------- */
.accordion {
  position: relative;
  width: 100%;
  padding: 72px 0 96px;
  text-align: center;
  font-family: var(--font-serif);
  color: var(--color-texto);
}

.accordion h3 {
  margin: 0 0 32px;
  font-size: var(--fs-titulo);
  line-height: 1.1;
  letter-spacing: .05rem;
  color: var(--color-salvia);
}

.accordion-item {
  width: calc(100% - 32px);
  max-width: var(--ancho-contenido);
  margin: 0 auto;
  border-bottom: 1px solid var(--color-linea);
  text-align: left;
}

.accordion-header {
  appearance: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 20px 0;
  border: 0;
  background: transparent;
  font-family: var(--font-serif);
  font-size: var(--fs-destacado);
  line-height: 1.3;
  color: var(--color-texto);
  text-align: left;
  cursor: pointer;
}

.accordion-header::after {
  content: "+";
  flex-shrink: 0;
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 300;
  line-height: 1;
  color: var(--color-acento);
  transition: transform .4s var(--ease);
}

.accordion-item.active .accordion-header::after {
  transform: rotate(45deg);
}

.accordion-header:focus-visible {
  outline: 2px solid var(--color-salvia);
  outline-offset: 4px;
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height .5s var(--ease);
}

.accordion-item.active .accordion-content {
  max-height: 1000px;
}

.accordion-content img {
  width: 50px;
  margin: 4px 0 8px;
}

.accordion-content p {
  margin: 0 0 12px;
  text-align: left;
  color: var(--color-texto);
}

.gift-box {
  margin: 8px 0;
}


/* ---------- 9. FOTOS CON PARALLAX Y FRASE ---------- */
.quote,
.quote1,
.quote2 {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}

.quote  { height: 80vh; justify-content: center; }
.quote1 { height: 80vh; justify-content: center; }
.quote2 { height: 70vh; justify-content: flex-end; padding-bottom: 64px; }

/* Capa de imagen que se mueve con el scroll */
.parallax-bg {
  position: absolute;
  left: 0;
  right: 0;
  top: -20%;
  height: 140%;
  z-index: -2;
  background-position: center;
  background-size: cover;
  will-change: transform;
}

.quote  .parallax-bg { background-image: url(./newimages/a.png); }
.quote1 .parallax-bg { background-image: url(./newimages/b.png); }
.quote2 .parallax-bg { background-image: url(./newimages/c.png); }

/* Velo oscuro para que el texto se lea */
.quote1::after,
.quote2::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
}

.quote1::after {
  background: rgba(0, 0, 0, .32);
}

.quote2::after {
  background: linear-gradient(to top, rgba(0, 0, 0, .5), transparent 60%);
}

/* Frase con autor */
.frase {
  max-width: 560px;
  margin: 0;
  padding: 0 28px;
  text-align: center;
  color: var(--color-fondo);
}

.frase::before {
  content: "“";
  display: block;
  height: 48px;
  font-family: var(--font-serif);
  font-size: 5rem;
  line-height: 1;
  opacity: .7;
}

.frase p {
  margin: 0;
  font-family: var(--font-script);
  font-size: var(--fs-subtitulo);
  font-style: normal;
  line-height: 1.3;
  text-shadow: 0 2px 18px rgba(0, 0, 0, .25);
}

.frase cite {
  display: inline-block;
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, .6);
  font-family: var(--font-serif);
  font-size: var(--fs-chico);
  font-style: normal;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.quote2 h2 {
  margin: 0;
  padding: 10px 0;
  font-size: var(--fs-hero);
  color: var(--color-fondo);
}

.quote2 p {
  margin: 0;
  padding: 0 0 10px;
  font-size: var(--fs-chico);
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--color-fondo);
}


/* ---------- 10. BOTÓN, AUDIO, FOOTER ---------- */
.boton {
  display: inline-block;
  padding: 10px 28px;
  border: 1px solid var(--color-fondo);
  border-radius: 50px;
  background-color: var(--color-acento);
  font-family: var(--font-serif);
  font-size: var(--fs-chico);
  letter-spacing: .1em;
  color: var(--color-fondo);
  text-decoration: none;
  cursor: pointer;
  transition: opacity .3s ease;
}

.boton:hover {
  opacity: .85;
}

.audiodiv {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 100;
  width: 60px;
  height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  background-color: var(--color-acento);
  cursor: pointer;
  animation: rebote-audio 6s ease-in-out 1;
}

.audiodiv img {
  width: 60px;
  height: 60px;
  margin: 0;
  padding: 3px 0 0;
}

.play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 60px;
  height: 60px;
  transform: translate(-50%, -50%);
}

/* evita que la regla general de img lo deforme */
.audiodiv img,
.play img {
  max-width: none;
  object-fit: contain;
}

audio::-webkit-media-controls,
audio::-webkit-media-controls-panel,
audio::-webkit-media-controls-play-button,
audio::-webkit-media-controls-start-playback-button,
audio::-webkit-media-controls-enclosure,
audio::-webkit-media-controls-current-time-display {
  display: none !important;
}

footer {
  display: flex;
  justify-content: center;
  width: 100%;
  margin: 0;
  padding: 48px 16px;
  text-align: center;
  background-color: var(--color-acento);
  color: var(--color-fondo);
}

footer .contenido {
  display: flex;
  flex-direction: column;
  align-items: center;
}

footer img {
  width: 60px;
}

footer p {
  font-size: var(--fs-chico);
}

.contenido ul {
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0 20px 20px;
  list-style: none;
}

.contenido a {
  font-size: 1.2rem;
  color: var(--color-fondo);
  transition: opacity .2s ease;
}

.contenido a:hover {
  opacity: .7;
}


/* ---------- 11. ANIMACIONES ---------- */
@keyframes aparecer {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes aparecer-escala {
  from { opacity: 0; transform: scale(.92); }
  to   { opacity: 1; transform: scale(1); }
}

@keyframes flotar {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-6px) rotate(-3deg); }
}

@keyframes flotar-suave {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-10px) rotate(4deg); }
}

@keyframes bajar {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50%      { transform: translateY(8px); opacity: .6; }
}

/* nombre propio para no chocar con el "bounce" de animate.css */
@keyframes rebote-audio {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-30px); }
  60% { transform: translateY(-15px); }
}

/* Efectos al pasar el mouse (solo en compu) */
@media (hover: hover) {
  .iconos-block:hover .icono {
    transform: scale(1.12) rotate(-6deg);
  }
}


/* ---------- 12. COMPONENTES OPCIONALES DE LA PLANTILLA ---------- */
.bloque1 {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.information-bloque .botones {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 140px;
  margin: auto;
}

.information-bloque .botones a {
  width: 100px;
}

.grupo-opciones {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin: 0;
  padding: 0;
  font-family: var(--font-serif);
  color: var(--color-fondo);
}

.fotos {
  display: none;
}


/* ---------- 13. RESPONSIVE Y ACCESIBILIDAD ---------- */
@media (max-width: 600px) {
  :root {
    /* textos 10% más grandes en celular */
    --fs-chico: .99rem;
    --fs-texto: 1.155rem;
    --fs-destacado: 1.375rem;

    --fs-frase: 1.3rem;
    --fs-subtitulo: 1.75rem;
    --fs-titulo: 2.1rem;
    --fs-hero: 2.8rem;
  }

  .contador {
    gap: 6px;
  }

  .bloque {
    min-width: 64px;
  }

  .numero {
    font-size: 2.3rem;
  }

  /* Timeline vertical con línea que une los íconos */
  .timeline .iconos {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 20px;
    max-width: 340px;
    padding: 0 20px;
  }

  .iconos-block {
    position: relative;
    flex: none;
    flex-direction: row;
    gap: 18px;
    text-align: left;
  }

  .iconos-block .icono {
    flex-shrink: 0;
  }

  /* Tramo de línea entre un ícono y el siguiente (sin pasar por encima) */
  .iconos-block:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 37px;
    top: 72px;
    bottom: -24px;
    width: 2px;
    background: var(--color-linea);
  }

  .heartd img,
  .heartl img,
  .heart1 img,
  .heart2 img {
    width: 80px;
  }

  .fotos {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 100%;
  }

  .fotos img {
    width: 100%;
  }
}

/* Quien tenga el celu configurado con "reducir movimiento" ve todo quieto */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}