/* =========================================================
   Multiservicios GCC — estilos.css
   Design system: 01_Documentacion/03_Identidad_Visual_y_Design_System.md
   ========================================================= */

:root {
  /* Color */
  --gcc-blue: #1f7ae0;
  --gcc-blue-text: #1666c2;
  --gcc-night: #0a2e5c;
  --gcc-night-2: #0e3f7e;
  --gcc-signal: #5eb8ff;
  --gcc-amber: #f5a524;
  --gcc-amber-hover: #e69410;
  --gcc-steel: #5b6b7f;
  --gcc-mist: #eef3f9;
  --gcc-line: #d5deea;
  --gcc-white: #ffffff;
  --gcc-whatsapp: #25d366;
  --gcc-on-night-muted: #c9d6e6;

  /* Tipografía */
  --font: "Archivo", "Segoe UI", system-ui, -apple-system, sans-serif;
  --fs-display: clamp(2.5rem, 1.6rem + 3.6vw, 4.25rem);
  --fs-h1: clamp(2.125rem, 1.5rem + 2.4vw, 3.25rem);
  --fs-h2: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem);
  --fs-h3: clamp(1.3125rem, 1.2rem + 0.4vw, 1.625rem);
  --fs-body: clamp(1.0625rem, 1rem + 0.15vw, 1.125rem);
  --fs-small: 0.9375rem;

  /* Espacio y forma */
  --container: 1200px;
  --gutter: clamp(1.25rem, 0.8rem + 2vw, 2.5rem);
  --section: clamp(4rem, 3rem + 4vw, 7rem);
  --radius-sm: 8px;
  --radius: 12px;
  --header-h: 76px;
  --header-h-compact: 62px;
  --focus: 0 0 0 3px var(--gcc-white), 0 0 0 6px var(--gcc-signal);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--gcc-night);
  background: var(--gcc-white);
  font-variation-settings: "wdth" 100;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--gcc-blue-text); text-underline-offset: 3px; }
a:hover { color: var(--gcc-night); }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 4px; }

h1, h2, h3, h4 {
  font-family: var(--font);
  font-weight: 800;
  font-stretch: 87%;
  font-variation-settings: "wdth" 87;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  color: var(--gcc-night);
  text-wrap: balance;
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: 1.2; }
p { margin: 0 0 1em; max-width: 68ch; }

.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 200;
  background: var(--gcc-night); color: var(--gcc-white);
  padding: 0.75rem 1rem; border-radius: var(--radius-sm); font-weight: 600;
}
.skip-link:focus { top: 1rem; color: var(--gcc-white); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

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

.section { padding-block: var(--section); }
.section--mist { background: var(--gcc-mist); }
.section--night { background: var(--gcc-night); color: var(--gcc-white); }
.section--night h2, .section--night h3 { color: var(--gcc-white); }

.section-head { display: grid; gap: 0.5rem 3rem; margin-bottom: clamp(2rem, 1.5rem + 2vw, 3.5rem); }
.section-head p { color: var(--gcc-steel); margin: 0; }
@media (min-width: 900px) {
  .section-head--split { grid-template-columns: 1fr 1fr; align-items: end; }
  .section-head--split .section-head__aside { justify-self: end; text-align: right; }
}
.section--night .section-head p { color: var(--gcc-on-night-muted); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  min-height: 48px; padding: 0.7rem 1.35rem;
  border-radius: var(--radius-sm); border: 2px solid transparent;
  font: 600 1rem/1.2 var(--font); text-decoration: none; cursor: pointer;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn--primary { background: var(--gcc-amber); color: var(--gcc-night); }
.btn--primary:hover { background: var(--gcc-amber-hover); color: var(--gcc-night); }
.btn--secondary { border-color: var(--gcc-blue-text); color: var(--gcc-blue-text); background: transparent; }
.btn--secondary:hover { background: var(--gcc-blue-text); color: var(--gcc-white); }
.btn--ghost-light { border-color: rgba(255, 255, 255, 0.55); color: var(--gcc-white); }
.btn--ghost-light:hover { background: var(--gcc-white); color: var(--gcc-night); }
.btn--night { background: var(--gcc-night); color: var(--gcc-white); }
.btn--night:hover { background: var(--gcc-night-2); color: var(--gcc-white); }

.link-arrow { font-weight: 600; text-decoration: none; display: inline-flex; gap: 0.4rem; align-items: center; white-space: nowrap; }
.link-arrow svg { width: 20px; height: 20px; flex: none; }
.link-arrow:hover { text-decoration: underline; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--gcc-white);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.site-header.is-compact { border-bottom-color: var(--gcc-line); }
.site-header__inner {
  display: flex; align-items: center; gap: 1.5rem;
  height: var(--header-h); transition: height 0.2s;
}
.site-header.is-compact .site-header__inner { height: var(--header-h-compact); }
.brand { display: inline-flex; flex: none; }
.brand img { height: 54px; width: auto; transition: height 0.2s; }
.site-header.is-compact .brand img { height: 44px; }
@media (max-width: 599px) { .brand img { height: 46px; } }

.nav { margin-left: auto; }
.nav__list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 0.25rem; }
.nav__link, .nav__toggle {
  display: inline-flex; align-items: center; gap: 0.3rem;
  min-height: 44px; padding: 0.5rem 0.75rem; border-radius: var(--radius-sm);
  font: 500 1rem/1 var(--font); color: var(--gcc-night); text-decoration: none;
  background: none; border: 0; cursor: pointer;
}
.nav__link:hover, .nav__toggle:hover { background: var(--gcc-mist); color: var(--gcc-night); }
.nav__link[aria-current="page"] { color: var(--gcc-blue-text); box-shadow: inset 0 -3px 0 var(--gcc-blue); border-radius: 0; }
.nav__toggle svg { width: 14px; height: 14px; transition: transform 0.2s; }
.nav__toggle[aria-expanded="true"] svg { transform: rotate(180deg); }

.nav__item--has-menu { position: relative; }
.submenu {
  position: absolute; top: calc(100% + 8px); left: -0.5rem; min-width: 330px;
  list-style: none; margin: 0; padding: 0.5rem;
  background: var(--gcc-white); border: 1px solid var(--gcc-line); border-radius: var(--radius);
  display: none;
}
.submenu.is-open { display: block; }
.submenu a {
  display: block; padding: 0.65rem 0.85rem; border-radius: var(--radius-sm);
  color: var(--gcc-night); text-decoration: none; font-size: 0.975rem; line-height: 1.35;
}
.submenu a:hover, .submenu a:focus-visible { background: var(--gcc-mist); }
.submenu__all { border-top: 1px solid var(--gcc-line); margin-top: 0.35rem; padding-top: 0.35rem; }
.submenu__all a { color: var(--gcc-blue-text); font-weight: 600; }

.header-actions { display: flex; align-items: center; gap: 0.75rem; flex: none; }
.header-phone {
  display: inline-flex; align-items: center; gap: 0.45rem; font-weight: 600;
  color: var(--gcc-night); text-decoration: none; white-space: nowrap;
}
.header-phone svg { width: 18px; height: 18px; color: var(--gcc-blue); }

.menu-btn {
  display: none; margin-left: auto; width: 48px; height: 48px; border-radius: var(--radius-sm);
  border: 1px solid var(--gcc-line); background: var(--gcc-white); color: var(--gcc-night); cursor: pointer;
  align-items: center; justify-content: center;
}
.menu-btn svg { width: 24px; height: 24px; }

@media (max-width: 1180px) { .header-phone { display: none; } }

@media (max-width: 1023px) {
  .menu-btn { display: inline-flex; }
  .header-actions .btn { display: none; }
  .nav {
    position: fixed; inset: 0; z-index: 150; margin: 0;
    background: var(--gcc-white); padding: 1rem var(--gutter) 2rem;
    display: none; flex-direction: column; overflow-y: auto;
  }
  .nav.is-open { display: flex; }
  .nav__mobile-head { display: flex !important; align-items: center; justify-content: space-between; height: 60px; margin-bottom: 1rem; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__link, .nav__toggle {
    width: 100%; justify-content: space-between; min-height: 56px;
    font-size: 1.25rem; font-weight: 600; border-bottom: 1px solid var(--gcc-line); border-radius: 0;
  }
  .nav__link[aria-current="page"] { box-shadow: none; }
  .submenu { position: static; min-width: 0; border: 0; padding: 0.25rem 0 0.75rem 0.5rem; }
  .nav__mobile-cta { display: grid !important; gap: 0.75rem; margin-top: 1.5rem; }
}
.nav__mobile-head, .nav__mobile-cta { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(2.5rem, 2rem + 3vw, 5rem) clamp(3rem, 2rem + 4vw, 6rem); }
.hero__grid { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 960px) { .hero__grid { grid-template-columns: 1.05fr 1fr; gap: 3rem; } }

.hero h1 { font-size: var(--fs-display); max-width: 15ch; }
.hero__lead { font-size: clamp(1.125rem, 1rem + 0.4vw, 1.3rem); color: var(--gcc-steel); max-width: 46ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }

.hero__picker { margin-top: 2.5rem; }
.hero__picker-label { font-size: var(--fs-small); color: var(--gcc-steel); margin-bottom: 0.6rem; }
.hero__picker-list { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; margin: 0; padding: 0; }
.chip {
  min-height: 44px; padding: 0.55rem 1rem; border-radius: 999px;
  border: 1.5px solid var(--gcc-line); background: var(--gcc-white); color: var(--gcc-night);
  font: 500 0.975rem/1 var(--font); cursor: pointer;
}
.chip:hover { border-color: var(--gcc-blue); }
.chip[aria-pressed="true"] { background: var(--gcc-night); border-color: var(--gcc-night); color: var(--gcc-white); }

/* Arco G-llave */
.arc { position: relative; width: min(100%, 560px); aspect-ratio: 1; margin-inline: auto; }
.arc__photo {
  position: absolute; inset: 14%; border-radius: 50%; overflow: hidden; background: var(--gcc-mist);
}
.arc__photo img { width: 100%; height: 100%; object-fit: cover; transition: opacity 0.35s; }
.arc__photo img.is-fading { opacity: 0; }
.arc__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.arc__ring { fill: none; stroke: var(--gcc-blue); stroke-width: 7.5; stroke-dasharray: 1; stroke-dashoffset: 0; }
.arc.is-drawing .arc__ring { animation: arc-draw 0.9s cubic-bezier(.6,.05,.25,1) forwards; }
.arc__head { fill: var(--gcc-blue); }
.arc.is-drawing .arc__head { opacity: 0; animation: fade-in 0.3s 0.75s forwards; }
@keyframes arc-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes fade-in { to { opacity: 1; } }

.arc__bar {
  position: absolute; top: 50%; left: 50%; right: -4%;
  transform: translateY(-50%);
  background: var(--gcc-night); color: var(--gcc-white);
  padding: 0.85rem 1.1rem 0.85rem 1.25rem; min-height: 64px;
  display: flex; flex-direction: column; justify-content: center;
}
.arc__bar small { color: var(--gcc-signal); font-size: 0.85rem; font-weight: 500; }
.arc__bar strong { font-size: clamp(1.05rem, 0.95rem + 0.4vw, 1.3rem); font-weight: 700; line-height: 1.2; font-stretch: 90%; }
.arc__bar a { color: inherit; text-decoration: none; }
.arc__bar a::after { content: ""; position: absolute; inset: 0; }
.arc__bar:hover { background: var(--gcc-night-2); }
@media (max-width: 599px) { .arc__bar { right: -2%; left: 38%; } }

/* ---------- Page hero (internas) ---------- */
.page-hero { position: relative; color: var(--gcc-white); background: var(--gcc-night); isolation: isolate; }
.page-hero__img { position: absolute; inset: 0; z-index: -2; }
.page-hero__img img { width: 100%; height: 100%; object-fit: cover; }
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(10, 46, 92, 0.94) 0%, rgba(10, 46, 92, 0.82) 45%, rgba(10, 46, 92, 0.35) 100%);
}
.page-hero__inner { padding-block: clamp(3rem, 2rem + 4vw, 6rem); }
.page-hero h1 { color: var(--gcc-white); max-width: 20ch; }
.page-hero p { color: var(--gcc-on-night-muted); font-size: 1.15rem; max-width: 56ch; }
.page-hero .hero__actions { margin-top: 1.5rem; }
.page-hero--plain::before { background: none; }

.breadcrumbs { font-size: var(--fs-small); margin-bottom: 1.25rem; }
.breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.35rem; }
.breadcrumbs li + li::before { content: "/"; margin-right: 0.35rem; color: var(--gcc-signal); }
.breadcrumbs a { color: var(--gcc-on-night-muted); }
.breadcrumbs a:hover { color: var(--gcc-white); }
.breadcrumbs [aria-current] { color: var(--gcc-white); }

/* ---------- Nosotros resumen ---------- */
.about { display: grid; gap: 3rem; }
@media (min-width: 900px) { .about { grid-template-columns: 1fr 1fr; align-items: start; } }
.about__photo { border-radius: var(--radius); overflow: hidden; background: var(--gcc-mist); aspect-ratio: 4 / 3; }
.about__photo img { width: 100%; height: 100%; object-fit: cover; }
.values { list-style: none; margin: 2rem 0 2rem; padding: 0; display: grid; gap: 1.25rem 2rem; }
@media (min-width: 600px) { .values { grid-template-columns: 1fr 1fr; } }
.values li { display: grid; grid-template-columns: 40px 1fr; gap: 0.85rem; align-items: start; }
.values svg { width: 40px; height: 40px; padding: 8px; border-radius: 10px; background: var(--gcc-mist); color: var(--gcc-blue); }
.values strong { display: block; font-size: 1.05rem; }
.values span { color: var(--gcc-steel); font-size: var(--fs-small); line-height: 1.45; }

/* ---------- Cifras ---------- */
.stats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 1.5rem; }
@media (min-width: 900px) { .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.stats__num .pending { font-size: 1.25rem; vertical-align: middle; }
.stats li { border-left: 3px solid var(--gcc-blue); padding-left: 1.1rem; }
.stats__num {
  display: block; font-size: clamp(2.5rem, 2rem + 2vw, 3.6rem); font-weight: 800; font-stretch: 87%;
  line-height: 1; color: var(--gcc-white); font-variant-numeric: tabular-nums;
}
.stats__label { color: var(--gcc-signal); font-size: 1rem; margin-top: 0.4rem; display: block; }

/* ---------- Servicios ---------- */
.services { list-style: none; margin: 0; padding: 0; display: grid; gap: 2rem 1.5rem; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); }
.service { display: flex; flex-direction: column; }
.service__img { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; background: var(--gcc-mist); margin-bottom: 1rem; }
.service__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.service:hover .service__img img { transform: scale(1.04); }
.service h3 { font-size: 1.3rem; margin-bottom: 0.35rem; }
.service h3 a { color: var(--gcc-night); text-decoration: none; }
.service h3 a::after { content: ""; position: absolute; inset: 0; }
.service { position: relative; }
.service p { color: var(--gcc-steel); font-size: var(--fs-small); line-height: 1.5; margin-bottom: 0.75rem; }
.service__more { margin-top: auto; font-weight: 600; color: var(--gcc-blue-text); font-size: 0.975rem; }
.service:hover h3 a { color: var(--gcc-blue-text); }
.service:focus-within { outline: none; }
.service h3 a:focus-visible { box-shadow: none; }
.service h3 a:focus-visible::after { box-shadow: var(--focus); border-radius: var(--radius); }

/* ---------- Proceso ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 2rem; counter-reset: step; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(4, 1fr); gap: 1.5rem; } }
.steps li { counter-increment: step; padding-top: 1.25rem; border-top: 2px solid var(--gcc-line); position: relative; }
.steps li::before {
  content: counter(step); position: absolute; top: -1.05rem; left: 0;
  width: 2.1rem; height: 2.1rem; border-radius: 50%; background: var(--gcc-night); color: var(--gcc-white);
  display: grid; place-items: center; font-weight: 700; font-size: 0.95rem;
}
.steps h3 { font-size: 1.2rem; margin-top: 0.5rem; }
.steps p { color: var(--gcc-steel); font-size: var(--fs-small); margin: 0; }

/* ---------- Proyectos ---------- */
.projects { display: grid; gap: 1.5rem; }
@media (min-width: 900px) {
  .projects--featured { grid-template-columns: 1.4fr 1fr; grid-template-rows: 1fr 1fr; }
  .projects--featured .project:first-child { grid-row: span 2; }
}
.projects--grid { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.project { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--gcc-night); min-height: 280px; display: flex; isolation: isolate; }
.project img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 0.5s; }
.project::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10,46,92,0) 35%, rgba(10,46,92,0.92) 100%); }
.project:hover img { transform: scale(1.04); }
.project__body { margin-top: auto; padding: 1.5rem; color: var(--gcc-white); }
.project__tag { display: inline-block; font-size: 0.8rem; font-weight: 600; color: var(--gcc-night); background: var(--gcc-signal); padding: 0.2rem 0.55rem; border-radius: 4px; margin-bottom: 0.6rem; }
.project h3 { color: var(--gcc-white); font-size: 1.35rem; margin-bottom: 0.3rem; }
.project p { color: var(--gcc-on-night-muted); font-size: var(--fs-small); margin: 0; }

/* ---------- Clientes / marcas ---------- */
.logos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1rem; }
.logos li {
  min-height: 96px; border: 1px dashed var(--gcc-line); border-radius: var(--radius);
  display: grid; place-items: center; text-align: center; padding: 1rem;
  color: var(--gcc-steel); font-size: 0.9rem; background: var(--gcc-white);
}
.logos img { max-height: 56px; width: auto; filter: grayscale(1); opacity: 0.75; transition: filter 0.2s, opacity 0.2s; }
.logos li:hover img { filter: none; opacity: 1; }

/* ---------- CTA final ---------- */
.cta { background: var(--gcc-night); color: var(--gcc-white); border-radius: var(--radius); padding: clamp(2rem, 1.5rem + 3vw, 4rem); display: grid; gap: 1.5rem; position: relative; overflow: hidden; }
@media (min-width: 900px) { .cta { grid-template-columns: 1.4fr 1fr; align-items: center; } }
.cta h2 { color: var(--gcc-white); margin-bottom: 0.4rem; }
.cta p { color: var(--gcc-on-night-muted); margin: 0; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
@media (min-width: 900px) { .cta__actions { justify-content: flex-end; } }
.cta__mark { position: absolute; right: -60px; bottom: -80px; width: 320px; opacity: 0.07; pointer-events: none; }

/* ---------- Detalle de servicio ---------- */
.detail { display: grid; gap: 3rem; }
@media (min-width: 960px) { .detail { grid-template-columns: 1.6fr 1fr; align-items: start; } }
.checklist { list-style: none; margin: 0 0 2rem; padding: 0; display: grid; gap: 0.75rem; }
@media (min-width: 640px) { .checklist--2 { grid-template-columns: 1fr 1fr; gap: 0.75rem 1.5rem; } }
.checklist li { display: grid; grid-template-columns: 24px 1fr; gap: 0.6rem; align-items: start; line-height: 1.45; }
.checklist svg { width: 24px; height: 24px; color: var(--gcc-blue); margin-top: 1px; }
.aside-card { border: 1px solid var(--gcc-line); border-radius: var(--radius); padding: 1.75rem; position: sticky; top: calc(var(--header-h-compact) + 1.5rem); }
.aside-card h2 { font-size: 1.4rem; }
.aside-card p { color: var(--gcc-steel); font-size: var(--fs-small); }
.aside-card .btn { width: 100%; margin-top: 0.6rem; }
.aside-card hr { border: 0; border-top: 1px solid var(--gcc-line); margin: 1.5rem 0; }
.aside-card ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.35rem; font-size: var(--fs-small); }

.faq details { border-bottom: 1px solid var(--gcc-line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 1.1rem 2.5rem 1.1rem 0; position: relative;
  font-weight: 600; font-size: 1.075rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0.25rem; top: 50%; transform: translateY(-50%); font-size: 1.5rem; color: var(--gcc-blue); font-weight: 400; }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--gcc-steel); padding-bottom: 1rem; margin: 0; }

.prose h2 { margin-top: 2.5rem; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.75rem; }
.prose ul { padding-left: 1.25rem; }
.prose li { margin-bottom: 0.4rem; }

/* ---------- Contacto ---------- */
.contact-cards { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.contact-card { border: 1px solid var(--gcc-line); border-radius: var(--radius); padding: 1.75rem; display: flex; flex-direction: column; gap: 0.5rem; }
.contact-card svg.contact-card__icon { width: 44px; height: 44px; padding: 10px; border-radius: 10px; background: var(--gcc-mist); color: var(--gcc-blue); margin-bottom: 0.5rem; }
.contact-card h2 { font-size: 1.3rem; margin: 0; }
.contact-card p { color: var(--gcc-steel); margin: 0 0 0.75rem; font-size: var(--fs-small); }
.contact-card .btn { margin-top: auto; }
.contact-card--wa svg.contact-card__icon { color: #128c4b; background: #e7f8ee; }
.map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--gcc-line); aspect-ratio: 16 / 9; background: var(--gcc-mist); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }
.info-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.info-list strong { display: block; }
.info-list span { color: var(--gcc-steel); }

/* ---------- Productos ---------- */
.products { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.product { border: 1px solid var(--gcc-line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.product__img { aspect-ratio: 16 / 10; background: var(--gcc-mist); }
.product__img img { width: 100%; height: 100%; object-fit: cover; }
.product__body { padding: 1.4rem; display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.product__body h2 { font-size: 1.3rem; margin: 0; }
.product__body p { color: var(--gcc-steel); font-size: var(--fs-small); margin: 0 0 0.75rem; }
.product__body .btn { margin-top: auto; align-self: flex-start; }

/* ---------- Footer ---------- */
.site-footer { background: var(--gcc-night); color: var(--gcc-on-night-muted); padding-top: clamp(3.5rem, 3rem + 2vw, 5rem); font-size: var(--fs-small); }
.footer-grid { display: grid; gap: 2.5rem; }
@media (min-width: 700px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; } }
.footer-brand img { height: 68px; width: auto; margin-bottom: 1.25rem; }
.footer-brand p { max-width: 34ch; }
.site-footer h2 { color: var(--gcc-white); font-size: 1.05rem; font-stretch: 100%; font-weight: 700; letter-spacing: 0; margin-bottom: 1rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.site-footer a { color: var(--gcc-on-night-muted); text-decoration: none; }
.site-footer a:hover { color: var(--gcc-white); text-decoration: underline; }
.footer-contact li { display: grid; grid-template-columns: 20px 1fr; gap: 0.6rem; align-items: start; }
.footer-contact svg { width: 18px; height: 18px; color: var(--gcc-signal); margin-top: 2px; }
.social { display: flex !important; gap: 0.5rem !important; margin-top: 1rem !important; }
.social a { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.25); display: grid; place-items: center; }
.social a:hover { background: var(--gcc-white); color: var(--gcc-night); text-decoration: none; }
.social svg { width: 18px; height: 18px; }
.footer-bottom { margin-top: 3rem; padding-block: 1.5rem; border-top: 1px solid rgba(255,255,255,0.12); display: flex; flex-wrap: wrap; gap: 0.5rem 2rem; justify-content: space-between; }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 90;
  width: 60px; height: 60px; border-radius: 50%; background: var(--gcc-whatsapp); color: var(--gcc-white);
  display: grid; place-items: center; box-shadow: 0 6px 18px rgba(10, 46, 92, 0.28);
}
.wa-float svg { width: 32px; height: 32px; }
.wa-float:hover { color: var(--gcc-white); transform: scale(1.05); }

/* ---------- 404 ---------- */
.notfound { text-align: left; padding-block: clamp(4rem, 3rem + 6vw, 8rem); }
.notfound__code { font-size: clamp(5rem, 3rem + 8vw, 9rem); font-weight: 800; font-stretch: 87%; color: var(--gcc-blue); line-height: 1; }

/* ---------- Utilidades ---------- */
.mt-0 { margin-top: 0; }
.muted { color: var(--gcc-steel); }
.pending { background: #fff4dc; color: #7a4a00; padding: 0 0.25rem; border-radius: 3px; }
.img-missing { opacity: 0 !important; }
.arc__jaw { fill: var(--gcc-white); }
.notfound__h2 { margin-top: 2.5rem; font-size: 1.4rem; }
.nav__mobile-head img { height: 38px; width: auto; }

/* =========================================================
   Interactividad: buscador, cursor, botones
   ========================================================= */

/* Botón de búsqueda en el header */
.search-btn {
  display: inline-flex; align-items: center; gap: 0.5rem; min-height: 44px;
  padding: 0.45rem 0.6rem 0.45rem 0.75rem; border-radius: var(--radius-sm);
  border: 1px solid var(--gcc-line); background: var(--gcc-white); color: var(--gcc-steel);
  font: 500 0.95rem/1 var(--font); cursor: pointer; transition: border-color 0.15s, color 0.15s;
}
.search-btn:hover { border-color: var(--gcc-blue); color: var(--gcc-night); }
.search-btn svg { width: 18px; height: 18px; }
.search-btn kbd, .search__hint kbd {
  font: 600 0.75rem/1 var(--font); padding: 0.2rem 0.4rem; border-radius: 4px;
  background: var(--gcc-mist); color: var(--gcc-steel); border: 1px solid var(--gcc-line);
}
@media (max-width: 1280px) { .search-btn__label, .search-btn kbd { display: none; } .search-btn { padding: 0; width: 44px; justify-content: center; } }
@media (max-width: 1023px) { .header-actions { margin-left: auto; } .menu-btn--open { margin-left: 0.5rem; } }

/* Diálogo de búsqueda */
.search {
  width: min(680px, calc(100% - 2rem)); max-height: min(640px, calc(100% - 4rem));
  margin: 8vh auto auto; padding: 0; border: 0; border-radius: 16px;
  background: var(--gcc-white); color: var(--gcc-night);
  box-shadow: 0 24px 60px rgba(10, 46, 92, 0.28); overflow: hidden;
}
.search[open] { display: flex; flex-direction: column; animation: search-in 0.18s ease-out; }
.search::backdrop { background: rgba(10, 46, 92, 0.55); backdrop-filter: blur(3px); }
@keyframes search-in { from { opacity: 0; transform: translateY(-8px) scale(0.98); } to { opacity: 1; transform: none; } }
.search__form { display: flex; align-items: center; gap: 0.75rem; padding: 0.9rem 1.1rem; border-bottom: 1px solid var(--gcc-line); }
.search__icon { width: 22px; height: 22px; color: var(--gcc-blue); flex: none; }
.search__input {
  flex: 1; min-width: 0; border: 0; outline: 0; background: transparent;
  font: 500 1.15rem/1.4 var(--font); color: var(--gcc-night); padding: 0.4rem 0;
}
.search__input::placeholder { color: #8796a8; }
.search__input::-webkit-search-cancel-button { display: none; }
.search__close {
  border: 1px solid var(--gcc-line); background: var(--gcc-mist); color: var(--gcc-steel);
  border-radius: 6px; padding: 0.35rem 0.55rem; font: 600 0.8rem/1 var(--font); cursor: pointer; min-height: 32px;
}
.search__results { list-style: none; margin: 0; padding: 0.5rem; overflow-y: auto; }
.search__results li a {
  display: grid; gap: 0.15rem; padding: 0.75rem 0.9rem; border-radius: 10px;
  text-decoration: none; color: var(--gcc-night);
}
.search__results li[aria-selected="true"] a, .search__results li a:hover { background: var(--gcc-mist); }
.search__results li[aria-selected="true"] a { box-shadow: inset 3px 0 0 var(--gcc-blue); }
.search__group { font-size: 0.78rem; font-weight: 600; color: var(--gcc-blue-text); }
.search__results strong { font-size: 1.02rem; }
.search__desc { font-size: 0.9rem; color: var(--gcc-steel); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.search mark { background: #ffe7b8; color: inherit; border-radius: 2px; padding: 0 1px; }
.search__empty { padding: 1rem 1.4rem 1.25rem; margin: 0; color: var(--gcc-steel); }
.search__hint { margin: 0; padding: 0.7rem 1.1rem; border-top: 1px solid var(--gcc-line); font-size: 0.8rem; color: var(--gcc-steel); display: flex; gap: 0.35rem; align-items: center; flex-wrap: wrap; max-width: none; }
@media (hover: none) { .search__hint { display: none; } }

/* Cursor personalizado (se suma al cursor normal, no lo reemplaza) */
.cursor {
  position: fixed; left: 0; top: 0; z-index: 300; pointer-events: none;
  width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%;
  border: 2px solid var(--gcc-blue); opacity: 0;
  display: grid; place-items: center;
  transition: width 0.2s, height 0.2s, margin 0.2s, background-color 0.2s, border-color 0.2s, opacity 0.2s;
}
.cursor.is-visible { opacity: 0.55; }
.cursor.is-link { width: 52px; height: 52px; margin: -26px 0 0 -26px; background: rgba(31, 122, 224, 0.12); border-color: var(--gcc-blue); opacity: 1; }
.cursor.is-card { width: 92px; height: 92px; margin: -46px 0 0 -46px; background: var(--gcc-night); border-color: var(--gcc-night); opacity: 0.92; }
.cursor.is-down { width: 26px; height: 26px; margin: -13px 0 0 -13px; }
.cursor__label { color: var(--gcc-white); font: 600 0.78rem/1.1 var(--font); text-align: center; opacity: 0; transition: opacity 0.15s; }
.cursor.is-card .cursor__label { opacity: 1; }

/* Botones: movimiento, pulsación y onda */
.btn, .chip { position: relative; overflow: hidden; transition: background-color 0.15s, color 0.15s, border-color 0.15s, box-shadow 0.2s, transform 0.25s cubic-bezier(.2,.8,.3,1); }
.wa-float { transition: transform 0.25s cubic-bezier(.2,.8,.3,1); }
.btn:active, .chip:active { transform: scale(0.97); }
.btn--primary:hover { box-shadow: 0 8px 20px rgba(245, 165, 36, 0.35); }
.ripple {
  position: absolute; border-radius: 50%; pointer-events: none;
  background: currentColor; opacity: 0.18; transform: scale(0);
  animation: ripple 0.6s ease-out forwards;
}
@keyframes ripple { to { transform: scale(1); opacity: 0; } }
.link-arrow svg, .service__more { transition: transform 0.2s; }
.link-arrow:hover svg { transform: translateX(4px); }
.service:hover .service__more { transform: translateX(4px); }
.service__more { display: inline-block; }
.nav__link, .nav__toggle { position: relative; }
@media (min-width: 1024px) {
  .nav__link::after { content: ""; position: absolute; left: 0.75rem; right: 0.75rem; bottom: 6px; height: 2px; background: var(--gcc-blue); transform: scaleX(0); transform-origin: left; transition: transform 0.2s; }
  .nav__link:hover::after { transform: scaleX(1); }
  .nav__link:hover { background: transparent; }
}

/* Volver arriba */
.to-top {
  position: fixed; right: 1.25rem; bottom: 6rem; z-index: 89;
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  background: var(--gcc-white); color: var(--gcc-night); border: 1px solid var(--gcc-line);
  box-shadow: 0 4px 14px rgba(10, 46, 92, 0.15);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top svg { width: 22px; height: 22px; }
.to-top:hover { background: var(--gcc-night); color: var(--gcc-white); }
.search__input:focus-visible { box-shadow: none; }
.search__form:focus-within { box-shadow: inset 0 -2px 0 var(--gcc-blue); }
@media (max-width: 1023px) { .site-header__inner { gap: 0.5rem; } .menu-btn--open { margin-left: 0; } }
.section--night h2 + .stats { margin-top: 2.25rem; }

/* Marcas (nombres en texto) */
.brands { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0.75rem; }
.brands li {
  min-height: 72px; display: grid; place-items: center; text-align: center; padding: 0.75rem;
  background: var(--gcc-white); border: 1px solid var(--gcc-line); border-radius: var(--radius);
  font-weight: 700; font-size: 1.1rem; font-stretch: 90%; letter-spacing: 0.01em; color: var(--gcc-steel);
  transition: color 0.2s, border-color 0.2s, transform 0.2s;
}
.brands li:hover { color: var(--gcc-night); border-color: var(--gcc-blue); transform: translateY(-2px); }
.brands-title { font-size: 1.15rem; color: var(--gcc-steel); font-stretch: 100%; font-weight: 600; margin: 2.5rem 0 1rem; }

/* Sectores atendidos (en lugar de logos mientras se autorizan) */
.sectors { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .sectors { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 960px) { .sectors { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.sectors li {
  display: grid; grid-template-columns: 44px 1fr; grid-template-rows: auto auto; column-gap: 0.9rem; align-items: center;
  padding: 1.15rem 1.25rem; background: var(--gcc-white); border: 1px solid var(--gcc-line); border-radius: var(--radius);
  transition: border-color 0.2s, transform 0.2s;
}
.sectors li:hover { border-color: var(--gcc-blue); transform: translateY(-2px); }
.sectors svg { grid-row: span 2; width: 44px; height: 44px; padding: 10px; border-radius: 10px; background: var(--gcc-mist); color: var(--gcc-blue); }
.sectors strong { font-size: 1.05rem; line-height: 1.25; }
.sectors span { font-size: var(--fs-small); color: var(--gcc-steel); line-height: 1.4; }
.section--mist .sectors svg { background: var(--gcc-mist); }
.sectors__note { display: inline-flex; align-items: center; gap: 0.5rem; margin: 1.25rem 0 0; font-size: 0.875rem; color: var(--gcc-steel); }
.sectors__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gcc-blue); box-shadow: 0 0 0 0 rgba(31, 122, 224, 0.5); animation: pulse-dot 2s infinite; }
@keyframes pulse-dot { 70% { box-shadow: 0 0 0 7px rgba(31, 122, 224, 0); } 100% { box-shadow: 0 0 0 0 rgba(31, 122, 224, 0); } }

/* Logos de clientes */
.client-logos { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.client-logos li {
  min-height: 110px; display: grid; place-items: center; padding: 1.25rem 1.5rem;
  background: var(--gcc-white); border: 1px solid var(--gcc-line); border-radius: var(--radius);
  transition: border-color 0.2s, transform 0.2s;
}
.client-logos img { max-height: 44px; width: auto; filter: grayscale(1); opacity: 0.8; transition: filter 0.25s, opacity 0.25s; }
.client-logos li:hover { border-color: var(--gcc-blue); transform: translateY(-2px); }
.client-logos li:hover img { filter: none; opacity: 1; }
.client-logos + .brands-title { margin-top: 2.25rem; }

/* =========================================================
   Banda de marcas: carrusel arrastrable + tarjetas que giran
   ========================================================= */
.brands-band { position: relative; isolation: isolate; overflow: hidden; color: var(--gcc-white); padding-block: clamp(4rem, 3rem + 4vw, 6.5rem); background: var(--gcc-night); }
.brands-band__bg { position: absolute; inset: 0; z-index: -2; }
.brands-band__bg img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 0.2s linear; will-change: transform; }
.brands-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(10, 46, 92, 0.84); }
.brands-band__head { margin-bottom: 2.5rem; }
.brands-band__head h2 { color: var(--gcc-white); margin-bottom: 0.4rem; }
.brands-band__head p { color: var(--gcc-on-night-muted); margin: 0; }
.brands-band__rows { display: grid; gap: 1rem; }
.brands-band__hint { margin-top: 1.5rem; margin-bottom: 0; font-size: 0.85rem; color: var(--gcc-signal); display: flex; align-items: center; gap: 0.5rem; }
.brands-band__hint::before { content: "⟷"; font-size: 1.1rem; }
@media (hover: none) { .brands-band__hint::after { content: " · toca una marca para ver su nombre"; } }

.marquee {
  display: flex; overflow-x: auto; overflow-y: hidden; scrollbar-width: none;
  cursor: grab; user-select: none; -webkit-user-select: none;
  mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
}
.marquee::-webkit-scrollbar { display: none; }
.marquee.is-dragging { cursor: grabbing; }
.marquee.is-dragging .brand { pointer-events: none; }
.marquee__track { list-style: none; margin: 0; padding: 0.4rem 0.5rem; display: flex; gap: 1rem; flex: none; }

.brand { flex: none; width: 196px; height: 108px; perspective: 900px; outline: none; }
.brand__inner { position: relative; display: block; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform 0.6s cubic-bezier(.2,.8,.2,1); }
.brand:hover .brand__inner, .brand:focus-visible .brand__inner, .brand.is-flipped .brand__inner { transform: rotateY(180deg); }
.brand:focus-visible .brand__inner { box-shadow: var(--focus); border-radius: var(--radius); }
.brand__front, .brand__back {
  position: absolute; inset: 0; border-radius: var(--radius); backface-visibility: hidden; -webkit-backface-visibility: hidden;
  display: grid; place-items: center; text-align: center; padding: 1rem;
}
.brand__front { background: var(--gcc-white); border: 1px solid rgba(255, 255, 255, 0.6); }
.brand__logo { max-width: 130px; max-height: 46px; width: auto; height: auto; object-fit: contain; }
.brand__mono { display: none; }
.brand.no-logo .brand__logo { display: none; }
.brand.no-logo .brand__mono {
  display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%;
  border: 2px solid var(--gcc-line); color: var(--gcc-night);
  font: 800 1.35rem/1 var(--font); font-stretch: 87%; letter-spacing: 0.02em;
}
.brand__back {
  transform: rotateY(180deg); background: var(--gcc-blue); color: var(--gcc-white);
  box-shadow: inset 0 -4px 0 var(--gcc-amber); align-content: center; gap: 0.3rem;
}
.brand__back strong { font: 800 1.45rem/1.05 var(--font); font-stretch: 87%; letter-spacing: -0.01em; }
.brand__back small { font-size: 0.8rem; color: #dcecff; font-weight: 500; }

@media (prefers-reduced-motion: reduce) {
  .brand__inner { transition: none; transform: none !important; }
  .brand__back { transform: none; opacity: 0; transition: opacity 0.2s; }
  .brand:hover .brand__back, .brand:focus-visible .brand__back, .brand.is-flipped .brand__back { opacity: 1; }
}
