/* =========================================================
   LexPyme · Hoja de estilos
   Identidad: Teal moderno + neutros cálidos
   ========================================================= */

:root {
  /* Paleta de marca */
  --teal-900: #0B3B38;
  --teal-800: #134E4A;
  --teal-700: #0F766E;
  --teal-600: #0D9488;
  --teal-500: #14B8A6;
  --teal-100: #CCFBF1;
  --teal-50:  #F0FDFA;

  /* Acento cálido */
  --amber-600: #C77D27;
  --amber-500: #E29B3D;

  /* Neutros cálidos */
  --ink:    #15211F;
  --slate:  #46554F;
  --muted:  #6B7975;
  --line:   #E4E6E0;
  --sand:   #F4F2EB;
  --cream:  #FBFAF6;
  --white:  #FFFFFF;

  /* Tipografía */
  --font-head: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Medidas */
  --maxw: 1140px;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(11,59,56,.06), 0 2px 8px rgba(11,59,56,.05);
  --shadow-md: 0 8px 30px rgba(11,59,56,.10);
  --shadow-lg: 0 20px 60px rgba(11,59,56,.14);
  --t: .25s cubic-bezier(.4,0,.2,1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--teal-700); text-decoration: none; transition: color var(--t); }
a:hover { color: var(--teal-600); }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.15; font-weight: 600; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1.1em; color: var(--slate); }
ul, ol { color: var(--slate); }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }
.section { padding: 88px 0; }
.section--tight { padding: 56px 0; }
.section--sand { background: var(--sand); }
.section--teal { background: var(--teal-800); color: var(--teal-50); }
.section--teal h2, .section--teal h3 { color: var(--white); }
.section--teal p { color: var(--teal-100); }
.center { text-align: center; }
.lead { font-size: 1.2rem; color: var(--slate); max-width: 56ch; }
.center .lead { margin-inline: auto; }

.eyebrow {
  display: inline-block; font-family: var(--font-body); font-weight: 600;
  font-size: .8rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--teal-700); margin-bottom: 14px;
}
.section--teal .eyebrow { color: var(--teal-100); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251,250,246,.85);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 600; font-size: 1.3rem; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand img { height: 34px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--slate); font-weight: 500; font-size: .98rem; padding: 8px 14px; border-radius: 8px; }
.nav-links a:hover { color: var(--teal-700); background: var(--teal-50); }
.nav-links a.active { color: var(--teal-800); font-weight: 600; }
.nav-cta { margin-left: 10px; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: var(--t); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  font-family: var(--font-body); font-weight: 600; font-size: 1rem;
  padding: 13px 24px; border-radius: 999px; cursor: pointer;
  border: 1.5px solid transparent; transition: var(--t); white-space: nowrap;
}
.btn--primary { background: var(--teal-700); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--teal-800); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn--ghost { background: transparent; color: var(--teal-800); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--teal-600); color: var(--teal-700); background: var(--teal-50); }
.btn--light { background: #fff; color: var(--teal-800); }
.btn--light:hover { background: var(--teal-50); color: var(--teal-800); transform: translateY(-1px); }
.btn--lg { padding: 16px 30px; font-size: 1.05rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.center .btn-row { justify-content: center; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 92px 0 84px; background: linear-gradient(180deg, var(--teal-50) 0%, var(--cream) 70%); }
.hero::after {
  content: ""; position: absolute; top: -120px; right: -120px; width: 460px; height: 460px;
  background: radial-gradient(circle, rgba(20,184,166,.18), transparent 70%); border-radius: 50%;
}
.hero .container { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero h1 span { color: var(--teal-700); }
.hero .lead { margin-bottom: 28px; }
.hero-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 30px;
}
.hero-card h3 { color: var(--teal-800); margin-bottom: 18px; }
.hero-card ul { list-style: none; margin: 0; padding: 0; }
.hero-card li { display: flex; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); color: var(--ink); font-weight: 500; }
.hero-card li:last-child { border-bottom: 0; }
.hero-card svg { flex: 0 0 auto; color: var(--teal-600); margin-top: 3px; }

.trust-row { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 30px; color: var(--muted); font-size: .92rem; }
.trust-row strong { color: var(--ink); }

/* ---------- Cards / grid ---------- */
.grid { display: grid; gap: 26px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; transition: var(--t); box-shadow: var(--shadow-sm);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--teal-100); }
.card-icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: var(--teal-50); color: var(--teal-700); margin-bottom: 18px;
}
.card h3 { color: var(--teal-800); }
.card p { margin-bottom: 0; font-size: .98rem; }
.card-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; font-weight: 600; font-size: .95rem; }

/* ---------- Steps ---------- */
.steps { counter-reset: step; display: grid; gap: 22px; grid-template-columns: repeat(4, 1fr); }
.step { position: relative; padding-top: 8px; }
.step .num {
  width: 42px; height: 42px; border-radius: 50%; background: var(--teal-700); color: #fff;
  display: grid; place-items: center; font-family: var(--font-head); font-weight: 600; margin-bottom: 14px;
}
.step h3 { font-size: 1.1rem; }
.step p { font-size: .95rem; margin: 0; }

/* ---------- Service detail blocks ---------- */
.service-block { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.service-block + .service-block { margin-top: 64px; }
.service-block.reverse .service-text { order: 2; }
.service-list { list-style: none; padding: 0; margin: 18px 0 0; }
.service-list li { display: flex; gap: 12px; padding: 8px 0; color: var(--ink); }
.service-list svg { flex: 0 0 auto; color: var(--teal-600); margin-top: 4px; }
.service-visual {
  border-radius: var(--radius); background: var(--teal-800); color: var(--teal-50);
  padding: 40px; min-height: 260px; display: flex; flex-direction: column; justify-content: center;
  box-shadow: var(--shadow-md);
}
.service-visual .big { font-family: var(--font-head); font-size: 2.6rem; color: #fff; line-height: 1; margin-bottom: 8px; }
.service-visual p { color: var(--teal-100); margin: 0; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; text-align: center; }
.stat .n { font-family: var(--font-head); font-size: 2.6rem; color: var(--teal-500); line-height: 1; }
.stat .l { color: var(--teal-100); font-size: .95rem; margin-top: 6px; }

/* ---------- Blog ---------- */
.post-card { display: flex; flex-direction: column; height: 100%; }
.post-card .tag { font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--teal-700); }
.post-card h3 { margin: 10px 0 8px; font-size: 1.2rem; }
.post-card .meta { color: var(--muted); font-size: .85rem; margin-top: auto; padding-top: 14px; }

/* Article */
.article { max-width: 760px; margin-inline: auto; }
.article .kicker { color: var(--teal-700); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; font-size: .82rem; }
.article h1 { margin: 10px 0 14px; }
.article .byline { color: var(--muted); font-size: .92rem; margin-bottom: 32px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.article h2 { margin-top: 40px; }
.article p, .article li { font-size: 1.06rem; color: #34423E; }
.article blockquote {
  margin: 28px 0; padding: 18px 24px; border-left: 4px solid var(--teal-600);
  background: var(--teal-50); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: var(--teal-900);
}
.note {
  background: var(--sand); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 18px 22px; font-size: .95rem; color: var(--slate);
}
.note strong { color: var(--ink); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 7px; color: var(--ink); }
.field input, .field textarea, .field select {
  width: 100%; padding: 13px 15px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  font-family: inherit; font-size: 1rem; color: var(--ink); background: #fff; transition: var(--t);
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--teal-500); box-shadow: 0 0 0 3px rgba(20,184,166,.15); }
.field textarea { min-height: 130px; resize: vertical; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--muted); }
.consent input { width: auto; margin-top: 4px; }
.contact-info { display: flex; flex-direction: column; gap: 20px; }
.info-item { display: flex; gap: 14px; }
.info-item .ic { width: 44px; height: 44px; flex: 0 0 auto; border-radius: 12px; background: var(--teal-50); color: var(--teal-700); display: grid; place-items: center; }
.info-item h4 { margin: 0 0 2px; font-family: var(--font-body); font-size: 1rem; }
.info-item p, .info-item a { margin: 0; color: var(--slate); }

/* ---------- CTA banner ---------- */
.cta-banner { background: var(--teal-800); border-radius: var(--radius); padding: 56px; text-align: center; color: #fff; box-shadow: var(--shadow-md); }
.cta-banner h2 { color: #fff; }
.cta-banner p { color: var(--teal-100); max-width: 52ch; margin-inline: auto; }

/* ---------- Footer ---------- */
.site-footer { background: var(--teal-900); color: #B7CEC9; padding: 64px 0 28px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; }
.site-footer h4 { color: #fff; font-family: var(--font-body); font-size: .95rem; letter-spacing: .03em; margin-bottom: 14px; }
.site-footer a { color: #B7CEC9; display: block; padding: 5px 0; }
.site-footer a:hover { color: #fff; }
.footer-brand img { height: 36px; margin-bottom: 14px; }
.footer-brand p { color: #8FB0AA; max-width: 32ch; }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; color: #8FB0AA; font-size: .86rem; }
.footer-bottom a { display: inline; }

/* ---------- Misc ---------- */
.badge { display: inline-flex; align-items: center; gap: 7px; background: var(--teal-50); color: var(--teal-800); border: 1px solid var(--teal-100); padding: 6px 14px; border-radius: 999px; font-size: .85rem; font-weight: 600; }
.divider { height: 1px; background: var(--line); border: 0; margin: 0; }
.mb-0 { margin-bottom: 0; }
.mt-24 { margin-top: 24px; }
.fade-up { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.fade-up.in { opacity: 1; transform: none; }

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed; bottom: 18px; left: 18px; right: 18px; max-width: 520px; margin-inline: auto;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: 20px 22px; z-index: 100; display: none;
}
.cookie-banner.show { display: block; }
.cookie-banner p { font-size: .9rem; margin-bottom: 14px; }
.cookie-banner .btn-row { gap: 10px; }
.cookie-banner .btn { padding: 9px 18px; font-size: .9rem; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid, .service-block, .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .service-block.reverse .service-text { order: 0; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links {
    position: fixed; top: 72px; left: 0; right: 0; background: var(--cream); flex-direction: column;
    align-items: stretch; padding: 16px 24px 24px; gap: 4px; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md); transform: translateY(-130%); transition: transform var(--t); height: auto;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: 12px 14px; }
  .nav-cta { margin: 8px 0 0; }
  .nav-toggle { display: block; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .section { padding: 60px 0; }
  .grid-3, .grid-2, .steps, .stats { grid-template-columns: 1fr; }
  .cta-banner, .service-visual { padding: 32px 24px; }
  .hero { padding: 60px 0 56px; }
}
