/* IG Solutions — igsolutionstx.com
   Paleta del logo: azul profundo, azul cielo, naranja de la llave. */
:root {
  --navy: #163B6E;
  --blue: #1E6FC2;
  --sky: #3FA3E8;
  --orange: #F26A1B;
  --orange-dark: #D8520C;
  --ink: #16202B;
  --muted: #5A6B7C;
  --line: #DCE4EC;
  --paper: #F5F8FB;
  --white: #FFFFFF;
  --max: 1160px;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(22, 59, 110, .12);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; color: var(--ink); background: var(--white);
  font-family: 'Barlow', system-ui, -apple-system, Segoe UI, sans-serif;
  font-size: 17px; line-height: 1.55;
}
h1, h2, h3, .display {
  font-family: 'Barlow Condensed', 'Barlow', sans-serif;
  font-weight: 800; letter-spacing: .01em; line-height: 1.05; margin: 0;
  text-transform: uppercase;
}
h1 { font-size: clamp(42px, 6.2vw, 78px); }
h2 { font-size: clamp(32px, 4.2vw, 52px); }
h3 { font-size: 26px; }
p { margin: 0 0 1em; }
a { color: var(--blue); }
img { max-width: 100%; display: block; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 22px; }
.kicker {
  font-family: 'Barlow Condensed', sans-serif; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; font-size: 14px; color: var(--orange); margin-bottom: 10px;
}
.lead { font-size: 20px; color: var(--muted); max-width: 640px; }

/* Botones */
.btn {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none;
  font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 19px;
  letter-spacing: .04em; text-transform: uppercase; padding: 15px 26px; border-radius: 10px;
  border: 2px solid transparent; transition: transform .15s, box-shadow .15s, background .15s;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-orange { background: var(--orange); color: #fff; }
.btn-orange:hover { background: var(--orange-dark); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn-ghost:hover { background: rgba(255,255,255,.1); }
.btn-navy { background: var(--navy); color: #fff; }
.btn svg { width: 20px; height: 20px; }

/* Barra superior */
.topbar { background: var(--navy); color: #fff; font-size: 14px; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; height: 38px; }
.topbar a { color: #fff; text-decoration: none; font-weight: 600; }
.topbar .lang a { opacity: .75; margin-left: 12px; }
.topbar .lang a.on { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }

/* Header */
header.site { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; height: 78px; gap: 20px; }
header.site .logo img { height: 46px; width: auto; }
nav.main { display: flex; gap: 26px; align-items: center; }
nav.main a { text-decoration: none; color: var(--ink); font-weight: 600; font-size: 16px; }
nav.main a:hover { color: var(--blue); }
nav.main .btn { padding: 11px 18px; font-size: 16px; }
.burger { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; }
.burger span { display: block; height: 3px; background: var(--navy); margin: 6px 8px; border-radius: 2px; }

/* Hero */
.hero { position: relative; color: #fff; overflow: hidden;
  background: linear-gradient(115deg, var(--navy) 0%, #1A4F95 55%, var(--blue) 100%); }
.hero::after { content: ""; position: absolute; inset: 0;
  background: radial-gradient(900px 500px at 85% 20%, rgba(63,163,232,.35), transparent 60%); pointer-events: none; }
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 30px; align-items: center; padding: 60px 0 56px; min-height: 620px; }
.hero h1 { text-shadow: 0 2px 0 rgba(0,0,0,.15); }
.hero h1 em { font-style: normal; color: var(--orange); }
.hero .lead { color: rgba(255,255,255,.88); margin: 22px 0 30px; }
.hero .cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero .mascot { align-self: center; justify-self: center; }
.hero .mascot img { height: 520px; width: auto; margin-right: 60px; filter: drop-shadow(0 18px 30px rgba(0,0,0,.35)); }
.hero .stripe { position: absolute; left: 0; right: 0; bottom: 0; height: 8px; background: var(--orange); }

/* Cinta de confianza */
.trust { background: var(--paper); border-bottom: 1px solid var(--line); }
.trust .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; padding: 22px 22px; }
.trust div { display: flex; gap: 12px; align-items: center; font-weight: 600; font-size: 15px; color: var(--navy); }
.trust svg { width: 26px; height: 26px; color: var(--orange); flex: none; }

/* Secciones */
section { padding: 84px 0; }
section.alt { background: var(--paper); }
.sec-head { max-width: 720px; margin-bottom: 44px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .15s, box-shadow .15s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card .ph { aspect-ratio: 4/3; background: linear-gradient(135deg, #1E6FC2, #163B6E); display: grid; place-items: center; color: rgba(255,255,255,.7); font-family: 'Barlow Condensed'; text-transform: uppercase; letter-spacing: .1em; font-size: 14px; }
.card .body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card h3 { color: var(--navy); }
.card p { color: var(--muted); font-size: 16px; margin: 0; flex: 1; }
.card a.more { text-decoration: none; font-weight: 700; color: var(--orange); font-family: 'Barlow Condensed'; text-transform: uppercase; letter-spacing: .06em; font-size: 17px; }

/* Pasos */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: s; }
.step { position: relative; padding: 28px 26px 26px; background: #fff; border-radius: var(--radius); border: 1px solid var(--line); }
.step::before { counter-increment: s; content: counter(s, decimal-leading-zero); font-family: 'Barlow Condensed'; font-weight: 800; font-size: 54px; line-height: 1; color: var(--sky); opacity: .55; display: block; margin-bottom: 8px; }
.step h3 { color: var(--navy); margin-bottom: 8px; }
.step p { color: var(--muted); margin: 0; font-size: 16px; }

/* Por qué */
.why { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.why ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.why li { display: flex; gap: 14px; align-items: flex-start; font-size: 17px; }
.why li svg { width: 26px; height: 26px; color: var(--orange); flex: none; margin-top: 2px; }
.why li strong { display: block; color: var(--navy); font-family: 'Barlow Condensed'; text-transform: uppercase; font-size: 20px; letter-spacing: .03em; }
.why .mascot img { height: 480px; width: auto; margin: 0 auto; }

/* Cobertura */
.coverage .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.zones { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.zones span { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; font-weight: 600; font-size: 15px; color: var(--navy); }
.coverage .map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); aspect-ratio: 4/3; background: var(--paper); }
.coverage .map iframe { width: 100%; height: 100%; border: 0; }

/* CTA final */
.cta-band { background: linear-gradient(115deg, var(--orange) 0%, #F58A3C 100%); color: #fff; padding: 64px 0; }
.cta-band .wrap { display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.9); margin: 8px 0 0; font-size: 19px; }
.cta-band .btn-navy { font-size: 21px; padding: 18px 30px; }

/* Footer */
footer { background: var(--navy); color: rgba(255,255,255,.8); padding: 54px 0 28px; font-size: 15px; }
footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; }
footer img { height: 44px; width: auto; filter: brightness(0) invert(1); opacity: .95; }
footer h4 { color: #fff; font-family: 'Barlow Condensed'; text-transform: uppercase; letter-spacing: .1em; font-size: 15px; margin: 0 0 12px; }
footer a { color: #fff; text-decoration: none; }
footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
footer .legal { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,.15); margin-top: 30px; padding-top: 18px; display: flex; justify-content: space-between; font-size: 13px; opacity: .7; }

/* Botón flotante de llamada (móvil) */
.call-fab { display: none; }

@media (max-width: 900px) {
  nav.main { display: none; position: absolute; top: 78px; left: 0; right: 0; background: #fff; flex-direction: column; padding: 18px 22px 24px; border-bottom: 1px solid var(--line); gap: 16px; }
  nav.main.open { display: flex; }
  .burger { display: block; }
  .hero .wrap { grid-template-columns: 1fr; padding: 50px 0 40px; min-height: 0; }
  .hero .mascot img { height: 380px; margin-right: 0; }
  .hero .cta { margin-bottom: 30px; }
  .trust .wrap { grid-template-columns: 1fr 1fr; }
  .grid3, .steps { grid-template-columns: 1fr; }
  .why, .coverage .wrap, .cta-band .wrap { grid-template-columns: 1fr; }
  .why .mascot { order: -1; } .why .mascot img { height: 300px; }
  footer .wrap { grid-template-columns: 1fr; }
  section { padding: 60px 0; }
  .call-fab { display: flex; position: fixed; right: 16px; bottom: 16px; z-index: 60; background: var(--orange); color: #fff; width: 60px; height: 60px; border-radius: 50%; align-items: center; justify-content: center; box-shadow: 0 8px 24px rgba(0,0,0,.25); }
  .call-fab svg { width: 28px; height: 28px; }
}

/* ── Dinamismo ─────────────────────────────────────────────────────── */
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes drift { 0% { transform: translate(0,0) scale(1); } 50% { transform: translate(-3%, 2%) scale(1.06); } 100% { transform: translate(0,0) scale(1); } }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.hero .kicker, .hero h1, .hero .lead, .hero .cta { animation: rise .7s cubic-bezier(.2,.7,.2,1) both; }
.hero h1 { animation-delay: .08s; } .hero .lead { animation-delay: .18s; } .hero .cta { animation-delay: .28s; }
.hero::after { animation: drift 14s ease-in-out infinite; }
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .18;
  background-image: linear-gradient(rgba(255,255,255,.35) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.35) 1px, transparent 1px);
  background-size: 64px 64px; mask-image: radial-gradient(700px 500px at 30% 60%, #000, transparent 75%); }
.hero .mascot img { animation: rise .8s .2s both, float 5s 1.2s ease-in-out infinite; }
/* cortes diagonales entre secciones (eco de la cursiva del logo) */
.hero .stripe { height: 10px; transform: skewY(-1.2deg); transform-origin: left; bottom: -2px; }
section.alt { clip-path: polygon(0 0, 100% 2.2%, 100% 100%, 0 97.8%); padding: 96px 0; }
.cta-band { clip-path: polygon(0 3%, 100% 0, 100% 100%, 0 100%); padding: 74px 0 64px; }
/* aparecer al hacer scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.grid3 .card:nth-child(2), .steps .step:nth-child(2) { transition-delay: .1s; }
.grid3 .card:nth-child(3), .steps .step:nth-child(3) { transition-delay: .2s; }
.card .ph { position: relative; overflow: hidden; }
.card .ph::after { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, transparent 40%, rgba(255,255,255,.18) 50%, transparent 60%); transform: translateX(-120%); transition: transform .7s; }
.card:hover .ph::after { transform: translateX(120%); }
.card .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.card:hover .ph img { transform: scale(1.05); }
.btn-orange { box-shadow: 0 6px 18px rgba(242,106,27,.35); }
.step:hover::before { color: var(--orange); opacity: 1; transition: color .3s, opacity .3s; }
.zones span { transition: background .2s, color .2s, transform .2s; }
.zones span:hover { background: var(--navy); color: #fff; transform: translateY(-2px); }
/* Quiénes somos (portada) */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.about .photo { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/5; background: linear-gradient(160deg, #1E6FC2, #163B6E); display: grid; place-items: end center; }
.about .photo img { height: 92%; width: auto; object-fit: contain; }
.about .values { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 26px; }
.about .values div { background: var(--paper); border-radius: 10px; padding: 14px 16px; }
.about .values strong { display: block; font-family: 'Barlow Condensed'; text-transform: uppercase; color: var(--navy); font-size: 19px; letter-spacing: .03em; }
.about .values span { color: var(--muted); font-size: 15px; }
@media (max-width: 900px) { .about, .about .values { grid-template-columns: 1fr; } .about .photo { aspect-ratio: 4/3; } section.alt { clip-path: none; } .cta-band { clip-path: none; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } .reveal { opacity: 1; transform: none; } }
@media (max-width: 900px) { .topbar .wrap { height: auto; padding: 8px 16px; font-size: 13px; } .topbar .area { display: none; } }
/* Logo más presente: el descriptor tiene que leerse */
header.site .wrap { height: 92px; }
header.site .logo img { height: 62px; }
footer img.fwm { height: 46px; filter: none; }
/* También hacemos */
.also { padding-top: 0; }
.also-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px 28px; }
.also-list li { display: flex; gap: 10px; align-items: center; padding: 12px 14px; background: var(--paper); border-radius: 10px; font-weight: 600; color: var(--navy); font-size: 16px; }
.also-list svg { width: 22px; height: 22px; color: var(--orange); flex: none; }
@media (max-width: 900px) { header.site .wrap { height: 80px; } header.site .logo img { height: 50px; } .also-list { grid-template-columns: 1fr; } }
/* ── Páginas interiores ─────────────────────────────────────────────── */
.hero-sm .wrap { min-height: 0; padding: 60px 22px 70px; align-items: center; grid-template-columns: 1.1fr .9fr; }
.hero-sm .mascot img { height: 460px !important; }
.hero-sm .cta { margin-bottom: 0; }
.hero-img { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; box-shadow: 0 20px 50px rgba(0,0,0,.35); background: rgba(255,255,255,.08); }
.hero-img img { width: 100%; height: 100%; object-fit: cover; }
.hero-img.ph img { display: none; } .hero-img.ph { display: grid; place-items: center; }
.hero-img.ph::after { content: "PHOTO"; color: rgba(255,255,255,.5); font-family: 'Barlow Condensed'; letter-spacing: .2em; }
.steps.inc { grid-template-columns: repeat(3, 1fr); } .steps.inc .step::before { content: none; }
.faqs { max-width: 800px; display: grid; gap: 10px; }
.faq { border: 1px solid var(--line); border-radius: 10px; padding: 4px 20px; background: #fff; }
.faq summary { cursor: pointer; font-family: 'Barlow Condensed'; font-weight: 700; text-transform: uppercase; font-size: 20px; color: var(--navy); padding: 14px 0; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq summary::after { content: "+"; color: var(--orange); font-size: 26px; } .faq[open] summary::after { content: "–"; }
.faq p { color: var(--muted); margin: 0 0 16px; }
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 26px; }
.filters button { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 9px 18px; font-family: 'Barlow Condensed'; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: 16px; color: var(--navy); cursor: pointer; }
.filters button.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.pgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.pj { margin: 0; border-radius: var(--radius); overflow: hidden; position: relative; aspect-ratio: 4/3; background: linear-gradient(135deg, #1E6FC2, #163B6E); }
.pj img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; } .pj:hover img { transform: scale(1.05); }
.pj.ph img { display: none; }
.pj figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 16px; background: linear-gradient(transparent, rgba(0,0,0,.65)); color: #fff; display: flex; justify-content: space-between; align-items: end; }
.pj figcaption span { font-family: 'Barlow Condensed'; font-weight: 700; text-transform: uppercase; font-size: 19px; }
.pj figcaption em { font-style: normal; font-size: 12px; opacity: .85; background: rgba(255,255,255,.18); padding: 3px 8px; border-radius: 999px; }
.pj.hide { display: none; }
.contact { display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: start; }
.qform { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; background: var(--paper); padding: 28px; border-radius: var(--radius); border: 1px solid var(--line); }
.qform label { display: grid; gap: 6px; font-weight: 600; font-size: 14px; color: var(--navy); }
.qform input, .qform select, .qform textarea { font: inherit; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.qform input:focus, .qform select:focus, .qform textarea:focus { outline: 2px solid var(--sky); border-color: transparent; }
.qform .full { grid-column: 1 / -1; } .qform .hp { position: absolute; left: -9999px; }
.qform .msg { grid-column: 1 / -1; margin: 0; padding: 12px 14px; border-radius: 8px; font-weight: 600; }
.qform .msg.ok { background: #E3F6E8; color: #1E6B3A; } .qform .msg.err { background: #FDE8E4; color: #A23B2A; }
.contact aside h3 { color: var(--navy); margin-bottom: 10px; }
.contact aside .big { display: inline-flex; align-items: center; gap: 10px; font-family: 'Barlow Condensed'; font-weight: 800; font-size: 34px; color: var(--orange); text-decoration: none; }
.contact aside .big svg { width: 28px; height: 28px; }
.contact aside .muted { color: var(--muted); margin: 6px 0 14px; }
.contact aside .map { aspect-ratio: 4/3; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); } .contact aside .map iframe { width: 100%; height: 100%; border: 0; }
@media (max-width: 900px) { .hero-sm .wrap { grid-template-columns: 1fr; } .steps.inc, .pgrid { grid-template-columns: 1fr; } .contact, .qform { grid-template-columns: 1fr; } }
