/*
 * Tema Rosa Quinceañera
 * Paleta elegante con gradientes y detalles para que no se vea plano
 */

/* ── Variables de color ── */
:root {
  --rosa-suave:    #f9c6d0;
  --rosa-medio:    #f4a0b5;
  --rosa-fuerte:   #e8728f;
  --rosa-oscuro:   #c94f70;
  --dorado:        #d4a853;
  --dorado-claro:  #f0d080;
  --blanco-rosa:   #fff5f7;
  --gris-rosa:     #f5e8ec;
}

/* ── Fondo general ── */
body {
  background-color: var(--blanco-rosa);
}

/* ── Botones primarios ── */
.btn-primary {
  --bs-btn-bg: var(--rosa-fuerte);
  --bs-btn-border-color: var(--rosa-fuerte);
  --bs-btn-hover-bg: var(--rosa-oscuro);
  --bs-btn-hover-border-color: var(--rosa-oscuro);
  --bs-btn-active-bg: var(--rosa-oscuro);
  background: linear-gradient(135deg, var(--rosa-medio), var(--rosa-fuerte));
  border: none;
  box-shadow: 0 4px 15px rgba(232, 114, 143, 0.35);
  transition: all 0.3s ease;
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--rosa-fuerte), var(--rosa-oscuro));
  box-shadow: 0 6px 20px rgba(201, 79, 112, 0.45);
  transform: translateY(-1px);
}

/* ── Botón outline ── */
.btn-outline-primary {
  --bs-btn-color: var(--rosa-fuerte);
  --bs-btn-border-color: var(--rosa-fuerte);
  --bs-btn-hover-bg: var(--rosa-fuerte);
  --bs-btn-hover-border-color: var(--rosa-fuerte);
}

/* ── Sección gris → rosa pastel ── */
.section-gray {
  background: linear-gradient(160deg, var(--gris-rosa) 0%, #fce8ee 100%);
}

/* ── Panel heading del acordeón de eventos ── */
.events-accordion .panel-heading {
  background: linear-gradient(135deg, var(--rosa-suave) 0%, #fce0e8 100%);
  border-left: 3px solid var(--rosa-fuerte);
}
.events-accordion .panel-title > a {
  color: var(--rosa-oscuro);
}
.events-accordion .panel-title > a:hover,
.events-accordion .panel-title > a[aria-expanded=true] {
  color: var(--rosa-oscuro);
}

/* ── Label de ubicación ── */
.events-accordion .panel-location-label {
  color: var(--rosa-oscuro) !important;
}

/* ── Ícono de mapa ── */
.events-accordion .panel-place .fa-map-marker {
  color: var(--rosa-fuerte);
}

/* ── Navbar fijo ── */
.navbar.fixed-top {
  background: linear-gradient(135deg, #fff5f7 0%, #ffe0e8 100%) !important;
  border-bottom: 1px solid var(--rosa-suave) !important;
  box-shadow: 0 2px 12px rgba(232, 114, 143, 0.15);
}

/* ── Sección countdown ── */
.countdown .heading h2,
.countdown .heading .h2 {
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

/* ── Timeline línea vertical ── */
.timeline::before {
  background: linear-gradient(to bottom, var(--rosa-suave), var(--rosa-fuerte));
}

/* ── Inputs y formularios ── */
.form-control:focus {
  border-color: var(--rosa-medio);
  box-shadow: 0 0 0 0.2rem rgba(244, 160, 181, 0.3);
}
.form-control {
  border-color: var(--rosa-suave);
}

/* ── Checkboxes y radios ── */
.form-check-input:checked {
  background-color: var(--rosa-fuerte);
  border-color: var(--rosa-fuerte);
}

/* ── Links ── */
a {
  color: var(--rosa-oscuro);
}
a:hover {
  color: var(--rosa-fuerte);
}

/* ── Decoración: separadores con gradiente ── */
.section::after {
  content: "";
  display: block;
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--rosa-suave), var(--rosa-fuerte), var(--dorado));
  margin: 0 auto;
  margin-top: 2em;
  border-radius: 2px;
}

/* ── Headings con toque elegante ── */
h2, .h2 {
  background: linear-gradient(135deg, var(--rosa-oscuro), var(--dorado));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Paneles con sombra suave ── */
.events-accordion .panel-default {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 3px 15px rgba(232, 114, 143, 0.12);
  border: 1px solid rgba(244, 160, 181, 0.3);
}

/* ── Contador (timer digits) ── */
.timer .timer-item > div {
  background: rgba(255,255,255,0.12);
  border-radius: 12px;
  backdrop-filter: blur(4px);
}

/* ── Botón flotante de registro ── */
#btn-registro-flotante {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 22px;
  background: linear-gradient(135deg, var(--rosa-medio), var(--rosa-fuerte));
  color: #fff;
  border: none;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 6px 25px rgba(232, 114, 143, 0.55);
  transition: all 0.3s ease;
  animation: pulso-rosa 2.5s infinite;
}
#btn-registro-flotante:hover {
  background: linear-gradient(135deg, var(--rosa-fuerte), var(--rosa-oscuro));
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 10px 30px rgba(201, 79, 112, 0.55);
}
#btn-registro-flotante .fa-heart {
  font-size: 16px;
}
@keyframes pulso-rosa {
  0%, 100% { box-shadow: 0 6px 25px rgba(232, 114, 143, 0.55); }
  50%       { box-shadow: 0 6px 35px rgba(232, 114, 143, 0.85); }
}

/* ── Modal de registro ── */
#modal-registro {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(180, 60, 90, 0.25);
  backdrop-filter: blur(4px);
  align-items: flex-start;
  justify-content: center;
  padding: 16px;
  overflow-y: auto;
}
.modal-registro-box {
  background: #fff;
  border-radius: 20px;
  padding: 36px 32px 28px;
  width: 100%;
  max-width: 440px;
  position: relative;
  box-shadow: 0 20px 60px rgba(201, 79, 112, 0.25);
  border-top: 5px solid var(--rosa-fuerte);
  animation: slideUp 0.3s ease;
  margin: auto;
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
.modal-registro-cerrar {
  position: absolute;
  top: 14px;
  right: 18px;
  background: none;
  border: none;
  font-size: 24px;
  color: var(--rosa-medio);
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s;
}
.modal-registro-cerrar:hover { color: var(--rosa-oscuro); }

.modal-registro-header {
  text-align: center;
  margin-bottom: 24px;
}
.modal-registro-header .fa-heart {
  font-size: 28px;
  color: var(--rosa-fuerte);
  margin-bottom: 8px;
  display: block;
}
.modal-registro-header h3 {
  font-family: 'Great Vibes', cursive;
  font-size: 28px;
  background: linear-gradient(135deg, var(--rosa-oscuro), var(--dorado));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0 0 4px;
}
.modal-registro-header p {
  font-size: 13px;
  color: var(--rosa-oscuro);
  opacity: 0.75;
  margin: 0;
}

/* Campos del formulario */
.reg-field {
  margin-bottom: 16px;
}
.reg-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--rosa-oscuro);
  margin-bottom: 5px;
}
.reg-field input[type="text"],
.reg-field input[type="tel"],
.reg-field input[type="email"],
.reg-field select {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--rosa-suave);
  border-radius: 10px;
  font-size: 14px;
  color: #555;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: #fff9fb;
  display: block !important;
  height: auto !important;
  opacity: 1 !important;
  visibility: visible !important;
}
.reg-field input:focus,
.reg-field select:focus {
  border-color: var(--rosa-medio);
  box-shadow: 0 0 0 3px rgba(244, 160, 181, 0.25);
}
.reg-field-radio label:first-child {
  margin-bottom: 8px;
}
.reg-radio-group {
  display: flex;
  gap: 20px;
}
.reg-radio-group label {
  font-size: 14px;
  font-weight: 400;
  color: #666;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}
.reg-radio-group input[type="radio"] {
  accent-color: var(--rosa-fuerte);
}

.reg-btn-enviar {
  width: 100%;
  padding: 13px;
  margin-top: 8px;
  background: linear-gradient(135deg, var(--rosa-medio), var(--rosa-fuerte));
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(232, 114, 143, 0.4);
  transition: all 0.3s ease;
}
.reg-btn-enviar:hover:not(:disabled) {
  background: linear-gradient(135deg, var(--rosa-fuerte), var(--rosa-oscuro));
  transform: translateY(-1px);
}
.reg-btn-enviar:disabled { opacity: 0.7; cursor: not-allowed; }

.reg-mensaje {
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 14px;
  margin-bottom: 10px;
  text-align: center;
}
.reg-ok    { background: #fde8ef; color: var(--rosa-oscuro); border: 1px solid var(--rosa-suave); }
.reg-duplicado { background: #fff8e1; color: #b07d00; border: 1px solid #ffe082; }
.reg-error { background: #fff0f0; color: #c0392b; border: 1px solid #f5c6cb; }

/* forzar visibilidad campo email */
#reg-email.reg-input {
  display: block !important;
  width: 100% !important;
  padding: 10px 14px !important;
  border: 1.5px solid var(--rosa-suave) !important;
  border-radius: 10px !important;
  font-size: 14px !important;
  color: #555 !important;
  background: #fff9fb !important;
  height: auto !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* ── Mini Álbum de fotos ── */
.album-carousel {
  position: relative;
  max-width: 340px;
  margin: 0 auto;
  user-select: none;
}

/* Pila de cartas */
.album-pila {
  position: relative;
  width: 100%;
  aspect-ratio: 3/4;
}

.album-carta {
  position: absolute;
  inset: 0;
  background: #fff;
  border-radius: 4px;
  padding: 10px 10px 44px 10px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1), 0 12px 30px rgba(201,79,112,0.15);
  transform-origin: left center;
  transition: transform 0.55s cubic-bezier(.4,0,.2,1), opacity 0.4s ease;
  will-change: transform;
  overflow: hidden;
}

/* Cartas apiladas detrás con pequeño offset */
.album-carta:nth-child(2) { transform: rotate(1.5deg)  translate(4px, -3px); }
.album-carta:nth-child(3) { transform: rotate(-1deg)   translate(-3px, -5px); }
.album-carta:nth-child(n+4) { opacity: 0; }

/* La carta activa siempre encima */
.album-carta.activa { z-index: 10; transform: rotate(0deg) translate(0,0); }

/* Animación de salida — desliza a la izquierda */
.album-carta.saliendo {
  transform: translateX(-110%) rotate(-8deg) !important;
  opacity: 0;
  z-index: 11;
}

.album-carta img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 2px;
}

/* Portada especial */
.album-portada {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, #fde8ef 0%, #fce0ea 60%, #ffd6e4 100%);
  height: 100%;
  border-radius: 2px;
  gap: 12px;
}
.album-portada h3 {
  font-family: 'Great Vibes', cursive;
  font-size: 2rem;
  background: linear-gradient(135deg, var(--rosa-oscuro), var(--dorado));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0;
  text-align: center;
  line-height: 1.3;
}
.album-portada .portada-emoji { font-size: 2.5rem; }
.album-portada .portada-hint {
  font-size: 12px;
  color: var(--rosa-oscuro);
  opacity: 0.7;
  letter-spacing: 0.05em;
}

/* Esquinas del marco */
.marco-tl, .marco-tr, .marco-bl, .marco-br {
  position: absolute;
  width: 20px;
  height: 20px;
  z-index: 2;
  pointer-events: none;
}
.marco-tl { top: 14px;    left: 14px;   border-top: 2px solid var(--rosa-medio); border-left:  2px solid var(--rosa-medio); }
.marco-tr { top: 14px;    right: 14px;  border-top: 2px solid var(--rosa-medio); border-right: 2px solid var(--rosa-medio); }
.marco-bl { bottom: 48px; left: 14px;   border-bottom: 2px solid var(--rosa-medio); border-left:  2px solid var(--rosa-medio); }
.marco-br { bottom: 48px; right: 14px;  border-bottom: 2px solid var(--rosa-medio); border-right: 2px solid var(--rosa-medio); }

.album-btn { display: none; }

/* 3 puntos */
.album-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
}
.album-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ddd;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  padding: 0;
}
.album-dot.activo {
  background: var(--rosa-fuerte);
  transform: scale(1.2);
  box-shadow: 0 0 6px rgba(232,114,143,0.5);
}

/* ── Frases en las fotos del álbum ── */
.album-carta {
  overflow: hidden;
}
.album-frase {
  position: absolute;
  bottom: 10px;
  left: 0;
  right: 0;
  text-align: center;
  font-family: 'Great Vibes', cursive;
  font-size: 1.1rem;
  color: var(--rosa-oscuro);
  padding: 0 12px;
  line-height: 1.3;
  pointer-events: none;
}

/* ── Efectos de entrada por sección ── */

/* Estado inicial — oculto antes de animar */
.efecto-typewriter,
.efecto-fadescale,
.efecto-slide-left,
.efecto-blur-in,
.efecto-shimmer {
  opacity: 0;
}

/* Typewriter — para párrafos multilínea */
.efecto-typewriter {
  opacity: 0;
}
.efecto-typewriter.animar {
  opacity: 1;
  animation: typewriterFade 0.1s ease forwards;
}
/* Efecto letra por letra via JS para párrafos */
.efecto-typewriter.animar.tw-activo {
  opacity: 1;
}
@keyframes typewriterFade {
  to { opacity: 1; }
}

/* Fade + scale */
.efecto-fadescale.animar {
  animation: fadescale 0.8s ease forwards;
}
@keyframes fadescale {
  from { opacity: 0; transform: scale(0.85); }
  to   { opacity: 1; transform: scale(1); }
}

/* Slide desde izquierda */
.efecto-slide-left.animar {
  animation: slideLeft 0.8s ease forwards;
}
@keyframes slideLeft {
  from { opacity: 0; transform: translateX(-40px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* Blur que se enfoca */
.efecto-blur-in.animar {
  animation: blurIn 1s ease forwards;
}
@keyframes blurIn {
  from { opacity: 0; filter: blur(12px); }
  to   { opacity: 1; filter: blur(0); }
}

/* Shimmer / brillo */
.efecto-shimmer.animar {
  animation: shimmerIn 1.2s ease forwards;
}

@keyframes shimmerIn {
  0%   { opacity: 0; text-shadow: none; }
  50%  { opacity: 1; text-shadow: 0 0 20px rgba(244,160,181,0.8), 0 0 40px rgba(212,168,83,0.5); }
  100% { opacity: 1; text-shadow: none; }
}

/* ══════════════════════════════════════════
   Deseos Familiares — mejoras visuales
   ══════════════════════════════════════════ */

/* 1. Sección con fondo degradado suave */
.testimonials {
  background: linear-gradient(160deg, #fff5f7 0%, #fce8ef 60%, #fff9f0 100%);
}

/* 2. Fuente elegante en las citas (Great Vibes) */
.testimony-slide blockquote p {
  font-family: 'Great Vibes', cursive;
  font-size: 1.45rem;
  line-height: 1.7;
  color: #7a3a50;
  font-style: normal;
  position: relative;
  padding: 0 16px;
  margin: 0;
}

/* Comilla decorativa grande al inicio */
.testimony-slide blockquote p::before {
  content: '\201C';
  font-family: 'Great Vibes', cursive;
  font-size: 5rem;
  line-height: 0;
  color: var(--rosa-medio);
  opacity: 0.45;
  position: absolute;
  top: 24px;
  left: -6px;
  pointer-events: none;
}

/* 3. Nombre del familiar con degradado shimmer */
.testimony-slide > span {
  display: inline-block;
  font-family: 'Open Sans', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: linear-gradient(90deg, var(--rosa-oscuro) 0%, var(--dorado) 50%, var(--rosa-oscuro) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: nombreShimmer 3.5s linear infinite;
}
@keyframes nombreShimmer {
  0%   { background-position: 0% center; }
  100% { background-position: 200% center; }
}

/* Línea decorativa bajo el nombre */
.testimony-slide > span::after {
  content: '';
  display: block;
  width: 50px;
  height: 1.5px;
  background: linear-gradient(90deg, var(--rosa-medio), var(--dorado));
  margin: 6px auto 12px;
  border-radius: 2px;
}

/* 4. Transición fade + rise al cambiar slide */
.owl-carousel-fullwidth .item {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.owl-carousel-fullwidth .item.testimonio-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Imagen circular con borde degradado */
.testimony-slide figure img {
  border-radius: 50%;
  border: 3px solid transparent;
  background: linear-gradient(#fff, #fff) padding-box,
              linear-gradient(135deg, var(--rosa-medio), var(--dorado)) border-box;
  box-shadow: 0 4px 18px rgba(201, 79, 112, 0.2);
  transition: transform 0.4s ease;
}
.testimony-slide figure img:hover {
  transform: scale(1.05);
}

/* ── Imágenes del acordeón de eventos — llenar contenedor ── */
.events-accordion .accordion-img .panel-collapse img {
  width: 100%;
  height: 100%;
  min-height: 400px;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: 4px;
  image-rendering: auto;
  filter: blur(0.4px) brightness(1.05) contrast(1.05);
  transform: scale(1.02); /* evita bordes blancos por el blur */
  transition: filter 0.3s ease;
}
.events-accordion .accordion-img .panel-collapse img:hover {
  filter: blur(0) brightness(1.08) contrast(1.08);
}


