/* =========================================================
   Acta Online MASC — Mediación Online
   Hoja de estilos principal
   Paleta: verde institucional (#3B876E) + acento terracota + fondo claro
   Sin dark theme (decisión explícita de diseño, ver diseno.md)
   ========================================================= */

:root {
  /* Color */
  --primary: #3b876e;        /* verde institucional, color principal de marca */
  --primary-dark: #275c4a;   /* texto sobre fondo claro, hover oscuro, garantiza contraste AA */
  --secondary: #eef4f1;      /* verde-gris suave / fondo alterno */
  --secondary-border: #dce8e2;
  --accent: #b05424;         /* terracota, para CTA y elementos a destacar */
  --accent-dark: #8c431c;
  --bg: #ffffff;
  --text: #1b2430;
  --text-muted: #55625b;
  --border: #e1e7e3;
  --error: #b3261e;
  --success: #275c4a;
  --radius: 12px;
  --max-width: 1140px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg {
  max-width: 100%;
  display: block;
}

a {
  color: var(--accent);
}

h1, h2, h3, h4 {
  color: var(--primary-dark);
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Padding inferior para no tapar contenido con la barra flotante.
   Coincide con el breakpoint de .mobile-cta-bar (hasta 859px, el mismo
   rango en el que el header muestra la hamburguesa en vez del nav-cta). */
@media (max-width: 859px) {
  body {
    padding-bottom: 76px;
  }
}

/* Accesibilidad: saltar al contenido */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.visually-visible-on-focus:focus {
  position: fixed;
  top: 8px;
  left: 8px;
  width: auto;
  height: auto;
  margin: 0;
  padding: 12px 18px;
  clip: auto;
  background: var(--accent);
  color: #fff;
  border-radius: 8px;
  z-index: 200;
}

/* =========================================================
   Botones
   ========================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: 999px;
  padding: 13px 28px;
  min-height: 44px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--accent-dark);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px -10px rgba(176, 84, 36, 0.55);
}

.btn-secondary {
  background: transparent;
  color: var(--primary-dark);
  border: 1.5px solid var(--border);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-block {
  width: 100%;
}

/* =========================================================
   Cabecera / navegación
   ========================================================= */

header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  gap: 16px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
  line-height: 0;
}

.logo-img {
  height: 40px;
  width: auto;
  display: block;
  vertical-align: middle;
}

.nav-links {
  display: none;
  gap: 26px;
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (min-width: 860px) {
  .nav-links {
    display: flex;
  }
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.96rem;
  font-weight: 600;
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--primary);
}

.nav-cta {
  display: none;
}

@media (min-width: 860px) {
  .nav-cta {
    display: inline-flex;
  }
}

.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--primary-dark);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
}

.menu-toggle:hover,
.menu-toggle:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
}

@media (min-width: 860px) {
  .menu-toggle {
    display: none;
  }
}

.mobile-menu {
  border-top: 1px solid var(--border);
  padding: 16px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: var(--bg);
}

.mobile-menu[hidden] {
  display: none;
}

@media (min-width: 860px) {
  .mobile-menu {
    display: none !important;
  }
}

.mobile-menu-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.mobile-menu-links a {
  color: var(--primary-dark);
  text-decoration: none;
  font-size: 1.02rem;
  font-weight: 600;
  display: block;
  padding: 6px 0;
}

.mobile-menu-links a:hover,
.mobile-menu-links a:focus-visible {
  color: var(--accent);
}

/* =========================================================
   Barra flotante móvil (CTA fijo)
   ========================================================= */

.mobile-cta-bar {
  display: none;
}

/* Hasta 859px (mismo rango en el que el header muestra la hamburguesa,
   ver @media (min-width: 860px) en .nav-cta / .menu-toggle más arriba):
   así no hay ningún hueco de ancho sin un CTA "Reservar cita" persistente. */
@media (max-width: 859px) {
  .mobile-cta-bar {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.97);
    border-top: 1px solid var(--border);
    box-shadow: 0 -6px 18px -12px rgba(39, 92, 74, 0.35);
    padding-bottom: max(10px, env(safe-area-inset-bottom));
  }
}

/* =========================================================
   Secciones — base
   ========================================================= */

section {
  padding: 64px 0;
}

@media (min-width: 720px) {
  section {
    padding: 88px 0;
  }
}

.section-alt {
  background: var(--secondary);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}

.section-head {
  max-width: 640px;
  margin: 0 auto 44px;
  text-align: center;
}

.section-head.align-left {
  margin: 0 0 32px;
  text-align: left;
}

h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.3rem);
  margin: 0 0 14px;
}

.section-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin: 0;
}

/* =========================================================
   Hero
   ========================================================= */

.hero {
  padding: 72px 0;
  min-height: 520px;
  display: flex;
  align-items: center;
  background-image: linear-gradient(100deg, rgba(13, 26, 21, 0.94) 0%, rgba(13, 26, 21, 0.82) 32%, rgba(13, 26, 21, 0.45) 62%, rgba(13, 26, 21, 0.18) 100%), url("assets/hero-photo.jpg");
  background-size: cover;
  background-position: right center;
  background-repeat: no-repeat;
}

@media (max-width: 719px) {
  .hero {
    min-height: 460px;
    background-image: linear-gradient(180deg, rgba(13, 26, 21, 0.88) 0%, rgba(13, 26, 21, 0.82) 100%), url("assets/hero-photo.jpg");
    background-position: 70% center;
  }
}

@media (min-width: 720px) {
  .hero {
    padding: 96px 0;
  }
}

.hero-inner {
  display: block;
}

.hero-content {
  max-width: 620px;
}

.hero-eyebrow {
  display: inline-block;
  color: #fff;
  background: rgba(176, 84, 36, 0.9);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.hero h2 {
  color: #fff;
  font-size: clamp(2rem, 4.4vw, 2.9rem);
  line-height: 1.15;
}

.hero-sub {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.92);
  max-width: 540px;
  margin: 0 0 12px;
}

.hero-price {
  font-weight: 700;
  color: #fff;
}

.hero-actions {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.hero-microcopy {
  margin: 14px 0 0;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.78);
}

.trust-badges {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.trust-badges li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary-dark);
}

.trust-badges .ico {
  color: var(--accent);
  flex-shrink: 0;
}

/* =========================================================
   Cómo funciona
   ========================================================= */

.steps-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}

@media (min-width: 720px) {
  .steps-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.step-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 22px;
  text-align: left;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary-dark);
  color: #fff;
  font-weight: 800;
  font-size: 0.9rem;
  margin-bottom: 14px;
}

.step-icon {
  color: var(--accent);
  margin-bottom: 10px;
}

.step-card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.step-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.94rem;
}

.section-cta {
  text-align: center;
  margin-top: 40px;
}

/* =========================================================
   El paquete — tarjeta compacta (precios + características + CTA)
   ========================================================= */

.package-compact {
  max-width: 640px;
  margin: 0 auto;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 20px;
  padding: clamp(24px, 4vw, 40px);
  box-shadow: 0 24px 48px -32px rgba(39, 92, 74, 0.25);
}

.pricing-table-wrap {
  overflow-x: auto;
  margin-bottom: 22px;
}

.pricing-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.pricing-table th,
.pricing-table td {
  padding: 10px 8px;
  text-align: center;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.pricing-table thead th {
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.pricing-table tbody th {
  text-align: left;
  font-weight: 600;
  color: var(--text);
}

.pricing-table tbody td {
  font-weight: 800;
  color: var(--primary-dark);
  font-size: 1.05rem;
}

.pricing-table tbody tr:last-child th,
.pricing-table tbody tr:last-child td {
  border-bottom: none;
}

.price-note {
  margin: 14px 0 0;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-style: italic;
}

.package-chips {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
}

.package-chips li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--text);
}

.package-chips .ico {
  color: var(--accent);
  flex-shrink: 0;
  display: flex;
}

.package-audience {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin: 0 0 22px;
}

.package-flow {
  margin: 0 0 26px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}

.package-flow-title {
  font-weight: 700;
  color: var(--primary-dark);
  margin: 0 0 18px;
  text-align: center;
}

.flow-steps {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0;
}

.flow-step {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
}

.flow-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary-dark);
  color: #fff;
  font-weight: 800;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.flow-step-label {
  font-size: 0.92rem;
  color: var(--text);
  font-weight: 600;
}

.flow-connector {
  display: none;
}

@media (min-width: 560px) {
  .flow-steps {
    flex-direction: row;
    align-items: flex-start;
    justify-content: center;
  }

  .flow-step {
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
    width: 108px;
  }

  .flow-step-label {
    font-size: 0.82rem;
    line-height: 1.3;
  }

  .flow-connector {
    display: block;
    flex: 1 1 auto;
    min-width: 12px;
    max-width: 48px;
    height: 2px;
    background: var(--secondary-border);
    margin-top: 16px;
  }
}

.package-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* =========================================================
   Panel de cliente — pago online (Stripe + Bizum + transferencia, preparado)
   ========================================================= */

.payment-box {
  max-width: 640px;
  margin: 32px auto 0;
  background: #fff;
  border: 1.5px dashed var(--secondary-border);
  border-radius: 20px;
  padding: 32px clamp(20px, 5vw, 40px);
  text-align: center;
}

.payment-box h3 {
  margin: 0 0 6px;
  font-size: 1.15rem;
}

.payment-sub {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin: 0 0 22px;
}

.payment-selects {
  display: grid;
  gap: 16px;
  text-align: left;
  margin-bottom: 20px;
}

@media (min-width: 480px) {
  .payment-selects {
    grid-template-columns: 1fr 1fr;
  }
}

.payment-selects select {
  width: 100%;
  background: #fff;
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 1rem;
  font-family: inherit;
}

.payment-total {
  font-size: 1.1rem;
  margin: 0 0 22px;
}

.payment-total strong {
  color: var(--primary-dark);
  font-size: 1.5rem;
  font-weight: 800;
  margin-right: 6px;
}

.payment-total span {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.payment-methods {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.payment-threshold-note {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: -10px 0 18px;
}

.payment-alert {
  display: none;
  margin-top: 18px;
  background: var(--secondary);
  border: 1px solid var(--secondary-border);
  color: var(--primary-dark);
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
}

.payment-alert.show {
  display: block;
}

.bank-transfer-details {
  display: none;
  margin-top: 18px;
  background: var(--secondary);
  border: 1px solid var(--secondary-border);
  color: var(--text);
  padding: 16px 18px;
  border-radius: 10px;
  font-size: 0.9rem;
  text-align: left;
}

.bank-transfer-details.show {
  display: block;
}

.bank-transfer-details p {
  margin: 0 0 8px;
}

.bank-transfer-details p:last-child {
  margin-bottom: 0;
}

.payment-pending-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-style: italic;
  margin: 18px 0 0;
}

/* =========================================================
   Sobre Margarita
   ========================================================= */

.about-grid {
  display: grid;
  gap: 40px;
  align-items: start;
}

@media (min-width: 860px) {
  .about-grid {
    grid-template-columns: 0.8fr 1.2fr;
    align-items: center;
  }
}

.about-photo {
  aspect-ratio: 4 / 5;
  border-radius: 18px;
  overflow: hidden;
  background: var(--secondary);
  max-width: 320px;
  margin: 0 auto;
  box-shadow: 0 24px 48px -32px rgba(39, 92, 74, 0.35);
}

.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

.about-bio p {
  color: var(--text-muted);
  font-size: 1.02rem;
}

.about-badges {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 22px;
}

.about-badge {
  display: inline-flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 18px;
  background: var(--secondary);
  border: 1px solid var(--secondary-border);
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary-dark);
}

.about-badge svg {
  flex-shrink: 0;
  margin-top: 2px;
}

.about-cta {
  margin-top: 28px;
}

.about-cta p {
  margin: 0 0 12px;
  color: var(--text-muted);
}

/* =========================================================
   Contacto / reserva de cita
   ========================================================= */

.contact-form-card {
  background: var(--secondary);
  border: 1px solid var(--secondary-border);
  border-radius: var(--radius);
  padding: 26px clamp(18px, 4vw, 30px);
}

.contact-form-card--wide {
  max-width: 760px;
  margin: 0 auto;
}

.form-fieldset {
  border: none;
  padding: 0;
  margin: 0 0 28px;
}

.form-fieldset legend {
  padding: 0 0 16px;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--primary-dark);
}

.field-grid {
  display: grid;
  gap: 18px;
}

.field-grid .field {
  margin-bottom: 0;
}

@media (min-width: 640px) {
  .field-grid {
    grid-template-columns: 1fr 1fr;
  }

  .field-grid .field--full {
    grid-column: 1 / -1;
  }
}

.field-label-static {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--primary-dark);
}

.radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.radio-option {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 18px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
}

.radio-option input {
  accent-color: var(--accent);
  width: 18px;
  height: 18px;
}

.radio-option:has(input:checked) {
  border-color: var(--accent);
  color: var(--primary-dark);
  background: var(--secondary);
}

.field {
  margin-bottom: 18px;
}

.field label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 7px;
  color: var(--primary-dark);
}

.required-mark {
  color: var(--accent);
}

.field input,
.field textarea {
  width: 100%;
  background: #fff;
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field textarea {
  min-height: 110px;
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #9099a6;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(176, 84, 36, 0.15);
}

.field.has-error input,
.field.has-error textarea {
  border-color: var(--error);
  box-shadow: 0 0 0 3px rgba(179, 38, 30, 0.12);
}

.error-msg {
  display: none;
  color: var(--error);
  font-size: 0.82rem;
  margin-top: 6px;
  font-weight: 600;
}

.field.has-error .error-msg {
  display: block;
}

.field-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 20px;
}

.field-checkbox input {
  width: 20px;
  height: 20px;
  min-width: 20px;
  min-height: 20px;
  margin-top: 2px;
  accent-color: var(--accent);
}

.field-checkbox label {
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 500;
}

.field-checkbox label a {
  color: var(--primary);
  font-weight: 600;
}

/* El checkbox nativo no admite el mismo tratamiento de border-color que
   los inputs de texto (accent-color ya controla su relleno), así que el
   estado de error se marca con un anillo (outline + halo) alrededor del
   propio checkbox, coherente con el estilo de foco/error del resto del
   formulario. */
.field-checkbox.has-error input {
  outline: 2px solid var(--error);
  outline-offset: 2px;
  box-shadow: 0 0 0 3px rgba(179, 38, 30, 0.12);
  border-radius: 4px;
}

.field-checkbox.has-error .error-msg {
  display: block;
}

.error-msg--tight {
  margin-top: -12px;
}

.form-alert {
  display: none;
  background: rgba(179, 38, 30, 0.08);
  border: 1px solid rgba(179, 38, 30, 0.3);
  color: var(--error);
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 0.88rem;
  margin-bottom: 18px;
}

.form-alert.show {
  display: block;
}

.form-alert--success {
  background: rgba(39, 92, 74, 0.08);
  border-color: rgba(39, 92, 74, 0.3);
  color: var(--primary-dark);
}

.confidentiality-note {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 16px 0 0;
  text-align: center;
}

/* Confirmación del formulario */
.confirmation {
  display: none;
  text-align: center;
  padding: 12px 4px;
}

.confirmation.show {
  display: block;
}

.confirmation-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: rgba(39, 92, 74, 0.12);
  color: var(--success);
  display: flex;
  align-items: center;
  justify-content: center;
}

.confirmation h3 {
  margin: 0 0 10px;
  font-size: 1.2rem;
}

.confirmation p {
  color: var(--text-muted);
  margin: 0 0 20px;
  font-size: 0.95rem;
}

/* =========================================================
   Footer
   ========================================================= */

footer {
  background: var(--primary-dark);
  color: #cfd6e4;
  padding: 48px 0 28px;
}

.footer-grid {
  display: grid;
  gap: 32px;
  margin-bottom: 28px;
}

@media (min-width: 720px) {
  .footer-grid {
    grid-template-columns: 1.2fr 1fr 1fr;
  }
}

.footer-col h4 {
  color: #fff;
  font-size: 0.95rem;
  margin: 0 0 14px;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  color: #cfd6e4;
  text-decoration: none;
  font-size: 0.9rem;
}

.footer-col a:hover,
.footer-col a:focus-visible {
  color: #fff;
  text-decoration: underline;
}

.footer-col p {
  margin: 0 0 8px;
  font-size: 0.9rem;
  color: #cfd6e4;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.82rem;
  color: #9aa6bd;
  text-align: center;
}

@media (min-width: 720px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

/* =========================================================
   Páginas legales (aviso legal, privacidad, cookies)
   ========================================================= */

.legal-header {
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}

.legal-header .logo-img {
  height: 36px;
}

.legal-main {
  padding: 48px 0 72px;
}

.legal-content {
  max-width: 760px;
  margin: 0 auto;
}

.legal-content .back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  margin-bottom: 24px;
}

.legal-content .back-link:hover {
  text-decoration: underline;
}

.legal-content h1 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  margin: 0 0 8px;
}

.legal-content .legal-updated {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin: 0 0 36px;
}

.legal-content h2 {
  font-size: 1.2rem;
  margin: 40px 0 12px;
}

.legal-content h2:first-of-type {
  margin-top: 0;
}

.legal-content p,
.legal-content li {
  color: var(--text);
  font-size: 0.98rem;
  line-height: 1.7;
}

.legal-content p {
  margin: 0 0 14px;
}

.legal-content ul {
  margin: 0 0 14px;
  padding-left: 22px;
}

.legal-content li {
  margin-bottom: 6px;
}

.legal-content strong {
  color: var(--primary-dark);
}

.legal-pending {
  background: var(--secondary);
  border: 1px dashed var(--secondary-border);
  border-radius: 8px;
  padding: 2px 8px;
  font-size: 0.92em;
  color: var(--accent-dark);
  font-style: italic;
}

/* =========================================================
   Cuenta de cliente (registro / login / panel)
   ========================================================= */

.nav-account {
  color: var(--primary-dark) !important;
  font-weight: 700 !important;
}

.auth-section {
  padding: 56px 0 80px;
}

.auth-card {
  max-width: 440px;
  margin: 0 auto;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 20px;
  padding: 36px clamp(22px, 5vw, 40px);
  box-shadow: 0 24px 48px -32px rgba(39, 92, 74, 0.2);
}

.auth-card h1 {
  font-size: 1.5rem;
  margin: 0 0 6px;
  text-align: center;
}

.auth-card .auth-sub {
  color: var(--text-muted);
  font-size: 0.92rem;
  text-align: center;
  margin: 0 0 26px;
}

.auth-switch {
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 18px 0 0;
}

.auth-switch a {
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
}

.auth-switch a:hover {
  text-decoration: underline;
}

.auth-loading {
  text-align: center;
  padding: 80px 0;
  color: var(--text-muted);
}

/* Panel de cliente */

.dashboard-section {
  padding: 40px 0 80px;
}

.dashboard-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 32px;
}

.dashboard-header h1 {
  font-size: 1.6rem;
  margin: 0 0 4px;
}

.dashboard-header p {
  color: var(--text-muted);
  margin: 0;
  font-size: 0.95rem;
}

.dashboard-grid {
  display: grid;
  gap: 24px;
  margin-bottom: 32px;
}

@media (min-width: 720px) {
  .dashboard-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.stat-card {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
  text-align: center;
}

.stat-card .stat-value {
  display: block;
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 6px;
}

.stat-card.stat-card--accent .stat-value {
  color: var(--accent);
}

.stat-card .stat-label {
  color: var(--text-muted);
  font-size: 0.88rem;
}

.dashboard-panel {
  background: var(--secondary);
  border: 1px solid var(--secondary-border);
  border-radius: var(--radius);
  padding: 24px clamp(18px, 4vw, 30px);
  margin-bottom: 24px;
}

.dashboard-panel h2 {
  font-size: 1.1rem;
  margin: 0 0 16px;
}

.profile-grid {
  display: grid;
  gap: 12px 24px;
}

@media (min-width: 560px) {
  .profile-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.profile-item dt {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin: 0 0 2px;
}

.profile-item dd {
  margin: 0;
  font-size: 0.98rem;
  color: var(--primary-dark);
  font-weight: 600;
}

.solicitudes-list {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.solicitud-item {
  background: #fff;
  border: 1px solid var(--secondary-border);
  border-radius: 10px;
  padding: 14px 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px 16px;
}

.solicitud-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.solicitud-date {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.solicitud-conflicto {
  font-size: 0.92rem;
  color: var(--text);
}

.solicitud-meet {
  font-size: 0.85rem;
  color: var(--primary-dark);
  font-weight: 600;
}

.solicitud-estado {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  white-space: nowrap;
}

.solicitud-estado--pendiente {
  background: var(--secondary);
  color: var(--primary-dark);
  border: 1px solid var(--secondary-border);
}

.solicitud-estado--programada {
  background: #fef3e2;
  color: #92400e;
}

.solicitud-estado--realizada {
  background: #dcfce7;
  color: #166534;
}

.solicitudes-empty {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-style: italic;
  margin: 0 0 4px;
}

.solicitud-locked {
  display: none;
  color: var(--text-muted);
  font-size: 0.92rem;
  background: #fff;
  border: 1px solid var(--secondary-border);
  border-radius: 10px;
  padding: 14px 16px;
}

.solicitud-locked.show {
  display: block;
}

.dashboard-logout {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
}
