/* ============================================
   CRONEM CONSULTORES — Design tokens
   ============================================ */
:root {
  --navy: #002060;
  --navy-deep: #001433;
  --green: #00B050;
  --green-teal: #00B08A;
  --mint: #EAF8F1;
  --bg: #FAFAF8;
  --bg-alt: #F2F3F1;
  --text: #2B2E33;
  --text-muted: #656B72;
  --border: #E4E3DD;
  --serif: "Source Serif 4", Georgia, serif;
  --sans: "Work Sans", -apple-system, Segoe UI, sans-serif;
  --maxw: 1120px;
  --radius: 6px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 32px;
}

h1, h2, h3 {
  font-family: var(--serif);
  color: var(--navy);
  font-weight: 600;
  line-height: 1.2;
}

h2 { font-size: 32px; margin-bottom: 16px; }
h3 { font-size: 20px; margin-bottom: 8px; }
p { color: var(--text-muted); max-width: 62ch; }

.eyebrow-dot {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--green-teal);
  font-weight: 500;
  margin-bottom: 10px;
}
.eyebrow-dot::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--green), var(--green-teal));
  flex-shrink: 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 500;
  font-family: var(--sans);
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn-solid {
  background: var(--navy);
  color: #fff;
}
.btn-solid:hover { background: var(--navy-deep); }
.btn-outline {
  border-color: var(--navy);
  color: var(--navy);
  background: transparent;
}
.btn-outline:hover { background: var(--navy); color: #fff; }
/* Hero CTA only — targets the existing .btn-solid inside .hero, no HTML class change needed */
.hero .btn-solid {
  background: #79BD96;
  border-color: #79BD96;
}
.hero .btn-solid:hover { background: #67A882; border-color: #67A882; }

/* Top contact bar */
.topbar {
  background: var(--navy-deep);
  color: #C9CEDA;
  font-size: 13px;
  padding: 8px 0;
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.topbar-info {
  display: flex;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
}
.topbar-item {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #C9CEDA;
  transition: color 0.15s ease;
}
.topbar-item svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  color: #7FD9B0;
}
.topbar-item:hover { color: #fff; }
@media (max-width: 980px) {
  .topbar-address { display: none; }
}
@media (max-width: 620px) {
  .topbar-item span { display: none; }
  .topbar-info { gap: 18px; }
}

/* Header / nav */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 250, 248, 0.94);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 32px;
  max-width: var(--maxw);
  margin: 0 auto;
}
.logo img { height: 34px; }
nav ul {
  list-style: none;
  display: flex;
  gap: 32px;
  align-items: center;
}
nav a {
  font-size: 15px;
  font-weight: 500;
  color: var(--navy);
}
nav a:hover { color: var(--green-teal); }
.lang-switch {
  display: flex;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
}
.lang-switch a {
  padding: 4px 8px;
  border-radius: 4px;
  color: var(--text-muted);
}
.lang-switch a.active {
  color: var(--navy);
  background: var(--mint);
}
.nav-linkedin {
  display: flex;
  align-items: center;
  padding-left: 16px;
  margin-left: 2px;
  border-left: 1px solid var(--border);
}
.nav-linkedin a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  flex-shrink: 0;
  transition: background 0.15s ease;
}
.nav-linkedin svg { width: 14px; height: 14px; }
.nav-linkedin a:hover { background: #0A66C2; }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 4px;
  padding: 6px;
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--navy);
  display: block;
}

/* Hero */
.hero {
  padding: 88px 0 72px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}
.hero h1 {
  font-size: 44px;
  margin-bottom: 20px;
}
.hero p.lead {
  font-size: 18px;
  max-width: 46ch;
  margin-bottom: 32px;
}
.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.hero-stats {
  background: var(--bg-alt);
  border-radius: 12px;
  padding: 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.stat-num {
  font-family: var(--serif);
  font-size: 34px;
  color: var(--navy);
  font-weight: 600;
}
.stat-label {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Sections */
section { padding: 72px 0; }
.section-alt { background: var(--bg-alt); }

.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: start;
}
.principles {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 24px;
}
.principle {
  display: flex;
  gap: 14px;
  align-items: center;
}
.principle .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--green), var(--green-teal));
  flex-shrink: 0;
}
.principle strong { color: var(--navy); display: block; font-size: 15px; }
.principle span { color: var(--text-muted); font-size: 14px; }
.principle > div > span:empty { display: none; }

/* Clients strip */
.clients-label {
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 20px;
}
.clients-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 40px;
  opacity: 0.75;
}
.clients-row span {
  font-family: var(--serif);
  font-size: 17px;
  color: var(--navy);
  font-weight: 600;
}

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}
.service-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 28px;
}
.service-card ul {
  list-style: none;
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.service-card li {
  font-size: 14.5px;
  color: var(--text-muted);
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.service-card li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green-teal);
  margin-top: 7px;
  flex-shrink: 0;
}
.service-sectors {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-size: 12.5px;
  color: var(--text-muted);
}
.service-sectors strong {
  color: var(--navy);
  font-weight: 500;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 56px;
}
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 24px;
}
.contact-info .item { display: flex; gap: 12px; align-items: flex-start; }
.contact-info .item strong { display: block; color: var(--navy); font-size: 14px; }
.contact-info .item span { font-size: 14px; color: var(--text-muted); }
.map-embed {
  margin-top: 24px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.map-embed iframe { display: block; width: 100%; height: 220px; border: 0; }
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; }

form { display: flex; flex-direction: column; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label {
  font-size: 13px;
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 6px;
  display: block;
}
input, select, textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--sans);
  font-size: 14.5px;
  background: #fff;
  color: var(--text);
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--green-teal);
}
textarea { resize: vertical; min-height: 100px; }
.form-note {
  font-size: 12.5px;
  color: var(--text-muted);
}
.form-status {
  font-size: 14px;
  padding: 10px 14px;
  border-radius: var(--radius);
  display: none;
}
.form-status.ok { display: block; background: var(--mint); color: #0A6B3F; }
.form-status.err { display: block; background: #FBEAEA; color: #A32D2D; }

/* Footer */
footer {
  background: var(--navy-deep);
  color: #C9CEDA;
  padding: 48px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
footer .logo-white { font-family: var(--serif); font-size: 20px; color: #fff; margin-bottom: 10px; }
footer h4 { font-size: 13px; color: #fff; margin-bottom: 14px; font-weight: 500; }
footer ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
footer a { font-size: 14px; color: #C9CEDA; }
footer a:hover { color: var(--green-teal); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 20px;
  font-size: 13px;
  color: #8890A0;
}

/* Hero carousel */
.hero {
  padding: 0;
  position: relative;
  overflow: hidden;
  color: #fff;
}
.hero-track {
  display: flex;
  width: 300%;
  transition: transform 0.7s cubic-bezier(0.65, 0.05, 0.36, 1);
}
.hero-slide {
  width: 33.3333%;
  flex-shrink: 0;
  min-height: 580px;
  display: flex;
  align-items: center;
  background-color: var(--navy-deep);
  background-size: cover;
  background-position: center;
}
.hero-inner { max-width: 760px; padding: 90px 0; }
.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.4);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  transition: background 0.15s ease;
}
.hero-arrow:hover { background: rgba(255,255,255,0.3); }
.hero-arrow-prev { left: 20px; }
.hero-arrow-next { right: 20px; }
.hero-dots {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 5;
}
.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}
.hero-dot.active { background: #fff; transform: scale(1.2); }
@media (max-width: 860px) {
  .hero-arrow { width: 36px; height: 36px; font-size: 18px; }
  .hero-arrow-prev { left: 10px; }
  .hero-arrow-next { right: 10px; }
}
@media (max-width: 600px) {
  .hero-arrow { display: none; }
}
.hero .eyebrow-dot { color: #A7F0D2; }
.hero .eyebrow-dot::before { background: radial-gradient(circle at 35% 30%, var(--green), var(--green-teal)); }
.hero h1 { color: #fff; font-size: 44px; margin-bottom: 20px; }
.hero p.lead { color: rgba(255,255,255,0.88); }
.hero-stats-row {
  display: grid;
  grid-template-columns: repeat(4, auto);
  gap: 40px;
  margin-top: 48px;
}
.hero-stats-row .stat-num { color: #fff; font-size: 28px; }
.hero-stats-row .stat-label { color: rgba(255,255,255,0.72); }

/* Secondary image banner (below hero, like the current site) */
.banner-img {
  padding: 88px 0;
  text-align: center;
  color: #fff;
  background-color: var(--navy);
  background-image: linear-gradient(180deg, rgba(0,32,96,0.78), rgba(0,32,96,0.6)), url('../img/banner-bg.jpg');
  background-size: cover;
  background-position: center;
}
.banner-img .wrap { max-width: 760px; }
.banner-img h2 { color: #fff; }
.banner-img p { color: rgba(255,255,255,0.88); margin: 0 auto; }

/* Stats band between Servicios and Clientes */
.stats-band { background: var(--navy-deep); padding: 48px 0; }
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stats-row .stat-num { color: #fff; }
.stats-row .stat-label { color: #9AA3B8; }

/* Service icons */
.service-icon {
  width: 42px;
  height: 42px;
  color: var(--green-teal);
  margin-bottom: 14px;
}

/* Client logos */
.clients-row img {
  height: 38px;
  width: auto;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.75;
  transition: opacity 0.15s ease, filter 0.15s ease;
}
.clients-row img:hover { filter: none; opacity: 1; }
@media (max-width: 980px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .hero-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 32px; }
  .hero-inner { padding: 64px 0; }
  .hero-stats-row { grid-template-columns: repeat(2, auto); }
  .stats-row { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .banner-img { padding: 56px 0; }
  nav ul.nav-links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--bg);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 32px;
    border-bottom: 1px solid var(--border);
    display: none;
  }
  nav ul.nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
  .nav-linkedin { padding-left: 0; margin-left: 0; border-left: none; }
  .form-row { grid-template-columns: 1fr; }
}

/* Privacy notice modal */
.form-note a { color: var(--navy); text-decoration: underline; font-weight: 500; }
.privacy-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 20, 51, 0.55);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.privacy-modal.open { display: flex; }
.privacy-modal-card {
  background: #fff;
  border-radius: 12px;
  max-width: 560px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  padding: 32px;
  position: relative;
}
.privacy-modal-card h3 { margin-bottom: 14px; }
.privacy-modal-card p { color: var(--text-muted); font-size: 14px; margin-bottom: 12px; max-width: none; }
.privacy-modal-card strong { color: var(--navy); }
.privacy-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: none;
  border: none;
  font-size: 22px;
  line-height: 1;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px 8px;
}
.privacy-modal-close:hover { color: var(--navy); }
