/* ============================================================
   CONTIGO COACHING FINANCIERO — Design System
   Paleta "Verano Europeo" 2026 · Loro Piana reference
   joann@contigocoachingfinanciero.com
   ============================================================ */

:root {
  /* Azules — principal */
  --madera: #2C4A6B;   /* Navy — texto corrido, ancla oscuro */
  --agua:   #6B92B5;   /* Med blue — color firma */
  --sky:    #B5C9DC;   /* Sky — fondos suaves */

  /* Beiges — soporte */
  --lino:   #FBFAF6;   /* Off-white — fondo dominante 55-60% */
  --arena:  #E5DAC4;   /* Cream — separadores, tinta sobre oscuro */
  --oro:    #C9A878;   /* Beige — calidez puntual */

  /* Toques pequeños */
  --blush:  #D4A8A0;   /* Blush — calidez aérea (máx 3%) */
  --brown:  #6B4429;   /* Brown — ancla terrenal (máx 2%) */

  --blanco: #FFFFFF;

  --font-titulo: 'Nunito Sans', system-ui, sans-serif;
  --font-cuerpo: 'Nunito Sans', system-ui, sans-serif;

  --max-w: 1200px;
  --pad:   clamp(20px, 5vw, 80px);
  --radius: 12px;
  --ease:   0.25s ease;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { font-size: 16px; scroll-behavior: smooth; }
body  {
  font-family: var(--font-cuerpo);
  color: var(--madera);
  background: var(--lino);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img   { max-width: 100%; display: block; }
a     { color: inherit; text-decoration: none; }
ul    { list-style: none; }

/* ---- Container ---- */
.wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--pad); }

/* ---- Typography ---- */
.label {
  font-family: var(--font-cuerpo);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--agua);
  display: block;
}
.label--oro   { color: var(--oro); }
.label--white { color: rgba(255,255,255,.7); }

h1, .h1 { font-family: var(--font-titulo); font-size: clamp(36px, 5vw, 64px); font-weight: 800; line-height: 1.08; letter-spacing: -0.02em; }
h2, .h2 { font-family: var(--font-titulo); font-size: clamp(28px, 3.8vw, 50px); font-weight: 700; line-height: 1.12; letter-spacing: -0.01em; }
h3, .h3 { font-family: var(--font-titulo); font-size: clamp(20px, 2.4vw, 32px); font-weight: 600; line-height: 1.2; }
h4, .h4 { font-family: var(--font-cuerpo); font-size: 16px; font-weight: 700; line-height: 1.4; }

.lead  { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.72; font-weight: 400; }
.body  { font-size: clamp(14px, 1.1vw, 16px); line-height: 1.72; }
.small { font-size: 13px; line-height: 1.6; }

/* ---- Accent line ---- */
.line { display: block; width: 40px; height: 2px; background: var(--agua); margin: 16px 0; }
.line--center { margin: 16px auto; }
.line--oro    { background: var(--oro); }
.line--brown  { background: var(--brown); }
.line--white  { background: rgba(255,255,255,.4); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 15px 34px; font-family: var(--font-cuerpo); font-size: 14px;
  font-weight: 700; letter-spacing: .06em; border-radius: 3px;
  cursor: pointer; transition: var(--ease); border: none; white-space: nowrap;
}
.btn-agua    { background: var(--agua); color: var(--blanco); }
.btn-agua:hover    { background: #527ea8; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(107,146,181,.25); }
.btn-outline { background: transparent; color: var(--agua); border: 1.5px solid var(--agua); }
.btn-outline:hover { background: var(--agua); color: var(--blanco); }
.btn-oro     { background: var(--oro); color: var(--madera); }
.btn-oro:hover     { background: #a87832; transform: translateY(-2px); }
.btn-white   { background: var(--blanco); color: var(--madera); }
.btn-white:hover   { background: var(--lino); }
.btn-full    { width: 100%; justify-content: center; }

/* ---- Tags/chips ---- */
.tag {
  background: var(--lino); border: 1px solid var(--arena);
  border-radius: 100px; padding: 7px 16px; font-size: 13px; font-weight: 600;
}

/* ---- Cards ---- */
.card {
  background: var(--blanco); border: 1px solid var(--arena);
  border-radius: var(--radius); padding: 32px 28px;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 200;
  background: var(--lino); border-bottom: 1px solid var(--arena);
  padding: 0 var(--pad);
}
.nav__inner {
  max-width: var(--max-w); margin: 0 auto; min-height: 58px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.nav__brand { line-height: 1; display: flex; align-items: center; }
.nav__brand small {
  display: block; font-family: var(--font-cuerpo); font-size: 9px;
  font-weight: 300; letter-spacing: .22em; text-transform: uppercase;
  color: var(--agua); margin-top: 3px;
}
.nav__logo { width: 104px; height: auto; display: block; }
.footer__logo { width: 130px; height: auto; display: block; }
.nav__links { display: flex; gap: 28px; }
.nav__links a { color: var(--madera); font-size: 13px; opacity: .75; transition: var(--ease); }
.nav__links a:hover { opacity: 1; color: var(--agua); }
.nav__links a.active { color: var(--agua); opacity: 1; font-weight: 600; }
@media (max-width: 800px) { .nav__links { display: none; } }

/* ============================================================
   TRUST BAR
   ============================================================ */
.trust { background: var(--blanco); padding: 52px var(--pad); border-bottom: 1px solid var(--arena); }
.trust__grid {
  max-width: var(--max-w); margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center;
}
.trust__num  { font-family: var(--font-titulo); font-size: clamp(34px, 3.5vw, 52px); font-weight: 600; color: var(--agua); line-height: 1; }
.trust__desc { font-size: 13px; line-height: 1.5; margin-top: 8px; opacity: .6; }
@media (max-width: 700px) { .trust__grid { grid-template-columns: repeat(2, 1fr); } }

/* ============================================================
   SECTION PATTERNS
   ============================================================ */
.sec        { padding: 96px var(--pad); }
.sec--lino  { background: var(--lino); }
.sec--white { background: var(--blanco); }
.sec--dark  { background: var(--madera); color: var(--blanco); }
.sec--agua  { background: var(--agua); color: var(--blanco); }

.sec__head { max-width: 640px; margin: 0 auto 56px; text-align: center; }
.sec__head h2 { margin: 14px 0 18px; }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.testi        { background: rgba(255,255,255,.1); border-left: 3px solid var(--oro); border-radius: 0 var(--radius) var(--radius) 0; padding: 24px 28px; }
.testi--light { background: var(--blanco); border-left-color: var(--agua); }
.testi--blush { background: var(--blanco); border-left-color: var(--blush); }
.testi__q   { font-style: italic; font-size: 16px; line-height: 1.65; margin-bottom: 14px; }
.testi__who { font-size: 12px; font-weight: 700; letter-spacing: .06em; opacity: .75; }
@media (max-width: 780px) { .testi-grid { grid-template-columns: 1fr; } }

/* ============================================================
   FAQ
   ============================================================ */
.faq__list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 3px; }
.faq__item { background: var(--lino); border-radius: 8px; overflow: hidden; }
.faq__item--white { background: var(--blanco); border: 1px solid var(--arena); }
.faq__q {
  width: 100%; background: none; border: none; padding: 22px 28px;
  text-align: left; font-family: var(--font-cuerpo); font-size: 15.5px;
  font-weight: 600; color: var(--madera); cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq__icon {
  flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%;
  background: var(--agua); color: var(--blanco);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 300; transition: var(--ease); line-height: 1;
}
.faq__a {
  max-height: 0; overflow: hidden;
  transition: max-height .35s ease, padding .25s ease;
  padding: 0 28px; font-size: 15px; line-height: 1.72; opacity: .78;
}
.faq__item.open .faq__a    { max-height: 500px; padding: 0 28px 24px; }
.faq__item.open .faq__icon { background: var(--oro); transform: rotate(45deg); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--madera); color: var(--blanco); padding: 40px var(--pad) 24px; }
.footer__top {
  max-width: var(--max-w); margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px;
  padding-bottom: 28px; border-bottom: 1px solid rgba(255,255,255,.1); margin-bottom: 20px;
}
.footer__brand { font-family: var(--font-titulo); font-size: 20px; letter-spacing: .1em; }
.footer__brand small {
  display: block; font-family: var(--font-cuerpo); font-size: 9px;
  font-weight: 300; letter-spacing: .22em; text-transform: uppercase;
  color: var(--agua); margin-top: 4px;
}
.footer__desc { font-size: 12.5px; opacity: .6; line-height: 1.6; margin-top: 10px; max-width: 260px; }
.footer__col h5 { font-size: 10px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--agua); margin-bottom: 12px; }
.footer__col ul { display: flex; flex-direction: column; gap: 8px; }
.footer__col a  { font-size: 13px; opacity: .6; transition: var(--ease); }
.footer__col a:hover { opacity: 1; }
.footer__bottom { max-width: var(--max-w); margin: 0 auto; display: flex; justify-content: space-between; font-size: 12px; opacity: .45; }
@media (max-width: 760px) {
  .footer__top    { grid-template-columns: 1fr; gap: 40px; }
  .footer__bottom { flex-direction: column; gap: 8px; }
}

/* ============================================================
   NEWSLETTER BAR
   ============================================================ */
.newsletter { background: var(--agua); padding: 72px var(--pad); color: var(--blanco); }
.newsletter__inner { max-width: 640px; margin: 0 auto; text-align: center; }
.newsletter__inner h2 { color: var(--blanco); margin: 14px 0 18px; }
.newsletter__inner .lead { opacity: .88; margin-bottom: 32px; }
.newsletter__form { display: flex; gap: 12px; max-width: 480px; margin: 0 auto; }
.newsletter__form input {
  flex: 1; padding: 14px 20px; border: none; border-radius: 3px;
  font-family: var(--font-cuerpo); font-size: 15px; outline: none;
  background: rgba(255,255,255,.15); color: var(--blanco);
  border: 1px solid rgba(255,255,255,.3);
}
.newsletter__form input::placeholder { color: rgba(255,255,255,.6); }
.newsletter__fine { font-size: 12px; opacity: .5; margin-top: 14px; }
@media (max-width: 500px) { .newsletter__form { flex-direction: column; } }

/* ============================================================
   ANIMACIONES
   ============================================================ */

/* Scroll reveal base */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.from-left  { transform: translateX(-32px); }
.reveal.from-right { transform: translateX(32px); }
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* Nav al hacer scroll */
.nav--scrolled {
  box-shadow: 0 2px 24px rgba(44,74,107,.08);
  background: rgba(251,250,246,.97);
  backdrop-filter: blur(8px);
}

/* Parallax: el contenedor del hero no hace overflow */
.hero__visual { overflow: hidden; }
.hero__visual img { transition: none; }

/* Animacion flotante para elementos decorativos */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}
.float { animation: float 4s ease-in-out infinite; }

/* Fade-in simple para elementos que solo necesitan aparecer */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}
.fade-in { animation: fadeIn 0.7s ease forwards; }

/* Gradiente animado para secciones agua */
@keyframes gradShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.sec--agua {
  background-size: 200% 200%;
  animation: gradShift 8s ease infinite;
  background-image: linear-gradient(135deg, var(--agua) 0%, #5478a0 50%, var(--agua) 100%);
}

/* ============================================================
   MISC UTILITIES
   ============================================================ */
.text-center { text-align: center; }
.text-white  { color: var(--blanco); }
.mt-4  { margin-top: 16px; }
.mt-6  { margin-top: 24px; }
.mt-8  { margin-top: 32px; }
.mt-12 { margin-top: 48px; }
.mb-8  { margin-bottom: 32px; }
.opacity-low  { opacity: .7; }
.opacity-mid  { opacity: .85; }
