/* Sistema de diseño AMB·IQ — común a todas las páginas */
:root {
  --brand: #ff6600;
  --brand-dark: #d94f00;
  --brand-soft: #fff2e8;
  --ink: #1e1a17;
  --muted: #6b625b;
  --bg: #ffffff;
  --soft: #faf6f2;
  --border: #efe7e0;
  --radius: 16px;
  --shadow: 0 14px 34px rgba(0,0,0,.07);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink); background: var(--bg); line-height: 1.6; -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 1.25rem; }

/* Header */
header.site {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.9); backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: flex; align-items: center; gap: .6rem; font-weight: 700; font-size: 1.2rem; letter-spacing: .5px; }
.logo .mark { width: 34px; height: 34px; border-radius: 9px; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 1.1rem; }
.logo strong { color: var(--brand); }
nav.links { display: flex; gap: 1.6rem; font-weight: 500; }
nav.links a { color: var(--muted); transition: color .15s; }
nav.links a:hover, nav.links a.active { color: var(--brand); }
.nav-cta { background: var(--brand); color: #fff; padding: .5rem 1rem; border-radius: 999px; font-weight: 600; font-size: .92rem; transition: background .15s; }
.nav-cta:hover { background: var(--brand-dark); }
@media (max-width: 760px) { nav.links { display: none; } }

/* Botones */
.btn { display: inline-flex; align-items: center; gap: .5rem; padding: .85rem 1.5rem; border-radius: 999px; font-weight: 700; font-size: 1rem; transition: transform .12s, background .15s, box-shadow .15s; }
.btn-primary { background: #fff; color: var(--brand); box-shadow: 0 8px 24px rgba(0,0,0,.14); }
.btn-primary:hover { transform: translateY(-2px); }
.btn-ghost { background: rgba(255,255,255,.14); color: #fff; border: 1.5px solid rgba(255,255,255,.55); }
.btn-ghost:hover { background: rgba(255,255,255,.24); }
.btn-solid { background: var(--brand); color: #fff; }
.btn-solid:hover { background: var(--brand-dark); transform: translateY(-2px); }
.btn-outline { border: 1.5px solid var(--brand); color: var(--brand); background: #fff; }
.btn-outline:hover { background: var(--brand-soft); }

/* Hero */
.hero { background: linear-gradient(135deg, #ff7a1a 0%, #ff6600 55%, #e85600 100%); color: #fff; padding: 5rem 0 4.5rem; }
.hero.small { padding: 3.5rem 0 3rem; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.3rem); line-height: 1.1; font-weight: 800; letter-spacing: -.5px; max-width: 18ch; }
.hero .kicker { font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; font-size: .82rem; opacity: .9; margin-bottom: .6rem; }
.hero p { font-size: clamp(1.05rem, 2.2vw, 1.28rem); margin-top: 1.3rem; max-width: 62ch; opacity: .96; }
.hero .actions { margin-top: 2.1rem; display: flex; gap: .9rem; flex-wrap: wrap; }

/* Secciones */
section.block { padding: 4.5rem 0; }
section.block.soft { background: var(--soft); }
.eyebrow { color: var(--brand); font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; font-size: .82rem; }
h2.title { font-size: clamp(1.6rem, 3.4vw, 2.3rem); font-weight: 800; letter-spacing: -.3px; margin-top: .4rem; }
.lead { color: var(--muted); font-size: 1.1rem; margin-top: .8rem; max-width: 66ch; }
h3.sub { font-size: 1.3rem; font-weight: 750; margin: 2rem 0 .5rem; }
p.body { color: var(--muted); margin-top: .8rem; max-width: 68ch; }
ul.checks { color: var(--muted); margin: 1rem 0 0 0; list-style: none; }
ul.checks li { position: relative; padding-left: 1.6rem; margin: .4rem 0; }
ul.checks li::before { content: "✓"; position: absolute; left: 0; color: var(--brand); font-weight: 800; }

/* Grid de proyectos / tarjetas */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 2.5rem; }
.grid.two { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid, .grid.two { grid-template-columns: 1fr; } }
.card { border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; background: var(--bg); transition: transform .15s, box-shadow .15s, border-color .15s; display: block; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #ffd9bd; }
.card .ico { width: 46px; height: 46px; border-radius: 12px; background: var(--soft); display: grid; place-items: center; font-size: 1.5rem; margin-bottom: 1rem; }
.card h3 { font-size: 1.15rem; font-weight: 750; }
.card .tag { display: inline-block; font-size: .76rem; font-weight: 700; color: var(--brand); background: var(--brand-soft); padding: .15rem .6rem; border-radius: 999px; margin: .5rem 0; }
.card p { color: var(--muted); margin-top: .35rem; font-size: .97rem; }
.card .more { color: var(--brand); font-weight: 700; font-size: .9rem; margin-top: .8rem; display: inline-block; }

/* Estado badges */
.state { display: inline-block; font-size: .74rem; font-weight: 700; padding: .18rem .65rem; border-radius: 999px; }
.state.op { background: #e8f5e9; color: #2e7d32; }
.state.pilot { background: #e3f2fd; color: #1565c0; }
.state.dev { background: #fff8e1; color: #f57f17; }
.state.explore { background: #f3e5f5; color: #7b1fa2; }

/* Galería */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; margin-top: 1.5rem; }
@media (max-width: 620px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
.gallery img { border-radius: 12px; aspect-ratio: 4/3; object-fit: cover; width: 100%; border: 1px solid var(--border); }
.gallery .ph { border-radius: 12px; aspect-ratio: 4/3; background: var(--soft); border: 1px dashed var(--border); display: grid; place-items: center; color: var(--muted); font-size: .85rem; text-align: center; padding: 1rem; }

/* Datos / stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 1.5rem; }
@media (max-width: 700px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat { background: var(--bg); border: 1px solid var(--border); border-radius: 12px; padding: 1.1rem; }
.stat b { display: block; font-size: 1.5rem; color: var(--brand); }
.stat span { color: var(--muted); font-size: .9rem; }

/* Acceso interno */
.internal { text-align: center; }
.internal .box { margin-top: 2rem; background: linear-gradient(135deg, #ff7a1a, #e85600); color: #fff; border-radius: 24px; padding: 2.6rem 1.5rem; }
.internal .box h2 { color: #fff; }
.internal .box p { opacity: .95; max-width: 55ch; margin: .7rem auto 0; }
.internal .box a.enter { display: inline-block; margin-top: 1.3rem; background: #fff; color: var(--brand); font-weight: 700; padding: .8rem 1.7rem; border-radius: 999px; }
.lock { font-size: .85rem; opacity: .85; margin-top: .8rem; }

/* Contacto */
.contact-box { margin-top: 2rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
@media (max-width: 700px) { .contact-box { grid-template-columns: 1fr; } }
.contact-box .item { border: 1px solid var(--border); border-radius: 12px; padding: 1.2rem; }
.contact-box .item b { display: block; color: var(--brand); font-size: .85rem; text-transform: uppercase; letter-spacing: .5px; }
.contact-box .item a, .contact-box .item span { color: var(--ink); font-size: 1.05rem; }

/* Footer */
footer.site { border-top: 1px solid var(--border); padding: 2.5rem 0; color: var(--muted); font-size: .95rem; }
.foot { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.foot .brands { display: flex; gap: 1.2rem; flex-wrap: wrap; }

/* Breadcrumb */
.crumb { color: rgba(255,255,255,.85); font-size: .9rem; margin-bottom: .6rem; }
.crumb a { text-decoration: underline; }

/* Imagen destacada (hero visual) */
.featured img { width: 100%; height: clamp(260px, 46vw, 520px); object-fit: cover; display: block; }
