/*
 * =====================================================
 * CONCEPTO: Rosa & Dorado — XV Años
 * Para: invitacionesplus.mx child theme
 * Versión: 1.0
 * =====================================================
 */

/* =====================================================
   FUENTES — Cormorant Garamond + Jost
   ===================================================== */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;1,300;1,400&family=Jost:wght@300;400;500&display=swap');

/* =====================================================
   VARIABLES DE COLOR — Rosa & Dorado
   ===================================================== */
:root {
  /* Rosas */
  --xv-rosa:      #C48098;
  --xv-rosa-l:    #D4A0B8;
  --xv-rosa-ll:   #EEC0D0;
  --xv-rosa-lll:  #FAF0F4;
  --xv-rosa-bg:   #F5E8EE;

  /* Dorados */
  --xv-oro:       #C9A840;
  --xv-oro-l:     #E8C870;
  --xv-oro-ll:    #F5E8C0;
  --xv-oro-lll:   #FDF8EC;

  /* Oscuros */
  --xv-oscuro:    #180810;
  --xv-oscuro-m:  #2A1020;
  --xv-oscuro-l:  #3A1830;

  /* Texto */
  --xv-crema:     #FDF5F8;
  --xv-text-d:    #2A0818;
  --xv-text-m:    #6A3848;
  --xv-text-l:    #9A7888;
}

/* =====================================================
   HELPER — ancho completo para secciones con foto
   Clase: xv-full-width en Avanzado → CSS Class
   ===================================================== */
.xv-full-width,
.xv-full-width .et_pb_row,
.xv-full-width .et_pb_column,
.xv-full-width .et_pb_code {
  padding: 0 !important;
  max-width: 100% !important;
  width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* =====================================================
   HERO — portada oscura con corona
   ===================================================== */
.xv-hero {
  background: var(--xv-oscuro);
  padding: 80px 32px;
  text-align: center;
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.xv-hero-glow {
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: rgba(196,128,152,.14);
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
}

/* Pétalos decorativos */
.xv-petal {
  position: absolute;
  border-radius: 50% 0 50% 0;
  opacity: .1;
  pointer-events: none;
}

.xv-hero-crown {
  position: relative;
  z-index: 2;
  margin-bottom: 12px;
}

.xv-hero-tag {
  font-family: 'Jost', sans-serif;
  font-size: 10px;
  font-weight: 300;
  letter-spacing: .45em;
  text-transform: uppercase;
  color: var(--xv-rosa-l);
  margin-bottom: 16px;
  position: relative;
  z-index: 2;
  opacity: .85;
}

.xv-hero-xv {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 300;
  font-size: clamp(72px, 18vw, 100px);
  color: var(--xv-rosa-ll);
  line-height: 1;
  position: relative;
  z-index: 2;
}

.xv-hero-anos {
  font-family: 'Jost', sans-serif;
  font-size: 11px;
  font-weight: 300;
  letter-spacing: .6em;
  text-transform: uppercase;
  color: var(--xv-oro);
  margin-top: 4px;
  position: relative;
  z-index: 2;
  opacity: .85;
}

.xv-hero-name {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 300;
  font-size: clamp(28px, 7vw, 40px);
  color: var(--xv-crema);
  margin-top: 18px;
  position: relative;
  z-index: 2;
}

.xv-hero-divider {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 110px;
  margin: 16px auto;
  position: relative;
  z-index: 2;
}
.xv-hero-div-line { flex: 1; height: .5px; background: rgba(201,168,64,.3); }
.xv-hero-div-dia  { width: 5px; height: 5px; background: var(--xv-oro); transform: rotate(45deg); }

.xv-hero-date {
  font-family: 'Jost', sans-serif;
  font-size: 10px;
  font-weight: 300;
  letter-spacing: .35em;
  text-transform: uppercase;
  color: var(--xv-rosa-l);
  position: relative;
  z-index: 2;
  opacity: .8;
}

.xv-hero-place {
  font-family: 'Jost', sans-serif;
  font-size: 11px;
  font-weight: 300;
  color: rgba(253,245,248,.5);
  margin-top: 5px;
  position: relative;
  z-index: 2;
}

/* =====================================================
   SECCIÓN COMUN — etiquetas y títulos
   ===================================================== */
.xv-tag {
  font-family: 'Jost', sans-serif;
  font-size: 10px;
  font-weight: 300;
  letter-spacing: .4em;
  text-transform: uppercase;
  color: var(--xv-rosa);
  text-align: center;
  margin-bottom: 8px;
}

.xv-titulo {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 300;
  font-size: clamp(28px, 7vw, 38px);
  color: var(--xv-text-d);
  text-align: center;
  margin-bottom: 6px;
}

.xv-subtitulo {
  font-family: 'Jost', sans-serif;
  font-size: 12px;
  font-weight: 300;
  color: var(--xv-text-m);
  text-align: center;
  line-height: 1.7;
  margin-bottom: 20px;
}

.xv-divider {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 90px;
  margin: 0 auto 24px;
}
.xv-div-line { flex: 1; height: .5px; background: var(--xv-rosa-ll); }
.xv-div-dia  { width: 5px; height: 5px; background: var(--xv-rosa-l); transform: rotate(45deg); }

/* =====================================================
   FONDOS DE SECCIÓN — alternados
   ===================================================== */
.xv-sec-crema   { background: var(--xv-crema)    !important; }
.xv-sec-rosa    { background: var(--xv-rosa-lll) !important; }
.xv-sec-oro     { background: var(--xv-oro-lll)  !important; }
.xv-sec-oscuro  { background: var(--xv-oscuro)   !important; }
.xv-sec-oscuro-m{ background: var(--xv-oscuro-m) !important; }

/* =====================================================
   COUNTDOWN — sobre fondo oscuro
   ===================================================== */
.xv-countdown-wrap {
  background: var(--xv-oscuro);
  padding: 48px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.xv-countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  max-width: 400px;
  margin: 20px auto 0;
}

.xv-cnt-box {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(201,168,64,.2);
  border-radius: 12px;
  padding: 16px 4px;
  text-align: center;
}

.xv-cnt-num {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: 36px;
  color: var(--xv-rosa-ll);
  line-height: 1;
}

.xv-cnt-label {
  font-family: 'Jost', sans-serif;
  font-size: 9px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--xv-oro);
  margin-top: 4px;
  opacity: .75;
}

/* =====================================================
   ITINERARIO — timeline
   ===================================================== */
.xv-timeline {
  position: relative;
  padding-left: 30px;
  max-width: 480px;
  margin: 0 auto;
}

.xv-timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: .5px;
  background: var(--xv-rosa-ll);
}

.xv-tl-item {
  position: relative;
  margin-bottom: 24px;
}

.xv-tl-dot {
  position: absolute;
  left: -36px;
  top: 5px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--xv-crema);
  border: 1.5px solid var(--xv-rosa-l);
}

.xv-tl-dot.hl { background: var(--xv-rosa-l); }

.xv-tl-time {
  font-family: 'Jost', sans-serif;
  font-size: 10px;
  letter-spacing: .12em;
  color: var(--xv-rosa);
  margin-bottom: 2px;
}

.xv-tl-event {
  font-family: 'Jost', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--xv-text-d);
}

.xv-tl-place {
  font-family: 'Jost', sans-serif;
  font-size: 11px;
  color: var(--xv-text-m);
}

.xv-tl-badge {
  display: inline-block;
  margin-top: 5px;
  font-family: 'Jost', sans-serif;
  font-size: 9px;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 2px 9px;
  border-radius: 20px;
  background: var(--xv-rosa-ll);
  color: var(--xv-rosa);
  font-weight: 500;
}

/* =====================================================
   VALS & CHAMBELANES
   ===================================================== */
.xv-vals-wrap {
  background: var(--xv-oscuro-m);
  padding: 48px 20px;
  text-align: center;
}

.xv-vals-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  max-width: 480px;
  margin: 20px auto 0;
}

.xv-vals-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(196,128,152,.2);
  border-radius: 12px;
  padding: 14px 10px;
  text-align: center;
}

.xv-vals-card.full { grid-column: 1 / -1; }

.xv-vals-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(196,128,152,.1);
  border: 1px solid rgba(196,128,152,.2);
  margin: 0 auto 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.xv-vals-role {
  font-family: 'Jost', sans-serif;
  font-size: 8px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--xv-oro);
  margin-bottom: 5px;
  opacity: .85;
}

.xv-vals-name {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 15px;
  color: var(--xv-rosa-ll);
  line-height: 1.4;
}

/* =====================================================
   HISTORIA — mensaje de los papás
   ===================================================== */
.xv-hist-wrap {
  background: var(--xv-crema);
  padding: 48px 24px;
  text-align: center;
}

.xv-hist-ornament {
  font-family: 'Cormorant Garamond', serif;
  font-size: 32px;
  color: var(--xv-oro);
  opacity: .5;
  margin-bottom: 16px;
  letter-spacing: 8px;
}

.xv-hist-msg {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 300;
  font-size: clamp(17px, 4.5vw, 22px);
  color: var(--xv-text-d);
  line-height: 1.7;
  margin-bottom: 20px;
  padding: 0 8px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.xv-hist-firma {
  font-family: 'Jost', sans-serif;
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--xv-rosa);
  margin-bottom: 4px;
}

.xv-hist-nombre {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 22px;
  color: var(--xv-rosa);
}

/* =====================================================
   BOTÓN PRINCIPAL
   ===================================================== */
.xv-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 30px;
  background: var(--xv-rosa);
  color: #fff;
  font-family: 'Jost', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background .2s, transform .15s;
}
.xv-btn:hover { background: var(--xv-rosa-l); transform: scale(1.03); }

.xv-btn-oro {
  background: var(--xv-oro);
  color: var(--xv-oscuro);
}
.xv-btn-oro:hover { background: var(--xv-oro-l); }

/* =====================================================
   TARJETAS GENERALES
   ===================================================== */
.xv-card {
  background: var(--xv-crema);
  border: 1px solid var(--xv-rosa-ll);
  border-radius: 12px;
  padding: 20px;
  max-width: 480px;
  margin: 0 auto;
}

.xv-card-oscura {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(196,128,152,.2);
  border-radius: 12px;
  padding: 20px;
  max-width: 480px;
  margin: 0 auto;
}

/* =====================================================
   FORMULARIO CONFIRMACIÓN — sobre fondo oscuro
   ===================================================== */
.xv-form-label {
  font-family: 'Jost', sans-serif;
  font-size: 11px;
  font-weight: 300;
  color: var(--xv-rosa-l);
  margin-bottom: 6px;
  display: block;
  opacity: .85;
}

.xv-form-input {
  width: 100%;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid rgba(196,128,152,.25);
  background: rgba(255,255,255,.04);
  font-family: 'Jost', sans-serif;
  font-size: 12px;
  color: var(--xv-rosa-ll);
  margin-bottom: 14px;
  outline: none;
}
.xv-form-input:focus { border-color: var(--xv-rosa); }

.xv-form-attend {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 14px;
}

.xv-attend-opt {
  padding: 10px 8px;
  border-radius: 8px;
  border: 1px solid rgba(196,128,152,.2);
  text-align: center;
  font-family: 'Jost', sans-serif;
  font-size: 12px;
  color: var(--xv-rosa-l);
  cursor: pointer;
  transition: all .15s;
}
.xv-attend-opt.active {
  background: rgba(196,128,152,.15);
  color: var(--xv-rosa-ll);
  border-color: var(--xv-rosa);
}

.xv-form-cta {
  width: 100%;
  padding: 13px;
  border-radius: 8px;
  background: var(--xv-rosa);
  color: #fff;
  border: none;
  font-family: 'Jost', sans-serif;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  letter-spacing: .06em;
  transition: background .2s;
}
.xv-form-cta:hover { background: var(--xv-rosa-l); }

/* =====================================================
   MESA DE REGALOS
   ===================================================== */
.xv-regalo-card {
  background: var(--xv-crema);
  border: 1px solid var(--xv-rosa-ll);
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 10px;
  display: flex;
  gap: 12px;
  align-items: center;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.xv-regalo-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--xv-rosa-lll);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--xv-rosa-ll);
}

.xv-regalo-name {
  font-family: 'Jost', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--xv-text-d);
  margin-bottom: 3px;
}

.xv-regalo-desc {
  font-family: 'Jost', sans-serif;
  font-size: 11px;
  color: var(--xv-text-m);
}

.xv-regalo-btn {
  margin-left: auto;
  font-size: 10px;
  padding: 5px 12px;
  border-radius: 20px;
  background: var(--xv-rosa-ll);
  color: var(--xv-rosa);
  border: none;
  cursor: pointer;
  white-space: nowrap;
  font-family: 'Jost', sans-serif;
  font-weight: 500;
}

/* =====================================================
   HONEYPOT anti-spam
   ===================================================== */
.xv-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

/* =====================================================
   RESPONSIVIDAD MÓVIL
   ===================================================== */
@media (max-width: 767px) {
  .xv-hero { padding: 60px 20px; }
  .xv-cnt-num { font-size: 28px; }
  .xv-vals-grid { grid-template-columns: 1fr 1fr; }
  .xv-countdown-grid { gap: 8px; }
}
