/* ============================================
   WESTFORD NATURALS — Hoja de estilos maestra
   westford.css  |  v1.1
   Usar en todas las páginas del sitio
   ============================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Jost:wght@300;400;500;600&display=swap');

/* --- Variables de marca --- */
:root {
  --verde:        #145D38;
  --verde-claro:  #D4E6DA;
  --verde-gris:   #6B7B6E;
  --acento:       #C4832A;
  --acento-claro: #FFF0C8;
  --fondo:        #F5F3EF;
  --blanco:       #FFFFFF;
  --texto:        #1E1E1E;
  --texto-suave:  #555555;
  --borde:        #D8D5CF;
  --radio:        8px;
  --radio-lg:     14px;
  --sombra:       0 2px 12px rgba(0,0,0,0.07);
}

/* --- Reset y base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 18px; scroll-behavior: smooth; }

body {
  font-family: 'Jost', Arial, sans-serif;
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--texto);
  background-color: var(--fondo);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--verde); text-decoration: none; }
a:hover { text-decoration: underline; }

/* --- Tipografía --- */
h1 { font-size: 2rem;   font-weight: 600; line-height: 1.2; color: var(--verde); }
h2 { font-size: 1.5rem; font-weight: 500; line-height: 1.3; color: var(--verde); }
h3 { font-size: 1.2rem; font-weight: 500; line-height: 1.4; color: var(--verde); }
h4 { font-size: 1rem;   font-weight: 500; color: var(--texto); }
p  { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

.subtitulo   { font-size: 1.05rem; font-weight: 300; color: var(--verde-gris); }
.texto-chico { font-size: 0.95rem; color: var(--texto-suave); }
.centrado    { text-align: center; }

/* --- Layout contenedor --- */
.contenedor {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  padding: 0 18px;
}

/* --- Header --- */
.header {
  background-color: var(--blanco);
  border-bottom: 1px solid var(--borde);
  padding: 14px 16px;
  text-align: center;
}
.header img { margin: 0 auto; }

/* --- Navegación --- */
.nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px 20px;
  padding: 11px 16px;
  background: var(--verde);
  position: relative;
}
.nav a {
  color: #FFFFFF;
  font-size: 0.88rem;
  font-weight: 400;
  letter-spacing: 0.02em;
}
.nav a:hover { text-decoration: underline; }
.nav-hamburger {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #FFFFFF;
  font-size: 1.2rem;
  line-height: 1;
  text-decoration: none;
  padding: 4px 6px;
  letter-spacing: -1px;
}
.nav-hamburger:hover { text-decoration: none; opacity: 0.75; }

/* --- Hero --- */
.hero {
  background-color: var(--verde);
  color: #FFFFFF;
  text-align: center;
  padding: 40px 20px 36px;
}
.hero h1 { color: #FFFFFF; font-size: 1.85rem; margin-bottom: 12px; }
.hero .subtitulo { color: rgba(255,255,255,0.85); }

/* --- Secciones --- */
.seccion {
  padding: 36px 16px;
  background: var(--fondo);
}
.seccion-blanca {
  padding: 36px 16px;
  background: var(--blanco);
}
.seccion-verde {
  padding: 36px 16px;
  background: var(--verde-claro);
}
.seccion-acento {
  padding: 36px 16px;
  background: var(--acento-claro);
}

/* --- Tarjetas --- */
.tarjeta {
  background: var(--blanco);
  border: 1px solid var(--borde);
  border-radius: var(--radio-lg);
  padding: 22px;
  margin-bottom: 14px;
}
.tarjeta-menta {
  background: var(--verde-claro);
  border: 1px solid #B8D4C0;
  border-radius: var(--radio-lg);
  padding: 22px;
  margin-bottom: 14px;
}
.tarjeta-acento {
  background: var(--acento-claro);
  border: 1px solid #E8C88A;
  border-radius: var(--radio-lg);
  padding: 22px;
  margin-bottom: 14px;
}
.tarjeta-verde {
  background: var(--verde);
  border-radius: var(--radio-lg);
  padding: 22px;
  color: #FFFFFF;
  margin-bottom: 14px;
}
.tarjeta-verde h2,
.tarjeta-verde h3 { color: #FFFFFF; }

/* --- Botones --- */
.btn {
  display: block;
  width: 100%;
  padding: 15px 20px;
  border-radius: var(--radio);
  font-family: 'Jost', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  border: none;
  margin-bottom: 10px;
  transition: opacity 0.15s;
  line-height: 1.3;
}
.btn:hover { opacity: 0.88; text-decoration: none; }
.btn:last-child { margin-bottom: 0; }

.btn-principal {
  background-color: var(--verde);
  color: #FFFFFF;
}
.btn-secundario {
  background-color: var(--blanco);
  color: var(--verde);
  border: 2px solid var(--verde);
}
.btn-acento {
  background-color: var(--acento);
  color: #FFFFFF;
}
.btn-sobre-verde {
  background-color: transparent;
  color: #FFFFFF;
  border: 2px solid #FFFFFF;
}
.btn-sobre-verde:hover {
  background-color: rgba(255,255,255,0.12);
  opacity: 1;
}
.btn-ml {
  background-color: #FFE600;
  color: #1E1E1E;
  border: none;
}
.btn-sm {
  font-size: 0.92rem;
  padding: 11px 16px;
}

/* --- Precio destacado --- */
.precio {
  font-size: 1.7rem;
  font-weight: 600;
  color: var(--verde);
  line-height: 1.2;
}
.precio-acento {
  font-size: 1.7rem;
  font-weight: 600;
  color: var(--acento);
  line-height: 1.2;
}

/* --- Highlight de texto --- */
.highlight {
  background: var(--acento-claro);
  color: #7A5200;
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 500;
}

/* --- Pasos del sistema --- */
.paso {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 22px;
}
.paso-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--verde);
  color: #FFFFFF;
  font-size: 1.05rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.paso-contenido h4 { margin-bottom: 5px; }

/* --- Badges de fórmula --- */
.badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 500;
  padding: 4px 11px;
  border-radius: 99px;
  margin-right: 4px;
  margin-bottom: 5px;
}
.badge-uc1  { background: #FFF0C8; color: #7A5200; }
.badge-gx12 { background: #D8F0DA; color: #1A5C1E; }
.badge-fh3  { background: #D6EEF5; color: #1A4A5C; }
.badge-dc1  { background: #EBF5B0; color: #3D5400; }
.badge-hw3  { background: #EFE6F5; color: #4A2870; }
.badge-hl4  { background: #FDEEDD; color: #7A3A00; }
.badge-acento { background: var(--acento-claro); color: #7A5200; }
.badge-verde  { background: var(--verde-claro);  color: #0D4D29; }

/* --- Lista de ingredientes activos --- */
.ingredientes {
  list-style: none;
  margin: 10px 0;
}
.ingredientes li {
  padding: 7px 0;
  border-bottom: 1px solid var(--borde);
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 10px;
}
.ingredientes li:last-child { border-bottom: none; }
.ingredientes li::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--verde);
  flex-shrink: 0;
}

/* --- Lista de claims (sin/con) --- */
.claims {
  list-style: none;
  margin: 10px 0;
}
.claims li {
  padding: 7px 0;
  border-bottom: 1px solid var(--borde);
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 10px;
}
.claims li:last-child { border-bottom: none; }
.claims li::before {
  content: '✓';
  color: var(--verde);
  font-weight: 600;
  font-size: 1rem;
  flex-shrink: 0;
  width: 18px;
}

/* --- Separadores --- */
.divisor {
  border: none;
  border-top: 1px solid var(--borde);
  margin: 26px 0;
}
.divisor-verde {
  border: none;
  border-top: 2px solid var(--verde);
  margin: 26px 0;
}
.divisor-acento {
  border: none;
  border-top: 2px solid var(--acento);
  margin: 26px 0;
}

/* --- Cita / testimonio --- */
.testimonio {
  background: var(--verde-claro);
  border-left: 4px solid var(--verde);
  border-radius: 0 var(--radio-lg) var(--radio-lg) 0;
  padding: 18px 20px;
  margin-bottom: 14px;
}
.testimonio p {
  font-size: 1rem;
  font-style: italic;
  color: var(--texto);
  margin-bottom: 8px;
}
.testimonio .autor {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--verde);
  font-style: normal;
}

/* --- Hair Test específico --- */
.test-header {
  background: var(--verde-claro);
  border-radius: var(--radio-lg);
  padding: 18px;
  text-align: center;
  margin-bottom: 22px;
}
.test-progreso {
  font-size: 0.82rem;
  color: var(--verde-gris);
  margin-bottom: 5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.test-pregunta {
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--verde);
  margin-bottom: 6px;
}
.test-respuesta {
  display: block;
  width: 100%;
  padding: 17px 20px;
  margin-bottom: 11px;
  background: var(--blanco);
  border: 2px solid var(--borde);
  border-radius: var(--radio-lg);
  text-align: left;
  cursor: pointer;
  text-decoration: none;
  color: var(--texto);
  font-family: 'Jost', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 400;
  transition: border-color 0.15s, background 0.15s;
}
.test-respuesta:hover {
  border-color: var(--verde);
  background: var(--verde-claro);
  text-decoration: none;
  color: var(--verde);
}
.test-respuesta-icono {
  font-size: 1.4rem;
  margin-right: 10px;
}
.test-historial {
  font-size: 0.85rem;
  color: var(--texto-suave);
  background: var(--fondo);
  border-radius: var(--radio);
  padding: 11px 15px;
  margin-bottom: 18px;
}
.test-historial span {
  display: inline-block;
  background: var(--verde-claro);
  color: var(--verde);
  border-radius: 99px;
  padding: 3px 10px;
  margin: 2px;
  font-size: 0.82rem;
}

/* --- Resultado del test --- */
.resultado-kit {
  background: var(--blanco);
  border: 2px solid var(--verde);
  border-radius: var(--radio-lg);
  padding: 22px;
  margin-bottom: 18px;
  text-align: center;
}
.resultado-kit h3 { font-size: 1.35rem; margin-bottom: 5px; }
.resultado-kit .subtitulo { margin-bottom: 14px; }
.resultado-botellas {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 16px 0;
  flex-wrap: wrap;
}
.resultado-botellas img { width: 72px; height: auto; }
.resultado-pasos {
  text-align: left;
  background: var(--fondo);
  border-radius: var(--radio);
  padding: 14px 16px;
  margin-bottom: 16px;
}
.resultado-pasos p {
  font-size: 0.92rem;
  margin-bottom: 6px;
  color: var(--texto-suave);
}
.resultado-pasos p strong { color: var(--verde); }
.resultado-alternativa {
  background: var(--verde-claro);
  border: 1px solid #B8D4C0;
  border-radius: var(--radio-lg);
  padding: 18px;
  margin-bottom: 12px;
  text-align: center;
}

/* --- Footer --- */
.footer {
  background: var(--verde);
  color: rgba(255,255,255,0.85);
  text-align: center;
  padding: 32px 20px;
  font-size: 0.92rem;
  margin-top: 36px;
}
.footer strong { color: #FFFFFF; }
.footer a { color: rgba(255,255,255,0.75); }
.footer a:hover { color: #FFFFFF; text-decoration: underline; }

/* --- Banda de acento (franja decorativa) --- */
.banda-acento {
  background: var(--acento);
  color: #FFFFFF;
  text-align: center;
  padding: 12px 20px;
  font-size: 0.95rem;
  font-weight: 500;
}

/* --- Utilidades --- */
.mb-8  { margin-bottom: 8px; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.negrita { font-weight: 600; }
.verde   { color: var(--verde); }
.acento  { color: var(--acento); }

/* --- Responsive (desktop) --- */
@media (min-width: 600px) {
  .contenedor { max-width: 560px; }
  h1 { font-size: 2.3rem; }
  h2 { font-size: 1.7rem; }
  h3 { font-size: 1.3rem; }
  .hero h1 { font-size: 2.1rem; }
}
