/* ==========================================================================
   Cotta & Consultores S.A.S
   Paleta tomada del logo: azul petróleo + turquesa
   ========================================================================== */

:root {
  --navy-900: #082736;
  --navy-800: #0b3347;
  --navy-700: #0f4560;
  --navy-600: #145a7a;
  --teal-500: #14b8b8;
  --teal-400: #3fd0cc;
  --teal-100: #d9f4f3;
  --ink: #0d2330;
  --muted: #536b78;
  --line: #dde8ec;
  --bg: #ffffff;
  --bg-tint: #f3f9fa;

  --logo-a: var(--navy-600);
  --logo-b: var(--teal-500);

  --font-display: "Outfit", "Segoe UI", system-ui, sans-serif;
  --font-body: "DM Sans", "Segoe UI", system-ui, sans-serif;

  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 18px 50px -22px rgba(8, 39, 54, .35);
  --container: 1160px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.12;
  letter-spacing: -.02em;
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 5.6vw, 4.25rem); font-weight: 600; }
h2 { font-size: clamp(1.85rem, 3.4vw, 2.75rem); font-weight: 600; }
h3 { font-size: 1.3rem; font-weight: 600; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--navy-800); color: #fff; padding: 10px 16px; border-radius: 8px;
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--teal-500); outline-offset: 3px; border-radius: 4px; }

.eyebrow {
  font-family: var(--font-display);
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--teal-500);
  margin-bottom: 1rem;
}
.accent { color: var(--navy-600); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 26px;
  font-family: var(--font-display); font-size: 1rem; font-weight: 500;
  text-decoration: none; border-radius: 999px; border: 1.5px solid transparent;
  cursor: pointer; transition: transform .2s, background-color .2s, border-color .2s, color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--teal-500); color: var(--navy-900); }
.btn-primary:hover { background: var(--teal-400); }
.btn-ghost { border-color: var(--line); color: var(--navy-700); background: #fff; }
.btn-ghost:hover { border-color: var(--navy-600); }
.btn-sm { padding: 10px 20px; font-size: .9375rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, box-shadow .25s;
}
.site-header.scrolled { border-color: var(--line); box-shadow: 0 8px 30px -24px rgba(8, 39, 54, .5); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { width: 42px; height: 42px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong {
  font-family: var(--font-display); font-weight: 500; font-size: 1.05rem;
  letter-spacing: .06em; color: var(--navy-600);
}
.brand-text small { font-size: .75rem; color: var(--muted); letter-spacing: .02em; }
.brand-light { --logo-a: #ffffff; }
.brand-light .brand-text strong { color: #fff; }
.brand-light .brand-text small { color: rgba(255, 255, 255, .65); }

.nav { display: flex; align-items: center; gap: 30px; }
.nav a:not(.btn) {
  font-size: .9688rem; font-weight: 500; color: var(--navy-700);
  text-decoration: none; position: relative; padding: 6px 0;
}
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%;
  background: var(--teal-500); transform: scaleX(0); transform-origin: left; transition: transform .25s;
}
.nav a:not(.btn):hover::after { transform: scaleX(1); }

.nav-toggle {
  display: none; width: 44px; height: 44px; padding: 0;
  background: none; border: 0; cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 6px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--navy-700); border-radius: 2px; transition: transform .25s, opacity .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Fondo hexagonal ---------- */
.hex-bg {
  position: absolute; inset: 0; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='84' height='146' viewBox='0 0 84 146'%3E%3Cpath d='M42 1 83 24.500v48L42 96 1 72.500v-48zM42 97v48M0 146l1-73.500M84 146l-1-73.500' fill='none' stroke='%23145a7a' stroke-opacity='.09' stroke-width='1'/%3E%3C/svg%3E");
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 85% 20%, #000 0%, transparent 70%);
  mask-image: radial-gradient(ellipse 70% 80% at 85% 20%, #000 0%, transparent 70%);
}
.hex-bg-dark {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='84' height='146' viewBox='0 0 84 146'%3E%3Cpath d='M42 1 83 24.500v48L42 96 1 72.500v-48zM42 97v48M0 146l1-73.500M84 146l-1-73.500' fill='none' stroke='%233fd0cc' stroke-opacity='.13' stroke-width='1'/%3E%3C/svg%3E");
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(56px, 8vw, 104px) 0 clamp(64px, 9vw, 120px);
  background: linear-gradient(180deg, #fff 0%, var(--bg-tint) 100%);
}
.hero-grid {
  position: relative;
  display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(32px, 5vw, 72px); align-items: center;
}
.lead { font-size: 1.1875rem; color: var(--muted); max-width: 34em; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 2.25rem; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-tags li {
  font-size: .875rem; font-weight: 500; color: var(--navy-700);
  padding: 6px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line);
}

.hero-visual { position: relative; }
.panel {
  background: #fff; border: 1px solid var(--line); border-radius: 24px;
  padding: 26px; box-shadow: var(--shadow);
}
.panel-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 20px; }
.panel-kicker { display: block; font-size: .8125rem; color: var(--muted); }
.panel-head strong { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; }
.panel-badge {
  font-size: .6875rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); border: 1px dashed var(--line); padding: 4px 10px; border-radius: 999px; white-space: nowrap;
}
.panel-list li {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px;
  padding: 14px 0; border-top: 1px solid var(--line);
}
.panel-item { font-weight: 500; font-size: .9688rem; line-height: 1.3; }
.panel-item small { display: block; font-weight: 400; font-size: .8125rem; color: var(--muted); }
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot-ok { background: var(--teal-500); }
.dot-run { background: var(--navy-600); box-shadow: 0 0 0 4px rgba(20, 90, 122, .15); }
.dot-next { background: #c5d3d9; }
.pill { font-size: .75rem; font-weight: 600; padding: 4px 11px; border-radius: 999px; white-space: nowrap; }
.pill-ok { background: var(--teal-100); color: #0a6b6b; }
.pill-run { background: #e2eef4; color: var(--navy-600); }
.pill-next { background: #f0f4f6; color: var(--muted); }
.panel-foot { border-top: 1px solid var(--line); padding-top: 16px; font-size: .8125rem; color: var(--muted); }
.bar { height: 8px; border-radius: 99px; background: #e9f0f3; margin-top: 8px; overflow: hidden; }
.bar i {
  display: block; height: 100%; width: 68%; border-radius: inherit;
  background: linear-gradient(90deg, var(--navy-600), var(--teal-500));
  animation: grow 1.6s cubic-bezier(.2, .7, .2, 1) both .3s;
}
@keyframes grow { from { width: 0; } }

.float-card {
  position: absolute; left: -28px; bottom: -22px;
  display: flex; align-items: center; gap: 10px;
  background: var(--navy-800); color: #fff; font-size: .875rem; font-weight: 500;
  padding: 12px 18px; border-radius: 14px; box-shadow: var(--shadow);
}
.float-card svg { width: 18px; height: 18px; color: var(--teal-400); }

/* ---------- Secciones ---------- */
.section { position: relative; padding: clamp(72px, 9vw, 120px) 0; }
.section-tint { background: var(--bg-tint); }
.section-dark { background: var(--navy-800); color: #fff; overflow: hidden; }
.section-dark .container { position: relative; }
.section-dark .eyebrow { color: var(--teal-400); }
.section-dark .section-head p:not(.eyebrow),
.section-dark .contact-copy > p:not(.eyebrow) { color: rgba(255, 255, 255, .74); }

.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head p:not(.eyebrow) { color: var(--muted); font-size: 1.125rem; margin: 0; }

/* ---------- Servicios ---------- */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card {
  display: flex; flex-direction: column;
  padding: 30px 26px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform .3s, box-shadow .3s, border-color .3s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.card-icon {
  width: 52px; height: 52px; display: grid; place-items: center; margin-bottom: 22px;
  border-radius: 14px; background: var(--teal-100); color: var(--navy-600);
}
.card-icon svg { width: 26px; height: 26px; }
.card > p { color: var(--muted); font-size: .9688rem; }
.card ul { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); }
.card li, .audience-card li {
  position: relative; padding-left: 20px; font-size: .9375rem; line-height: 1.45; margin-bottom: 9px;
}
.card li::before, .audience-card li::before {
  content: ""; position: absolute; left: 0; top: .55em;
  width: 8px; height: 8px; background: var(--teal-500);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}

/* ---------- Pilares ---------- */
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(255, 255, 255, .14); border-radius: var(--radius); overflow: hidden; }
.pillar { padding: 34px 28px; background: var(--navy-800); transition: background-color .3s; }
.pillar:hover { background: var(--navy-700); }
.pillar-num { display: block; font-family: var(--font-display); font-size: .875rem; font-weight: 600; letter-spacing: .12em; color: var(--teal-400); margin-bottom: 40px; }
.pillar p { color: rgba(255, 255, 255, .72); font-size: .9688rem; margin: 0; }

/* ---------- Pasos ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; counter-reset: none; }
.step { position: relative; padding-top: 30px; border-top: 2px solid var(--line); }
.step::before { content: ""; position: absolute; top: -2px; left: 0; width: 56px; height: 2px; background: var(--teal-500); }
.step-num {
  display: grid; place-items: center; width: 44px; height: 48px; margin-bottom: 18px;
  font-family: var(--font-display); font-weight: 600; color: #fff; background: var(--navy-600);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}
.step p { color: var(--muted); font-size: .9688rem; margin: 0; }

/* ---------- Audiencia ---------- */
.audience { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.audience-card { padding: 38px 34px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.audience-card h3 { font-size: 1.6rem; }
.audience-card > p { color: var(--muted); margin-bottom: 1.4rem; }

/* ---------- Nosotros ---------- */
.about { display: grid; grid-template-columns: .7fr 1.3fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.about-mark {
  aspect-ratio: 1; display: grid; place-items: center; padding: 18%;
  border-radius: 32px; background: var(--bg-tint); border: 1px solid var(--line);
}
.about-mark svg { width: 100%; height: 100%; }
.about-copy p { color: var(--muted); }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 2rem; }
.values li { font-size: .9375rem; color: var(--muted); padding-top: 14px; border-top: 2px solid var(--teal-500); line-height: 1.45; }
.values strong { display: block; font-family: var(--font-display); font-size: 1.0625rem; color: var(--ink); margin-bottom: 2px; }

/* ---------- Contacto ---------- */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.contact-list { margin-top: 2rem; }
.contact-list li { display: flex; gap: 20px; align-items: baseline; padding: 16px 0; border-top: 1px solid rgba(255, 255, 255, .14); }
.contact-list li[hidden] { display: none; }
.contact-list span { flex: 0 0 100px; font-size: .8125rem; letter-spacing: .1em; text-transform: uppercase; color: var(--teal-400); }
.contact-list a { color: #fff; text-decoration: none; font-weight: 500; border-bottom: 1px solid rgba(255, 255, 255, .3); }
.contact-list a:hover { border-color: var(--teal-400); }
.contact-list p { margin: 0; }

.form { background: #fff; color: var(--ink); border-radius: 24px; padding: clamp(24px, 3.5vw, 38px); box-shadow: var(--shadow); }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: .875rem; font-weight: 600; margin-bottom: 6px; }
.field label em { font-style: normal; font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--bg-tint); border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  transition: border-color .2s, background-color .2s;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal-500); background: #fff; }
.field .invalid { border-color: #c8553d; }
.form-status { min-height: 1.5em; margin: 14px 0 0; font-size: .9063rem; color: var(--navy-600); text-align: center; }
.form-status.error { color: #b0432c; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: rgba(255, 255, 255, .7); padding: 48px 0 32px; }
.footer-inner { display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 26px; }
.footer-nav a { font-size: .9375rem; text-decoration: none; transition: color .2s; }
.footer-nav a:hover { color: var(--teal-400); }
.copy { grid-column: 1 / -1; margin: 0; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .8438rem; }

/* ---------- Animación de entrada (solo si hay JS) ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.in { opacity: 1; transform: none; }
.cards .reveal:nth-child(2), .pillars .reveal:nth-child(2), .steps .reveal:nth-child(2), .audience .reveal:nth-child(2) { transition-delay: .08s; }
.cards .reveal:nth-child(3), .pillars .reveal:nth-child(3), .steps .reveal:nth-child(3) { transition-delay: .16s; }
.cards .reveal:nth-child(4), .pillars .reveal:nth-child(4), .steps .reveal:nth-child(4) { transition-delay: .24s; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .cards, .pillars, .steps { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px 24px 24px; background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px -28px rgba(8, 39, 54, .5);
    display: none;
  }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav a:not(.btn)::after { display: none; }
  .nav .btn { margin-top: 18px; }

  .hero-grid, .about, .contact { grid-template-columns: 1fr; }
  .hero-visual { max-width: 520px; }
  .float-card { left: 16px; }
  .about-mark { max-width: 220px; }
  .footer-inner { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  body { font-size: 1rem; }
  .container { padding-inline: 20px; }
  .cards, .pillars, .steps, .audience, .values { grid-template-columns: 1fr; }
  .brand-text small { display: none; }
  .brand-text strong { font-size: .95rem; }
  .pillar-num { margin-bottom: 18px; }
  .panel { padding: 20px; }
  .panel-badge { display: none; }
  .contact-list li { flex-direction: column; gap: 4px; }
  .contact-list span { flex: none; }
  .hero-actions .btn { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
