/* ==========================================================
   Somos lo que aprendemos — estilos de marca compartidos
   Paleta "Calma consciente" · Sansita + Karla + Kalam
   Usar en todas las páginas:
   <link rel="stylesheet" href="/marca/estilos.css">
   ========================================================== */

:root {
  --niebla:   #f8f6fb;
  --lavanda:  #ece6f7;
  --violeta:  #9b87c9;
  --durazno:  #f2b8a0;
  --petroleo: #2f6f73;
  --noche:    #2b3445;
  --blanco:   #ffffff;
  --suave:    #6b7184;
  --linea:    #e6e2ef;

  /* tonos de fondo por sección */
  --petroleo-claro: #dbeceb;
  --durazno-claro:  #fbe3d8;
  --violeta-claro:  #ece6f7;
  --noche-claro:    #e3e6ec;

  --f-titulo: "Sansita", Georgia, serif;
  --f-texto:  "Karla", system-ui, sans-serif;
  --f-mano:   "Kalam", cursive;

  --radio: 20px;
  --ancho: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--niebla);
  color: var(--noche);
  font-family: var(--f-texto);
  font-size: 1.05rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--f-titulo); font-weight: 700; line-height: 1.1; margin: 0; }
p { margin: 0; }
a { color: var(--petroleo); }
img { max-width: 100%; display: block; }

.contenedor { max-width: var(--ancho); margin: 0 auto; padding: 0 20px; }
.mano { font-family: var(--f-mano); color: var(--petroleo); }

/* ---------- Encabezado ---------- */
.encabezado {
  position: sticky; top: 0; z-index: 50;
  background: rgba(248, 246, 251, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--linea);
}
.encabezado .contenedor {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding-top: 12px; padding-bottom: 12px; flex-wrap: wrap;
}
.encabezado .marca img { height: 44px; width: auto; }
.menu { display: flex; gap: 6px; flex-wrap: wrap; }
.menu a {
  text-decoration: none; color: var(--noche); font-weight: 600; font-size: .95rem;
  padding: 8px 14px; border-radius: 99px; transition: background .2s;
}
.menu a:hover, .menu a:focus-visible { background: var(--lavanda); }

/* ---------- Botones ---------- */
.boton {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--f-texto); font-weight: 700; font-size: 1rem;
  background: var(--petroleo); color: var(--blanco);
  padding: 13px 24px; border-radius: 99px; text-decoration: none;
  border: 2px solid var(--petroleo);
  transition: transform .2s, box-shadow .2s;
}
.boton:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(47, 111, 115, .25); }
.boton.secundario { background: transparent; color: var(--noche); border-color: var(--noche); }
.boton.secundario:hover { box-shadow: 0 6px 18px rgba(43, 52, 69, .12); }

/* ---------- Etiquetas ---------- */
.etiqueta {
  display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .06em;
  padding: 4px 10px; border-radius: 99px; background: var(--lavanda); color: var(--noche);
}
.etiqueta.pronto { background: var(--durazno-claro); }

/* ---------- Pie ---------- */
.pie { margin-top: 80px; background: var(--noche); color: #d9dce4; }
.pie .contenedor {
  display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between;
  padding-top: 36px; padding-bottom: 36px;
}
.pie img { height: 40px; width: auto; }
.pie nav { display: flex; gap: 18px; flex-wrap: wrap; }
.pie nav a { color: #fff; text-decoration: none; font-weight: 600; }
.pie nav a:hover { text-decoration: underline; }
.pie small { display: block; width: 100%; color: #9aa1b2; font-size: .85rem; }

@media (max-width: 640px) {
  .encabezado .marca img { height: 36px; }
  .encabezado .contenedor { gap: 8px; }
  .menu { width: 100%; flex-wrap: nowrap; overflow-x: auto; gap: 2px; margin: 0 -8px; scrollbar-width: none; }
  .menu::-webkit-scrollbar { display: none; }
  .menu a { padding: 6px 10px; font-size: .9rem; white-space: nowrap; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
