/* ================================================================
   COUPLE-HEART — Custom Enhancements v3.1
   Paleta original: Teal #40bfc1 · Gold #e8b368 · Fondos claros
   Secciones distintas · Responsive completo
   ================================================================ */

/* ================================================================
   1. DESIGN TOKENS
   ================================================================ */

:root {
  /* Colores principales del template */
  --ch-primary:       #40bfc1;
  --ch-primary-dark:  #2a9a9c;
  --ch-primary-light: #e0f7f7;
  --ch-accent:        #e8b368;
  --ch-accent-dark:   #c8933e;
  --ch-accent-light:  #fdf3e3;

  /* Texto */
  --ch-text:          #3a3a3a;
  --ch-text-light:    #6b7280;
  --ch-text-muted:    #9ca3af;

  /* Fondos */
  --ch-white:         #ffffff;
  --ch-bg-soft:       #f8fafa;
  --ch-bg-teal:       #f0fafa;
  --ch-bg-warm:       #fdf9f0;
  --ch-bg-gray:       #f4f4f6;

  /* Bordes */
  --ch-border:        rgba(0, 0, 0, 0.06);
  --ch-border-teal:   rgba(64, 191, 193, 0.25);
  --ch-border-gold:   rgba(232, 179, 104, 0.25);

  /* Sombras */
  --ch-shadow-sm:   0 2px 8px rgba(0, 0, 0, 0.06);
  --ch-shadow-md:   0 4px 20px rgba(0, 0, 0, 0.08);
  --ch-shadow-lg:   0 8px 40px rgba(0, 0, 0, 0.12);
  --ch-shadow-teal: 0 12px 48px rgba(64, 191, 193, 0.18);
  --ch-shadow-gold: 0 12px 48px rgba(232, 179, 104, 0.18);

  /* Forma */
  --ch-radius:    16px;
  --ch-radius-sm: 10px;
  --ch-radius-lg: 24px;
  --ch-transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ================================================================
   2. FONDOS DE SECCIÓN — Cada sección tiene fondo y acento distintos
   Los colores son todos claros, dentro de la paleta original
   ================================================================ */

/* Fondo blanco + borde gold */
#about    { background-color: var(--ch-white)    !important; border-top: 3px solid var(--ch-accent); }

/* Fondo teal suave + borde teal */
#story    { background-color: var(--ch-bg-teal)  !important; border-top: 3px solid var(--ch-primary); }

/* Fondo teal — contrasta con las tarjetas blancas del plugin */
#photostack-3 { background-color: var(--ch-primary) !important; border-top: 3px solid var(--ch-primary-dark); }

/* Fondo blanco + borde teal */
#event    { background-color: var(--ch-white)    !important; border-top: 3px solid var(--ch-primary); }

/* Fondo gris claro + borde gold */
#agenda   { background-color: var(--ch-bg-soft)  !important; border-top: 3px solid var(--ch-accent); }

/* Fondo cálido crema + borde gold */
#menu     { background-color: var(--ch-bg-warm)  !important; border-top: 3px solid var(--ch-accent); }

/* Fondo blanco + borde teal */
#ourmaid  { background-color: var(--ch-white)    !important; border-top: 3px solid var(--ch-primary); }

/* Fondo gris claro + borde gold */
#faq      { background-color: var(--ch-bg-soft)  !important; border-top: 3px solid var(--ch-accent); }

/* Fondo blanco + borde teal */
#blog     { background-color: var(--ch-white)    !important; border-top: 3px solid var(--ch-primary); }

/* Fondo teal suave + borde teal */
#contact  { background-color: var(--ch-bg-teal)  !important; border-top: 3px solid var(--ch-primary); }

/* Fondo cálido crema + borde gold */
.ulockd-partner { background-color: var(--ch-bg-warm) !important; border-top: 3px solid var(--ch-accent); }

/* El overlay blanco de la plantilla se mantiene casi inalterado */
.bgc-overlay-white8::before { background-color: rgba(255, 255, 255, 0.88) !important; }
.bgc-overlay-white9::before { background-color: rgba(255, 255, 255, 0.92) !important; }
.bgc-overlay-white7::before { background-color: rgba(255, 255, 255, 0.82) !important; }

/* ================================================================
   3. ENCABEZADOS DE SECCIÓN (.ulockd-main-title)
   ================================================================ */

.ulockd-main-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 48px;
}

.ulockd-main-title h2 {
  position: relative;
  display: block;
  width: 100%;
  margin-bottom: 6px;
  text-align: center;
}

.ulockd-main-title img {
  display: block !important;
  margin: 4px auto 0 !important;
  float: none !important;
  max-width: 200px;
}

/* Anchor scroll offset */
section[id] {
  scroll-margin-top: 80px;
}

/* ================================================================
   4. EVENT-BOX — Tarjeta con sombra y hover
   ================================================================ */

.event-box {
  background: var(--ch-white);
  border-radius: var(--ch-radius);
  overflow: hidden;
  box-shadow: var(--ch-shadow-md);
  transition: var(--ch-transition);
  position: relative;
  margin-bottom: 30px;
  border: 1px solid var(--ch-border);
}

.event-box:hover {
  transform: translateY(-6px);
  box-shadow: var(--ch-shadow-teal);
}

.event-box .thumb {
  position: relative;
  overflow: hidden;
  border-radius: var(--ch-radius) var(--ch-radius) 0 0;
}

.event-box .thumb::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.45), transparent);
  pointer-events: none;
  z-index: 1;
}

.event-box .thumb img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.event-box:hover .thumb img {
  transform: scale(1.08);
}

.event-box .details {
  padding: 24px 22px 28px;
  position: relative;
}

.event-box .details h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--ch-text);
  margin: 0 0 14px;
  line-height: 1.3;
  position: relative;
  padding-bottom: 14px;
}

.event-box .details h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--ch-primary);
  border-radius: 2px;
}

.event-box .details ul {
  margin: 0 0 14px;
  padding: 0;
}

.event-box .details ul li {
  padding: 6px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.event-box .details ul li:last-child {
  border-bottom: none;
}

.event-box .details ul li a {
  color: var(--ch-text-light);
  font-size: 14px;
  text-decoration: none;
  transition: color 0.2s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.event-box .details ul li a:hover {
  color: var(--ch-primary);
}

.event-box .details ul li a i {
  font-size: 16px;
  width: 20px;
  text-align: center;
  color: var(--ch-primary);
}

.event-box .details p {
  color: var(--ch-text-light);
  font-size: 14px;
  line-height: 1.65;
  margin: 0;
}

/* Agenda variant */
#agenda .event-box {
  display: flex;
  flex-direction: column;
}

#agenda .event-box .thumb img {
  height: 180px;
}

/* Menú: acento gold */
#menu .event-box:hover {
  box-shadow: var(--ch-shadow-gold);
}

#menu .event-box .details ul li a i {
  color: var(--ch-accent);
}

#menu .event-box .details ul li a:hover {
  color: var(--ch-accent);
}

#menu .event-box .details h3::after {
  background: var(--ch-accent);
}

/* ================================================================
   5. TIMELINE / STORY — Línea vertical teal
   ================================================================ */

.our-story.timeline {
  padding: 20px 0;
  position: relative;
}

.our-story.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 100%;
  background: linear-gradient(
    to bottom,
    transparent,
    var(--ch-primary) 5%,
    var(--ch-primary) 95%,
    transparent
  );
  border-radius: 2px;
}

.our-story.timeline > li {
  list-style: none;
  margin-bottom: 50px;
  position: relative;
}

.our-story.timeline > li:last-child {
  margin-bottom: 0;
}

/* Badge central */
.timeline-badge {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  /* Fondo sólido/gradient para que el ícono no se pierda */
  background: linear-gradient(135deg, var(--ch-primary), var(--ch-primary-dark));
  border: 0;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 30px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 0 0 6px rgba(64, 191, 193, 0.18),
    0 10px 22px rgba(0, 0, 0, 0.14);
  transition: var(--ch-transition);
}

.timeline-badge i {
  color: var(--ch-white);
  font-size: 20px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.timeline-badge.warning {
  background: linear-gradient(135deg, var(--ch-accent), var(--ch-accent-dark));
  box-shadow:
    0 0 0 6px rgba(232, 179, 104, 0.18),
    0 10px 22px rgba(0, 0, 0, 0.14);
}

.timeline-badge.warning i {
  color: var(--ch-white);
}

li:hover .timeline-badge {
  transform: translateX(-50%) scale(1.12);
  box-shadow:
    0 0 0 10px rgba(64, 191, 193, 0.22),
    0 14px 30px rgba(0, 0, 0, 0.16);
}

li:hover .timeline-badge.warning {
  box-shadow:
    0 0 0 10px rgba(232, 179, 104, 0.22),
    0 14px 30px rgba(0, 0, 0, 0.16);
}

/* Panel card */
.timeline-panel {
  background: var(--ch-white);
  border-radius: var(--ch-radius);
  box-shadow: var(--ch-shadow-md);
  overflow: hidden;
  transition: var(--ch-transition);
  width: 44%;
  position: relative;
  display: flex !important;
  flex-direction: row;
  align-items: stretch;
  border: 1px solid var(--ch-border);
}

/* Flecha lateral */
.timeline-panel::before {
  content: '';
  position: absolute;
  top: 38px;
  width: 20px;
  height: 20px;
  background: var(--ch-white);
  transform: rotate(45deg);
  box-shadow: -2px 2px 4px rgba(0, 0, 0, 0.04);
  z-index: 1;
}

.timeline-panel.left {
  float: left;
  text-align: left;
}

.timeline-panel.left::before {
  right: -10px;
}

.timeline-panel.right {
  float: right;
  text-align: left;
}

.timeline-panel.right::before {
  left: -10px;
}

.timeline-panel:hover {
  transform: translateY(-4px);
  box-shadow: var(--ch-shadow-teal);
}

/* Bloque de texto */
.timeline-panel .timeline-body.w50prcnt.pull-left.ulockd-pdng15,
.timeline-panel .timeline-body.w50prcnt:first-child {
  width: 55% !important;
  float: none !important;
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Bloque de imagen */
.timeline-panel .timeline-body.w50prcnt.pull-right,
.timeline-panel .timeline-body.w50prcnt.pull-left:not(.ulockd-pdng15),
.timeline-panel .timeline-body.w50prcnt:last-child:not(.ulockd-pdng15) {
  width: 45% !important;
  float: none !important;
  padding: 0 !important;
  position: relative;
  overflow: hidden;
  min-height: 240px;
}

.timeline-body h3.timeline-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--ch-text);
  margin: 0 0 10px;
  line-height: 1.3;
}

.timeline-body h5 {
  color: var(--ch-primary);
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 8px;
}

.timeline-body .badge {
  background: var(--ch-primary-light);
  color: var(--ch-primary-dark);
  font-weight: 600;
  font-size: 13px;
  padding: 5px 14px;
  border-radius: 20px;
  display: inline-block;
}

.timeline-body .badge.ulockd-bgthm {
  background: var(--ch-primary-light) !important;
}

.timeline-body p {
  color: var(--ch-text-light);
  font-size: 14.5px;
  line-height: 1.65;
  margin: 10px 0 0;
}

.timeline-panel .timeline-body img {
  width: 100%;
  height: 100%;
  min-height: 240px;
  object-fit: cover;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
}

/* Inverted */
.timeline-inverted .timeline-panel {
  flex-direction: row-reverse;
}

.ulockd-pdng15 {
  padding: 26px 24px;
}

/* ================================================================
   6. FAQ — Acordeón con acento gold
   ================================================================ */

#faq {
  padding: 80px 0 60px;
}

.faq-accordion {
  max-width: 820px;
  margin: 0 auto;
}

.faq-item {
  background: var(--ch-white);
  border-radius: var(--ch-radius-sm);
  margin-bottom: 12px;
  box-shadow: var(--ch-shadow-sm);
  overflow: hidden;
  transition: var(--ch-transition);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.faq-item:hover {
  box-shadow: var(--ch-shadow-md);
}

.faq-item.active {
  box-shadow: var(--ch-shadow-md);
  border-color: var(--ch-border-gold);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  cursor: pointer;
  user-select: none;
  transition: background 0.2s ease;
}

.faq-question:hover {
  background: var(--ch-bg-soft);
}

.faq-question-text {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
}

.faq-question-icon {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 50%;
  background: var(--ch-accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ch-accent-dark);
  font-size: 16px;
  font-weight: 700;
  transition: var(--ch-transition);
}

.faq-item.active .faq-question-icon {
  background: var(--ch-accent);
  color: var(--ch-white);
}

.faq-question h4 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--ch-text);
  line-height: 1.45;
}

.faq-toggle-icon {
  width: 28px;
  height: 28px;
  min-width: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ch-text-light);
  transition: var(--ch-transition);
}

.faq-toggle-icon svg {
  width: 18px;
  height: 18px;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item.active .faq-toggle-icon svg {
  transform: rotate(180deg);
}

.faq-item.active .faq-toggle-icon {
  color: var(--ch-accent);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              padding 0.3s ease;
}

.faq-answer-inner {
  padding: 0 24px 20px 74px;
  color: var(--ch-text-light);
  font-size: 14px;
  line-height: 1.7;
}

.faq-item.active .faq-answer {
  max-height: 400px;
}

/* ================================================================
   7. LOCATION / MAPA — Acento teal
   ================================================================ */

#contact {
  padding: 80px 0 0;
}

.location-section-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Mapa */
.map-wrapper {
  position: relative;
  border-radius: var(--ch-radius-lg);
  overflow: hidden;
  box-shadow: var(--ch-shadow-lg);
  margin-bottom: 40px;
}

.map-wrapper #map-location {
  width: 100%;
  height: 420px;
  border-radius: var(--ch-radius-lg);
}

.map-wrapper::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--ch-radius-lg);
  border: 1px solid rgba(0, 0, 0, 0.06);
  pointer-events: none;
  z-index: 1000;
}

/* Tarjetas de venue */
.venue-cards-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 50px;
}

.venue-card {
  flex: 1;
  min-width: 240px;
  background: var(--ch-white);
  border-radius: var(--ch-radius);
  padding: 28px 24px;
  box-shadow: var(--ch-shadow-md);
  transition: var(--ch-transition);
  display: flex;
  align-items: flex-start;
  gap: 16px;
  border: 1px solid rgba(0, 0, 0, 0.03);
}

.venue-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--ch-shadow-teal);
}

.venue-card-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 50%;
  background: var(--ch-primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ch-primary);
  font-size: 20px;
  transition: var(--ch-transition);
}

.venue-card:hover .venue-card-icon {
  background: var(--ch-primary);
  color: var(--ch-white);
}

.venue-card-content h4 {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 700;
  color: var(--ch-text);
}

.venue-card-content p {
  margin: 0;
  font-size: 14px;
  color: var(--ch-text-light);
  line-height: 1.5;
}

.venue-card-content a {
  color: var(--ch-primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: color 0.2s ease;
}

.venue-card-content a:hover {
  color: var(--ch-primary-dark);
}

/* Botón flotante sobre el mapa */
.map-directions-btn {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1001;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: var(--ch-primary);
  color: var(--ch-white);
  border: none;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(64, 191, 193, 0.35);
  transition: var(--ch-transition);
  cursor: pointer;
  white-space: nowrap;
}

.map-directions-btn:hover {
  background: var(--ch-primary-dark);
  transform: translateX(-50%) translateY(-2px);
  box-shadow: 0 6px 28px rgba(64, 191, 193, 0.45);
  color: var(--ch-white);
  text-decoration: none;
}

.map-directions-btn i {
  font-size: 16px;
}

/* Leaflet popup overrides */
#map-location .leaflet-popup-content-wrapper {
  border-radius: var(--ch-radius-sm);
  box-shadow: var(--ch-shadow-md);
  padding: 4px;
}

#map-location .leaflet-popup-content {
  font-size: 14px;
  line-height: 1.5;
  margin: 10px 14px;
}

#map-location .leaflet-popup-tip {
  box-shadow: none;
}

/* ================================================================
   8. BOTONES Y UTILIDADES
   ================================================================ */

.ulockd-btn-thm2 {
  background: var(--ch-primary) !important;
  border-color: var(--ch-primary) !important;
  border-radius: 999px !important;
  padding: 12px 36px !important;
  font-weight: 600 !important;
  letter-spacing: 0.3px;
  transition: var(--ch-transition) !important;
  box-shadow: 0 4px 14px rgba(64, 191, 193, 0.25);
}

.ulockd-btn-thm2:hover,
.ulockd-btn-thm2:focus {
  background: var(--ch-primary-dark) !important;
  border-color: var(--ch-primary-dark) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(64, 191, 193, 0.35) !important;
}

/* ================================================================
   9. NAVBAR / MONOGRAMA
   ================================================================ */

.couple-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 64px;
  /* El alto de la navbar (desktop) suele ser ~70px en Bootsnav */
  min-height: 70px;
  padding: 0 6px !important;
}

/* Alineación vertical consistente del brand dentro de Bootsnav */
@media (min-width: 768px) {
  .navbar.bootsnav .navbar-header {
    display: flex;
    align-items: center;
  }
  .navbar.bootsnav .navbar-brand.couple-brand {
    height: 70px;
    display: flex;
    align-items: center;
  }
}


.couple-brand__monogram {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ch-primary), var(--ch-primary-dark));
  color: var(--ch-white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  /* Great Vibes (cargada en el <head>) + fallback a Alex Brush */
  font-family: "Great Vibes", "Alex Brush", cursive;
  font-size: 30px;
  font-weight: 400;
  letter-spacing: 0.5px;
  line-height: 1;
  /* Micro-ajuste visual: centra mejor las iniciales en fuentes script */
  transform: translateY(2px);
  box-shadow: 0 8px 22px rgba(64, 191, 193, 0.35);
  border: 2px solid rgba(255, 255, 255, 0.9);
}


@media (min-width: 992px) {
  #navbar-menu .nav.navbar-nav > li > a {
    white-space: nowrap;
    font-size: 12px;
    padding: 30px 8px;
    letter-spacing: 0.2px;
  }
}

@media (min-width: 1200px) {
  #navbar-menu .nav.navbar-nav > li > a {
    font-size: 13px;
    padding: 30px 10px;
  }
}


/* ================================================================
   9.1. FIX: Texto .ff-alex en Cuenta Regresiva
   En el CSS base, .wedding-invitation h3 es gris (#434343), por eso
   en fondo oscuro no se alcanza a ver.
   ================================================================ */

.testimonial .wedding-invitation h3.ff-alex {
  color: rgba(255, 255, 255, 0.92) !important;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

/* ================================================================
   10. AGENDA / MENÚ — Tarjetas sin imagen
   ================================================================ */

.agenda-grid,
.menu-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.agenda-grid > [class*="col-"],
.menu-grid > [class*="col-"] {
  float: none;
  display: flex;
}

.agenda-grid .event-box,
.menu-grid .event-box {
  width: 100%;
}

.event-box--text .details {
  text-align: center;
  padding: 22px 20px 26px;
}

.event-box--text .event-box-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  margin: 0 auto 14px;
  background: var(--ch-primary-light);
  color: var(--ch-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 21px;
  transition: var(--ch-transition);
}

/* Agenda: icono teal, hover gold */
#agenda .event-box--text .event-box-icon {
  background: var(--ch-primary-light);
  color: var(--ch-primary);
}

/* Menú: icono gold */
#menu .event-box--text .event-box-icon {
  background: var(--ch-accent-light);
  color: var(--ch-accent-dark);
}

#menu .event-box--text:hover .event-box-icon {
  background: var(--ch-accent);
  color: var(--ch-white);
}

.event-box--text .details h3 {
  font-size: 20px;
}

.event-box--text .details h3::after {
  left: 50%;
  transform: translateX(-50%);
}

.event-box--text .details ul li a {
  justify-content: center;
}

/* ================================================================
   11. PARTY GRID (Cortejo nupcial)
   ================================================================ */

.party-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.party-grid > [class*="col-"] {
  float: none;
}

.party-grid .team-one {
  margin: 0 auto 28px;
}

/* ================================================================
   12. FIX: .ulockd-main-title — consolidado, no duplicar reglas
   ================================================================ */

/* Las reglas de ulockd-main-title están en la sección 3 arriba.
   Solo añadimos las que necesitan mayor especificidad aquí. */
.ulockd-main-title h2,
.ulockd-main-title h2.text-thm2 {
  text-align: center !important;
}

/* ================================================================
   13. GALERÍA (#photostack-3) — Fondo teal, tarjetas blancas, nav visible
   El plugin fija height: 580px en .js .photostack y posiciona las
   figuras con position:absolute, por lo que NO se puede usar padding
   en la sección sin romper el layout. El header se posiciona absolute.
   ================================================================ */

#photostack-3 {
  position: relative;
  /* sin padding — el plugin gestiona la altura con height:580px */
}

/* Título: absolute en la parte superior, sobre el fondo teal.
   Usamos <header> (no div) para que el plugin siga encontrando
   el <div> de figuras como primer div. */
.gallery-section-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 95;
  text-align: center;
  padding: 28px 20px 16px;
  background: linear-gradient(
    to bottom,
    rgba(42, 154, 156, 0.92) 0%,
    rgba(64, 191, 193, 0.6) 70%,
    transparent 100%
  );
  pointer-events: none; /* no bloquea clicks a las figuras */
}

.gallery-section-header h2 {
  color: var(--ch-white) !important;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.18);
  margin-bottom: 6px;
  text-align: center;
}

.gallery-section-header img {
  display: block;
  margin: 2px auto 0;
  max-width: 180px;
  /* invertir para que el ornamento sea visible en fondo oscuro */
  filter: brightness(0) invert(1) opacity(0.7);
}

/* Figuras — marco blanco tipo foto, sombra pronunciada */
#photostack-3 figure {
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.22) !important;
  border: 5px solid rgba(255, 255, 255, 0.95) !important;
  border-radius: 8px !important;
  overflow: hidden;
}

/* Figcaption — panel blanco */
#photostack-3 figcaption {
  background: #fff !important;
  padding: 14px 16px !important;
  border-top: 2px solid var(--ch-primary-light);
}

#photostack-3 .photostack-title {
  font-size: 15px !important;
  color: var(--ch-text) !important;
  font-weight: 600;
  margin: 0 0 2px;
}

#photostack-3 .photostack-back p {
  font-size: 13px;
  color: var(--ch-text-light);
  margin: 0;
  line-height: 1.5;
}

/* NAV — el plugin genera <nav> con <span> como dots indicadores.
   Sobre fondo teal los dots blancos #fff se ven, pero los hacemos
   más grandes y con ring visible para máxima legibilidad. */
#photostack-3 nav {
  z-index: 95 !important;
  bottom: 20px !important;
}

#photostack-3 nav span {
  background: rgba(255, 255, 255, 0.55) !important;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.8) !important;
  transition: background 0.3s ease, transform 0.6s ease !important;
}

#photostack-3 nav span:hover {
  background: rgba(255, 255, 255, 0.85) !important;
}

#photostack-3 nav span.current {
  background: #fff !important;
  box-shadow: 0 0 0 3px var(--ch-primary-dark),
              0 0 0 5px rgba(255, 255, 255, 0.9) !important;
  transform: scale(1) !important;
}

/* Responsive */
@media (max-width: 767px) {
  .gallery-section-header {
    padding: 20px 16px 12px;
  }

  .gallery-section-header h2 {
    font-size: 22px !important;
  }

  #photostack-3 figcaption {
    padding: 10px 12px !important;
  }
}

@media (max-width: 520px) {
  .gallery-section-header {
    padding: 16px 12px 10px;
  }
}

/* ================================================================
   14. MESA DE REGALOS (.ulockd-partner) — Acento gold
   El grid Bootstrap (col-xs-6 col-sm-4 col-md-3) se respeta tal cual.
   Solo estilizamos la tarjeta y su contenido interior.
   ================================================================ */

.ulockd-partner {
  padding: 80px 0 60px;
}

/* Añade margen inferior a cada columna de producto */
.ulockd-partner .row > [class*="col-"] {
  margin-bottom: 24px;
}

/* Tarjeta del producto */
.ulockd-partner-thumb {
  background: var(--ch-white);
  border-radius: var(--ch-radius);
  overflow: hidden;
  box-shadow: var(--ch-shadow-sm);
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: var(--ch-transition);
  height: 100%;
  display: flex;
  flex-direction: column;
  text-align: center;
}

.ulockd-partner-thumb:hover {
  transform: translateY(-5px);
  box-shadow: var(--ch-shadow-gold);
  border-color: var(--ch-border-gold);
}

/* Zona de imagen */
.registry-img {
  background: var(--ch-bg-soft);
  padding: 20px 16px;
  flex-shrink: 0;
}

.registry-img img,
.ulockd-partner-thumb img {
  width: 100%;
  height: 130px;
  object-fit: contain;
  transition: transform 0.4s ease;
  display: block;
  margin: 0 auto;
}

.ulockd-partner-thumb:hover .registry-img img,
.ulockd-partner-thumb:hover img {
  transform: scale(1.06);
}

/* Zona de info (nombre + link) */
.registry-info {
  padding: 14px 14px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: 1;
}

.registry-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--ch-text);
  margin: 0;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.registry-link {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: var(--ch-accent-dark);
  text-decoration: none;
  border: 1px solid var(--ch-border-gold);
  border-radius: 999px;
  padding: 4px 14px;
  transition: var(--ch-transition);
  white-space: nowrap;
}

.registry-link:hover {
  background: var(--ch-accent);
  color: var(--ch-white);
  border-color: var(--ch-accent);
  text-decoration: none;
}

/* Compatibilidad: cuando no hay .registry-info (solo imagen + a antiguo) */
.ulockd-partner-thumb > a {
  display: block;
  text-decoration: none;
  color: inherit;
}

/* ================================================================
   15. BLOG — Tarjetas con acento teal
   ================================================================ */

#blog .blog-post {
  background: var(--ch-white);
  border-radius: var(--ch-radius);
  overflow: hidden;
  box-shadow: var(--ch-shadow-sm);
  border: 1px solid rgba(0, 0, 0, 0.04);
  transition: var(--ch-transition);
  margin-bottom: 30px;
}

#blog .blog-post:hover {
  transform: translateY(-5px);
  box-shadow: var(--ch-shadow-teal);
  border-color: var(--ch-border-teal);
}

#blog .blog-post .thumb {
  overflow: hidden;
}

#blog .blog-post .thumb img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

#blog .blog-post:hover .thumb img {
  transform: scale(1.06);
}

#blog .blog-post .details {
  padding: 20px 18px 24px;
}

#blog .blog-post .details h3,
#blog .blog-post .details h4 {
  color: var(--ch-text);
}

#blog .blog-post .details p {
  color: var(--ch-text-light);
  font-size: 14px;
  line-height: 1.65;
}

#blog .blog-post .eventdate {
  background: var(--ch-primary) !important;
  color: var(--ch-white) !important;
  border-radius: var(--ch-radius-sm) !important;
  padding: 6px 16px !important;
  font-size: 13px !important;
  font-weight: 600;
  margin-bottom: 10px;
  display: inline-block;
}

/* ================================================================
   15. RESPONSIVE
   ================================================================ */

/* ---- ≤1199px ---- */
@media (max-width: 1199px) {
  .timeline-panel {
    width: 42%;
  }
}

/* ---- ≤991px (tablet) ---- */
@media (max-width: 991px) {
  /* Brand height on mobile */
  .couple-brand {
    min-height: 55px;
  }

  .couple-brand {
    min-width: 56px;
    padding: 8px 10px !important;
  }

  .couple-brand__monogram {
    width: 46px;
    height: 46px;
    font-size: 26px;
  }

  /* Timeline: columna izquierda */
  .our-story.timeline::before {
    left: 24px;
  }

  .timeline-badge {
    left: 24px;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
  }

  li:hover .timeline-badge {
    transform: translateX(-50%) scale(1.1);
  }

  .our-story.timeline > li {
    padding-left: 55px;
  }

  .timeline-panel {
    width: 100% !important;
    float: none !important;
    margin-bottom: 20px;
    flex-direction: column !important;
  }

  .timeline-inverted .timeline-panel {
    flex-direction: column !important;
  }

  .timeline-panel.left,
  .timeline-panel.right {
    text-align: left;
  }

  .timeline-panel::before {
    display: none;
  }

  .timeline-panel .timeline-body.w50prcnt.pull-left.ulockd-pdng15,
  .timeline-panel .timeline-body.w50prcnt:first-child,
  .timeline-panel .timeline-body.w50prcnt.pull-right,
  .timeline-panel .timeline-body.w50prcnt.pull-left:not(.ulockd-pdng15),
  .timeline-panel .timeline-body.w50prcnt:last-child:not(.ulockd-pdng15) {
    width: 100% !important;
    float: none !important;
  }

  .timeline-panel .timeline-body img {
    position: relative !important;
    height: 220px;
    min-height: auto;
  }

  .ulockd-pdng15 {
    padding: 20px 18px;
  }

  /* Venue cards en columna */
  .venue-cards-row {
    flex-direction: column;
  }

  .venue-card {
    min-width: 100%;
  }

  .agenda-grid > [class*="col-"],
  .menu-grid > [class*="col-"] {
    display: block;
  }

  .map-wrapper #map-location {
    height: 350px;
  }

  .ulockd-main-title {
    margin-bottom: 36px;
  }
}

/* ---- ≤767px (móvil) ---- */
@media (max-width: 767px) {
  #faq {
    padding: 50px 0 40px;
  }

  #contact {
    padding: 50px 0 0;
  }

  .ulockd-main-title {
    margin-bottom: 28px;
  }

  /* Event box */
  .event-box--text .details h3 {
    font-size: 18px;
  }

  .event-box .thumb img {
    height: 180px;
  }

  .event-box .details {
    padding: 20px 18px 24px;
  }

  .event-box .details h3 {
    font-size: 18px;
  }

  /* FAQ */
  .faq-question {
    padding: 16px 18px;
  }

  .faq-question h4 {
    font-size: 15px;
  }

  .faq-answer-inner {
    padding: 0 18px 16px 56px;
  }

  .faq-question-icon {
    width: 30px;
    height: 30px;
    min-width: 30px;
    font-size: 13px;
  }

  /* Mapa */
  .map-wrapper #map-location {
    height: 300px;
    border-radius: var(--ch-radius);
  }

  .map-wrapper {
    border-radius: var(--ch-radius);
  }

  .map-directions-btn {
    bottom: 14px;
    padding: 10px 22px;
    font-size: 13px;
  }

  /* Registry */
  .ulockd-partner {
    padding: 50px 0 40px;
  }

  .registry-img img,
  .ulockd-partner-thumb img {
    height: 110px;
  }

  /* Blog */
  #blog .blog-post .thumb img {
    height: 170px;
  }
}

/* ---- ≤520px (móvil pequeño) ---- */
@media (max-width: 520px) {
  .timeline-body h3.timeline-title {
    font-size: 17px;
  }

  .our-story.timeline::before {
    left: 20px;
  }

  .timeline-badge {
    left: 20px;
    width: 34px;
    height: 34px;
  }

  .our-story.timeline > li {
    padding-left: 46px;
  }

  .faq-answer-inner {
    padding-left: 18px;
  }

  .venue-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 24px 20px;
  }

  .couple-brand {
    min-width: 48px;
    padding: 6px 8px !important;
  }

  .couple-brand__monogram {
    width: 40px;
    height: 40px;
    font-size: 23px;
  }
}

/* ---- ≤480px ---- */
@media (max-width: 480px) {
  .ulockd-partner .row > [class*="col-"] {
    flex: 0 0 calc(50% - 12px);
    max-width: calc(50% - 12px);
  }

  .registry-img {
    padding: 14px 12px;
  }

  .map-directions-btn {
    font-size: 12px;
    padding: 10px 18px;
  }
}
