/* Big One de Costa Rica — sitio estático
   Colores tomados de la configuración original del sitio (2024). */
:root {
  --teal: #03a9a0;
  --teal-dark: #027f78;
  --navy: #023551;
  --navy-deep: #01243a;
  --blue: #0345bf;
  --ink: #1f2a33;
  --muted: #5b6b77;
  --line: #e3e9ee;
  --soft: #f3f7f9;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(2, 53, 81, .10);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--white); line-height: 1.65; font-size: 17px; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--teal-dark); }
h1, h2, h3 { line-height: 1.2; color: var(--navy); margin: 0 0 .5em; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); letter-spacing: -.01em; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

.container { width: min(1180px, 100% - 32px); margin-inline: auto; }
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section--soft { background: var(--soft); }
.section--navy { background: var(--navy); color: #d9e6ee; }
.section--navy h2, .section--navy h3 { color: var(--white); }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--teal); margin-bottom: .6rem; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 780px; }
.section-head { margin-bottom: 40px; }
.section-head.center { text-align: center; }
.section-head.center .lead { margin-inline: auto; }

.btn { display: inline-flex; align-items: center; gap: .5rem; padding: .85rem 1.5rem; border-radius: 999px; font-weight: 700; text-decoration: none; border: 2px solid transparent; cursor: pointer; font-size: 1rem; font-family: inherit; transition: background .2s, color .2s, transform .2s; }
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--teal); color: var(--white); }
.btn--primary:hover { background: var(--teal-dark); }
.btn--ghost { border-color: rgba(255,255,255,.7); color: var(--white); }
.btn--ghost:hover { background: rgba(255,255,255,.12); }
.btn--outline { border-color: var(--teal); color: var(--teal-dark); background: transparent; }
.btn--outline:hover { background: var(--teal); color: var(--white); }
.btn svg { width: 1.15em; height: 1.15em; }

/* Barra superior */
.topbar { background: var(--navy); color: #b9cbd6; font-size: .88rem; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 7px 0; flex-wrap: wrap; }
.topbar a { color: #e6f0f5; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.topbar a:hover { color: var(--white); }
.topbar svg { width: 15px; height: 15px; fill: var(--teal); }
.topbar__contact { display: flex; gap: 20px; flex-wrap: wrap; }

/* Encabezado */
.header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.94); backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid var(--line); }
.header .container { display: flex; align-items: center; justify-content: space-between; height: 84px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { height: 72px; width: auto; }
.nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.nav a { display: block; padding: 8px 14px; border-radius: 8px; text-decoration: none; color: var(--navy); font-weight: 600; font-size: .97rem; }
.nav a:hover, .nav a.active { color: var(--teal-dark); background: var(--soft); }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 26px; height: 3px; background: var(--navy); margin: 5px 0; border-radius: 2px; transition: .25s; }

/* Hero */
.hero { position: relative; min-height: min(78vh, 720px); display: grid; align-items: center; color: var(--white); overflow: hidden; background: var(--navy-deep); }
.hero__slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity 1.4s ease; }
.hero__slide.is-active { opacity: 1; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(1,36,58,.92) 0%, rgba(2,53,81,.75) 45%, rgba(3,169,160,.25) 100%); }
.hero__content { position: relative; z-index: 2; padding: 80px 0; }
.hero h1 { color: var(--white); font-size: clamp(2.4rem, 6vw, 4.2rem); font-weight: 800; letter-spacing: .02em; margin-bottom: .2em; }
.hero__tagline { font-size: clamp(1.25rem, 2.6vw, 1.8rem); font-weight: 300; margin-bottom: 1.4rem; color: #e3f4f3; }
.hero__pills { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 2rem; padding: 0; list-style: none; }
.hero__pills li { border: 1px solid rgba(255,255,255,.35); background: rgba(255,255,255,.08); padding: 6px 14px; border-radius: 999px; font-size: .92rem; }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Intro / líneas de negocio */
.lines { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 44px; }
.line-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; text-decoration: none; color: inherit; transition: box-shadow .2s, transform .2s, border-color .2s; }
.line-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: var(--teal); }
.line-card .icon { width: 54px; height: 54px; border-radius: 12px; display: grid; place-items: center; background: rgba(3,169,160,.12); margin-bottom: 16px; }
.line-card .icon svg { width: 28px; height: 28px; stroke: var(--teal-dark); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.line-card p { color: var(--muted); margin: 0; }
.line-card .more { display: inline-block; margin-top: 14px; font-weight: 700; color: var(--teal-dark); }

/* Tarjetas de servicio TI */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.card img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.card__body { padding: 24px 24px 28px; }
.card__sub { color: var(--teal-dark); font-weight: 600; font-size: .95rem; margin-bottom: .7rem; }
.card p:last-child { color: var(--muted); margin: 0; font-size: .97rem; }

/* Bloques imagen + texto */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.split--reverse .split__media { order: 2; }
.split__media img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; aspect-ratio: 16 / 11; object-fit: cover; }

/* Energía */
.energy { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.energy-card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.energy-card__media { position: relative; aspect-ratio: 16 / 8; overflow: hidden; }
.energy-card__media img { width: 100%; height: 100%; object-fit: cover; }
.energy-card__media .tag { position: absolute; top: 16px; left: 16px; background: var(--teal); color: var(--white); font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; }
.energy-card__media--art { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 55%, var(--teal-dark) 140%); display: grid; place-items: center; }
.energy-card__media--art svg { width: 46%; max-width: 260px; height: auto; }
.energy-card__body { padding: 28px; flex: 1; display: flex; flex-direction: column; }
.energy-card__body p { color: var(--muted); }
.checks { list-style: none; padding: 0; margin: 0 0 1.4rem; display: grid; gap: 8px; }
.checks li { position: relative; padding-left: 30px; }
.checks li::before { content: ""; position: absolute; left: 0; top: .3em; width: 18px; height: 18px; border-radius: 50%; background: rgba(3,169,160,.15) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23027f78' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 11px no-repeat; }
.energy-card .btn { margin-top: auto; align-self: flex-start; }

/* Impresión 3D */
.print-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 5vw, 56px); align-items: start; }
.print-art { background: linear-gradient(150deg, #04406a 0%, var(--navy-deep) 60%); border-radius: var(--radius); padding: 32px; display: grid; place-items: center; min-height: 340px; }
.print-art svg { width: 100%; max-width: 360px; height: auto; }
.apps { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 1.4rem 0 1.8rem; }
.app { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: 12px; padding: 16px 18px; }
.app strong { color: var(--white); display: block; margin-bottom: 2px; }
.app span { font-size: .93rem; color: #b6cad6; }
.materials { display: flex; flex-wrap: wrap; gap: 8px; margin: .6rem 0 1.8rem; padding: 0; list-style: none; }
.materials li { background: rgba(3,169,160,.18); color: #bff1ed; border: 1px solid rgba(3,169,160,.45); padding: 5px 12px; border-radius: 999px; font-size: .9rem; font-weight: 600; }
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 48px; padding: 0; list-style: none; }
.steps li { counter-increment: step; background: rgba(255,255,255,.05); border-radius: 12px; padding: 20px; border-top: 3px solid var(--teal); }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--teal); color: var(--white); font-weight: 800; margin-bottom: 10px; }
.steps strong { color: var(--white); display: block; }
.steps span { font-size: .93rem; color: #b6cad6; }

/* Galería 3D (se muestra solo cuando tiene fotos) */
.gallery-wrap { margin-top: 56px; }
.gallery-wrap:has(.gallery:empty) { display: none; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.gallery figure { margin: 0; border-radius: 12px; overflow: hidden; background: #0b2f47; }
.gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .4s; }
.gallery figure:hover img { transform: scale(1.05); }
.gallery figcaption { font-size: .88rem; padding: 10px 12px; color: #c8d9e3; }

/* Nosotros: valores */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.value { background: var(--white); border-radius: var(--radius); padding: 30px 28px; border: 1px solid var(--line); }
.value .icon { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--navy); margin-bottom: 18px; }
.value .icon svg { width: 26px; height: 26px; stroke: var(--teal); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.value p { color: var(--muted); margin: 0; font-size: .97rem; }

/* Contacto */
.contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 5vw, 56px); align-items: start; }
.contact__media img { border-radius: var(--radius); aspect-ratio: 16 / 9; object-fit: cover; width: 100%; margin-top: 30px; }
.contact__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.contact__list a { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy); font-weight: 600; }
.contact__list .ci { width: 44px; height: 44px; border-radius: 50%; background: rgba(3,169,160,.12); display: grid; place-items: center; flex: none; }
.contact__list svg { width: 20px; height: 20px; fill: var(--teal-dark); }
.form { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(22px, 4vw, 36px); display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form .full { grid-column: 1 / -1; }
.form label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; color: var(--navy); }
.form input, .form select, .form textarea { width: 100%; padding: 12px 14px; border: 1px solid #cfd9e0; border-radius: 10px; font: inherit; font-size: 1rem; color: var(--ink); background: #fbfdfe; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 3px solid rgba(3,169,160,.25); border-color: var(--teal); }
.form textarea { min-height: 130px; resize: vertical; }
.form__actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.form__note { font-size: .85rem; color: var(--muted); margin: 0; }
.form__error { color: #b3261e; font-size: .9rem; margin: 0; display: none; }
.form__error.show { display: block; }

/* Pie de página */
.footer { background: #101a21; color: #9fb0bb; padding: 48px 0 28px; font-size: .95rem; }
.footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 32px; margin-bottom: 32px; }
.footer h4 { color: var(--white); margin: 0 0 12px; font-size: 1rem; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.footer a { color: #c5d3db; text-decoration: none; }
.footer a:hover { color: var(--white); }
.footer__logo { background: var(--white); border-radius: 12px; padding: 8px 12px; display: inline-block; margin-bottom: 14px; }
.footer__logo img { height: 56px; width: auto; }
.footer__bottom { border-top: 1px solid #24333d; padding-top: 20px; padding-right: 72px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .88rem; }

/* WhatsApp flotante */
.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 60; width: 58px; height: 58px; border-radius: 50%; background: #25d366; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0,0,0,.25); transition: transform .2s; }
.wa-float:hover { transform: scale(1.07); }
.wa-float svg { width: 32px; height: 32px; fill: var(--white); }

/* Animación de aparición */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__slide { transition: none; }
}

/* Responsive */
@media (max-width: 1000px) {
  .cards, .values, .lines { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .print-grid, .contact { grid-template-columns: 1fr; }
  .contact__media { display: none; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav { position: absolute; top: 84px; left: 0; right: 0; background: var(--white); border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgba(0,0,0,.08); display: none; }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; padding: 10px 16px 16px; }
  .nav a { padding: 12px 10px; }
  .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); }
  .split, .energy { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .cards, .values, .lines, .apps, .steps, .footer__grid { grid-template-columns: 1fr; }
  .form { grid-template-columns: 1fr; }
  .topbar__hours { display: none; }
  .header .container { height: 72px; }
  .nav { top: 72px; }
  .brand img { height: 60px; }
}
