/*
Theme Name:  Masajes Costa del Sol
Description: Tema base custom para masajes.enlairar.agency – lead gen wellness. Estructura espejo de tudentistaonline-theme. Diseño pendiente (marca/colores sin definir).
Version:     0.1.0
Author:      enlairar.agency
Text Domain: mcs
*/

/* ═══════════════════════════════════════════
   VARIABLES — placeholders neutros (marca pendiente)
   ═══════════════════════════════════════════ */
:root {
  --primary:       #0F766E; /* provisional hasta definir marca */
  --primary-dark:  #115E59;
  --accent:        #14B8A6;

  --bg:            #F8FAFC;
  --text:          #1A2332;
  --text-muted:    #64748B;
  --white:         #FFFFFF;

  --gray-100:      #F1F5F9;
  --gray-200:      #E2E8F0;
  --gray-300:      #CBD5E1;

  --success:       #059669;
  --error:         #DC2626;

  --radius-sm:     8px;
  --radius:        12px;
  --radius-lg:     18px;

  --shadow-sm:     0 2px 8px rgba(15,118,110,.06);
  --shadow:        0 4px 20px rgba(15,118,110,.09);

  --font:          system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --container:     1160px;
  --transition:    0.2s ease;
}

/* ═══════════════════════════════════════════
   RESET & BASE
   ═══════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a   { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }
ul { list-style: none; }

:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 300;
  background: var(--white);
  color: var(--text);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
}
.skip-link:focus { left: 12px; top: 12px; }

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

/* ═══════════════════════════════════════════
   HEADER / FOOTER (estructura mínima, sin diseño)
   ═══════════════════════════════════════════ */
.header { background: var(--white); border-bottom: 1px solid var(--gray-200); }
.header__inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; }
.logo__name { font-weight: 700; font-size: 1.1rem; }

.footer { background: var(--text); color: var(--white); margin-top: 60px; }
.footer__inner { padding: 36px 20px; display: grid; gap: 16px; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 18px; font-size: .9rem; opacity: .85; }
.footer__copy { font-size: .8rem; opacity: .6; max-width: 720px; }

/* ═══════════════════════════════════════════
   BOTONES
   ═══════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
  padding: 12px 22px;
}
.btn--primary { background: var(--primary); color: var(--white); }
.btn--primary:hover { background: var(--primary-dark); }
.btn--sm { padding: 9px 16px; font-size: .9rem; }
.btn--full { width: 100%; }

/* ═══════════════════════════════════════════
   HERO base (placeholder, sin diseño definitivo)
   ═══════════════════════════════════════════ */
.hero { padding: 56px 0; }
.hero__inner { display: grid; gap: 36px; align-items: start; }
@media (min-width: 900px) { .hero__inner { grid-template-columns: 1.2fr 1fr; } }
.hero__title { font-size: clamp(1.7rem, 4vw, 2.5rem); line-height: 1.2; margin-bottom: 14px; }
.hero__subtitle { color: var(--text-muted); max-width: 560px; }

/* ═══════════════════════════════════════════
   MINI FORM (funcional; estética pendiente de marca)
   ═══════════════════════════════════════════ */
.hero__form-wrap { width: 100%; }
.hero-mini-form {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 26px 24px;
  display: grid;
  gap: 16px;
}
.hero-mini-form__title { font-weight: 700; font-size: 1.15rem; }
.hero-mini-form__subtitle { font-size: .85rem; color: var(--text-muted); }

.hmf-group { display: grid; gap: 6px; }
.hmf-label { font-size: .85rem; font-weight: 600; }
.hmf-input {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-sm);
  background: var(--white);
  transition: border-color var(--transition);
}
.hmf-input:focus { border-color: var(--primary); outline: none; }
.hmf-input.is-invalid, .hmf-phone-wrap.is-invalid { border-color: var(--error); }

.hmf-phone-wrap {
  display: flex;
  align-items: center;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.hmf-phone-prefix { padding: 0 0 0 13px; color: var(--text-muted); }
.hmf-input--phone { border: none; flex: 1; }
.hmf-input--phone:focus { outline: none; }

.hmf-hint { font-size: .75rem; color: var(--text-muted); }
.hmf-error { font-size: .78rem; color: var(--error); min-height: 1em; }
.hmf-error-msg { background: #FEF2F2; color: var(--error); border-radius: var(--radius-sm); padding: 10px 14px; font-size: .85rem; }

/* Honeypot: fuera de pantalla para humanos */
.hmf-hp { position: absolute; left: -9999px; top: -9999px; height: 0; overflow: hidden; }

.hmf-checkbox-label { display: flex; align-items: flex-start; gap: 9px; font-size: .82rem; cursor: pointer; }
.hmf-checkbox-label input { margin-top: 3px; }
.hmf-checkbox-text a { color: var(--primary); text-decoration: underline; }

.btn-loading { display: inline-flex; align-items: center; gap: 8px; }
.spinner {
  width: 15px; height: 15px;
  border: 2px solid rgba(255,255,255,.4);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: mcs-spin .7s linear infinite;
}
@keyframes mcs-spin { to { transform: rotate(360deg); } }

.hero-mini-form--success { text-align: center; padding: 40px 24px; }
.mf-success-icon { display: flex; justify-content: center; margin-bottom: 12px; }
.mf-success-title { font-weight: 700; font-size: 1.15rem; margin-bottom: 6px; }
.mf-success-text { color: var(--text-muted); font-size: .9rem; }

/* ═══════════════════════════════════════════
   PÁGINAS LEGALES / CONTENIDO GENÉRICO
   ═══════════════════════════════════════════ */
.legal-hero { padding: 44px 0 8px; }
.legal-hero__back { display: inline-flex; align-items: center; gap: 6px; color: var(--text-muted); font-size: .9rem; margin-bottom: 14px; }
.legal-hero__meta { color: var(--text-muted); font-size: .85rem; }
.legal-body { padding: 24px 0 56px; }
.legal-content { max-width: 760px; }
.legal-content h1, .legal-content h2, .legal-content h3 { margin: 1.4em 0 .5em; line-height: 1.3; }
.legal-content p, .legal-content ul, .legal-content ol { margin-bottom: 1em; }
.legal-content ul { list-style: disc; padding-left: 1.3em; }
.legal-content ol { list-style: decimal; padding-left: 1.3em; }
.legal-content a { color: var(--primary); text-decoration: underline; }
