/* ==========================================================================
   COCINARTE — Base / Sistema de diseño
   Paleta y tipografías tomadas del manual de marca (manual.pdf, pp. 14–15)
   ========================================================================== */

:root {
  /* ---- Paleta oficial ---------------------------------------------------- */
  --azul-fluidez:        #B8D1D8;   /* PANTONE P 113-9 C */
  --amarillo-conciencia: #E8B160;   /* PANTONE 135 C     */
  --verde-elemental:     #52634D;   /* PANTONE 7743 C    */
  --naranja-ardiente:    #CC7E4A;   /* PANTONE 7570 C    */
  --beige-armonia:       #E2DFD3;   /* PANTONE P 13-1 C  */

  /* ---- Derivados de apoyo (mismas familias, para fondos y estados) ------- */
  --crema:        #F4F2EA;
  --crema-suave:  #EDEAE0;
  --verde-hondo:  #3D4A3A;
  --verde-claro:  #7B8A74;
  --tinta:        #2E362C;

  /* ---- Roles ------------------------------------------------------------- */
  --fondo:            var(--crema);
  --fondo-alt:        var(--beige-armonia);
  --texto:            var(--tinta);
  --texto-suave:      #5C6558;
  --acento:           var(--naranja-ardiente);
  --linea:            rgba(82, 99, 77, 0.28);
  --linea-tenue:      rgba(82, 99, 77, 0.14);

  /* ---- Tipografía -------------------------------------------------------- */
  --f-titulo: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --f-texto:  'Prata', Georgia, 'Times New Roman', serif;

  /* ---- Ritmo ------------------------------------------------------------- */
  --ancho:      1180px;
  --ancho-lect: 62ch;
  --r-sm: 8px;
  --r-md: 16px;
  --r-pill: 999px;

  /* ---- Movimiento -------------------------------------------------------- */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ==========================================================================
   Reset ligero
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  background: var(--fondo);
  color: var(--texto);
  font-family: var(--f-texto);
  font-size: 1.0625rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

a { color: inherit; }

button {
  font: inherit;
  color: inherit;
  border: 0;
  background: none;
  cursor: pointer;
}

/* ==========================================================================
   Tipografía — títulos en Open Sans, cuerpo en Prata
   ========================================================================== */

h1, h2, h3, h4, h5, h6,
.tipo-titulo {
  font-family: var(--f-titulo);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.005em;
  margin: 0 0 0.6em;
  text-wrap: balance;
}

/* Los títulos de sección van en versalitas espaciadas, como el manual */
.kicker {
  font-family: var(--f-titulo);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--verde-claro);
  margin: 0 0 0.9rem;
}

p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }

.lead {
  font-size: clamp(1.15rem, 1.9vw, 1.4rem);
  line-height: 1.7;
  color: var(--texto-suave);
}

/* Resaltado en amarillo, como el del manual de marca */
.marcado {
  background: linear-gradient(
    to bottom,
    transparent 12%,
    var(--amarillo-conciencia) 12%,
    var(--amarillo-conciencia) 92%,
    transparent 92%
  );
  padding: 0 0.15em;
}

/* ==========================================================================
   Utilidades de layout
   ========================================================================== */

.contenedor {
  width: 100%;
  max-width: var(--ancho);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 2.5rem);
}

.contenedor--estrecho { max-width: 760px; }

.seccion { padding-block: clamp(4rem, 9vw, 7.5rem); }
.seccion--compacta { padding-block: clamp(3rem, 6vw, 5rem); }

.medida { max-width: var(--ancho-lect); }
.centrado { text-align: center; }
.centrado .medida { margin-inline: auto; }

/* ==========================================================================
   Encabezado de sección — pastilla + línea (tomado del manual, p. 16)
   ========================================================================== */

.rotulo {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.rotulo__pastilla {
  flex: 0 0 auto;
  padding: 0.5rem 1.6rem;
  border: 1px solid var(--linea);
  border-radius: var(--r-pill);
  font-family: var(--f-texto);
  font-size: clamp(1.05rem, 2vw, 1.45rem);
  line-height: 1.3;
  color: var(--verde-elemental);
  white-space: nowrap;
}

.rotulo__linea {
  flex: 1 1 auto;
  height: 1px;
  min-width: 2rem;
  background: var(--linea);
}

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

.boton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.9rem 1.9rem;
  border-radius: var(--r-pill);
  font-family: var(--f-titulo);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.28s var(--ease),
              color 0.28s var(--ease),
              border-color 0.28s var(--ease),
              transform 0.28s var(--ease);
}

.boton:hover { transform: translateY(-2px); }
.boton:active { transform: translateY(0); }

.boton--solido {
  background: var(--verde-elemental);
  color: var(--crema);
  border: 1px solid var(--verde-elemental);
}
.boton--solido:hover { background: var(--verde-hondo); border-color: var(--verde-hondo); }

.boton--linea {
  background: transparent;
  color: var(--verde-elemental);
  border: 1px solid var(--linea);
}
.boton--linea:hover { border-color: var(--verde-elemental); background: rgba(82, 99, 77, 0.06); }

.boton--calido {
  background: var(--amarillo-conciencia);
  color: var(--verde-hondo);
  border: 1px solid var(--amarillo-conciencia);
}
.boton--calido:hover { background: #DFA24E; border-color: #DFA24E; }

.boton--claro {
  background: var(--crema);
  color: var(--verde-elemental);
  border: 1px solid var(--crema);
}
.boton--claro:hover { background: #fff; border-color: #fff; }

/* ==========================================================================
   Logotipo (SVG en línea, hereda currentColor)
   ========================================================================== */

.logo { color: var(--verde-elemental); }
.logo svg { width: 100%; height: auto; }

/* ==========================================================================
   Accesibilidad
   ========================================================================== */

:focus-visible {
  outline: 2px solid var(--naranja-ardiente);
  outline-offset: 3px;
  border-radius: 3px;
}

.salta-al-contenido {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 999;
  padding: 0.75rem 1.25rem;
  background: var(--verde-elemental);
  color: var(--crema);
  border-radius: var(--r-sm);
  font-family: var(--f-titulo);
  font-size: 0.8rem;
  text-decoration: none;
  transition: top 0.2s var(--ease);
}
.salta-al-contenido:focus { top: 1rem; }

.solo-lectores {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
