/* ================================================================
   ARTACHO PERÍCIA 26 — Design System
   Paleta: #0099FF (primary), negre i gris per textos
   ================================================================ */

/* ── Variables ── */
:root {
  --bg: #f4f7fa;
  --bg-gray: #edf1f5;
  --surface: #ffffff;
  --primary: #0099ff;
  --primary-strong: #007acc;
  --primary-light: #e6f3ff;
  --primary-soft: #4db8ff;
  --primary-pale: #b0d9ff;
  --dark: #0a1628;
  --dark-surface: #0f2240;
  --text: #0f2230;
  --muted: #4a6578;
  --border: #dae2ea;
  --radius: 1rem;
  --radius-sm: 0.6rem;
  --shadow-sm: 0 2px 8px rgba(10,22,40,0.06);
  --shadow-md: 0 8px 30px rgba(10,22,40,0.1);
  --shadow-lg: 0 20px 50px rgba(10,22,40,0.14);
  --shadow-glow: 0 0 30px rgba(0,153,255,0.25);
  --transition: 0.4s cubic-bezier(.4,0,.2,1);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
h1,h2,h3 { line-height: 1.2; margin: 0 0 .5rem; }
p { margin: 0 0 .5rem; }
ul { margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

::selection { background: rgba(0,153,255,.18); }

.container {
  width: min(1180px, 92%);
  margin: 0 auto;
}

/* ── Scroll reveal ── */
[data-reveal] {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .8s var(--transition), transform .8s var(--transition);
}
[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}
[data-reveal-delay="1"] { transition-delay: .12s; }
[data-reveal-delay="2"] { transition-delay: .24s; }
[data-reveal-delay="3"] { transition-delay: .36s; }

/* ================================================================
   TOPBAR — Glassmorphism
   ================================================================ */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  padding: .8rem 0;
  background: rgba(255,255,255,0.72);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(218,226,234,0.5);
  transition: background .3s, box-shadow .3s, padding .3s;
}
.topbar.scrolled {
  background: rgba(255,255,255,0.95);
  box-shadow: 0 4px 20px rgba(10,22,40,0.08);
  padding: .45rem 0;
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand img { height: 56px; width: auto; transition: height .3s ease; }
.topbar.scrolled .brand img { height: 38px; }
.nav {
  display: flex;
  align-items: center;
  gap: 1.8rem;
}
.nav a {
  text-decoration: none;
  font-size: .9rem;
  font-weight: 500;
  color: var(--muted);
  position: relative;
  transition: color .25s;
}
.nav a:not(.nav__cta)::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  border-radius: 1px;
  transition: width .3s ease;
}
.nav a:not(.nav__cta):hover { color: var(--primary); }
.nav a:not(.nav__cta):hover::after { width: 100%; }
.nav__cta {
  background: linear-gradient(135deg, var(--primary), var(--primary-strong));
  color: #fff !important;
  padding: .55rem 1.2rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: all .3s;
  box-shadow: 0 2px 10px rgba(0,153,255,0.25);
}
.nav__cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0,153,255,0.35);
}

/* Burger */
.burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  flex-direction: column;
  gap: 5px;
  z-index: 210;
}
.burger span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .35s, opacity .25s;
}
.burger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

@media (max-width: 900px) {
  .burger { display: flex; }
  .nav {
    position: fixed;
    inset: 0;
    top: 0;
    flex-direction: column;
    justify-content: center;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(20px);
    padding: 2rem;
    gap: 1.5rem;
    transform: translateX(100%);
    transition: transform .4s cubic-bezier(.4,0,.2,1);
    z-index: 200;
  }
  .nav.open { transform: translateX(0); }
  .nav a { font-size: 1.3rem; }
  .nav__cta { font-size: 1.1rem !important; padding: .75rem 1.6rem; }
}

/* ================================================================
   HERO — Dark gradient, floating shapes, animated counters
   ================================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #0a1628 0%, #0d2240 40%, #0f2a4a 70%, #0a1e38 100%);
  color: #fff;
  overflow: hidden;
  padding: 7rem 0 8rem;
}

/* Floating blurred shapes */
.hero__shapes { pointer-events: none; }
.hero__shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  will-change: transform;
}
.hero__shape--1 {
  width: 600px; height: 600px;
  background: rgba(0,153,255,0.1);
  top: -15%; right: -10%;
  animation: heroFloat 25s ease-in-out infinite;
}
.hero__shape--2 {
  width: 400px; height: 400px;
  background: rgba(0,128,192,0.07);
  bottom: -5%; left: -8%;
  animation: heroFloat 20s ease-in-out infinite reverse;
}
.hero__shape--3 {
  width: 250px; height: 250px;
  background: rgba(0,153,255,0.06);
  top: 35%; left: 45%;
  animation: heroFloat 18s ease-in-out infinite 3s;
}
.hero__shape--4 {
  width: 180px; height: 180px;
  background: rgba(0,153,255,0.06);
  top: 60%; right: 20%;
  animation: heroFloat 22s ease-in-out infinite 5s;
}

@keyframes heroFloat {
  0%,100% { transform: translate(0,0) scale(1); }
  25% { transform: translate(30px,-25px) scale(1.05); }
  50% { transform: translate(-20px,15px) scale(.95); }
  75% { transform: translate(15px,-10px) scale(1.02); }
}

/* Dot grid */
.hero__dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}

/* Content */
.hero__content {
  position: relative;
  z-index: 2;
  max-width: 760px;
}
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .45rem 1rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 50px;
  font-size: .85rem;
  font-weight: 500;
  color: rgba(255,255,255,0.75);
  margin-bottom: 1.5rem;
  backdrop-filter: blur(8px);
}
.hero__badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0%,100% { opacity: 1; box-shadow: 0 0 0 0 rgba(0,153,255,.4); }
  50% { opacity: .8; box-shadow: 0 0 0 6px rgba(0,153,255,0); }
}

.hero__heading {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900;
  letter-spacing: -.03em;
  line-height: 1.08;
  margin-bottom: 1.25rem;
  background: linear-gradient(135deg, #ffffff 30%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero__br { display: none; }
@media (min-width: 600px) { .hero__br { display: inline; } }

.hero__lead {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.65);
  max-width: 580px;
  line-height: 1.7;
  margin-bottom: 2rem;
}

/* Hero actions */
.hero__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .85rem 1.5rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 600;
  font-size: .95rem;
  border: none;
  cursor: pointer;
  transition: all .3s ease;
  white-space: nowrap;
}
.btn svg { flex-shrink: 0; }

.btn--glow {
  background: linear-gradient(135deg, var(--primary), var(--primary-strong));
  color: #fff;
  box-shadow: 0 4px 15px rgba(0,153,255,.3), 0 0 40px rgba(0,153,255,.15);
}
.btn--glow:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0,153,255,.4), 0 0 60px rgba(0,153,255,.2);
}

.btn--outline {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,.25);
  backdrop-filter: blur(4px);
}
.btn--outline:hover {
  border-color: var(--primary);
  background: rgba(0,153,255,.08);
  transform: translateY(-1px);
}

.btn--outline-light {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,.3);
}
.btn--outline-light:hover {
  background: rgba(255,255,255,.08);
  border-color: #fff;
}

.btn--lg {
  padding: 1rem 2rem;
  font-size: 1.05rem;
}

/* Hero stats */
.hero__stats {
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(255,255,255,.08);
}
.hero__stat {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.hero__stat-num {
  font-size: 2.5rem;
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(135deg, #fff, var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero__stat-label {
  font-size: .82rem;
  color: rgba(255,255,255,.5);
  margin-top: .35rem;
}
.hero__stat--icon {
  flex-direction: row;
  align-items: center;
  gap: .65rem;
}
.hero__stat--icon svg { flex-shrink: 0; }

/* Wave */
.hero__wave {
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  line-height: 0;
  z-index: 1;
}
.hero__wave svg {
  display: block;
  width: 100%;
  height: 90px;
}
@media (max-width: 600px) {
  .hero__wave svg { height: 50px; }
  .hero__stats { gap: 1.5rem; }
  .hero__stat-num { font-size: 2rem; }
}

/* ================================================================
   TRUST BAR
   ================================================================ */
.trust-bar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
}
.trust-bar__inner {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}
.trust-bar__item {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .85rem;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}
@media (max-width: 600px) {
  .trust-bar__inner { gap: 1rem; justify-content: flex-start; }
  .trust-bar__item { font-size: .78rem; }
}

/* ================================================================
   SECTIONS — General
   ================================================================ */
.section {
  padding: 5rem 0;
  position: relative;
}
.section--gray {
  background: var(--bg-gray);
}

.section__eyebrow {
  display: inline-block;
  font-size: .82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--primary);
  margin-bottom: .5rem;
}
.section__eyebrow--light { color: var(--primary-soft); }

.section__title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -.02em;
  margin-bottom: .75rem;
}
.section__title--light { color: #fff; }

.section__intro {
  max-width: 700px;
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 2rem;
}
.section__intro--light { color: rgba(255,255,255,.6); }

/* ================================================================
   SERVICE CARDS — Gradient border, icon glow
   ================================================================ */
.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
@media (max-width: 960px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .cards { grid-template-columns: 1fr; } }

.card {
  position: relative;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 2rem 1.5rem 1.75rem;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  border: 1px solid transparent;
}
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--card-accent, var(--primary)), var(--primary-strong));
  transition: height .35s ease;
}
.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(0,153,255,.12);
}
.card:hover::before { height: 5px; }

.card__icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--primary-light);
  margin-bottom: 1.25rem;
  transition: all var(--transition);
}
.card:hover .card__icon {
  transform: scale(1.1);
  box-shadow: 0 0 30px rgba(0,153,255,.15);
}

.card h3 {
  font-size: 1.1rem;
  margin-bottom: .5rem;
}
.card p {
  color: var(--muted);
  font-size: .92rem;
  line-height: 1.6;
  margin-bottom: .75rem;
}
.card__more {
  font-size: .85rem;
  font-weight: 600;
  color: var(--primary);
  opacity: 0;
  transform: translateY(8px);
  transition: all .3s ease;
}
.card:hover .card__more {
  opacity: 1;
  transform: translateY(0);
}

/* ================================================================
   METHODOLOGY — Steps with connecting line
   ================================================================ */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 1rem;
  position: relative;
}
/* Connecting line */
.steps::before {
  content: '';
  position: absolute;
  top: 48px;
  left: calc(12.5% + 10px);
  right: calc(12.5% + 10px);
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--primary-strong));
  border-radius: 2px;
  opacity: .3;
}

.step {
  text-align: center;
  position: relative;
}
.step__number {
  display: none;
  font-size: .75rem;
  font-weight: 800;
  color: rgba(0,153,255,.25);
  letter-spacing: .05em;
  margin-bottom: .5rem;
}
.step__icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-strong));
  box-shadow: 0 8px 30px rgba(0,153,255,.25);
  position: relative;
  z-index: 1;
  transition: all var(--transition);
}
.step:hover .step__icon {
  transform: scale(1.1);
  box-shadow: 0 12px 40px rgba(0,153,255,.35);
}

/* Step number overlay */
.step__icon::before {
  content: attr(data-step);
  position: absolute;
  top: -8px;
  right: -8px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--surface);
  color: var(--primary-strong);
  font-size: .75rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,.1);
}

.step h3 {
  font-size: 1.05rem;
  margin-bottom: .5rem;
}
.step p {
  font-size: .9rem;
  color: var(--muted);
  line-height: 1.6;
  max-width: 260px;
  margin: 0 auto;
}

/* ================================================================
   SPECIALTIES — Enhanced accordion
   ================================================================ */
.specialties {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

.specialty {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all .35s ease;
}
.specialty:hover {
  border-color: rgba(0,153,255,.3);
  box-shadow: 0 4px 20px rgba(0,153,255,.06);
}
.specialty[open] {
  border-color: var(--primary);
  box-shadow: 0 8px 30px rgba(0,153,255,.1);
}

.specialty__header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.15rem 1.5rem;
  cursor: pointer;
  list-style: none;
  user-select: none;
  transition: background .2s;
}
.specialty__header::-webkit-details-marker { display: none; }
.specialty__header:hover { background: rgba(0,153,255,.02); }
.specialty[open] .specialty__header {
  background: linear-gradient(90deg, rgba(0,153,255,.05), transparent);
  border-bottom: 1px solid var(--border);
}

.specialty__icon {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-strong));
  box-shadow: 0 4px 12px rgba(0,153,255,.2);
  transition: all .3s;
}
.specialty__icon--penal { background: linear-gradient(135deg, var(--primary), #0070a8); box-shadow: 0 4px 12px rgba(0,153,255,.2); }
.specialty__icon--civil { background: linear-gradient(135deg, #0090d0, #006090); box-shadow: 0 4px 12px rgba(0,144,208,.2); }
.specialty__icon--merc  { background: linear-gradient(135deg, #0080c0, #005a8a); box-shadow: 0 4px 12px rgba(0,128,192,.2); }
.specialty__icon--fam   { background: linear-gradient(135deg, #00b0e8, #0080b0); box-shadow: 0 4px 12px rgba(0,176,232,.2); }
.specialty__icon--admin { background: linear-gradient(135deg, #0070a8, #004a78); box-shadow: 0 4px 12px rgba(0,112,168,.2); }

.specialty:hover .specialty__icon { transform: scale(1.08); }

.specialty__title { flex: 1; }
.specialty__title h3 {
  font-size: 1.1rem;
  margin: 0;
}
.specialty__tag {
  font-size: .8rem;
  color: var(--muted);
  display: block;
  margin-top: .1rem;
}

.specialty__arrow {
  flex-shrink: 0;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: all .3s;
}
.specialty__arrow::before,
.specialty__arrow::after {
  content: '';
  position: absolute;
  background: var(--muted);
  border-radius: 1px;
  transition: all .35s ease;
}
.specialty__arrow::before { width: 12px; height: 2px; }
.specialty__arrow::after  { width: 2px; height: 12px; }
.specialty[open] .specialty__arrow {
  background: var(--primary-light);
}
.specialty[open] .specialty__arrow::after {
  transform: rotate(90deg);
  opacity: 0;
}
.specialty[open] .specialty__arrow::before { background: var(--primary); }

.specialty__content {
  padding: 1.5rem 1.5rem 1.5rem 5rem;
  animation: slideDown .35s ease;
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.specialty__list {
  list-style: none;
  padding: 0;
}
.specialty__list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: .75rem;
  font-size: .93rem;
  line-height: 1.65;
  color: var(--text);
}
.specialty__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: .6em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary);
  opacity: .6;
}
.specialty__list strong { color: var(--primary-strong); }

@media (max-width: 600px) {
  .specialty__content { padding-left: 1.5rem; }
}

/* ================================================================
   EXPERIENCE — Timeline & Badges
   ================================================================ */
.exp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 1.5rem;
}
@media (max-width: 860px) { .exp-grid { grid-template-columns: 1fr; } }

.exp-col__title {
  font-size: 1.15rem;
  margin-bottom: 1.25rem;
}

/* Timeline */
.timeline {
  list-style: none;
  padding: 0;
  position: relative;
  margin-top: .5rem;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 9px;
  top: 8px;
  bottom: 8px;
  width: 3px;
  background: linear-gradient(180deg, var(--primary), var(--primary-strong));
  border-radius: 2px;
  opacity: .3;
}

.timeline__item {
  display: flex;
  gap: 1.25rem;
  margin-bottom: 4.5rem;
  position: relative;
}
.timeline__dot {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--surface);
  border: 3px solid var(--primary);
  margin-top: 2px;
  z-index: 1;
  box-shadow: 0 0 0 4px rgba(0,153,255,.1);
  transition: all .3s;
}
.timeline__item:hover .timeline__dot {
  background: var(--primary-light);
  box-shadow: 0 0 0 8px rgba(0,153,255,.12);
}
.timeline__body strong {
  display: block;
  font-size: 1.05rem;
}
.timeline__date {
  display: inline-block;
  font-size: .8rem;
  font-weight: 600;
  color: var(--primary);
  background: var(--primary-light);
  padding: .15rem .6rem;
  border-radius: 50px;
  margin-top: .3rem;
}
.timeline__body p {
  color: var(--muted);
  font-size: .92rem;
  margin-top: .5rem;
}

/* Badges */
.badges {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: .6rem;
}
.badge {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .7rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: .88rem;
  transition: all .3s ease;
}
.badge:hover {
  border-color: var(--primary);
  transform: translateX(4px);
  box-shadow: 0 2px 12px rgba(0,153,255,.08);
}
.badge svg { flex-shrink: 0; }
.badge--highlight {
  background: var(--primary-light);
  border-color: var(--primary);
  font-weight: 600;
}

/* ================================================================
   TOOLS — Download cards
   ================================================================ */
.dl-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
@media (max-width: 900px) { .dl-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .dl-grid { grid-template-columns: 1fr; } }

.dl-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.25rem 1.5rem;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}
.dl-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--primary-strong));
  transform: scaleX(0);
  transition: transform .4s ease;
}
.dl-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(0,153,255,.2);
}
.dl-card:hover::after { transform: scaleX(1); }

.dl-card__icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-strong));
  margin-bottom: 1.25rem;
  box-shadow: 0 6px 20px rgba(0,153,255,.2);
  transition: all var(--transition);
}
.dl-card:hover .dl-card__icon {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 10px 30px rgba(0,153,255,.3);
}

.dl-card h3 { font-size: 1.05rem; margin-bottom: .4rem; }
.dl-card p {
  color: var(--muted);
  font-size: .87rem;
  line-height: 1.6;
  flex: 1;
}
.dl-card__link {
  display: inline-block;
  margin-top: .85rem;
  font-weight: 700;
  font-size: .88rem;
  color: var(--primary-strong);
  transition: color .2s;
}
.dl-card__link span { transition: transform .3s; display: inline-block; }
.dl-card:hover .dl-card__link span { transform: translate(3px, -3px); }

/* ================================================================
   INCIBE RESOURCES
   ================================================================ */
.section--incibe {
  background: linear-gradient(135deg, #e8f4fc 0%, #edf1f5 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.resource-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}
@media (max-width: 700px) { .resource-grid { grid-template-columns: 1fr; } }

.resource-card {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  text-decoration: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}
.resource-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.resource-card__icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-strong));
  box-shadow: 0 4px 14px rgba(0,153,255,.2);
  transition: all .3s;
}
.resource-card__icon--alt {
  background: linear-gradient(135deg, var(--primary-strong), #005a8a);
  box-shadow: 0 4px 14px rgba(0,128,192,.2);
}
.resource-card:hover .resource-card__icon { transform: scale(1.08); }

.resource-card__body h3 { font-size: 1.05rem; margin-bottom: .35rem; }
.resource-card__body p { color: var(--muted); font-size: .88rem; line-height: 1.6; }

/* ================================================================
   CTA BANNER
   ================================================================ */
.cta-banner {
  background: linear-gradient(135deg, var(--primary), var(--primary-strong));
  padding: 4rem 0;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%; right: -10%;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: rgba(255,255,255,.06);
  pointer-events: none;
}
.cta-banner::after {
  content: '';
  position: absolute;
  bottom: -30%; left: -5%;
  width: 350px; height: 350px;
  border-radius: 50%;
  background: rgba(0,0,0,.04);
  pointer-events: none;
}

.cta-banner__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}
.cta-banner__text h2 {
  color: #fff;
  font-size: clamp(1.4rem, 3vw, 2rem);
  margin-bottom: .5rem;
}
.cta-banner__text p {
  color: rgba(255,255,255,.8);
  font-size: 1.05rem;
}
.cta-banner__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.cta-banner .btn--glow {
  background: #fff;
  color: var(--primary-strong);
  box-shadow: 0 4px 20px rgba(0,0,0,.15);
}
.cta-banner .btn--glow:hover {
  box-shadow: 0 8px 30px rgba(0,0,0,.2);
  transform: translateY(-2px);
}

/* ================================================================
   CONTACT — Dark section with glass cards
   ================================================================ */
.section--dark {
  background: linear-gradient(135deg, #0a1628 0%, #0f2a4a 50%, #0d2040 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.section--dark::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
@media (max-width: 640px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius);
  text-decoration: none;
  color: #fff;
  transition: all .3s ease;
  backdrop-filter: blur(8px);
}
a.contact-card:hover {
  background: rgba(255,255,255,.08);
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0,153,255,.15);
}

.contact-card__icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,153,255,.12);
  border: 1px solid rgba(0,153,255,.2);
}

.contact-card__label {
  display: block;
  font-size: .78rem;
  color: rgba(255,255,255,.45);
  text-transform: uppercase;
  letter-spacing: .06em;
  font-weight: 600;
  margin-bottom: .15rem;
}
.contact-card__value {
  display: block;
  font-size: .95rem;
  font-weight: 500;
}
.contact-card__sub {
  display: block;
  font-size: .82rem;
  color: rgba(255,255,255,.4);
  margin-top: .15rem;
}

/* ================================================================
   FOOTER
   ================================================================ */
.footer {
  background: #060e1a;
  color: rgba(255,255,255,.55);
  padding: 3rem 0 0;
  font-size: .85rem;
  border-top: 1px solid rgba(255,255,255,.05);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
}
.footer__col h4 {
  color: #fff;
  font-size: .95rem;
  margin-bottom: .8rem;
  font-weight: 700;
}
.footer__col p {
  margin: 0 0 .4rem;
  display: flex;
  align-items: center;
  gap: .4rem;
}
.footer__col a {
  color: rgba(255,255,255,.55);
  text-decoration: none;
  transition: color .2s;
}
.footer__col a:hover {
  color: #0099FF;
}
.footer__logo {
  margin-bottom: .8rem;
  display: block;
}
.footer__bottom {
  text-align: center;
  padding: 1.5rem 0;
  margin-top: 2.5rem;
  border-top: 1px solid rgba(255,255,255,.08);
  color: rgba(255,255,255,.3);
  font-size: .8rem;
}
@media (max-width: 768px) {
  .footer__grid { grid-template-columns: 1fr; gap: 1.5rem; }
}

/* ================================================================
   WHATSAPP FLOATING BUTTON
   ================================================================ */
.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: #25d366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,.4);
  z-index: 999;
  transition: all .3s ease;
  animation: wa-pulse 2.5s ease-in-out infinite;
}
.whatsapp-float:hover {
  transform: scale(1.12);
  box-shadow: 0 8px 35px rgba(37,211,102,.55);
}

@keyframes wa-pulse {
  0%,100% { box-shadow: 0 4px 20px rgba(37,211,102,.4); }
  50% { box-shadow: 0 4px 20px rgba(37,211,102,.4), 0 0 0 12px rgba(37,211,102,.1); }
}

/* ================================================================
   HERO — Photo layout
   ================================================================ */
.hero__inner {
  display: flex;
  align-items: center;
  gap: 4rem;
}
.hero__photo {
  flex-shrink: 0;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid rgba(0,153,255,.3);
  box-shadow: 0 0 60px rgba(0,153,255,.2), 0 20px 50px rgba(0,0,0,.3);
  position: relative;
  z-index: 2;
}
.hero__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
@media (max-width: 900px) {
  .hero__inner { flex-direction: column-reverse; gap: 2rem; text-align: center; }
  .hero__photo { width: 200px; height: 200px; }
  .hero__stats { justify-content: center; }
  .hero__actions { justify-content: center; }
}
@media (max-width: 600px) {
  .hero__photo { width: 160px; height: 160px; }
}

/* ================================================================
   LOGO CAROUSEL — Training centers
   ================================================================ */
.carousel-wrap {
  margin-top: 2.5rem;
  overflow: hidden;
  position: relative;
  padding: 1rem 0;
}
.carousel-wrap::before,
.carousel-wrap::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}
.carousel-wrap::before {
  left: 0;
  background: linear-gradient(90deg, var(--bg-gray), transparent);
}
.carousel-wrap::after {
  right: 0;
  background: linear-gradient(90deg, transparent, var(--bg-gray));
}
.carousel-track {
  display: flex;
  gap: 3rem;
  animation: carouselScroll 30s linear infinite;
  width: max-content;
}
.carousel-track:hover { animation-play-state: paused; }
.carousel-item {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .6rem 1.2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: .82rem;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
  flex-shrink: 0;
}
.carousel-item svg { flex-shrink: 0; opacity: .6; }
@keyframes carouselScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ================================================================
   RESPONSIVE FINE-TUNING
   ================================================================ */
@media (max-width: 900px) {
  .section { padding: 3.5rem 0; }
  .hero { padding: 6rem 0 7rem; min-height: auto; }
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .hero { padding: 5rem 0 5rem; }
  .hero__heading { font-size: 2.2rem; }
  .hero__lead { font-size: 1rem; }
  .hero__actions { flex-direction: column; }
  .btn--lg { width: 100%; justify-content: center; }
  .cta-banner__inner { flex-direction: column; text-align: center; }
  .cta-banner__actions { flex-direction: column; width: 100%; }
  .whatsapp-float { bottom: 1.25rem; right: 1.25rem; width: 56px; height: 56px; }
  .steps { grid-template-columns: 1fr; }
}
