:root{
  --bg: #f6f1e9;         /* crema */
  --card: rgba(255,255,255,.82);
  --text: #0b2a4a;
  --muted: rgba(11,42,74,.62);
  --accent: #1e5aa8;     /* azul */
  --radius-lg: 22px;
  --radius-xl: 26px;
  --shadow: 0 18px 45px rgba(0,0,0,.08);
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
}

img{ max-width: 100%; display:block; }
a{ color: inherit; }

/* =======================
   HERO
   ======================= */

.hero{
  position: relative;
  min-height: 92vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #0b2a4a;
}

.hero-media{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-fallback{
  background:
    /* capa oscura para opacar la foto */
    linear-gradient(
      rgba(11,42,74,.55),
      rgba(11,42,74,.55)
    ),
    /* imagen */
    url("./assets/img/portada.jpeg") center / cover no-repeat;

  filter: saturate(1.05) contrast(1.05);
}

.hero-parallax{
  will-change: transform;
  transform: translate3d(0,0,0) scale(1.04);
}

.hero-overlay{
  position: relative;
  z-index: 2;
  padding: 26px;
  text-align: center;
  max-width: 880px;
}

.eyebrow{
  margin: 0 0 10px;
  letter-spacing: .22em;
  text-transform: uppercase;
  font-size: 12px;
  color: rgba(255,255,255,.75);
}

.title{
  margin: 0;
  font-family: "Playfair Display", serif;
  font-weight: 600;
  font-size: clamp(44px, 6vw, 72px);
  line-height: 1.02;
  color: rgba(255,255,255,.96);
}

.date{
  margin: 10px 0 8px;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-size: 13px;
  color: rgba(255,255,255,.78);
}

.hero-quote{
  margin: 8px auto 26px;
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(255,255,255,.72);
  max-width: 54ch;
}

.hero-actions{
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.cta{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 650;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.10);
  color: rgba(255,255,255,.92);
  transition: transform 140ms ease, background 160ms ease, border-color 160ms ease;
}

.cta:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,.16);
  border-color: rgba(255,255,255,.35);
}

.cta.secondary{
  background: rgba(30,90,168,.18);
  border-color: rgba(30,90,168,.35);
}

.scroll-hint{
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 38px;
  height: 38px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  text-decoration: none;
  color: rgba(255,255,255,.9);
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(0,0,0,.12);
  z-index: 2;
  animation: hint 1.8s ease-in-out infinite;
}

@keyframes hint{
  0%,100%{ transform: translateX(-50%) translateY(0); }
  50%{ transform: translateX(-50%) translateY(6px); }
}

/* Animación entrada Hero por bloques */
.hero-in{
  opacity: 0;
  transform: translateY(12px);
  animation: heroIn 900ms ease forwards;
}
.hero-in:nth-child(1){ animation-delay: .10s; }
.hero-in:nth-child(2){ animation-delay: .22s; }
.hero-in:nth-child(3){ animation-delay: .34s; }
.hero-in:nth-child(4){ animation-delay: .46s; }
.hero-in:nth-child(5){ animation-delay: .58s; }

@keyframes heroIn{
  to{ opacity: 1; transform: translateY(0); }
}

/* =======================
   SECCIONES (fondo crema)
   ======================= */

.section{
  padding: 76px 22px;
  max-width: 1050px;
  margin: 0 auto;
  position: relative;
}

.section-alt{
  background: rgba(255,255,255,.55);
  border-radius: 28px;
  box-shadow: 0 10px 30px rgba(0,0,0,.04);
  margin: 46px auto;
}

.section-title{
  margin: 0 0 8px;
  font-family: "Playfair Display", serif;
  font-size: 32px;
  letter-spacing: .01em;
}

.section-text{
  margin: 0;
  color: var(--muted);
}

/* Animación reveal global */
.reveal{
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 900ms ease, transform 900ms ease;
}
.reveal.visible{
  opacity: 1;
  transform: translateY(0);
}

.muted{ color: var(--muted); }

/* =======================
   NOS CASAMOS (tarjeta)
   ======================= */

.notice-card{
  text-align: center;
  max-width: 780px;
  margin: 0 auto;
  padding: 26px 22px;
  border-radius: var(--radius-lg);
  background: var(--card);
  border: 1px solid rgba(11,42,74,.10);
  box-shadow: var(--shadow);
}

.notice-title{
  margin: 0 0 12px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.title-decor{
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(30,90,168,.22);
  background: rgba(30,90,168,.06);
}

.decor-svg{
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: .9;
}

.notice-text{
  text-align: center;
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.7;
}

.notice-highlight{
  color: rgba(30,90,168,.92);
  font-weight: 700;
}

/* =======================
   CUENTA ATRÁS
   ======================= */

.countdown-ill{
  margin: 0 auto;
  max-width: 560px;
  background: var(--card);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  overflow: hidden;
  text-align: center;
  border: 1px solid rgba(11,42,74,.10);
}

.countdown-script{
  padding: 22px 18px 14px;
  margin: 0;
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-size: 30px;
  color: rgba(11,42,74,.55);
}

.countdown-photo-wrap{
  width: 100%;
  height: 220px;
  overflow: hidden;
}

.countdown-photo{
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.countdown-content{
  padding: 22px 18px 18px;
  display: grid;
  gap: 18px;
  justify-items: center;
}

.countdown-date{
  display: flex;
  gap: 14px;
  line-height: 1;
}

.countdown-date span{
  font-family: "Playfair Display", serif;
  font-size: 46px;
  font-weight: 600;
  color: rgba(11,42,74,.45);
}

.countdown-band{
  padding: 14px 22px;
  border-radius: 16px;
  background: rgba(30,90,168,.14);
  border: 1px solid rgba(30,90,168,.20);
  display: inline-flex;
  align-items: center;
  gap: 16px;
}

.band-item{
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 92px;
}

.band-num{
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.band-label{
  font-size: 11px;
  letter-spacing: .18em;
  color: rgba(11,42,74,.60);
}

.band-sep{
  width: 1px;
  height: 32px;
  background: rgba(11,42,74,.25);
}

.cd-note{
  padding: 0 18px 20px;
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

/* =======================
   DÓNDE Y CUÁNDO
   ======================= */

.places{
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.place-card{
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(11,42,74,.10);
  background: rgba(255,255,255,.82);
  box-shadow: 0 12px 30px rgba(0,0,0,.06);
}

.place-media img{
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.place-body{
  padding: 16px;
}

.place-tag{
  margin: 0 0 8px;
  display: inline-flex;
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(30,90,168,.85);
}

.place-title{
  margin: 0 0 6px;
  font-family: "Playfair Display", serif;
  font-size: 20px;
}

.place-sub{
  margin: 0 0 12px;
  color: var(--muted);
}

.place-meta{
  display: grid;
  gap: 10px;
}

.meta-label{
  display: block;
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(11,42,74,.55);
  margin-bottom: 4px;
}

.meta-value{
  color: var(--muted);
}

.place-actions{
  margin-top: 12px;
}

.map-real{
  margin-top: 16px;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(11,42,74,.10);
  background: rgba(255,255,255,.82);
}

.map-real iframe{
  width: 100%;
  height: 320px;
  border: 0;
  display: block;
}

.map-links{
  margin: 0;
  padding: 12px 16px;
  border-top: 1px solid rgba(11,42,74,.08);
}
.map-links a{
  text-decoration: none;
  border-bottom: 1px solid rgba(11,42,74,.20);
}
.map-links a:hover{
  border-bottom-color: rgba(11,42,74,.40);
}

/* =======================
   ITINERARIO (PRO)
   ======================= */

.it-card{
  max-width: 780px;
  margin: 0 auto;
  padding: 26px 22px;
  background: var(--card);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(11,42,74,.10);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.it-card::before{
  content:"";
  position:absolute;
  inset: -90px -120px auto auto;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(30,90,168,.16), transparent 60%);
  transform: rotate(18deg);
  pointer-events:none;
}

.it-title{
  text-align: center;
  margin-bottom: 8px;
  padding-bottom: 14px;
  position: relative;
}

.it-title::after{
  content:"";
  position:absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%) scaleX(0);
  width: 140px;
  height: 1px;
  background: rgba(30,90,168,.35);
  border-radius: 2px;
  transition: transform 800ms ease;
}

.it-sub{
  text-align: center;
  margin-top: 0;
  margin-bottom: 18px;
}

.it-timeline{
  display: grid;
  gap: 14px;
  margin-top: 8px;
}

.it-item{
  display: grid;
  grid-template-columns: 74px 54px 1fr;
  gap: 16px;
  align-items: start;
  padding: 14px 12px;
  border-radius: 18px;
  background: rgba(30,90,168,.05);
  border: 1px solid rgba(30,90,168,.10);
}

.it-time{
  text-align: right;
  font-variant-numeric: tabular-nums;
  color: rgba(11,42,74,.58);
  padding-top: 10px;
  font-size: 14px;
  font-weight: 650;
}

.it-mid{
  position: relative;
  display: flex;
  justify-content: center;
}

.it-mid::before{
  content:"";
  position:absolute;
  top: -24px;
  bottom: -24px;
  width: 2px;
  background: rgba(30,90,168,.22);
  border-radius: 2px;
}

.it-dot{
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(30,90,168,.25);
  box-shadow: 0 10px 22px rgba(0,0,0,.06);
  display: grid;
  place-items: center;
  z-index: 2;
  transform: scale(.96);
  transition: transform 180ms ease;
}

.it-item:hover .it-dot{ transform: scale(1); }

.it-dot svg{
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.it-desc strong{
  display: block;
  font-size: 16px;
  margin-bottom: 4px;
}

/* Animación escalonada SOLO cuando #itinerario está visible */
#itinerario .it-item{
  opacity: 0;
  transform: translateY(14px);
}

#itinerario.visible .it-title::after{
  transform: translateX(-50%) scaleX(1);
}

#itinerario.visible .it-item{
  animation: itIn 700ms ease forwards;
}

#itinerario.visible .it-item:nth-child(1){ animation-delay: .10s; }
#itinerario.visible .it-item:nth-child(2){ animation-delay: .25s; }
#itinerario.visible .it-item:nth-child(3){ animation-delay: .40s; }
#itinerario.visible .it-item:nth-child(4){ animation-delay: .55s; }

@keyframes itIn{
  to{ opacity: 1; transform: translateY(0); }
}

/* =======================
   BARES (acordeón)
   ======================= */

.info-card{
  max-width: 520px;
  margin: 0 auto;
  padding: 28px 22px;
  text-align: center;
  background: var(--card);
  border: 1px solid rgba(11,42,74,.12);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.info-script{
  margin: 0 0 6px;
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-size: 28px;
  color: rgba(11,42,74,.45);
}

.info-title{
  margin: 0 0 16px;
  font-family: "Playfair Display", serif;
  font-size: 26px;
  letter-spacing: .02em;
}

.info-text{
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.info-accordion{
  margin: 18px 0 12px;
  display: grid;
  gap: 10px;
}

.info-item{
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(30,90,168,.18);
  background: rgba(30,90,168,.06);
}

.info-summary{
  list-style: none;
  cursor: pointer;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 650;
}
.info-summary::-webkit-details-marker{ display:none; }

.info-arrow{
  transition: transform 220ms ease;
  color: rgba(11,42,74,.60);
}

.info-item[open] .info-arrow{ transform: rotate(180deg); }

.info-panel{
  padding: 10px 14px 14px;
  border-top: 1px solid rgba(30,90,168,.14);
  background: rgba(255,255,255,.55);
}

.info-small{
  margin: 0 0 10px;
  font-size: 13px;
}

.info-link{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(30,90,168,.12);
  border: 1px solid rgba(30,90,168,.22);
  text-decoration: none;
  font-weight: 650;
  transition: transform 140ms ease, background 160ms ease;
}

.info-link:hover{ background: rgba(30,90,168,.20); transform: translateY(-1px); }
.info-link.disabled{ pointer-events:none; opacity:.55; }

.info-footer{
  margin: 12px 0 16px;
  font-size: 14px;
  color: var(--muted);
}

.info-icon svg{
  width: 56px;
  height: auto;
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: .85;
}

/* =======================
   AUTOBUSES
   ======================= */

.bus-grid{
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.bus-card{
  background: rgba(255,255,255,.82);
  border: 1px solid rgba(11,42,74,.10);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: 0 10px 25px rgba(0,0,0,.04);
}

.bus-title{
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 700;
}

.bus-list{
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.bus-list li{
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 10px;
  align-items: start;
  padding: 10px 10px;
  border-radius: 14px;
  background: rgba(30,90,168,.06);
  border: 1px solid rgba(30,90,168,.12);
}

.bus-time{
  font-variant-numeric: tabular-nums;
  font-weight: 800;
}

.bus-desc{ color: var(--muted); }

.bus-illustration{
  margin: 26px auto 10px;
  width: min(320px, 100%);
  padding: 14px;
  border-radius: var(--radius-xl);
  background: rgba(30,90,168,.06);
  border: 1px dashed rgba(30,90,168,.22);
}

.bus-illustration svg{
  width: 100%;
  height: auto;
  fill: none;
  stroke: var(--accent);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: .9;
}

/* =======================
   RSVP
   ======================= */

.rsvp-card{
  max-width: 520px;
  margin: 0 auto;
  padding: 28px 22px;
  text-align: center;
  background: var(--card);
  border: 1px solid rgba(11,42,74,.12);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.rsvp-script{
  margin: 0 0 10px;
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-size: 30px;
  color: rgba(11,42,74,.45);
}

.rsvp-text{
  margin: 0 auto 18px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
  max-width: 46ch;
}

.rsvp-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  border-radius: 999px;
  background: rgba(30,90,168,.14);
  border: 1px solid rgba(30,90,168,.25);
  text-decoration: none;
  font-weight: 750;
  box-shadow: 0 12px 26px rgba(0,0,0,.06);
  transition: transform 140ms ease, background 160ms ease;
}
.rsvp-btn:hover{ background: rgba(30,90,168,.22); transform: translateY(-1px); }

.rsvp-hearts{
  margin-top: 14px;
  display: flex;
  justify-content: center;
  gap: 10px;
  color: rgba(30,90,168,.65);
  font-size: 18px;
}

/* =======================
   CONTACTO (más cálido)
   ======================= */

#contacto.section-alt{
  background: #f3efe9;
}

.contact-card{
  max-width: 560px;
  margin: 0 auto;
  padding: 30px 22px;
  text-align: center;
  background: linear-gradient(180deg, rgba(255,255,255,.85), rgba(255,255,255,.70));
  border: 1px solid rgba(11,42,74,.10);
  border-radius: 26px;
  box-shadow: var(--shadow);
}

.contact-script{
  margin: 0;
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-size: 30px;
  color: rgba(11,42,74,.45);
}

.contact-decor{
  margin: 8px 0 14px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.contact-decor span{
  color: rgba(30,90,168,.55);
  font-size: 14px;
  position: relative;
}
.contact-decor span::before,
.contact-decor span::after{
  content:"";
  position:absolute;
  top:50%;
  width:46px;
  height:1px;
  background: rgba(30,90,168,.25);
}
.contact-decor span::before{ right:120%; }
.contact-decor span::after{ left:120%; }

.contact-text{
  margin: 0 auto 20px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
  max-width: 48ch;
}

.contact-names{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.contact-person{
  background: rgba(255,255,255,.90);
  border: 1px solid rgba(30,90,168,.14);
  border-radius: 20px;
  padding: 18px 14px;
  box-shadow: 0 10px 25px rgba(0,0,0,.05);
}

/* =======================
   GRACIAS (borde “rayitas”)
   ======================= */

.thanks-card{
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}

.thanks-script{
  margin: 0 0 18px;
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-size: 42px;
  color: rgba(11,42,74,.45);
}

.thanks-frame{
  position: relative;
  background: var(--card);
  border-radius: 26px;
  padding: 30px 26px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(11,42,74,.10);
}

.thanks-frame::before{
  content:"";
  position:absolute;
  inset: 16px;
  border-radius: 20px;
  pointer-events:none;
  background:
    repeating-linear-gradient(to right, rgba(30,90,168,.55) 0 6px, transparent 6px 12px) top,
    repeating-linear-gradient(to bottom, rgba(30,90,168,.55) 0 6px, transparent 6px 12px) right,
    repeating-linear-gradient(to right, rgba(30,90,168,.55) 0 6px, transparent 6px 12px) bottom,
    repeating-linear-gradient(to bottom, rgba(30,90,168,.55) 0 6px, transparent 6px 12px) left;
  background-size: 100% 2px, 2px 100%, 100% 2px, 2px 100%;
  background-position: top left, top right, bottom left, top left;
  background-repeat: no-repeat;
  opacity: .9;
}

.thanks-frame p{
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.thanks-frame p:last-child{ margin-bottom: 0; }

.thanks-iban{
  margin-top: 8px !important;
  font-family: "Playfair Display", serif;
  font-weight: 600;
  color: rgba(11,42,74,.65);
  letter-spacing: .10em;
}

.thanks-icon{
  margin-top: 16px;
  display: flex;
  justify-content: center;
}

.thanks-icon svg{
  width: 58px;
  height: auto;
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: .85;
}

/* =======================
   FOOTER
   ======================= */

.footer{
  padding: 42px 22px;
  text-align: center;
  border-top: 1px solid rgba(11,42,74,.10);
  background: rgba(255,255,255,.45);
}

.footer-link{
  text-decoration: none;
  border-bottom: 1px solid rgba(11,42,74,.20);
}
.footer-link:hover{
  border-bottom-color: rgba(11,42,74,.40);
}

/* =======================
   RESPONSIVE
   ======================= */

@media (max-width: 900px){
  .places{ grid-template-columns: 1fr; }
}

@media (max-width: 700px){
  .bus-grid{ grid-template-columns: 1fr; }
  .contact-names{ grid-template-columns: 1fr; }
}

@media (max-width: 600px){
  .hero-overlay{ padding: 18px; }
  .hero-quote{ font-size: 11px; letter-spacing: .18em; }

  .cta{ width: 100%; max-width: 360px; padding: 14px 18px; font-size: 16px; }

  .section{ padding: 58px 18px; }
  .section-title{ font-size: 24px; }

  .countdown-photo-wrap{ height: 180px; }
  .countdown-script{ font-size: 26px; }
  .countdown-date span{ font-size: 38px; }
  .band-item{ min-width: 78px; }

  .it-card{ padding: 22px 16px; }
  .it-item{ grid-template-columns: 56px 44px 1fr; gap: 12px; }
  .it-dot{ width: 36px; height: 36px; }
  .it-dot svg{ width: 16px; height: 16px; }

  .map-real iframe{ height: 240px; }
}

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  .reveal, .hero-in{ opacity: 1 !important; transform: none !important; transition: none !important; animation: none !important; }
  .scroll-hint{ animation: none; }
  .hero-parallax{ transform: none !important; }
}

/* Botón copiar IBAN */
.thanks-copy{
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 12px 16px;
  border-radius: 999px;

  background: rgba(30,90,168,.14);
  border: 1px solid rgba(30,90,168,.25);

  color: var(--text);
  font-weight: 700;
  cursor: pointer;

  box-shadow: 0 12px 26px rgba(0,0,0,.06);
  transition: transform 140ms ease, background 160ms ease;
}

.thanks-copy:hover{
  background: rgba(30,90,168,.22);
  transform: translateY(-1px);
}

.thanks-copy:active{ transform: translateY(1px); }

.thanks-copied{
  margin: 10px 0 0;
  font-size: 13px;
  color: rgba(30,90,168,.85);
  min-height: 1.2em; /* para que no “salte” el layout */
}

/* =======================
   Pack móvil (toda la web)
   ======================= */
@media (max-width: 600px){

  /* Evita cualquier desbordamiento horizontal por letras/iframes */
  body{ overflow-x: hidden; }
  .section{ padding: 56px 16px; }

  /* Hero: más compacto y centrado */
  .hero-overlay{ padding: 18px; }
  .title{ font-size: clamp(34px, 9vw, 48px); }
  .hero-actions .cta{
    width: 100%;
    max-width: 360px;
    padding: 14px 18px;
    font-size: 16px;
  }

  /* Tarjetas: bordes más suaves y respiración */
  .notice-card,
  .countdown-ill,
  .it-card,
  .info-card,
  .rsvp-card,
  .contact-card,
  .thanks-frame,
  .place-card,
  .map-real{
    border-radius: 20px;
  }

  /* Imágenes: alturas adecuadas */
  .countdown-photo-wrap{ height: 180px; }
  .place-media img{ height: 200px; }

  /* Mapa: altura menor */
  .map-real iframe{ height: 240px; }

  /* Dónde y cuándo: ya 1 columna por tu media de 900, esto refuerza separación */
  .places{ gap: 12px; }

  /* Itinerario: ajuste fino */
  .it-item{
    grid-template-columns: 56px 44px 1fr;
    gap: 12px;
    padding: 12px 10px;
  }
  .it-time{ font-size: 13px; padding-top: 9px; }
  .it-dot{ width: 36px; height: 36px; }
  .it-dot svg{ width: 16px; height: 16px; }

  /* Autobuses: lectura fácil */
  .bus-list li{
    grid-template-columns: 66px 1fr;
    gap: 10px;
  }

  /* Botones importantes: más fáciles de pulsar */
  .cta,
  .rsvp-btn,
  .info-link,
  .thanks-copy{
    min-height: 44px; /* recomendado para dedo */
  }

  /* IBAN: que no se salga */
  .thanks-iban{
    word-break: break-word;
    letter-spacing: .06em;
  }
}

.contact-whatsapp{
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 14px;
  margin-top: 18px;
}

.wa-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 14px 18px;
  border-radius: 999px;

  background: #25D366;
  color: #fff;
  font-weight: 700;
  text-decoration: none;

  box-shadow: 0 12px 26px rgba(0,0,0,.12);
  transition: transform 140ms ease, filter 160ms ease;
}

.wa-btn:hover{
  transform: translateY(-1px);
  filter: brightness(1.05);
}

@media (max-width: 600px){
  .contact-whatsapp{
    grid-template-columns: 1fr;
  }
}
/* CONTENEDOR */
.countdown-photo-wrap{
  position: relative;
  width: 100%;

  /* Altura flexible según pantalla */
  height: clamp(180px, 28vw, 260px);

  overflow: hidden;
  background: #000; /* por si tarda en cargar */
}

/* IMAGEN */
.countdown-photo{
  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: center center;

  display: block;
}

/* Botón Google Maps */
.place-map-btn{
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  padding: 12px 18px;
  border-radius: 999px;

  background: #1a73e8; /* azul Google Maps */
  color: #fff;
  font-weight: 700;
  font-size: 14px;

  text-decoration: none;
  border: none;

  box-shadow: 0 12px 26px rgba(0,0,0,.18);
  transition:
    transform 140ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

/* Hover / tap */
.place-map-btn:hover{
  background: #1558b0;
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(0,0,0,.22);
}

.place-map-btn:active{
  transform: translateY(0);
  box-shadow: 0 10px 22px rgba(0,0,0,.18);
}

/* Móvil: botón ancho y cómodo */
@media (max-width: 600px){
  .place-map-btn{
    width: 100%;
    justify-content: center;
    padding: 14px 18px;
    font-size: 15px;
  }
}
