/* =============================================
   TU INTERÉS COMPUESTO — Estilos globales
   ============================================= */

/* RESET Y VARIABLES */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --verde: #1A6B3C;
  --verde-oscuro: #145730;
  --verde-claro: #D6EEE2;
  --verde-borde: #A8DDBF;
  --crema: #F0F7FF;
  --crema-borde: #D4E6F8;
  --naranja: #E8621A;
  --naranja-oscuro: #C0450A;
  --naranja-claro: #FFF3ED;
  --azul: #1B4F8A;
  --azul-claro: #E6F1FB;
  --azul-oscuro: #0D2F5E;
  --texto: #0D1F2D;
  --texto-suave: #3D5A6C;
  --texto-muy-suave: #6B8FA8;
}

html { scroll-behavior: smooth; }
body { font-family: "DM Sans", sans-serif; background: var(--crema); color: var(--texto); }

/* TIPOGRAFÍA */
h1 { font-family: "Lora", serif; font-size: 42px; font-weight: 400; line-height: 1.2; color: var(--texto); margin-bottom: 1rem; }
h1 em { color: var(--verde-oscuro); font-style: italic; }
h2 { font-family: "Lora", serif; font-size: 28px; font-weight: 400; color: var(--texto); margin-bottom: 1.25rem; line-height: 1.3; }
h2 em { color: var(--verde-oscuro); font-style: italic; }
h3 { font-family: "Lora", serif; font-size: 20px; font-weight: 500; color: var(--texto); margin-bottom: 0.75rem; }
p { font-size: 16px; color: var(--texto-suave); line-height: 1.8; margin-bottom: 1.25rem; }
p strong { color: var(--texto); font-weight: 500; }
a { color: var(--verde-oscuro); }

/* NAVEGACIÓN */
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 3rem;
  background: rgba(240,247,255,0.95);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--crema-borde);
}
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-icono { width: 42px; height: 42px; background: var(--verde); border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.logo-texto { font-family: "Lora", serif; font-size: 17px; font-weight: 400; color: var(--texto); }
.logo-texto span { color: var(--verde-oscuro); font-weight: 500; }
nav ul { display: flex; list-style: none; gap: 2rem; }
nav ul a { text-decoration: none; font-size: 14px; font-weight: 500; padding: 8px 20px; border-radius: 8px; transition: background 0.2s, transform 0.15s; display: inline-block; }
.nav-como { background: var(--naranja); color: #fff !important; }
.nav-como:hover { background: var(--naranja-oscuro) !important; transform: translateY(-1px); }
.nav-donde { background: var(--azul); color: #fff !important; }
.nav-donde:hover { background: var(--azul-oscuro) !important; transform: translateY(-1px); }
.nav-cta { background: var(--verde); color: #fff !important; }
.nav-cta:hover { background: var(--verde-oscuro) !important; transform: translateY(-1px); }

/* HAMBURGUESA */
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; background: none; border: none; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--texto); border-radius: 2px; transition: all 0.3s ease; }
.hamburger.abierto span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.abierto span:nth-child(2) { opacity: 0; }
.hamburger.abierto span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* BADGE */
.hero-badge { display: inline-flex; align-items: center; gap: 6px; background: var(--verde-claro); color: var(--verde-oscuro); font-size: 12px; font-weight: 500; padding: 5px 14px; border-radius: 20px; margin-bottom: 1rem; letter-spacing: 0.04em; text-transform: uppercase; }
.hero-badge::before { content: ""; width: 6px; height: 6px; background: var(--verde); border-radius: 50%; }

/* BOTONES */
.btn-primario { background: var(--verde); color: #fff; border: 1px solid var(--verde); border-radius: 10px; padding: 14px 28px; font-size: 15px; font-family: "DM Sans", sans-serif; font-weight: 500; cursor: pointer; text-decoration: none; display: inline-block; transition: background 0.2s, border-color 0.2s, transform 0.15s; }
.btn-primario:hover { background: var(--verde-oscuro); border-color: var(--verde-oscuro); transform: translateY(-2px); }
.btn-secundario { background: var(--naranja); color: #fff; border: 1px solid var(--naranja); border-radius: 10px; padding: 14px 28px; font-size: 15px; font-family: "DM Sans", sans-serif; font-weight: 500; cursor: pointer; text-decoration: none; display: inline-block; transition: background 0.2s, border-color 0.2s, transform 0.15s; }
.btn-secundario:hover { background: var(--naranja-oscuro); border-color: var(--naranja-oscuro); transform: translateY(-2px); }

/* SEPARADOR */
.separador { border: none; border-top: 1px solid var(--crema-borde); margin: 3rem 0; }

/* ANECDOTA */
.anecdota { background: #fff; border-left: 4px solid var(--naranja); border-radius: 0 12px 12px 0; padding: 1.25rem 1.5rem; margin: 1.5rem 0; }
.anecdota-label { font-size: 11px; font-weight: 500; color: var(--naranja-oscuro); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 6px; }
.anecdota p { font-size: 15px; color: var(--texto-suave); margin-bottom: 0; }

/* EJEMPLO */
.ejemplo-real { background: var(--crema); border: 1px solid var(--crema-borde); border-radius: 12px; padding: 1.25rem 1.5rem; margin: 1rem 0; }
.ejemplo-real-label { font-size: 11px; font-weight: 500; color: var(--texto-muy-suave); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 8px; }
.ejemplo-real p { font-size: 14px; color: var(--texto-suave); margin-bottom: 0; }

/* AVISO */
.aviso { font-size: 12px; color: var(--texto-muy-suave); font-style: italic; background: var(--crema); border: 1px solid var(--crema-borde); border-radius: 8px; padding: 10px 14px; margin-top: 1.5rem; line-height: 1.6; }

/* FOOTER */
footer { background: var(--azul-oscuro); padding: 2.5rem 3rem; margin-top: 4rem; }
.footer-inner { max-width: 1100px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1.5rem; }
.footer-logo { font-family: "Lora", serif; font-size: 16px; color: rgba(255,255,255,0.9); }
.footer-logo span { color: #A8DDBF; }
.footer-links { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-links a { font-size: 13px; color: rgba(255,255,255,0.6); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: #fff; }
.footer-copy { font-size: 12px; color: rgba(255,255,255,0.4); width: 100%; text-align: center; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.1); margin-top: 0.5rem; }

/* RESPONSIVE GLOBAL */
@media (max-width: 768px) {
  .hamburger { display: flex; }
  nav { padding: 1rem 1.5rem; }
  nav ul { display: none; position: fixed; top: 70px; left: 0; right: 0; background: #fff; flex-direction: column; padding: 1.5rem; gap: 0.75rem; border-bottom: 1px solid var(--crema-borde); box-shadow: 0 4px 20px rgba(0,0,0,0.1); z-index: 99; }
  nav ul.abierto { display: flex; }
  nav ul a { text-align: center; }
  h1 { font-size: 30px; }
  h2 { font-size: 22px; }
}
@media (max-width: 600px) {
  footer { padding: 2rem 1.25rem; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

/* BANNER COOKIES */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--azul-oscuro);
  color: rgba(255,255,255,0.9);
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  z-index: 1000;
  font-size: 14px;
  line-height: 1.5;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
}
.cookie-banner a { color: #A8DDBF; }
.cookie-btn {
  background: var(--verde);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 8px 20px;
  font-size: 14px;
  font-family: "DM Sans", sans-serif;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
  flex-shrink: 0;
}
.cookie-btn:hover { background: var(--verde-oscuro); }
@media (max-width: 600px) {
  .cookie-banner { flex-direction: column; text-align: center; padding: 1.25rem; }
}
.nav-vertodo { background: transparent; color: var(--texto) !important; border: 1.5px solid var(--crema-borde); padding: 8px 20px; border-radius: 8px; font-size: 14px; font-weight: 500; transition: border-color 0.2s, color 0.2s; }
.nav-vertodo:hover { border-color: var(--verde) !important; color: var(--verde) !important; transform: translateY(-1px); }
