/* ═══════════════════════════════════════════════════════════════
   josucristobal.com — hoja de estilos principal
   Lenguaje visual: hero degradado azul→violeta con formas orgánicas,
   recorte de persona, tarjetas blancas con sombra suave, números
   grandes en degradado, marco romboidal en "Sobre mí".
   ═══════════════════════════════════════════════════════════════ */
:root {
  --navy: #203e73;
  --navy-deep: #14294f;
  --blue: #2f5fd0;
  --blue-bright: #3b7bff;
  --violet: #5b4ee0;
  --cyan: #38c6f4;
  --cyan-deep: #1aa7d8;
  --bg: #ffffff;
  --surface: #f4f7fc;
  --surface-2: #e9eff9;
  --text: #1b2437;
  --muted: #5c6780;
  --line: #dfe6f2;
  --grad-hero: linear-gradient(118deg, #203e73 0%, #2f5fd0 52%, #5b4ee0 100%);
  --grad-btn: linear-gradient(90deg, #38c6f4 0%, #3b7bff 100%);
  --grad-text: linear-gradient(90deg, #2f5fd0, #38c6f4);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --container: 1200px;
  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 18px 50px -20px rgba(32, 62, 115, .35);
  --shadow-sm: 0 8px 24px -12px rgba(32, 62, 115, .25);
  --ease: cubic-bezier(.22, 1, .36, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.6; font-size: 1.0625rem; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .6em; font-weight: 800; letter-spacing: -.01em; color: var(--navy-deep); }
h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.3em; }
li { margin-bottom: .35em; }
.container { width: min(100% - 2rem, var(--container)); margin-inline: auto; }
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section-alt { background: var(--surface); }
.section:not(.page-hero), .footer { content-visibility: auto; contain-intrinsic-size: auto 640px; }
.kicker { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--blue); margin-bottom: .8rem; }
.kicker::before { content: ""; display: inline-block; width: 26px; height: 3px; border-radius: 3px; background: var(--grad-btn); margin-right: .6rem; vertical-align: middle; }
.section-head { max-width: 720px; margin-bottom: 2.5rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .kicker::before { display: none; }
.lead { font-size: 1.2rem; color: var(--muted); }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--navy); color: #fff; padding: .6rem 1rem; z-index: 2000; }
.skip-link:focus { left: 1rem; top: 1rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }

/* ── Botones ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; padding: .95rem 1.7rem; border-radius: 999px; font-weight: 700; font-size: 1rem; border: 2px solid transparent; cursor: pointer; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .25s; line-height: 1.2; white-space: nowrap; }
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-primary { background: var(--grad-btn); color: #fff; box-shadow: 0 10px 24px -8px rgba(59, 123, 255, .6); }
.btn-primary:hover { box-shadow: 0 16px 30px -8px rgba(59, 123, 255, .7); color: #fff; }
.btn-outline { border-color: rgba(255, 255, 255, .7); color: #fff; background: rgba(255, 255, 255, .06); }
.btn-outline:hover { background: rgba(255, 255, 255, .14); color: #fff; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-deep); color: #fff; }
.btn-ghost { border-color: var(--line); color: var(--navy); background: #fff; }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn-wa { background: #0f7a6d; color: #fff; }
.btn-wa:hover { background: #0c665b; color: #fff; }

/* ── Navbar ── */
.navbar { position: fixed; inset: 0 0 auto; z-index: 900; padding: 1rem 0; transition: background-color .3s, box-shadow .3s, padding .3s; }
.navbar.scrolled { background: rgba(20, 41, 79, .96); box-shadow: 0 6px 24px -10px rgba(0, 0, 0, .5); padding: .55rem 0; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { height: 52px; width: auto; display: block; }
.navbar.scrolled .brand img { height: 44px; }
.nav-links { display: flex; align-items: center; gap: 1.4rem; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: #fff; font-weight: 600; font-size: .95rem; opacity: .9; }
.nav-links a:hover, .nav-links a[aria-current="page"] { opacity: 1; text-decoration: none; border-bottom: 2px solid var(--cyan); }
.nav-right { display: flex; align-items: center; gap: 1rem; }
.lang { display: flex; gap: .15rem; align-items: center; font-size: .78rem; font-weight: 700; letter-spacing: .06em; }
.lang a { color: #fff; opacity: .65; padding: .25rem .4rem; border-radius: 6px; }
.lang a:hover { opacity: 1; text-decoration: none; background: rgba(255, 255, 255, .12); }
.lang a[aria-current="true"] { opacity: 1; background: rgba(255, 255, 255, .18); }
.nav-cta { padding: .6rem 1.2rem; font-size: .9rem; }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; padding: 8px; border-radius: 8px; }
.nav-toggle span { display: block; height: 3px; background: #fff; border-radius: 3px; margin: 6px 0; transition: transform .3s, opacity .3s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }
.mobile-menu { position: fixed; inset: 0; z-index: 890; background: var(--grad-hero); transform: translateX(100%); transition: transform .4s var(--ease); padding: 6rem 2rem 2rem; overflow-y: auto; }
.mobile-menu.open { transform: translateX(0); }
.mobile-menu ul { list-style: none; margin: 0; padding: 0; }
.mobile-menu a { display: block; color: #fff; font-size: 1.4rem; font-weight: 700; padding: .7rem 0; border-bottom: 1px solid rgba(255, 255, 255, .15); }
.mobile-menu .lang { margin-top: 1.5rem; font-size: 1rem; }
.mobile-menu .lang a { font-size: 1rem; border: 0; padding: .4rem .7rem; }

/* ── Hero home ── */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; background: var(--grad-hero); color: #fff; overflow: hidden; padding: 7rem 0 4rem; isolation: isolate; }
.hero::before { content: ""; position: absolute; width: 60vw; height: 60vw; max-width: 900px; max-height: 900px; right: -18vw; top: -32vw; border-radius: 50%; background: radial-gradient(circle at 40% 40%, rgba(255, 255, 255, .16), rgba(255, 255, 255, 0) 65%); z-index: -1; }
.hero::after { content: ""; position: absolute; width: 46vw; height: 46vw; max-width: 720px; max-height: 720px; left: -22vw; bottom: -26vw; border-radius: 46% 54% 42% 58% / 55% 45% 55% 45%; background: linear-gradient(135deg, rgba(56, 198, 244, .55), rgba(56, 198, 244, .05)); z-index: -1; }
.hero-blob { position: absolute; z-index: -1; pointer-events: none; }
.hero-blob-1 { width: 38vw; max-width: 560px; left: -8vw; top: -12vw; opacity: .45; }
.hero-inner { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: end; gap: 2rem; }
.hero-text { padding-bottom: 3rem; }
.hero-text .kicker { color: var(--cyan); }
.hero-text .kicker::before { background: var(--cyan); }
.hero h1 { color: #fff; font-size: clamp(2.2rem, 4.4vw, 3.6rem); max-width: 16ch; }
.hero .sub { font-size: 1.15rem; max-width: 560px; color: rgba(255, 255, 255, .88); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin: 1.8rem 0 1.4rem; }
.hero-note { font-size: .95rem; color: rgba(255, 255, 255, .78); }
.hero-note a { color: var(--cyan); font-weight: 700; }
.hero-figure { position: relative; align-self: end; margin: 0; display: flex; justify-content: center; }
.hero-figure img { width: min(100%, 460px); height: auto; margin-bottom: -4rem; }
.hero-social { position: absolute; right: 0; top: 6.5rem; display: flex; gap: .6rem; z-index: 2; }
.hero-social a { width: 40px; height: 40px; border-radius: 10px; background: rgba(255, 255, 255, .12); display: grid; place-items: center; color: #fff; transition: background .2s, transform .2s; }
.hero-social a:hover { background: rgba(255, 255, 255, .25); transform: translateY(-2px); }
.hero-social svg { width: 20px; height: 20px; fill: currentColor; }

/* ── Hero interior ── */
.page-hero { position: relative; background: var(--grad-hero); color: #fff; padding: 8.5rem 0 4rem; overflow: hidden; isolation: isolate; }
.page-hero::before { content: ""; position: absolute; width: 50vw; height: 50vw; max-width: 700px; max-height: 700px; right: -15vw; top: -30vw; border-radius: 50%; background: radial-gradient(circle at 40% 40%, rgba(255, 255, 255, .14), rgba(255, 255, 255, 0) 65%); z-index: -1; }
.page-hero::after { content: ""; position: absolute; width: 30vw; height: 30vw; max-width: 420px; max-height: 420px; left: -12vw; bottom: -18vw; border-radius: 46% 54% 42% 58% / 55% 45% 55% 45%; background: linear-gradient(135deg, rgba(56, 198, 244, .5), rgba(56, 198, 244, .05)); z-index: -1; }
.page-hero h1 { color: #fff; max-width: 20ch; }
.page-hero .sub { font-size: 1.15rem; color: rgba(255, 255, 255, .85); max-width: 680px; margin: 0; }
.page-hero .kicker { color: var(--cyan); }
.page-hero .kicker::before { background: var(--cyan); }
.breadcrumb { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; padding: 0; margin: 0 0 1.4rem; font-size: .88rem; color: rgba(255, 255, 255, .75); }
.breadcrumb a { color: rgba(255, 255, 255, .9); }
.breadcrumb li + li::before { content: "/"; margin-right: .4rem; opacity: .5; }

/* ── Stats ── */
.stats { position: relative; z-index: 2; margin-top: -3rem; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.stat { background: #fff; padding: 1.8rem 1.4rem; text-align: center; }
.stat .n { display: block; font-size: 2.6rem; font-weight: 800; line-height: 1; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: .4rem; }
.stat .l { font-size: .92rem; color: var(--muted); display: block; }

/* ── "Por qué funciona" ── */
.why-grid { display: grid; grid-template-columns: 1.05fr 1fr 1fr; grid-auto-rows: 1fr; gap: 1.4rem; }
.why-dark { grid-row: span 2; background: var(--navy-deep); color: #fff; border-radius: var(--radius); padding: 2.6rem 2.2rem; display: flex; flex-direction: column; justify-content: center; position: relative; overflow: hidden; }
.why-dark::after { content: ""; position: absolute; right: -30%; bottom: -30%; width: 80%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(59, 123, 255, .45), transparent 65%); }
.why-dark h2 { color: #fff; font-size: clamp(1.7rem, 2.6vw, 2.3rem); position: relative; }
.why-dark p { color: rgba(255, 255, 255, .82); position: relative; }
.why-dark .btn { align-self: flex-start; position: relative; margin-top: .6rem; }
.card { background: #fff; border-radius: var(--radius); padding: 2rem 1.8rem; box-shadow: var(--shadow-sm); border: 1px solid var(--line); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card .icon { width: 52px; height: 52px; border-radius: 14px; background: var(--surface-2); color: var(--blue); display: grid; place-items: center; margin-bottom: 1.1rem; }
.card .icon svg { width: 28px; height: 28px; }
.card h3, .card .card-title { font-size: 1.15rem; margin-bottom: .5rem; font-weight: 800; color: var(--navy-deep); }
.card p { color: var(--muted); margin: 0; font-size: .98rem; }
.card-dark { background: linear-gradient(135deg, var(--blue) 0%, var(--violet) 100%); border: 0; color: #fff; }
.card-dark .icon { background: rgba(255, 255, 255, .15); color: #fff; }
.card-dark h3, .card-dark .card-title { color: #fff; }
.card-dark p { color: rgba(255, 255, 255, .85); }

/* ── Sobre mí (home) ── */
.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 4rem; align-items: center; }
.diamond { position: relative; width: min(100%, 420px); aspect-ratio: 1; margin: 2rem auto; }
.diamond::before { content: ""; position: absolute; inset: 0; border-radius: 28px; background: var(--grad-hero); transform: rotate(45deg) scale(.86); box-shadow: var(--shadow); }
.diamond::after { content: ""; position: absolute; inset: 0; border-radius: 28px; border: 3px solid var(--cyan); transform: rotate(45deg) scale(.86) translate(14px, -14px); opacity: .6; }
.diamond img { position: relative; z-index: 1; width: 78%; margin: 0 auto; border-radius: 28px; object-fit: cover; aspect-ratio: 4 / 5; box-shadow: 0 30px 50px -25px rgba(0, 0, 0, .5); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-top: 3.5rem; }
.step { display: flex; gap: 1rem; align-items: flex-start; }
.step .n { font-size: 3.2rem; font-weight: 800; line-height: 1; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; flex: none; }
.step-title { font-weight: 800; color: var(--navy-deep); margin: .3rem 0 .3rem; font-size: 1.1rem; }
.step p { color: var(--muted); margin: 0; font-size: .96rem; }

/* ── Proyectos ── */
.case { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.case + .case { margin-top: 4rem; }
.case:nth-child(even) .case-media { order: 2; }
.case-media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); background: #fff; }
.case-media img { width: 100%; }
.case-sector { font-size: .82rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--blue); margin-bottom: .5rem; display: block; }
.case h3, .case h2 { font-size: clamp(1.4rem, 2.4vw, 2rem); }
.case-data { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.2rem 0; list-style: none; padding: 0; }
.case-data li { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: .6rem 1rem; min-width: 110px; }
.case-data b { display: block; font-size: 1.5rem; color: var(--navy); line-height: 1.1; }
.case-data span { font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.case-date { font-size: .9rem; color: var(--muted); }
.sectors { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 1rem; list-style: none; padding: 0; margin: 0; }
.sectors li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1rem 1.1rem; display: flex; align-items: center; gap: .8rem; font-weight: 600; color: var(--navy-deep); }
.sectors svg { width: 26px; height: 26px; color: var(--blue); flex: none; }
.sectors small { display: block; font-weight: 500; color: var(--muted); font-size: .8rem; }


/* ── Proyectos: composición mixta ── */
.diamond-map img { aspect-ratio: 1; width: 82%; background: #fff; }
.case-dark { background: var(--navy-deep); color: #fff; position: relative; overflow: hidden; isolation: isolate; }
.case-dark::before { content: ""; position: absolute; right: -15%; top: -40%; width: 55%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(91, 78, 224, .55), transparent 65%); z-index: -1; }
.case-dark::after { content: ""; position: absolute; left: -10%; bottom: -45%; width: 40%; aspect-ratio: 1; border-radius: 46% 54% 42% 58% / 55% 45% 55% 45%; background: linear-gradient(135deg, rgba(56, 198, 244, .35), transparent); z-index: -1; }
.case-dark-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3.5rem; align-items: center; }
.case-dark h2 { color: #fff; }
.case-dark p { color: rgba(255, 255, 255, .85); }
.case-dark .kicker { color: var(--cyan); }
.case-dark .kicker::before { background: var(--cyan); }
.case-dark .case-date { color: rgba(255, 255, 255, .6); }
.case-dark .case-media { border: 0; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .6); }
.big-stats { display: flex; flex-wrap: wrap; gap: 2.2rem; margin: 1.6rem 0 1.2rem; }
.big-stats .n { display: block; font-size: 2.8rem; font-weight: 800; line-height: 1; color: #fff; }
.big-stats .n::after { content: ""; display: block; width: 34px; height: 4px; border-radius: 4px; background: var(--grad-btn); margin-top: .5rem; }
.big-stats .l { display: block; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .7); margin-top: .6rem; }
.case-card { display: grid; grid-template-columns: minmax(0, 460px) 1fr; gap: 0; background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); }
.case-card .case-media { border: 0; border-radius: 0; box-shadow: none; }
.case-card-body { padding: 2.6rem 2.6rem; display: flex; flex-direction: column; justify-content: center; }
.card .icon.legend-green, .card .icon.legend-yellow, .card .icon.legend-red { color: #fff; }
.card .icon.legend-green { background: #2e7d32; }
.card .icon.legend-yellow { background: #e6a700; }
.card .icon.legend-red { background: #c62828; }
@media (max-width: 900px) {
  .case-dark-inner, .case-card { grid-template-columns: 1fr; }
  .case-card-body { padding: 1.8rem; }
  .big-stats { gap: 1.4rem; }
}

/* ── Servicio: pasos sobre banda oscura ── */
.steps-4 { grid-template-columns: repeat(4, 1fr); margin-top: 1rem; }
.case-dark .step-title { color: #fff; }
.case-dark .step p { color: rgba(255, 255, 255, .78); }
.case-dark .step .n { background: linear-gradient(90deg, #38c6f4, #fff); -webkit-background-clip: text; background-clip: text; }
.case-dark .section-head h2 { color: #fff; }
@media (max-width: 1080px) { .steps-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .steps-4 { grid-template-columns: 1fr; } }

/* ── Servicios ── */
.services { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.service-card { display: grid; grid-template-rows: 220px 1fr; border-radius: var(--radius); overflow: hidden; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s var(--ease); color: inherit; }
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); text-decoration: none; }
.service-card img { width: 100%; height: 220px; object-fit: cover; }
.service-card .body { padding: 1.6rem 1.8rem 1.8rem; }
.service-card h3 { margin-bottom: .4rem; }
.service-card p { color: var(--muted); margin-bottom: 1rem; }
.service-card .more { font-weight: 700; color: var(--blue); display: inline-flex; align-items: center; gap: .4rem; }
.service-card .more svg { width: 18px; height: 18px; transition: transform .2s; }
.service-card:hover .more svg { transform: translateX(4px); }

/* ── Digibal band ── */
.digibal { background: var(--navy-deep); color: #fff; position: relative; overflow: hidden; }
.digibal::before { content: ""; position: absolute; left: -10%; top: -60%; width: 50%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(91, 78, 224, .5), transparent 65%); }
.digibal-inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 3rem; align-items: center; position: relative; }
.digibal h2 { color: #fff; }
.digibal p { color: rgba(255, 255, 255, .82); }
.digibal .kicker { color: var(--cyan); }
.digibal .kicker::before { background: var(--cyan); }
.digibal-cities { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.digibal-cities li { background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--radius-sm); padding: .9rem 1rem; font-weight: 700; }
.digibal-cities small { display: block; font-weight: 400; opacity: .7; font-size: .82rem; }

/* ── Testimonios (sección comentada hasta tener reseñas reales) ── */

/* ── FAQ ── */
.faq { max-width: 820px; margin-inline: auto; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q { width: 100%; background: none; border: 0; text-align: left; font: inherit; font-weight: 700; font-size: 1.08rem; color: var(--navy-deep); padding: 1.2rem 3rem 1.2rem 0; cursor: pointer; position: relative; }
.faq-q::after { content: ""; position: absolute; right: .6rem; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--blue); border-bottom: 2px solid var(--blue); transform: translateY(-70%) rotate(45deg); transition: transform .3s; }
.faq-q[aria-expanded="true"]::after { transform: translateY(-30%) rotate(225deg); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s var(--ease); }
.faq-a > div { overflow: hidden; }
.faq-a p { color: var(--muted); margin: 0 0 1.2rem; }
.faq-item.open .faq-a { grid-template-rows: 1fr; }

/* ── Blog ── */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.8rem; }
.post-card { display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s var(--ease); color: inherit; }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); text-decoration: none; }
.post-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.post-card .body { padding: 1.4rem 1.5rem 1.6rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.post-card time { font-size: .82rem; color: var(--muted); font-weight: 600; letter-spacing: .04em; }
.post-card h3 { font-size: 1.12rem; margin: 0; }
.post-card p { color: var(--muted); font-size: .95rem; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-card .more { margin-top: auto; padding-top: .6rem; font-weight: 700; color: var(--blue); }
.post-card.featured { grid-column: span 3; display: grid; grid-template-columns: 1.1fr 1fr; }
.post-card.featured img { height: 100%; aspect-ratio: auto; min-height: 320px; }
.post-card.featured .body { padding: 2.4rem; justify-content: center; }
.post-card.featured h3 { font-size: 1.6rem; }
.post-card.featured p { -webkit-line-clamp: 4; }
.article { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 3.5rem; align-items: start; }
.article-body { max-width: 760px; }
.article-body h2 { font-size: 1.6rem; margin-top: 2.2rem; }
.article-body img { border-radius: var(--radius); margin-bottom: 2rem; }
.article-body table { width: 100%; border-collapse: collapse; margin: 1.2rem 0 1.8rem; font-size: .96rem; }
.article-body th, .article-body td { text-align: left; padding: .7rem .8rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.article-body th { background: var(--surface); color: var(--navy-deep); }
.article-body blockquote { margin: 1.5rem 0; padding: 1rem 1.4rem; border-left: 4px solid var(--cyan); background: var(--surface); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.cta-inline { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem 1.8rem; margin: 2.4rem 0; display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; }
.cta-inline p { margin: 0; font-weight: 600; color: var(--navy-deep); }
.sidebar { position: sticky; top: 6rem; display: flex; flex-direction: column; gap: 1.4rem; }
.sidebar .card { padding: 1.5rem; }
.sidebar .card p { margin-bottom: 1rem; }
.sidebar ul { list-style: none; padding: 0; margin: 0; }
.sidebar li { border-bottom: 1px solid var(--line); }
.sidebar li:last-child { border: 0; }
.sidebar li a { display: block; padding: .6rem 0; font-weight: 600; color: var(--navy-deep); }
.sidebar li a:hover { color: var(--blue); }
.post-meta { display: flex; flex-wrap: wrap; gap: 1rem; font-size: .92rem; color: rgba(255, 255, 255, .8); margin-top: 1rem; }

/* ── Página de servicio ── */
.service-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 3.5rem; align-items: start; }
.service-layout .content > img { border-radius: var(--radius); margin-bottom: 2rem; box-shadow: var(--shadow); }
.service-layout h2 { font-size: 1.7rem; margin-top: 2.4rem; }
.benefits { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; list-style: none; padding: 0; margin: 1.5rem 0; }
.benefits li { background: var(--surface); border-radius: var(--radius-sm); padding: 1.2rem 1.3rem; border: 1px solid var(--line); }
.benefits .feat-title { font-weight: 800; color: var(--navy-deep); margin: 0 0 .3rem; }
.benefits p { margin: 0; color: var(--muted); font-size: .95rem; }
.process { counter-reset: paso; list-style: none; padding: 0; margin: 1.5rem 0; display: grid; gap: 1rem; }
.process li { counter-increment: paso; display: grid; grid-template-columns: 54px 1fr; gap: 1rem; align-items: start; }
.process li::before { content: counter(paso, decimal-leading-zero); font-size: 1.6rem; font-weight: 800; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1.2; }
.process .step-title { margin: 0 0 .2rem; }
.process p { margin: 0; color: var(--muted); }
.checks { list-style: none; padding: 0; margin: 1rem 0 1.5rem; }
.checks li { padding-left: 2rem; position: relative; margin-bottom: .6rem; }
.checks li::before { content: ""; position: absolute; left: 0; top: .35em; width: 18px; height: 18px; border-radius: 50%; background: var(--grad-btn); }
.checks li::after { content: ""; position: absolute; left: 6px; top: calc(.35em + 4px); width: 5px; height: 9px; border-right: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(45deg); }
.related { margin-top: 2.5rem; padding: 1.4rem 1.6rem; background: var(--surface); border-radius: var(--radius-sm); border-left: 4px solid var(--cyan); }
.related p { margin: 0; }

/* ── Sobre mí (página) ── */
.about-page { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 4rem; align-items: start; }
.about-page h2 { font-size: 1.6rem; margin-top: 2rem; }
.about-page h2:first-child { margin-top: 0; }
.about-aside { position: sticky; top: 6rem; }
.about-aside img { border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 1.4rem; }
.about-facts { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.about-facts li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .8rem 1rem; display: flex; justify-content: space-between; gap: 1rem; font-size: .95rem; }
.about-facts b { color: var(--navy); }

/* ── Contacto ── */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.contact-cards { display: grid; gap: 1rem; }
.contact-card { display: flex; gap: 1rem; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1.2rem 1.3rem; color: inherit; transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.contact-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); text-decoration: none; }
.contact-card .icon { width: 46px; height: 46px; border-radius: 12px; background: var(--surface-2); color: var(--blue); display: grid; place-items: center; flex: none; }
.contact-card .icon svg { width: 24px; height: 24px; }
.contact-card .feat-title { font-weight: 800; margin: 0 0 .15rem; color: var(--navy-deep); }
.contact-card p { margin: 0; color: var(--muted); font-size: .93rem; }
.contact-card .l { font-weight: 700; color: var(--blue); display: block; margin-top: .3rem; }
.form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow-sm); }
.form h2 { font-size: 1.4rem; }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 700; font-size: .9rem; margin-bottom: .35rem; color: var(--navy-deep); }
.field label small { font-weight: 500; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; font: inherit; padding: .8rem .95rem; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: #fff; color: var(--text); transition: border-color .2s, box-shadow .2s; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(59, 123, 255, .15); }
.field textarea { min-height: 130px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field-check { display: flex; gap: .6rem; align-items: flex-start; font-size: .9rem; color: var(--muted); }
.field-check input { width: 18px; height: 18px; margin-top: .2rem; flex: none; }
.hp { position: absolute; left: -9999px; }
.form-msg { margin-top: 1rem; padding: .9rem 1rem; border-radius: var(--radius-sm); font-weight: 600; display: none; }
.form-msg.ok { display: block; background: #e6f8ee; color: #176b3a; }
.form-msg.err { display: block; background: #fdeaea; color: #a12626; }

/* ── CTA banner ── */
.cta-banner { background: var(--grad-hero); color: #fff; position: relative; overflow: hidden; isolation: isolate; }
.cta-banner::before { content: ""; position: absolute; right: -10%; top: -50%; width: 45%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, .15), transparent 65%); z-index: -1; }
.cta-banner::after { content: ""; position: absolute; left: -8%; bottom: -60%; width: 35%; aspect-ratio: 1; border-radius: 46% 54% 42% 58% / 55% 45% 55% 45%; background: linear-gradient(135deg, rgba(56, 198, 244, .5), transparent); z-index: -1; }
.cta-banner h2 { color: #fff; }
.cta-banner p { color: rgba(255, 255, 255, .85); font-size: 1.15rem; max-width: 620px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.6rem; }

/* ── Legales ── */
.legal { max-width: 820px; }
.legal h2 { font-size: 1.4rem; margin-top: 2rem; }
.legal table { width: 100%; border-collapse: collapse; font-size: .92rem; margin: 1rem 0 1.5rem; }
.legal th, .legal td { text-align: left; padding: .6rem .7rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal th { background: var(--surface); }

/* ── 404 ── */
.e404 { text-align: center; padding: 4rem 0; }
.e404 .links { display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem; margin: 1.5rem 0; }

/* ── Footer ── */
.footer { background: var(--navy-deep); color: rgba(255, 255, 255, .8); padding: 4rem 0 2rem; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2.5rem; }
.footer-brand img { width: 200px; height: auto; margin-bottom: 1rem; }
.footer-heading { color: #fff; font-weight: 800; margin: 0 0 .9rem; font-size: 1rem; letter-spacing: .04em; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: .5rem; }
.footer a { color: rgba(255, 255, 255, .8); }
.footer a:hover { color: #fff; }
.footer-social { display: flex; gap: .6rem; margin-top: 1rem; }
.footer-social a { width: 38px; height: 38px; border-radius: 10px; background: rgba(255, 255, 255, .08); display: grid; place-items: center; color: #fff; }
.footer-social a:hover { background: rgba(255, 255, 255, .18); }
.footer-social svg { width: 18px; height: 18px; fill: currentColor; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 2.5rem; padding-top: 1.4rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-size: .85rem; color: rgba(255, 255, 255, .6); }
.footer-legal { display: flex; flex-wrap: wrap; gap: 1rem; }
.cookie-manage { background: none; border: 0; color: rgba(255, 255, 255, .8); font: inherit; font-size: .85rem; cursor: pointer; padding: 0; }
.cookie-manage:hover { color: #fff; text-decoration: underline; }

/* ── Barra móvil ── */
.mobile-cta { display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 850; grid-template-columns: 1fr 1fr; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -8px 24px -12px rgba(0, 0, 0, .3); }
.mobile-cta a { display: flex; align-items: center; justify-content: center; gap: .5rem; padding: .95rem .5rem; font-weight: 700; color: #fff; }
.mobile-cta a:hover { text-decoration: none; }
.mobile-cta .tel { background: var(--navy); }
.mobile-cta .wa { background: #0f7a6d; }
.mobile-cta svg { width: 20px; height: 20px; }

/* ── Cookies ── */
#cookie-banner { position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 950; background: #fff; border-radius: var(--radius); box-shadow: 0 20px 50px -15px rgba(0, 0, 0, .45); padding: 1.2rem 1.4rem; max-width: 620px; margin-inline: auto; transform: translateY(130%); opacity: 0; transition: transform .45s var(--ease), opacity .3s; border: 1px solid var(--line); }
#cookie-banner.visible { transform: translateY(0); opacity: 1; }
.cookie-inner { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; }
.cookie-text { margin: 0; font-size: .9rem; color: var(--muted); flex: 1 1 300px; }
.cookie-buttons { display: flex; gap: .6rem; }
.cookie-btn { font: inherit; font-weight: 700; font-size: .9rem; padding: .6rem 1.1rem; border-radius: 999px; cursor: pointer; border: 2px solid transparent; }
.cookie-btn-accept { background: var(--navy); color: #fff; }
.cookie-btn-reject { background: #fff; color: var(--navy); border-color: var(--line); }

/* ── Scroll reveal ── */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .card, .service-card, .post-card, .contact-card { transition: none; }
}

/* ── Responsive ── */
@media (max-width: 1080px) {
  .why-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: auto; }
  .why-dark { grid-column: span 2; grid-row: auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .article, .service-layout, .about-page { grid-template-columns: 1fr; }
  .sidebar, .about-aside { position: static; }
  .about-aside img { max-width: 380px; }
}
@media (max-width: 900px) {
  .brand img { height: 42px; }
  .nav-links, .nav-right .lang, .nav-right .nav-cta { display: none; }
  .nav-toggle { display: block; }
  .hero { min-height: 0; padding: 6.5rem 0 0; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-text { padding-bottom: 1rem; }
  .hero h1 { max-width: none; }
  .hero-figure img { width: min(78%, 360px); margin-bottom: 0; }
  .hero-social { display: none; }
  .stats { margin-top: 1.5rem; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .about-grid, .case, .services, .contact-grid, .digibal-inner { grid-template-columns: 1fr; }
  .case:nth-child(even) .case-media { order: 0; }
  .steps { grid-template-columns: 1fr; gap: 1.4rem; margin-top: 2.4rem; }
  .posts { grid-template-columns: 1fr 1fr; }
  .post-card.featured { grid-column: span 2; grid-template-columns: 1fr; }
  .post-card.featured img { min-height: 0; aspect-ratio: 16 / 9; }
  .post-card.featured .body { padding: 1.6rem; }
  .mobile-cta { display: grid; }
  body { padding-bottom: 60px; }
  #cookie-banner { bottom: 70px; }
  .footer { padding-bottom: 1rem; }
}
@media (max-width: 600px) {
  .posts, .stats-grid, .benefits, .field-row, .digibal-cities { grid-template-columns: 1fr; }
  .post-card.featured { grid-column: span 1; }
  .why-grid { grid-template-columns: 1fr; }
  .why-dark { grid-column: span 1; }
  .hero-actions .btn { width: 100%; }
  .cta-actions .btn { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.8rem; }
  .diamond { width: min(100%, 300px); }
  .form { padding: 1.4rem; }
}
