/* N-CARGO · sitio informativo
   Colores y tipografías del Manual de identidad visual.
   Titulares: Mosk Ultra-Bold 900 (pendiente de licencia) → se usa Mulish Black. Contenido: Muli/Mulish. */

@font-face { font-family: "Mulish"; src: url("../fonts/Mulish_400Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Mulish"; src: url("../fonts/Mulish_600SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Mulish"; src: url("../fonts/Mulish_700Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Mulish"; src: url("../fonts/Mulish_800ExtraBold.ttf") format("truetype"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Mulish"; src: url("../fonts/Mulish_900Black.ttf") format("truetype"); font-weight: 900; font-display: swap; }

:root {
  color-scheme: light;

  /* Marca (manual) */
  --green: #009963;   /* Pantone 3405 U · servicios / profesionales */
  --red: #E13845;     /* Pantone Red 032 U · usuarios que realizan proyectos */
  --ink: #1D1D1B;

  /* Derivados para texto pequeño con contraste AA */
  --green-dark: #00744B;
  --green-deep: #008556;  /* fondos con texto blanco pequeño (contraste 4.7:1) */
  --red-dark: #B42330;
  --green-soft: #E5F5EF;
  --red-soft: #FCEBED;
  --muted: #53575D;
  --line: #E4E6EA;
  --surface: #F6F8F7;
  --white: #FFFFFF;

  --font: "Mulish", "Muli", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(0, 60, 40, 0.10);
  --container: 1120px;
  --gutter: 20px;
  --header-h: 72px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-dark); text-underline-offset: 3px; }
a:hover { color: var(--green); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { font-weight: 900; line-height: 1.12; letter-spacing: -0.01em; margin: 0 0 0.5em; text-wrap: balance; }
h1 { font-size: clamp(2.25rem, 5.2vw, 3.75rem); }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.25rem; font-weight: 800; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--white); padding: 10px 16px; border-radius: var(--radius-sm); }
.skip-link:focus { top: 12px; color: var(--white); }

.text-green { color: var(--green); white-space: nowrap; }
.eyebrow { font-size: 0.875rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--red-dark); margin-bottom: 0.75em; }
.eyebrow-light { color: var(--white); }

/* Botones: texto ≥ 19px en negrita para cumplir contraste AA (texto grande) con los colores de marca */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 26px;
  font-family: inherit; font-size: 1.1875rem; font-weight: 800; line-height: 1;
  border-radius: 999px; border: 2px solid transparent; text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(0, 0, 0, .12); }
.btn-green { background: var(--green); color: var(--white); }
.btn-green:hover { background: var(--green-dark); color: var(--white); }
.btn-red { background: var(--red); color: var(--white); }
.btn-red:hover { background: var(--red-dark); color: var(--white); }
.btn-outline { background: transparent; color: var(--green-dark); border-color: var(--green); }
.btn-outline:hover { background: var(--green-soft); color: var(--green-dark); }
.btn-sm { min-height: 44px; padding: 0 20px; }

/* Encabezado */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: saturate(160%) blur(10px); backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { height: 36px; width: auto; }
.brand .brand-word { height: 20px; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a:not(.btn) { color: var(--ink); font-weight: 700; text-decoration: none; font-size: 1rem; }
.site-nav a:not(.btn):hover { color: var(--green-dark); }
.site-nav .btn-sm { font-size: 1.1875rem; }

.nav-toggle { display: none; width: 48px; height: 48px; border: 0; background: transparent; border-radius: 12px; cursor: pointer; position: relative; }
.nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after {
  position: absolute; left: 12px; width: 24px; height: 3px; border-radius: 3px; background: var(--ink); content: ""; transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle-bar { top: 50%; margin-top: -1.5px; }
.nav-toggle-bar::before { left: 0; top: -8px; }
.nav-toggle-bar::after { left: 0; top: 8px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 860px) {
  .js .nav-toggle { display: block; }
  .js .site-nav {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    padding: 8px var(--gutter) 20px;
    display: none;
  }
  .js .site-nav.is-open { display: flex; }
  .js .site-nav a:not(.btn) { padding: 14px 4px; border-bottom: 1px solid var(--line); font-size: 1.0625rem; }
  .js .site-nav .btn { margin-top: 16px; }
  /* Sin JavaScript: el menú queda visible y se desplaza en horizontal */
  .no-js .header-inner { height: auto; flex-wrap: wrap; padding-top: 12px; padding-bottom: 12px; }
  .no-js .site-nav { width: 100%; overflow-x: auto; gap: 18px; }
  .no-js .site-nav a { white-space: nowrap; }
}

/* Portada */
.hero { position: relative; padding: 72px 0 88px; overflow: hidden; background: linear-gradient(180deg, var(--white) 0%, var(--surface) 100%); }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.lead { font-size: 1.1875rem; color: var(--muted); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 28px 0 16px; }
.hero-note { font-size: 0.9375rem; color: var(--muted); margin: 0; }

.hero-visual { position: relative; min-height: 420px; display: grid; place-items: center; }
.hero-halo { position: absolute; inset: 6% 4%; border-radius: 50%; background: radial-gradient(circle at 50% 50%, var(--green-soft) 0%, rgba(229, 245, 239, 0) 70%); }
.hero-isotipo { position: relative; width: min(380px, 80%); }

/* Cifras */
.stats { background: var(--green-deep); color: var(--white); padding: 36px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat p { margin: 0; }
.stat-value { font-size: clamp(2rem, 4vw, 2.75rem); font-weight: 900; line-height: 1.1; }
.stat-label { font-size: 1rem; font-weight: 700; }

/* Secciones */
.section { padding: 96px 0; }
.section-soft { background: var(--surface); }
.section-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.section-head p:last-child { color: var(--muted); }
.source { font-size: 0.875rem; color: var(--muted); }

/* Nosotros */
.about-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 56px; align-items: start; }
.mv-cards { display: grid; gap: 20px; }
.mv-card { padding: 28px; border-radius: var(--radius); background: var(--green-soft); border-left: 6px solid var(--green); }
.mv-card h3 { color: var(--green-dark); }
.mv-card p { margin: 0; }
.mv-card-red { background: var(--red-soft); border-left-color: var(--red); }
.mv-card-red h3 { color: var(--red-dark); }

/* Audiencias */
.audience-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.audience { background: var(--white); border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow); border-top: 8px solid var(--green); }
.audience-red { border-top-color: var(--red); }
.audience h3 { font-size: 1.75rem; font-weight: 900; }
.audience-red h3 { color: var(--red-dark); }
.audience-green h3 { color: var(--green-dark); }
.audience-tag { font-weight: 800; color: var(--muted); margin-bottom: 4px; }
.audience-price { margin: 24px 0 0; padding-top: 20px; border-top: 1px solid var(--line); font-size: 1.125rem; }

.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.check-list li { position: relative; padding-left: 34px; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.audience-red .check-list li::before { background-color: var(--red); }

.professions { margin-top: 48px; text-align: center; }
.professions-title { font-weight: 800; margin-bottom: 12px; }
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.chips li { padding: 10px 18px; border-radius: 999px; background: var(--white); border: 2px solid var(--green); color: var(--green-dark); font-weight: 800; }
.chips .chip-more { border-style: dashed; border-color: var(--muted); color: var(--muted); }

/* Pasos */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: none; }
.step { position: relative; padding: 28px 24px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--white); }
.step p { margin: 0; color: var(--muted); }
.step-num { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 16px; border-radius: 50%; background: var(--red-soft); color: var(--red-dark); font-weight: 900; font-size: 1.25rem; }

/* Confianza */
.section-green { background: var(--green-deep); color: var(--white); }
.section-green h2 { color: var(--white); }
.trust-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.trust-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.trust-list li { background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .25); border-radius: var(--radius-sm); padding: 14px 18px; }

/* Diferencias */
.diff-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.diff { padding: 28px; border-radius: var(--radius); background: var(--surface); position: relative; }
.diff::before { content: ""; display: block; width: 40px; height: 6px; border-radius: 3px; background: var(--red); margin-bottom: 18px; }
.diff:nth-child(even)::before { background: var(--green); }
.diff p { margin: 0; color: var(--muted); }

/* Contacto */
.contact { max-width: 720px; text-align: center; }
.contact-isotipo { width: 96px; margin: 0 auto 20px; }
.contact > p:not(.eyebrow) { color: var(--muted); }
.contact-email { display: inline-block; margin: 8px 0 28px; font-size: clamp(1.375rem, 3.5vw, 1.875rem); font-weight: 900; color: var(--green-dark); overflow-wrap: anywhere; }
.contact-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }

/* Pie */
.site-footer { background: var(--ink); color: rgba(255, 255, 255, .85); padding: 48px 0; }
.footer-inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; }
.footer-inner img { width: 180px; margin-bottom: 12px; }
.footer-inner p { margin: 0; }
.footer-small { font-size: 0.875rem; }
.site-footer a { color: var(--white); }

/* Responsive */
@media (max-width: 960px) {
  .hero-grid, .about-grid, .trust-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding: 48px 0 64px; }
  .hero-visual { min-height: 340px; max-width: 460px; width: 100%; margin: 0 auto; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .diff-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
  :root { --gutter: 16px; --header-h: 64px; }
  .section { padding: 64px 0; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 20px 12px; }
  .audience-grid, .steps, .diff-grid { grid-template-columns: 1fr; }
  .audience { padding: 28px 22px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-visual { min-height: 260px; }
  .contact-actions .btn { flex: 1 1 100%; }
  .brand .brand-word { height: 18px; }
}
