/* ============================================================
   Coco Global Group LLC — hoja de estilos
   Marca: fondo navy #010a2d (color del logo), texto blanco.
   Acento dorado sutil en --accent (cambiar/quitar en un solo lugar).
   ============================================================ */

:root {
  --bg:        #01092d;   /* fondo de pagina = fondo EXACTO del logo (rgb 1,9,45) */
  --bg-2:      #0a1640;   /* tarjetas / superficies elevadas */
  --bg-3:      #061033;   /* secciones alternas */
  --fg:        #ffffff;   /* texto principal (blanco) */
  --fg-muted:  rgba(255,255,255,.74);
  --fg-dim:    rgba(255,255,255,.55);
  --line:      rgba(255,255,255,.12);
  --line-soft: rgba(255,255,255,.07);
  --accent:    #c9a45c;   /* dorado champagne (acento sutil) */
  --accent-2:  #e6c789;
  --maxw: 1180px;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 18px 50px rgba(0,0,0,.45);
  --ease: cubic-bezier(.4,0,.2,1);
  --header-h: 112px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, "Apple Color Emoji", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  text-align: justify;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3 { line-height: 1.15; font-weight: 700; letter-spacing: -.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.15rem; }
p  { margin: 0 0 1rem; color: var(--fg-muted); }

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

.eyebrow {
  display: inline-block;
  font-size: .78rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 14px;
}
.rule { width: 56px; height: 3px; background: var(--accent); border-radius: 2px; margin: 18px 0; }
.center .rule { margin-left: auto; margin-right: auto; }
.center { text-align: center; }
.lead { font-size: 1.12rem; color: var(--fg-muted); max-width: 60ch; }
.center .lead { margin-left: auto; margin-right: auto; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 26px; border-radius: 999px;
  font-weight: 600; font-size: .98rem; cursor: pointer;
  border: 1px solid transparent; transition: transform .2s var(--ease), background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: #1a1204; }
.btn-primary:hover { background: var(--accent-2); }
.btn-ghost { background: transparent; color: var(--fg); border-color: rgba(255,255,255,.35); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.center .btn-row { justify-content: center; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center;
  background: var(--bg);   /* navy solido = color del logo, para que el logo se funda siempre */
  transition: border-color .3s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  border-bottom-color: var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; width: 100%; }
.brand-logo { display: flex; align-items: center; gap: 12px; }
.brand-logo img { height: 104px; width: auto; }
.brand-logo .brand-name { font-weight: 700; font-size: 1.02rem; letter-spacing: .01em; white-space: nowrap; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  position: relative; padding: 9px 14px; font-size: .95rem; font-weight: 500;
  color: var(--fg-muted); border-radius: 8px; transition: color .2s var(--ease);
}
.nav a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease);
}
.nav a:hover { color: var(--fg); }
.nav a:hover::after, .nav a.active::after { transform: scaleX(1); }
.nav a.active { color: var(--fg); }

.header-actions { display: flex; align-items: center; gap: 14px; }

/* Selector de idioma */
.lang-switch { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.lang-switch button {
  background: transparent; color: var(--fg-dim); border: 0; cursor: pointer;
  font: inherit; font-size: .82rem; font-weight: 600; padding: 6px 12px; transition: background .2s, color .2s;
}
.lang-switch button.active { background: var(--accent); color: #1a1204; }
.lang-switch button:not(.active):hover { color: var(--fg); }

/* Hamburguesa */
.nav-toggle {
  display: none; background: transparent; border: 0; cursor: pointer; padding: 8px; color: var(--fg);
}
.nav-toggle svg { width: 26px; height: 26px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 88vh; display: flex; align-items: center;
  padding: calc(var(--header-h) + 40px) 0 80px;
  background: var(--bg);
}
.hero-bg { position: absolute; inset: 0; overflow: hidden; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(1,9,45,1) 0, rgba(1,9,45,.92) 130px, rgba(1,9,45,.5) 360px, rgba(1,9,45,.92) 100%),
    linear-gradient(90deg, rgba(1,9,45,.7) 0%, rgba(1,9,45,.15) 100%);
}
.hero .container { position: relative; z-index: 1; }
.hero-content { max-width: 760px; }
.hero h1 { margin-bottom: .35em; text-transform: uppercase; }
.hero .hero-sub { font-size: 1.22rem; color: var(--fg-muted); margin-bottom: 28px; max-width: 52ch; }
.hero-company {
  font-size: 1.22rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: #ffffff;
  margin: 0 0 .25em;
  text-align: left;
}
.hero .regions {
  margin-top: 30px; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--fg-dim);
}

/* ---------- Secciones ---------- */
.section { padding: 92px 0; }
.section.alt { background: var(--bg-3); }
.section-head { max-width: 720px; margin-bottom: 52px; }
.section-head.center { margin-left: auto; margin-right: auto; }

/* Intro home (texto + imagen ya cubierta por hero; bloque de valor) */
.valueblock { max-width: 820px; }

/* ---------- Grid de tarjetas (servicios) ---------- */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--bg-2); border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: 28px 26px; transition: transform .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease);
  height: 100%;
}
.card:hover { transform: translateY(-4px); border-color: rgba(201,164,92,.5); box-shadow: var(--shadow); }
.card .icon {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(201,164,92,.12); color: var(--accent); margin-bottom: 18px;
}
.card .icon svg { width: 24px; height: 24px; }
.card h3 { margin-bottom: .4em; }
.card p { color: var(--fg-dim); font-size: .96rem; margin: 0; }

/* ---------- About (imagen + texto) ---------- */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.split .media img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.mission {
  margin-top: 26px; padding: 22px 24px; border-left: 3px solid var(--accent);
  background: var(--bg-2); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.mission .label { font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); font-weight: 600; }
.mission p { margin: 8px 0 0; color: var(--fg); font-size: 1.05rem; }

/* ---------- Benefits ---------- */
.benefits-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; list-style: none; padding: 0; margin: 0; }
.benefits-list li {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--bg-2); border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: 24px 24px;
}
.benefits-list .check {
  flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%;
  background: rgba(201,164,92,.14); color: var(--accent); display: grid; place-items: center;
}
.benefits-list .check svg { width: 18px; height: 18px; }
.benefits-list span.txt { font-weight: 500; color: var(--fg); }

/* ---------- Banda con imagen de fondo (secciones interiores) ---------- */
.pagehead {
  position: relative; padding: calc(var(--header-h) + 72px) 0 72px; overflow: hidden;
}
.pagehead .pagehead-bg { position: absolute; inset: 0; z-index: 0; }
.pagehead .pagehead-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .5; }
.pagehead .pagehead-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(1,9,45,1) 0, rgba(1,9,45,.82) 130px, rgba(1,9,45,.78) 60%, rgba(1,9,45,.94) 100%);
}
.pagehead .container { position: relative; z-index: 1; }
.pagehead h1 { margin: 0; }

/* ---------- Contacto ---------- */
.contact-card {
  max-width: 720px; margin: 0 auto; background: var(--bg-2);
  border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: 44px 40px; text-align: center; box-shadow: var(--shadow);
}
.contact-rows { display: flex; flex-wrap: wrap; gap: 18px 48px; justify-content: center; margin: 26px 0 30px; }
.contact-row .label { font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-dim); }
.contact-row .val { font-size: 1.12rem; font-weight: 600; }
.contact-row .val a:hover { color: var(--accent); }

/* ---------- CTA final ---------- */
.cta-band { text-align: center; }
.cta-band h2 { margin-bottom: .3em; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 46px 0 34px; background: var(--bg); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand img { height: 40px; width: auto; border-radius: 6px; }
.footer-tag { color: var(--fg); font-size: .9rem; font-weight: 700; letter-spacing: .06em; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footer-nav a { color: var(--fg-muted); font-size: .9rem; }
.footer-nav a:hover { color: var(--accent); }
.footer-bottom { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line-soft); color: var(--fg-dim); font-size: .84rem; text-align: center; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Menu movil ---------- */
.nav-backdrop { display: none; }

@media (max-width: 900px) {
  :root { --header-h: 88px; }
  .brand-logo img { height: 74px; }
  .nav-toggle { display: inline-flex; order: 3; }
  .nav {
    position: fixed; top: 0; right: 0; bottom: 0; width: min(320px, 82vw);
    flex-direction: column; align-items: stretch; gap: 4px;
    background: var(--bg-2); padding: calc(var(--header-h) + 12px) 20px 30px;
    transform: translateX(100%); transition: transform .3s var(--ease);
    border-left: 1px solid var(--line); z-index: 105;
  }
  body.nav-open .nav { transform: none; }
  .nav a { padding: 14px 12px; font-size: 1.05rem; }
  .nav a::after { display: none; }
  .nav a.active { background: rgba(255,255,255,.06); }
  .nav-backdrop { display: block; position: fixed; inset: 0; background: rgba(0,0,0,.5); opacity: 0; visibility: hidden; transition: opacity .3s; z-index: 104; }
  body.nav-open .nav-backdrop { opacity: 1; visibility: visible; }
  .split { grid-template-columns: 1fr; gap: 34px; }
  .split .media { order: -1; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .benefits-list { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  :root { --header-h: 72px; }
  .brand-logo img { height: 58px; }
  body { font-size: 16px; }
  .section { padding: 66px 0; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .brand-logo .brand-name { display: none; }
  .contact-card { padding: 34px 22px; }
  .hero { min-height: 92vh; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none; }
  .btn:hover, .card:hover { transform: none; }
}
