/* ── Estilos páginas internas ───────────────────────────────────────────── */

/* Todas las páginas interiores usan confirmacion.png, repitiendo verticalmente */
.app-wrapper {
  background: url('../img/confirmacion.png') repeat-y top center;
  background-size: 100% auto;
}

/* ── Logo + flecha páginas interiores ───────────────────────────────────── */
.site-logo-wrap {
  position: relative;
  text-align: center;
  padding: 0;
  margin-bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.site-logo-link {
  display: block;
}

.site-logo {
  width: 100%;
  max-width: 420px;
  display: inline-block;
}

.btn-back {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  -webkit-tap-highlight-color: transparent;
  transition: transform .18s ease;
  z-index: 10;
}

.btn-back:active {
  transform: translateY(-50%) scale(1.18);
}

/* Cabecera de página */
.page-header {
  position: relative;
  padding: 0 1.5rem 1rem;
  text-align: center;
  overflow: hidden;
}

body.page-plan-dia .page-header {
  padding: 0;
}


/* ── Cómo llegar ────────────────────────────────────────────────────────── */
.location-card {
  margin: 0 1.5rem 1.2rem;
  padding: 1.2rem;
  border-radius: var(--radius);
  background: rgba(255,255,255,0.7);
  border: 1px solid rgba(176,141,106,0.15);
}

.location-card h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 400;
  margin-bottom: 0.4rem;
}

.map-container {
  margin: 0 1.5rem 1.5rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(176,141,106,0.2);
  aspect-ratio: 4/3;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* ── Plan del día — Timeline ────────────────────────────────────────────── */
.timeline {
  padding: 0 1.2rem 0.5rem;
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  left: calc(1.5rem + 19px);
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--color-accent) 10%, var(--color-accent) 90%, transparent);
  opacity: 0.3;
}

.timeline-item {
  display: flex;
  gap: 0.7rem;
  margin-bottom: 0.7rem;
  position: relative;
  animation: fadeUp 0.5s ease both;
}

.timeline-dot {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  z-index: 1;
}

.timeline-dot svg {
  width: 32px;
  height: 32px;
}

.timeline-body {
  padding-top: 0.4rem;
}

.timeline-time {
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-primary);
  font-weight: 400;
}

.timeline-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--color-text);
  margin-top: 0.1rem;
}

.timeline-desc {
  font-size: 0.97rem;
  color: var(--color-text-light);
  margin-top: 0.2rem;
}

/* ── Confirmación — Formulario ──────────────────────────────────────────── */
.form-wrapper {
  padding: 0 1.5rem 2rem;
}

.form-group {
  margin-bottom: 1.2rem;
}

.form-label {
  display: block;
  font-size: 1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-text);
  margin-bottom: 0.5rem;
  font-family: var(--font-body);
}

.form-control {
  width: 100%;
  padding: 1rem 1.1rem;
  border: 2px solid var(--color-text);
  border-radius: 10px;
  background: rgba(255,255,255,0.82);
  font-family: var(--font-body);
  font-size: 1.15rem;
  color: var(--color-text);
  transition: border-color var(--transition);
  -webkit-appearance: none;
}

.form-control:focus {
  outline: none;
  border-color: var(--color-primary);
  background: rgba(255,255,255,0.95);
}

.form-control::placeholder {
  color: rgba(140,111,94,0.5);
}

textarea.form-control {
  resize: vertical;
  min-height: 100px;
}

.radio-group {
  display: flex;
  gap: 0.75rem;
}

.radio-option {
  flex: 1;
  position: relative;
}

.radio-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
}

.radio-option label {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem;
  border-radius: 10px;
  border: 2px solid var(--color-text);
  font-size: 1.1rem;
  font-family: var(--font-body);
  cursor: pointer;
  transition: all var(--transition);
  background: rgba(255,255,255,0.6);
}

.radio-option input:checked + label {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-white);
}

/* Botones de asistencia: ancho completo, misma altura mínima */
.radio-group--asistencia {
  flex-direction: row;
}

.radio-group--asistencia .radio-option label {
  min-height: 72px;
  font-size: 1.05rem;
  text-align: center;
  line-height: 1.3;
}

/* Mensaje de error inline */
.form-message {
  display: none;
  padding: 1rem;
  border-radius: 8px;
  text-align: center;
  font-size: 1rem;
  margin-top: 0.25rem;
  margin-bottom: 1rem;
}

.form-message.error {
  display: block;
  background: rgba(200,80,80,0.08);
  color: #8b2020;
  border: 1px solid rgba(200,80,80,0.2);
}

/* ── Popup de éxito ──────────────────────────────────────────────────────── */
.success-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(60, 50, 30, 0.55);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  z-index: 500;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.success-overlay.visible {
  display: flex;
  animation: fadeIn .22s ease both;
}

.success-popup {
  background: #f7edd8;
  border: 2.5px solid var(--color-primary);
  border-radius: 20px;
  padding: 2.2rem 1.8rem;
  text-align: center;
  max-width: 320px;
  width: 100%;
  box-shadow: 0 12px 40px rgba(46,153,161,.25), 0 4px 16px rgba(0,0,0,.14);
  animation: popIn .3s cubic-bezier(.34,1.56,.64,1) both;
}

.success-popup .popup-icon  { font-size: 2.6rem; line-height: 1; margin-bottom: .7rem; }
.success-popup .popup-title { font-family: var(--font-heading); font-size: 1.45rem; font-weight: 600; color: var(--color-primary); margin-bottom: .55rem; }
.success-popup .popup-body  { font-size: .98rem; color: var(--color-text); line-height: 1.55; margin-bottom: 1.4rem; }

.success-popup .popup-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: .65rem 2rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: opacity .18s ease;
  -webkit-tap-highlight-color: transparent;
}

.success-popup .popup-close:active { opacity: .82; }

@keyframes popIn {
  from { opacity: 0; transform: scale(.82) translateY(12px); }
  to   { opacity: 1; transform: scale(1)   translateY(0); }
}

/* Plan del día: fondo propio */
body.page-plan-dia .app-wrapper {
  background: url('../img/fondo-interior.png') no-repeat top center;
  background-size: 100% auto;
  overflow: visible;
}

/* ── Logo manuscrito Plan del día ───────────────────────────────────────── */
.site-logo-handwritten {
  width: 200px;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* ── El lugar ───────────────────────────────────────────────────────────── */
.lugar-ilustracion {
  padding: 0 1.5rem 0.5rem;
  text-align: center;
}

.lugar-foto {
  width: 80%;
  max-width: 320px;
  height: auto;
  display: inline-block;
  -webkit-user-drag: none;
  user-select: none;
  mix-blend-mode: multiply;
}

.lugar-desc {
  padding: 0.5rem 1.5rem 1.2rem;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--color-text);
}

.lugar-desc em {
  font-style: italic;
  color: var(--color-primary);
}

.lugar-info {
  padding: 0 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.lugar-dir {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.92rem;
  color: var(--color-text-light);
  line-height: 1.5;
}

.lugar-dir svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--color-primary);
}

.lugar-maps-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.4rem;
  border-radius: 50px;
  background: var(--color-primary);
  color: #fff;
  font-family: var(--font-body);
  font-size: 1rem;
  text-decoration: none;
  border: none;
  -webkit-tap-highlight-color: transparent;
  transition: opacity var(--transition);
}

.lugar-maps-btn:active { opacity: 0.82; }

/* ── Sección transporte ─────────────────────────────────────────────────── */
.lugar-transporte {
  padding: 0 1.5rem 2.5rem;
}

.transporte-titulo {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--color-text);
  margin-bottom: 1rem;
  text-align: center;
}

.transporte-card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: rgba(255,255,255,0.6);
  border: 1.5px solid rgba(71,83,36,0.15);
  border-radius: 14px;
  padding: 1rem 1.1rem;
  margin-bottom: 0.85rem;
}

.transporte-icono {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
}

.transporte-icono svg {
  width: 48px;
  height: 48px;
}

.transporte-body {
  flex: 1;
}

.transporte-nombre {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--color-text);
  margin-bottom: 0.3rem;
}

.transporte-texto {
  font-size: 1rem;
  color: var(--color-text-light);
  line-height: 1.55;
  margin-bottom: 0.6rem;
}

.transporte-texto strong {
  color: var(--color-text);
  font-weight: 600;
}

/* Badge metro línea */
.metro-linea-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.metro-linea-badge {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.metro-linea-nombre {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
}

.metro-linea-dist {
  font-size: 0.88rem;
  color: var(--color-text-light);
  background: rgba(71,83,36,0.08);
  border-radius: 20px;
  padding: 0.15rem 0.55rem;
}

/* Campos condicionales */
.form-conditional {
  animation: fadeUp 0.25s ease both;
}

/* ── Bloque dudas / WhatsApp ─────────────────────────────────────────────── */
.dudas-block {
  margin-top: 2.5rem;
  text-align: center;
  padding-bottom: 2rem;
}

.dudas-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: .2rem;
}

.dudas-text {
  font-size: 1rem;
  color: var(--color-text-light);
  margin-bottom: 1rem;
}

.dudas-links {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

.whatsapp-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  padding: .75rem 1.2rem;
  border-radius: 50px;
  border: 1.5px solid var(--color-text);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 1.1rem;
  text-decoration: none;
  transition: background var(--transition), color var(--transition);
  -webkit-tap-highlight-color: transparent;
}

.whatsapp-btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.whatsapp-btn:active {
  background: var(--color-text);
  color: #fff;
}

/* ── FAQ ─────────────────────────────────────────────────────────────────── */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  padding: 0 1rem 2.5rem;
  max-width: 480px;
  margin: 0 auto;
}

.faq-item {
  background: rgba(255,255,255,0.55);
  border: 1.5px solid rgba(71,83,36,0.15);
  border-radius: 16px;
  overflow: hidden;
  animation: fadeUp .5s both;
  transition: box-shadow var(--transition);
}

.faq-item:has(.faq-trigger[aria-expanded="true"]) {
  box-shadow: 0 4px 18px rgba(71,83,36,0.1);
  border-color: rgba(71,83,36,0.28);
}

.faq-trigger {
  display: flex;
  align-items: center;
  gap: .75rem;
  width: 100%;
  text-align: left;
  padding: 1rem 1rem;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  color: var(--color-text);
  -webkit-tap-highlight-color: transparent;
}

.faq-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: rgba(71,83,36,0.08);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text);
}

.faq-icon svg {
  width: 20px;
  height: 20px;
}

.faq-question {
  flex: 1;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.3;
}

.faq-chevron {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  color: var(--color-text-light);
  transition: transform .25s ease;
}

.faq-trigger[aria-expanded="true"] .faq-chevron {
  transform: rotate(180deg);
}

.faq-body {
  padding: 0 1rem 1rem 3.55rem;
}

.faq-body[hidden] { display: none; }

.faq-answer {
  font-size: 1rem;
  color: var(--color-text-light);
  line-height: 1.55;
  margin: 0;
}

/* ── Bloque agregar a calendario ─────────────────────────────────────────── */
.calendar-block {
  margin-top: 2rem;
  margin-bottom: .5rem;
  text-align: center;
  padding: 1.4rem 1rem;
  background: rgba(176,141,106,0.07);
  border: 1px solid rgba(176,141,106,0.2);
  border-radius: 12px;
}

.calendar-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: .2rem;
}

.calendar-date {
  font-size: .95rem;
  color: var(--color-text-light);
  margin-bottom: 1rem;
}

.calendar-links {
  display: flex;
  flex-direction: column;
  gap: .6rem;
}

.cal-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .65rem 1rem;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 1rem;
  text-decoration: none;
  transition: opacity var(--transition);
  -webkit-tap-highlight-color: transparent;
}

.cal-btn:active { opacity: .75; }

.cal-google {
  background: #4285f4;
  color: #fff;
}

.cal-ics {
  border: 1.5px solid var(--color-text);
  color: var(--color-text);
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
