/* ==========================================================================
   BallixArt — Sistema de diseño
   Identidad: azul tinta #00147E · azul cian #008ACD · fondo blanco
   Tipografía: Archivo (Expanded, títulos) · Montserrat (cuerpo)
   ========================================================================== */

:root {
  /* Marca */
  --navy: #00147E;
  --navy-700: #001a9e;
  --blue: #008ACD;
  --blue-300: #4fb3e0;
  --blue-050: #e9f5fb;

  /* Neutros */
  --ink: #0c1330;
  --slate: #4a5372;
  --line: #e4e8f2;
  --mist: #f5f7fc;
  --white: #ffffff;

  /* Sistema */
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 2px 10px rgba(0, 20, 126, .06);
  --shadow-md: 0 14px 40px rgba(0, 20, 126, .12);
  --shadow-lg: 0 30px 70px rgba(0, 20, 126, .18);
  --maxw: 1160px;
  --gap: clamp(1rem, 3vw, 2rem);
  --ease: cubic-bezier(.22, .61, .36, 1);

  --font-head: "Archivo", "Arial Narrow", sans-serif;
  --font-body: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* Reset ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  font-size: 17px;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; height: auto; }
a { color: var(--navy); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--blue); }
ul { margin: 0; padding: 0; }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 800;
  font-variation-settings: "wdth" 125;
  line-height: 1.08;
  letter-spacing: -.01em;
  color: var(--navy);
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.2rem, 5.4vw, 3.9rem); text-transform: uppercase; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); text-transform: uppercase; }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
p  { margin: 0 0 1.1rem; color: var(--slate); }
strong { color: var(--ink); }

/* Utilidades ------------------------------------------------------------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(1.1rem, 4vw, 2rem); }
.section { padding-block: clamp(3.4rem, 8vw, 6rem); }
.section--mist { background: var(--mist); }
.section--navy { background: linear-gradient(150deg, var(--navy) 0%, #001255 55%, #002a9e 100%); color: #dce4ff; }
.section--navy h1, .section--navy h2, .section--navy h3 { color: #fff; }
.section--navy p { color: #b9c6f5; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--font-head); font-weight: 700; font-variation-settings: "wdth" 100;
  text-transform: uppercase; letter-spacing: .16em; font-size: .74rem;
  color: var(--blue); margin-bottom: 1rem;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--blue); display: inline-block; }
.lead { font-size: 1.16rem; color: var(--slate); max-width: 62ch; }
.center { text-align: center; }
.center .lead, .center .eyebrow { margin-inline: auto; }
.grad-text { background: linear-gradient(100deg, var(--blue), var(--navy)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Botones ---------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--font-head); font-weight: 700; font-variation-settings: "wdth" 100;
  text-transform: uppercase; letter-spacing: .04em; font-size: .86rem;
  padding: .95rem 1.7rem; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s;
  will-change: transform;
}
.btn:hover { transform: translateY(-3px); }
.btn--primary { background: var(--navy); color: #fff; box-shadow: var(--shadow-md); }
.btn--primary:hover { background: var(--navy-700); color: #fff; box-shadow: var(--shadow-lg); }
.btn--accent { background: var(--blue); color: #fff; box-shadow: 0 12px 30px rgba(0,138,205,.35); }
.btn--accent:hover { background: #0079b6; color: #fff; }
.btn--ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn--light { background: #fff; color: var(--navy); }
.btn--light:hover { color: var(--navy); }
.btn-row { display: flex; flex-wrap: wrap; gap: .9rem; }

/* Header ----------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.85); backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s;
}
.site-header.is-scrolled { box-shadow: var(--shadow-sm); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 74px; }
.brand { display: flex; align-items: center; gap: .6rem; font-family: var(--font-head); font-weight: 800; font-variation-settings: "wdth" 125; text-transform: uppercase; letter-spacing: .02em; color: var(--navy); font-size: 1.15rem; }
.brand img { width: 40px; height: 40px; }
.nav-links { display: flex; align-items: center; gap: .35rem; list-style: none; }
.nav-links a {
  font-weight: 600; font-size: .95rem; color: var(--ink);
  padding: .5rem .8rem; border-radius: 8px; position: relative;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--navy); background: var(--blue-050); }
.nav-cta { margin-left: .4rem; }
.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer; padding: .4rem;
  width: 44px; height: 44px; border-radius: 10px;
}
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px auto; transition: .3s var(--ease); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; inset: 74px 0 auto 0; flex-direction: column; align-items: stretch;
    background: #fff; padding: 1rem clamp(1.1rem,4vw,2rem) 1.6rem; gap: .2rem;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md);
    transform: translateY(-140%); transition: transform .35s var(--ease); z-index: 90;
  }
  .nav-links.is-open { transform: translateY(0); }
  .nav-links a { padding: .85rem .6rem; font-size: 1.05rem; }
  .nav-cta { margin: .5rem 0 0; }
  .nav-cta .btn { width: 100%; justify-content: center; }
}

/* Hero ------------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; background: var(--white); }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; padding-block: clamp(3rem, 7vw, 5.5rem); }
.hero h1 span { display: block; }
.hero .lead { margin-block: 1.4rem 2rem; }
.hero-stats { display: flex; gap: 2.2rem; margin-top: 2.6rem; flex-wrap: wrap; }
.hero-stats b { font-family: var(--font-head); font-weight: 800; font-variation-settings: "wdth" 125; font-size: 2rem; color: var(--navy); display: block; line-height: 1; }
.hero-stats span { font-size: .8rem; color: var(--slate); text-transform: uppercase; letter-spacing: .08em; }
.hero-visual { position: relative; }
.hero-visual svg { width: 100%; height: auto; filter: drop-shadow(var(--shadow-lg)); }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .5; z-index: 0; }
.blob--1 { width: 380px; height: 380px; background: var(--blue-300); top: -120px; right: -80px; }
.blob--2 { width: 300px; height: 300px; background: #b9d9f0; bottom: -100px; left: -60px; }
.hero .container { position: relative; z-index: 1; }
@media (max-width: 820px) { .hero-grid { grid-template-columns: 1fr; text-align: center; } .hero .lead { margin-inline: auto; } .hero .btn-row, .hero-stats { justify-content: center; } .hero-visual { max-width: 420px; margin-inline: auto; } }

/* Grid de tarjetas ------------------------------------------------------- */
.grid { display: grid; gap: 1.4rem; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 1.9rem; transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
  position: relative; overflow: hidden; height: 100%;
}
.card::after { content: ""; position: absolute; left: 0; top: 0; height: 4px; width: 0; background: linear-gradient(90deg, var(--blue), var(--navy)); transition: width .35s var(--ease); }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.card:hover::after { width: 100%; }
.card .icon {
  width: 58px; height: 58px; border-radius: 15px; display: grid; place-items: center;
  background: var(--blue-050); color: var(--navy); margin-bottom: 1.15rem;
}
.card .icon svg { width: 30px; height: 30px; }
.card h3 { color: var(--navy); margin-bottom: .5rem; }
.card p { margin-bottom: 1rem; font-size: .97rem; }
.card .price { font-family: var(--font-head); font-weight: 700; font-variation-settings:"wdth" 100; color: var(--blue); font-size: .95rem; }
.card ul.ticks { list-style: none; margin: 0 0 1rem; display: grid; gap: .45rem; }
.card ul.ticks li { position: relative; padding-left: 1.6rem; font-size: .93rem; color: var(--slate); }
.card ul.ticks li::before { content: ""; position: absolute; left: 0; top: .45em; width: 8px; height: 8px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 4px var(--blue-050); }
.card .more { font-family: var(--font-head); font-weight: 700; font-variation-settings:"wdth" 100; text-transform: uppercase; font-size: .78rem; letter-spacing: .06em; display: inline-flex; align-items: center; gap: .4rem; }
.card .more::after { content: "→"; transition: transform .25s var(--ease); }
.card:hover .more::after { transform: translateX(5px); }

/* Franja de valores ------------------------------------------------------ */
.pills { display: flex; flex-wrap: wrap; gap: .7rem; justify-content: center; }
.pill { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: .55rem 1.1rem; font-size: .85rem; font-weight: 600; color: var(--slate); }

/* Proceso ---------------------------------------------------------------- */
.steps { counter-reset: step; display: grid; gap: 1.2rem; grid-template-columns: repeat(4,1fr); }
@media (max-width: 900px){ .steps { grid-template-columns: repeat(2,1fr);} }
@media (max-width: 560px){ .steps { grid-template-columns: 1fr;} }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; position: relative; }
.step::before { counter-increment: step; content: "0" counter(step); font-family: var(--font-head); font-weight: 800; font-variation-settings:"wdth" 125; font-size: 1.6rem; color: var(--blue-300); display: block; margin-bottom: .5rem; }
.step h3 { font-size: 1.1rem; }
.step p { font-size: .93rem; margin: 0; }

/* CTA banner ------------------------------------------------------------- */
.cta-band { text-align: center; }
.cta-band .btn-row { justify-content: center; margin-top: 1.6rem; }

/* Formulario ------------------------------------------------------------- */
.form-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(1.5rem,4vw,3rem); align-items: start; }
@media (max-width: 820px){ .form-grid { grid-template-columns: 1fr; } }
form.contact { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.4rem, 3vw, 2.2rem); box-shadow: var(--shadow-sm); }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .4rem; color: var(--ink); }
.field input, .field select, .field textarea {
  width: 100%; padding: .85rem 1rem; border: 1.5px solid var(--line); border-radius: 11px;
  font: inherit; font-size: .97rem; color: var(--ink); background: var(--mist); transition: border-color .2s, background .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); background: #fff; box-shadow: 0 0 0 4px var(--blue-050); }
.field textarea { resize: vertical; min-height: 130px; }
.check { display: flex; gap: .6rem; align-items: flex-start; font-size: .84rem; color: var(--slate); }
.check input { width: 18px; height: 18px; margin-top: .2rem; accent-color: var(--navy); flex-shrink: 0; }
.contact-info { display: grid; gap: 1.1rem; }
.info-item { display: flex; gap: .9rem; align-items: flex-start; }
.info-item .icon { width: 46px; height: 46px; flex-shrink: 0; border-radius: 12px; background: var(--blue-050); color: var(--navy); display: grid; place-items: center; }
.info-item .icon svg { width: 22px; height: 22px; }
.info-item b { display: block; color: var(--ink); font-size: .95rem; }
.info-item a, .info-item span { color: var(--slate); font-size: .95rem; }
.form-note { font-size: .82rem; color: var(--slate); }

/* Portfolio -------------------------------------------------------------- */
.folio { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; }
@media (max-width: 820px){ .folio { grid-template-columns: repeat(2,1fr);} }
@media (max-width: 560px){ .folio { grid-template-columns: 1fr;} }
.folio-item { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; border: 1px solid var(--line); background: var(--mist); }
.folio-item .ph { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 1rem; }
.folio-item .ph small { color: var(--slate); font-size: .8rem; }
.folio-item figcaption { position: absolute; inset: auto 0 0 0; background: linear-gradient(0deg, rgba(0,20,126,.92), transparent); color: #fff; padding: 1.3rem 1rem .9rem; font-weight: 600; font-size: .9rem; }

/* Blog ------------------------------------------------------------------- */
.post-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s var(--ease); height: 100%; }
.post-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.post-thumb { aspect-ratio: 16/9; display: grid; place-items: center; position: relative; }
.post-body { padding: 1.5rem; display: flex; flex-direction: column; flex: 1; }
.post-meta { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--blue); font-weight: 700; margin-bottom: .6rem; }
.post-body h3 { font-size: 1.18rem; color: var(--navy); }
.post-body p { font-size: .95rem; flex: 1; }
.tag { display: inline-block; background: var(--blue-050); color: var(--navy); font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: .3rem .7rem; border-radius: 999px; }

/* Artículo --------------------------------------------------------------- */
.article { max-width: 760px; margin-inline: auto; }
.article .post-meta { font-size: .82rem; }
.article h1 { font-size: clamp(1.9rem, 4.5vw, 3rem); margin-bottom: .6rem; }
.article h2 { font-size: clamp(1.4rem,3vw,2rem); margin-top: 2.4rem; }
.article h3 { margin-top: 1.8rem; color: var(--navy); }
.article p, .article li { color: #333a52; font-size: 1.06rem; }
.article ul, .article ol { padding-left: 1.3rem; margin-bottom: 1.3rem; }
.article li { margin-bottom: .5rem; }
.article blockquote { border-left: 4px solid var(--blue); background: var(--mist); margin: 1.8rem 0; padding: 1.1rem 1.4rem; border-radius: 0 12px 12px 0; font-style: italic; color: var(--navy); }
.article img { border-radius: var(--radius); margin: 1.8rem 0; }
.article-hero { aspect-ratio: 21/9; border-radius: var(--radius-lg); display: grid; place-items: center; margin-bottom: 2rem; overflow: hidden; }

/* Prosa legal ------------------------------------------------------------ */
.legal { max-width: 820px; margin-inline: auto; }
.legal h2 { font-size: 1.35rem; margin-top: 2.2rem; text-transform: none; }
.legal p, .legal li { font-size: .98rem; color: #333a52; }
.legal ul { padding-left: 1.3rem; margin-bottom: 1.2rem; }
.legal .updated { font-size: .85rem; color: var(--slate); }
.legal table { width: 100%; border-collapse: collapse; margin: 1.2rem 0; font-size: .9rem; }
.legal th, .legal td { border: 1px solid var(--line); padding: .7rem .8rem; text-align: left; }
.legal th { background: var(--mist); color: var(--navy); }

/* Breadcrumb ------------------------------------------------------------- */
.crumbs { font-size: .82rem; color: var(--slate); margin-bottom: 1.4rem; }
.crumbs a { color: var(--slate); }
.crumbs a:hover { color: var(--blue); }
.crumbs span { color: var(--navy); font-weight: 600; }

/* Page hero (interior) --------------------------------------------------- */
.page-hero { background: linear-gradient(160deg, #00104f 0%, var(--navy) 55%, #0a3bd6 130%); color: #fff; padding-block: clamp(3rem, 7vw, 4.6rem); position: relative; overflow: hidden; }
.page-hero::before { content:""; position:absolute; inset:0; background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,.09) 1px, transparent 0); background-size: 26px 26px; opacity:.6; }
.page-hero .container { position: relative; }
.page-hero h1 { color: #fff; }
.page-hero p { color: #b9c6f5; max-width: 60ch; }

/* Sobre / media ---------------------------------------------------------- */
.media { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.6rem,4vw,3.4rem); align-items: center; }
.media--rev .media-text { order: 2; }
@media (max-width: 820px){ .media { grid-template-columns: 1fr; } .media--rev .media-text { order: 0; } }
.media-visual { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); }

/* Footer ----------------------------------------------------------------- */
.site-footer { background: #00104f; color: #a9b6e6; padding-block: clamp(3rem,6vw,4.4rem) 1.6rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 2rem; }
@media (max-width: 820px){ .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px){ .footer-grid { grid-template-columns: 1fr; } }
.footer-brand { display: flex; align-items: center; gap: .6rem; color: #fff; font-family: var(--font-head); font-weight: 800; font-variation-settings:"wdth" 125; text-transform: uppercase; font-size: 1.2rem; margin-bottom: 1rem; }
.footer-brand img { width: 42px; height: 42px; }
.site-footer p { color: #8fa0da; font-size: .92rem; }
.footer-col h4 { color: #fff; font-family: var(--font-head); font-variation-settings:"wdth" 100; text-transform: uppercase; font-size: .82rem; letter-spacing: .1em; margin-bottom: 1rem; }
.footer-col ul { list-style: none; display: grid; gap: .6rem; }
.footer-col a { color: #a9b6e6; font-size: .93rem; }
.footer-col a:hover { color: #fff; }
.social { display: flex; gap: .6rem; margin-top: 1rem; }
.social a { width: 40px; height: 40px; border-radius: 10px; background: rgba(255,255,255,.08); display: grid; place-items: center; color: #cdd7f7; }
.social a:hover { background: var(--blue); color: #fff; }
.social svg { width: 20px; height: 20px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 2.6rem; padding-top: 1.4rem; display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; font-size: .82rem; }
.footer-bottom .links { display: flex; flex-wrap: wrap; gap: 1.2rem; }
.footer-bottom a { color: #8fa0da; }

/* Cookies ---------------------------------------------------------------- */
.cookie-bar {
  position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%) translateY(160%);
  width: min(920px, calc(100% - 2rem)); background: #fff; border: 1px solid var(--line);
  box-shadow: var(--shadow-lg); border-radius: var(--radius-lg); padding: 1.2rem 1.4rem;
  z-index: 200; display: flex; gap: 1.2rem; align-items: center; flex-wrap: wrap;
  transition: transform .45s var(--ease);
}
.cookie-bar.is-visible { transform: translateX(-50%) translateY(0); }
.cookie-bar p { margin: 0; font-size: .88rem; flex: 1 1 320px; }
.cookie-bar .btn-row { flex-shrink: 0; }
.cookie-bar .btn { padding: .7rem 1.2rem; font-size: .78rem; }

/* Animación reveal ------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover, .card:hover, .post-card:hover { transform: none; }
}

/* Skip link -------------------------------------------------------------- */
.skip { position: absolute; left: -999px; top: 0; background: var(--navy); color: #fff; padding: .7rem 1.1rem; border-radius: 0 0 10px 0; z-index: 300; }
.skip:focus { left: 0; color: #fff; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 4px; }
