/* ============================================================
   PÁGINAS INFORMATIVAS — Contacto, Aviso Legal, Privacidad, Cookies
   Mismo sistema de diseño que Home y Calendarios.
============================================================ */

/* ── Breadcrumb ─────────────────────────────────────────── */
.info-breadcrumb {
  padding: 20px 0 0;
  font-size: 13px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  max-width: 860px;
  margin: 0 auto;
}
.info-breadcrumb a { color: var(--muted); transition: color .14s; }
.info-breadcrumb a:hover { color: var(--accent); }
.info-breadcrumb .sep { color: var(--muted2); }
.info-breadcrumb .cur { color: var(--text); font-weight: 500; }

/* ── Hero de página ──────────────────────────────────────── */
.info-hero {
  max-width: 860px;
  margin: 0 auto;
  padding: 28px 0 32px;
}
.info-eyebrow {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--accent);
  margin-bottom: 10px;
}
.info-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 500;
  letter-spacing: -.03em;
  line-height: 1.05;
  color: var(--text);
  margin: 0 0 12px;
}
.info-hero p {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.65;
  max-width: 560px;
  margin: 0;
}
.info-meta {
  font-size: 12px;
  color: var(--muted2);
  margin-top: 8px;
}

/* ── Tarjeta de contenido ────────────────────────────────── */
.info-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 36px 40px;
  max-width: 860px;
  margin: 0 auto 48px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--muted);
}

.info-card h2 {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 600;
  color: var(--text);
  margin: 32px 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
  letter-spacing: -.01em;
}
.info-card h2:first-of-type { margin-top: 0; }

.info-card h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin: 22px 0 8px;
}

.info-card p { margin: 0 0 14px; }
.info-card p:last-child { margin-bottom: 0; }

.info-card ul, .info-card ol {
  padding-left: 22px;
  margin: 0 0 14px;
}
.info-card li { margin-bottom: 6px; }

.info-card strong { color: var(--text); font-weight: 600; }
.info-card a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.info-card a:hover { color: var(--accent-hover); }

/* Caja informativa (highlight) */
.info-box {
  background: rgba(224,79,95,.07);
  border-left: 3px solid var(--accent);
  padding: 14px 18px;
  border-radius: 0 8px 8px 0;
  margin: 20px 0;
  font-size: 14px;
  color: var(--text);
}

/* Tabla */
.info-card table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 13px;
}
.info-card th,
.info-card td {
  padding: 10px 14px;
  border: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}
.info-card th {
  background: var(--surface2);
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}
.info-card tr:hover td { background: #f8fafc; }

/* ── Layout Contacto ─────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 24px;
  max-width: 860px;
  margin: 0 auto 48px;
  align-items: start;
}

/* Formulario */
.contact-form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px 36px;
}

.contact-form label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 10px 13px;
  border: 1px solid var(--border);
  border-radius: 9px;
  font-size: 14px;
  font-family: inherit;
  margin-bottom: 18px;
  box-sizing: border-box;
  background: var(--bg);
  color: var(--text);
  transition: border-color .15s, box-shadow .15s;
  -webkit-appearance: none;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 0 3px rgba(224,79,95,.1);
}

.contact-form textarea { resize: vertical; min-height: 130px; }

.contact-form .form-note {
  font-size: 12px;
  color: var(--muted);
  margin: -8px 0 18px;
  line-height: 1.5;
}
.contact-form .form-note a { color: var(--accent); }

.btn-submit {
  width: 100%;
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 13px 24px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: background .15s, transform .12s;
}
.btn-submit:hover { background: var(--accent-hover); transform: translateY(-1px); }

/* Info lateral de contacto */
.contact-info-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  position: sticky;
  top: 80px;
}

.contact-info-card h3 {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 20px;
  letter-spacing: -.01em;
}

.contact-info-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 18px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
}
.contact-info-item:last-child { margin-bottom: 0; }

.contact-info-item .icon {
  font-size: 18px;
  flex-shrink: 0;
  line-height: 1.3;
}

.contact-info-item strong {
  display: block;
  color: var(--text);
  font-weight: 600;
  margin-bottom: 2px;
}

.contact-info-item a { color: var(--accent); }

/* Mensaje de éxito al enviar */
.form-success {
  display: none;
  margin-top: 14px;
  background: #dcfce7;
  color: #166534;
  border: 1px solid #86efac;
  padding: 13px 16px;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 500;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 820px) {
  .contact-grid { grid-template-columns: 1fr; }
  .contact-info-card { position: static; }
  .info-card { padding: 24px 20px; }
  .contact-form-card { padding: 24px 20px; }
}

@media (max-width: 480px) {
  .info-hero h1 { font-size: 28px; }
  .info-card { border-radius: 12px; }
}

/* ── Compat: clases legacy (no usadas en el nuevo diseño) ── */
.page-content { max-width: 860px; margin: 32px auto; }
.legal-table  { display: none; } /* usar .info-card table */
