/* ============================================================
   Auditax Services VLM — styles.css
   ============================================================ */

/* ─── Variables ──────────────────────────────────────────── */
:root {
  --navy:      #0b0b0b;
  --navy-m:  #1B3A6B;
  --blue:      #090909;
  --blue-lt:   #3B82F6;
  --white:     #FFFFFF;
  --surface:   #F8FAFC;
  --surface2:  #F1F5F9;
  --border:    #E2E8F0;
  --text:      #0D1B2A;
  --mid:       #475569;
  --light:     #94A3B8;

  --hh:        80px;   /* header height */
  --max:       1400px;
  --px:        clamp(20px, 5vw, 80px);
  --py:        clamp(80px, 10vw, 140px);
  --ease:      cubic-bezier(.16,1,.3,1);
}

/* ─── Reset ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%;
       overflow-x: hidden; width: 100%; }
body { font-family: 'Inter', system-ui, sans-serif; font-size: 16px;
       line-height: 1.65; color: var(--text); background: var(--white);
       overflow-x: hidden; width: 100%; max-width: 100%; position: relative; }
img  { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a    { color: inherit; text-decoration: none; }
ul   { list-style: none; }
button { border: none; background: none; cursor: pointer; font: inherit; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 2px; }

/* ─── Shared ─────────────────────────────────────────────── */
.section-label {
  font-size: 11px; font-weight: 600; letter-spacing: .15em;
  text-transform: uppercase; color: var(--blue); margin-bottom: 14px;
  display: block;
}
.section-title {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(26px, 3.8vw, 52px);
  font-weight: 700; color: var(--navy); line-height: 1.12;
   text-shadow:
    0 2px 4px rgba(255,255,255,0.12),
    0 8px 18px rgba(0,0,0,0.20),
    0 20px 60px rgba(0,0,0,0.12);
}
.link { color: var(--blue); transition: opacity .2s; }
.link:hover { opacity: .75; }

/* ─── Header ─────────────────────────────────────────────── */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  height: var(--hh);
  transition: background .4s var(--ease), box-shadow .4s var(--ease);
}
.header--scrolled {
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--border);
}
.header-inner {
  max-width: var(--max); margin: 0 auto;
  padding: 0 var(--px); height: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 40px;
}

/* Logo: blanco sobre hero transparente, oscuro con fondo */
.logo img { height: 80px; width: auto; transition: filter .3s; }
.header:not(.header--scrolled) .logo img { filter: brightness(0) invert(1); }

/* Desktop nav */
.nav { display: flex; align-items: center; gap: 26px; }
@media (min-width: 1200px) { .nav { gap: 32px; } }
.nav-link.is-active { color: var(--blue-lt); }
.header:not(.header--scrolled) .nav-link.is-active { color: #fff; }
.nav-link.is-active::after { width: 100%; }
.nav-link {
  font-size: 14px; font-weight: 500;
  color: var(--text); transition: color .25s; position: relative;
}
.header:not(.header--scrolled) .nav-link { color: rgba(255,255,255,.85); }
.nav-link::after {
  content: ''; position: absolute; left: 0; bottom: -3px;
  width: 0; height: 1.5px; background: var(--blue); transition: width .3s var(--ease);
}
.nav-link:hover::after { width: 100%; }

.nav-cta {
  padding: 10px 24px; background: var(--navy); color: var(--white) !important;
  font-size: 14px; font-weight: 500; border-radius: 2px;
  transition: background .25s, transform .2s;
}
.nav-cta:hover { background: var(--navy-mid); transform: translateY(-1px); }

/* Hamburger */
.menu-btn {
  display: none; flex-direction: column; gap: 5px; padding: 6px;
}
.menu-btn span {
  display: block; width: 24px; height: 1.5px;
  background: var(--white); transition: transform .3s, opacity .3s, background .3s;
  transform-origin: center;
}
.header--scrolled .menu-btn span { background: var(--navy); }
.menu-btn.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.menu-btn.open span:nth-child(2) { opacity: 0; }
.menu-btn.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile nav */
.mobile-nav {
  position: fixed; top: var(--hh); left: 0; right: 0;
  background: var(--white); padding: 0 var(--px);
  max-height: 0; overflow: hidden;
  transition: max-height .45s var(--ease), padding .3s;
  box-shadow: 0 4px 20px rgba(0,0,0,.08);
  z-index: 899;
}
.mobile-nav.open { max-height: 360px; padding-top: 24px; padding-bottom: 32px; }
.mobile-link {
  display: block; font-size: 16px; font-weight: 500; color: var(--text);
  padding: 12px 0; border-bottom: 1px solid var(--border);
}
.mobile-cta {
  display: inline-block; margin-top: 12px;
  padding: 13px 28px; background: var(--navy); color: var(--white) !important;
  border-radius: 2px; border-bottom: none;
}

/* ─── Hero ───────────────────────────────────────────────── */
.hero {
  position: relative; height: 100svh; min-height: 640px;
  background: #0A1628;
  display: flex; align-items: center; overflow: hidden;
}
/* Divisor diagonal hacia el marquee */
.hero::after {
  content: '';
  position: absolute; bottom: -1px; left: 0; right: 0;
  height: 110px;
  background: #0b0b0b;
  clip-path: polygon(0 80%, 100% 0, 100% 100%, 0 100%);
  z-index: 3; pointer-events: none;
}

/* ── Imagen de fondo del hero ─────────────────────────────
   Coloca tu imagen en la carpeta del proyecto y cambia
   el nombre del archivo aquí. Recomendado: 1920×1080 px.
   ─────────────────────────────────────────────────────── */
.hero-bg {
  position: absolute; inset: 0;
  background-image: url('../hero2.png'); /* ← cambia este nombre */
  background-size: cover;
  background-position: center;
   animation: heroZoom 15s ease-in-out infinite alternate;
}
@keyframes heroZoom{
  from{
    transform: scale(1);
  }
  to{
    transform: scale(1.12);
  }
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(10,22,40,.35) 0%, rgba(10,22,40,.15) 60%, rgba(27,58,107,.10) 100%);
}
.hero-content {
  position: relative; z-index: 2;
  max-width: var(--max); margin: 0 auto; padding: 0 var(--px);
  padding-top: var(--hh); width: 100%;
  
}
.hero-label {
  display: inline-block; font-size: 11px; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase; color: var(--blue-lt);
  margin-bottom: 28px;
}
.hero-title {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(42px, 7.5vw, 100px);
  font-weight: 800; line-height: 1.03; color: var(--white); margin-bottom: 28px;
}



.hero-title-img{
 display: inline-block;
  padding: 6px 12px;
  border-radius: 6px; 
  width: 700px;
  max-width: 100%;
  height: auto;
  display: block;
  animation: logoFloat 6s ease-in-out infinite;
filter:
    drop-shadow(0 0 8px rgba(255,255,255,0.25))
    drop-shadow(0 0 18px rgba(255,255,255,0.18))
    drop-shadow(0 0 35px rgba(255,255,255,0.10));
    
}
@keyframes logoFloat{
  0%{
    transform: scale(1);
  }
  50%{
    transform: scale(1.03);
  }
  100%{
    transform: scale(1);
  }
}
.hero-line { display: block; }
.hero-line--stroke {
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255,255,255,.32);
}
.hero-sub {
  font-family: 'Poppins', sans-serif;
  max-width: 540px; font-size: clamp(15px, 1.6vw, 18px); font-weight: 300;
  color: rgba(255,255,255,.68); line-height: 1.72; margin-bottom: 5px;
  text-shadow:
    0 2px 4px rgba(255,255,255,0.12),
    0 8px 18px rgba(0,0,0,0.20),
    0 20px 60px rgba(0,0,0,0.12);    
}
@media (max-width: 768px) {
  .hero-rotating { margin-top: 150px; }
  
}
/* ─── Hero: palabra rotativa ──────────────────────────── */
.hero-rotating {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(18px, 2.5vw, 24px); font-weight: 300;
  color: rgba(255,255,255,.72);
  margin-bottom: 20px; letter-spacing: -.01em;
  text-shadow:
    0 2px 4px rgba(255,255,255,0.12),
    0 8px 18px rgba(0,0,0,0.20),
    0 20px 60px rgba(0,0,0,0.12);
}
.rw {
  font-weight: 600; color: #60A5FA;
  display: inline-block;
  transform-origin: center bottom;
}
.rw.rw-out { animation: rwOut .26s ease forwards; }
.rw.rw-in  { animation: rwIn  .42s cubic-bezier(.16,1,.3,1) forwards; }
@keyframes rwOut {
  to { opacity:0; transform: translateY(-9px) scaleY(.8); filter: blur(2px); }
}
@keyframes rwIn {
  from { opacity:0; transform: translateY(13px) scaleY(.88); filter: blur(2px); }
  to   { opacity:1; transform: translateY(0) scaleY(1);     filter: blur(0); }
}

/* ─── WhatsApp flotante ───────────────────────────────── */
.whatsapp-float {
  position: fixed; bottom: 26px; right: 26px;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25D366;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 22px rgba(37,211,102,.45);
  z-index: 850;
  opacity: 0; transform: scale(.7) translateY(14px);
  transition: opacity .4s var(--ease), transform .4s var(--ease), box-shadow .3s;
}
.whatsapp-float.visible {
  opacity: 1; transform: scale(1) translateY(0);
}
.whatsapp-float:hover {
  transform: scale(1.1) translateY(-2px);
  box-shadow: 0 8px 34px rgba(37,211,102,.6);
}

.hero-btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 16px 36px; background: var(--white); color: var(--navy);
  font-size: 14px; font-weight: 600; letter-spacing: .03em; border-radius: 2px;
  transition: background .25s, color .25s, transform .25s, gap .3s;

}

.hero-btn:hover { background: var(--blue); color: var(--white); transform: translateY(-2px); gap: 18px; }
.hero-btn svg  { transition: transform .3s; }
.hero-btn:hover svg { transform: translateX(4px); }

.hero-scroll {
  position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  z-index: 4;
}
.hero-scroll-line {
  width: 1px; height: 48px;
  background: linear-gradient(to bottom, rgba(255,255,255,.5), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
.hero-scroll span {
  font-size: 10px; letter-spacing: .14em; text-transform: uppercase;
  color: rgba(255,255,255,.35); writing-mode: vertical-lr;
}
@keyframes scrollPulse {
  0%,100% { opacity:.5; transform: scaleY(1); }
  50%      { opacity:1;  transform: scaleY(1.2); }
}

/* ─── Marquee strip ──────────────────────────────────────── */
.marquee-strip {
  background: #0b0b0b;
  overflow: hidden;
  padding: 20px 0;
  border-top: 1px solid rgba(255,255,255,.06);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.marquee-track {
  display: flex;
  align-items: center;
  gap: 44px;
  width: max-content;
  animation: marqueeScroll 28s linear infinite;
}
.marquee-track:hover { animation-play-state: paused; }
.marquee-track span {
  font-family: 'Poppins', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(255,255,255,.45);
  white-space: nowrap;
  transition: color .3s;
}
.marquee-sep {
  color: #1B3A6B !important;
  font-size: 18px !important;
  letter-spacing: 0 !important;
  font-weight: 300 !important;
}
@keyframes marqueeScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-33.333%); }
}

/* ─── Sectores ───────────────────────────────────────────── */
.sectors {
  background: var(--white);
  padding: var(--py) var(--px);
  border-top: 1px solid var(--border);
}
.sectors-wrap { max-width: var(--max); margin: 0 auto; }
.sectors-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  margin-bottom: 56px;
}
.sectors-sub {
  font-size: 14px;
  color: var(--mid);
  line-height: 1.75;
  max-width: 280px;
  text-align: right;
}
.sectors-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}
.sector-item {
  background: var(--white);
  padding: 40px 36px;
  transition: background .3s, transform .3s;
  position: relative;
  overflow: hidden;
}
.sector-item::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: #1B3A6B;
  transition: width .4s cubic-bezier(.16,1,.3,1);
}
.sector-item:hover { background: #0b0b0b; }
.sector-item:hover::after { width: 100%; }
.sector-item:hover .sector-name { color: var(--white); }
.sector-item:hover .sector-desc { color: rgba(255,255,255,.5); }
.sector-item:hover .sector-icon { color: #3B82F6; }

.sector-icon {
  width: 36px; height: 36px;
  color: #1B3A6B;
  margin-bottom: 22px;
  display: block;
  transition: color .3s;
}
.sector-name {
  font-family: 'Poppins', sans-serif;
  font-size: 15px; font-weight: 600;
  color: var(--text);
  margin-bottom: 10px;
  transition: color .3s;
}
.sector-desc {
  font-size: 13px;
  color: var(--mid);
  line-height: 1.7;
  transition: color .3s;
}

/* Lista de subsectores dentro de la tarjeta */
.sector-list { margin-top: 4px; }
.sector-list li {
  font-size: 14px;
  color: var(--mid);
  line-height: 1.55;
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 12px;
  transition: color .3s, border-color .3s, gap .25s;
}
.sector-list li:last-child { border-bottom: none; }
.sector-list li::before {
  content: ''; flex-shrink: 0;
  width: 16px; height: 1px; background: #1B3A6B;
  transition: width .3s var(--ease), background .3s;
}
.sector-item:hover .sector-list li { color: rgba(255,255,255,.62); border-color: rgba(255,255,255,.1); }
.sector-item:hover .sector-list li::before { background: #3B82F6; }

/* Grid de 3 columnas (sectores reestructurados) */
.sectors-grid--3 { grid-template-columns: repeat(3, 1fr); }
.sectors-grid--3 .sector-item { padding: 36px 32px; }

@media (max-width: 1024px) {
  .sectors-grid { grid-template-columns: repeat(2, 1fr); }
  .sectors-grid--3 { grid-template-columns: repeat(2, 1fr); }
  .sectors-header { flex-direction: column; align-items: flex-start; }
  .sectors-sub { text-align: left; max-width: 100%; }
}
@media (max-width: 640px) {
  .sectors-grid { grid-template-columns: 1fr; }
  .sectors-grid--3 { grid-template-columns: 1fr; }
}

/* ─── Nuestro Equipo ─────────────────────────────────────── */
.team {
  background: var(--surface);
  padding: var(--py) var(--px);
  border-top: 1px solid var(--border);
}
.team-wrap { max-width: var(--max); margin: 0 auto; }
.team-header { max-width: 640px; margin-bottom: 56px; }
.team-intro {
  font-size: clamp(15px, 1.7vw, 18px);
  color: var(--mid);
  line-height: 1.75;
  margin-top: 18px;
}
.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.team-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 38px 36px;
  position: relative;
  overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.team-card::before {
  content: '';
  position: absolute; top: 0; left: 0;
  width: 3px; height: 0;
  background: #1B3A6B;
  transition: height .4s var(--ease);
}
.team-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 60px rgba(11,20,40,.1);
  border-color: transparent;
}
.team-card:hover::before { height: 100%; }

.team-card-top {
  display: flex; align-items: center; gap: 16px;
  padding-bottom: 24px; margin-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.team-avatar {
  width: 56px; height: 56px; flex-shrink: 0;
  border-radius: 50%;
  background: #0b0b0b; color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.team-avatar svg { width: 28px; height: 28px; }
.team-name {
  font-family: 'Poppins', sans-serif;
  font-size: 19px; font-weight: 700;
  color: var(--navy); line-height: 1.2;
}
.team-role {
  font-size: 13px; font-weight: 500;
  color: #1B3A6B; margin-top: 4px;
}
.team-facts { display: flex; flex-direction: column; gap: 18px; }
.team-facts li { display: flex; flex-direction: column; gap: 4px; }
.team-fact-label {
  font-size: 10px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--light);
}
.team-fact-val {
  font-size: 14.5px; color: var(--text); line-height: 1.55;
}

@media (max-width: 768px) {
  .team-grid { grid-template-columns: 1fr; }
  .team-card { padding: 32px 26px; }
}

/* ─── Services intro ─────────────────────────────────────── */
.services { background: var(--white); }
.services-intro {
  max-width: var(--max); margin: 0 auto;
  padding: var(--py) var(--px) 60px;
}
.services-intro-label {
  font-size: 11px; font-weight: 600; letter-spacing: .15em;
  text-transform: uppercase; color: var(--blue); margin-bottom: 16px; display: block;
}
.services-intro-title {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(28px, 4vw, 54px); font-weight: 700;
  color: var(--navy); max-width: 600px; line-height: 1.12;
  text-shadow:
    0 2px 4px rgba(255,255,255,0.12),
    0 8px 18px rgba(0,0,0,0.20),
    0 20px 60px rgba(0,0,0,0.12);
}

/* ─── Service Panel ──────────────────────────────────────── */
.service-panel {
  display: grid; grid-template-columns: 44% 56%;
  min-height: 800px; border-top: 1px solid var(--border); overflow: hidden;
}
.service-panel--reversed { grid-template-columns: 56% 44%; }
.service-panel--reversed .sp-content { order: 2; }
.service-panel--reversed .sp-visual  { order: 1; }

/* Content col */
.sp-content {
  padding: 80px clamp(32px, 5vw, 80px);
  display: flex; flex-direction: column; justify-content: center;
  background: var(--white);
}
.sp-sticky {
  position: sticky; top: calc(var(--hh) + 20px); z-index: 2;
  margin-bottom: 28px; background: var(--white); padding-bottom: 4px;
}
.sp-num {
  display: block; font-family: 'Poppins', sans-serif;
  font-size: 11px; font-weight: 600; letter-spacing: .16em;
  color: var(--blue); margin-bottom: 10px;
}
.sp-title {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(38px, 6vw, 82px);
  font-weight: 800; line-height: .95; color: var(--navy); letter-spacing: -.02em;
  text-shadow:
    0 2px 4px rgba(255,255,255,0.12),
    0 8px 18px rgba(0,0,0,0.20),
    0 20px 60px rgba(0,0,0,0.12);
}
.sp-desc {
   font-family: 'Poppins', sans-serif;
  font-size: 15px; color: var(--mid); line-height: 1.75;
  max-width: 400px; margin-bottom: 36px;
}
.sp-list { display: flex; flex-direction: column; }
/* ─── Colores únicos por posición de ítem ─── */
.sp-item:nth-child(1) { --ic: #0F3460; }
.sp-item:nth-child(2) { --ic: #1B4F9C; }
.sp-item:nth-child(3) { --ic: #2563EB; }
.sp-item:nth-child(4) { --ic: #0284C7; }
.sp-item:nth-child(5) { --ic: #0369A1; }
.sp-item:nth-child(6) { --ic: #1D4ED8; }

.sp-item {
  --ic: #1B3A6B;
  font-size: 15px; color: var(--text);
  padding: 16px 0; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 16px;
  font-family: 'Poppins', sans-serif;
  cursor: pointer;
  position: relative;
  /* Fondo deslizante: color de la izquierda, transparente a la derecha */
  background: linear-gradient(to right, var(--ic) 50%, transparent 50%);
  background-size: 200% 100%;
  background-position: right center;
  transition: color .35s, gap .3s,
              background-position .45s cubic-bezier(.16,1,.3,1),
              border-color .35s, padding-left .3s;
}
.sp-item::before {
  content: ''; display: block; width: 20px; height: 1px;
  background: var(--ic); flex-shrink: 0;
  transition: width .3s var(--ease), background .35s;
  position: relative; z-index: 1;
}
.sp-item span { position: relative; z-index: 1; }

/* Hover: el color se desliza desde la izquierda */
.sp-item:hover,
.sp-item.active {
  color: #fff;
  gap: 22px;
  background-position: left center;
  border-bottom-color: rgba(255,255,255,.08);
  padding-left: 8px;
}
.sp-item:hover::before,
.sp-item.active::before {
  background: rgba(255,255,255,.55);
  width: 28px;
}

/* Visual col */
.sp-visual { position: relative; overflow: hidden; min-height: 500px; }
.sp-mask   { position: absolute; inset: 0; will-change: clip-path; }

/* Overlay móvil — oculto en desktop */
.sp-mobile-overlay { display: none; }
.sp-inner  {
  position: absolute; top: -15%; bottom: -15%; left: 0; right: 0;
  will-change: transform; background-size: cover; background-position: center;
}

/* ─── Experience ─────────────────────────────────────────── */
.experience { background: var(--surface); padding: var(--py) var(--px); }
.exp-wrap   { max-width: var(--max); margin: 0 auto; }
.exp-header { margin-bottom: 64px; }
.exp-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px,1fr));
  gap: 1px; background: var(--border); border: 1px solid var(--border);
  margin-bottom: 80px;
}
.exp-item { background: var(--white); padding: 48px 40px; }
.exp-num {
  font-family: 'Poppins', sans-serif; font-size: 42px; font-weight: 800;
  color: transparent; -webkit-text-stroke: 1.5px var(--border);
  line-height: 1; margin-bottom: 20px;
}
.exp-item h3 {
  font-family: 'Poppins', sans-serif; font-size: 17px; font-weight: 600;
  color: var(--navy); margin-bottom: 12px;
}
.exp-item p  { font-size: 14px; color: var(--mid); line-height: 1.75; }
.exp-quote   {
  border-left: 3px solid var(--blue); padding-left: 36px; max-width: 680px;
}
.exp-quote blockquote {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(17px, 2.2vw, 24px); font-style: italic; font-weight: 400;
  color: var(--navy); line-height: 1.55; margin-bottom: 14px;
}
.exp-quote cite { font-size: 13px; font-weight: 500; color: var(--light); font-style: normal; }

/* ─── Contact ────────────────────────────────────────────── */
.contact-sec  { padding: var(--py) var(--px); background: var(--white); }
.contact-wrap {
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(48px, 6vw, 100px); align-items: start;
}
.contact-info { display: flex; flex-direction: column; }
.contact-info .section-title { margin-bottom: 40px; }

#contactDetails { display: flex; flex-direction: column; margin-bottom: 36px; }
.citem {
  display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 16px;
  padding: 18px 0; border-bottom: 1px solid var(--border);
}
.citem-label {
  font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--light); padding-top: 2px;
}
.citem-val {
  font-size: 15px; color: var(--text);
  min-width: 0; overflow-wrap: break-word; word-break: break-word;
}

.cta-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 32px; background: var(--navy); color: var(--white);
  font-size: 14px; font-weight: 500; border-radius: 2px;
  transition: background .25s, transform .25s;
  align-self: flex-start;
}


.contact-map {
  height: 460px; border-radius: 2px; overflow: hidden;
  background: var(--surface2); border: 1px solid var(--border);
}
.contact-map iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-placeholder {
  width: 100%; height: 100%; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 10px; text-align: center;
  padding: 24px;
}
.map-placeholder p    { font-size: 15px; font-weight: 500; color: var(--mid); }
.map-placeholder span { font-size: 12px; color: var(--light); }

/* ─── Footer ─────────────────────────────────────────────── */
.footer { background: var(--navy); color: rgba(255,255,255,.65); }
.footer-inner {
  max-width: var(--max); margin: 0 auto;
  padding: 80px var(--px) 48px;
  display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 60px;
}
.footer-logo {
  height: 52px;
  width: auto;
  margin-bottom: 18px;
}
.footer-tag   { font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--blue-lt); margin-bottom: 14px; }
.footer-desc  { font-size: 14px; line-height: 1.7; max-width: 300px; }
.footer-col h3 {
  font-family: 'Poppins', sans-serif; font-size: 12px; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase; color: var(--white); margin-bottom: 18px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a  { font-size: 14px; color: rgba(255,255,255,.55); transition: color .2s; display: block; overflow-wrap: break-word; word-break: break-word; }
.footer-col a:hover { color: var(--white); }
.footer-col p  { font-size: 14px; color: rgba(255,255,255,.55); margin-bottom: 8px; overflow-wrap: break-word; word-break: break-word; }

.footer-bottom {
  max-width: var(--max); margin: 0 auto;
  padding: 22px var(--px);
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex; justify-content: space-between; align-items: center;
  gap: 20px; flex-wrap: wrap;
}
.footer-bottom p { font-size: 13px; color: rgba(255,255,255,.3); }
.admin-link {
  font-size: 12px; color: rgba(255,255,255,.2); letter-spacing: .08em;
  padding: 5px 12px; border: 1px solid rgba(255,255,255,.1); border-radius: 2px;
  transition: color .25s, border-color .25s;
}
.webdesign-link {
  color: #57666a;
  text-decoration: underline;
  font-weight: 700;
}

.admin-link:hover { color: rgba(255,255,255,.5); border-color: rgba(255,255,255,.25); }

/* ─── Responsive ─────────────────────────────────────────── */
@media (max-width: 1024px) {
  .service-panel { grid-template-columns: 1fr; min-height: auto; }
  .service-panel--reversed { grid-template-columns: 1fr; }

  /* Imagen SIEMPRE primero en móvil/tablet */
  .service-panel .sp-visual,
  .service-panel--reversed .sp-visual  { order: 0; }
  .service-panel .sp-content,
  .service-panel--reversed .sp-content { order: 1; }

  .sp-visual  { min-height: 420px; }
  .sp-sticky  { position: static; }
  .contact-wrap { grid-template-columns: 1fr; }
  .contact-map  { height: 320px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }

  /* Ocultar título y descripción del sp-content — se ven en el overlay */
  .sp-content .sp-sticky,
  .sp-content .sp-desc { display: none; }

  /* sp-content solo muestra la lista de ítems */
  .sp-content { padding: 28px var(--px) 48px; }
  .sp-list { border-top: 1px solid var(--border); padding-top: 4px; }

  /* Overlay: título y descripción flotando sobre la imagen */
  .sp-mobile-overlay {
    display: block;
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 52px 28px 30px;
    background: linear-gradient(to top,
      rgba(6,12,24,.97) 0%,
      rgba(6,12,24,.80) 36%,
      rgba(6,12,24,.12) 72%,
      transparent 100%
    );
    z-index: 3;
  }

  .sp-num-m {
    display: block;
    font-family: 'Poppins', sans-serif;
    font-size: 10px; font-weight: 600;
    letter-spacing: .18em; text-transform: uppercase;
    color: rgba(255,255,255,.38);
    margin-bottom: 7px;
  }

  .sp-title-m {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(22px, 7vw, 34px);
    font-weight: 700; line-height: 1.1;
    color: #fff; letter-spacing: -.01em;
    margin-bottom: 12px;
  }

  .sp-desc-m {
    font-size: 13.5px;
    color: rgba(255,255,255,.65);
    line-height: 1.68;
  }
}
@media (max-width: 768px) {
  .nav { display: none; }
  .menu-btn { display: flex; }
  .hero-title { font-size: clamp(36px, 10vw, 62px); }
  .sp-title   { font-size: clamp(34px, 12vw, 64px); }
  .exp-grid   { grid-template-columns: 1fr; }
  .exp-item   { padding: 36px 28px; }
  .footer-inner { grid-template-columns: 1fr; padding: 56px var(--px) 36px; gap: 36px; }
  .footer-brand { grid-column: 1; }
}
@media (max-width: 480px) {
  .hero-line--stroke { -webkit-text-stroke: 1px rgba(255,255,255,.28); }
  .sp-visual  { min-height: 340px; }
  .exp-quote  { padding-left: 20px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .citem { grid-template-columns: 90px 1fr; }
}

/* ════════════════════════════════════════════════════════════
   Página: Artículos y Novedades
   ════════════════════════════════════════════════════════════ */

/* ── Hero compacto ── */
.art-hero {
  position: relative;
  min-height: 52vh;
  display: flex; align-items: center;
  background: #0A1628;
  overflow: hidden;
}
.art-hero-bg {
  position: absolute; inset: 0;
  background-image: url('../hero2.png');
  background-size: cover; background-position: center;
  opacity: .5;
}
.art-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(120deg, rgba(8,16,30,.92) 0%, rgba(8,16,30,.7) 55%, rgba(27,58,107,.5) 100%);
}
.art-hero-content {
  position: relative; z-index: 2;
  max-width: var(--max); margin: 0 auto; width: 100%;
  padding: calc(var(--hh) + 50px) var(--px) 56px;
}
.art-hero-label {
  display: inline-block;
  font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
  color: var(--blue-lt); margin-bottom: 18px;
}
.art-hero-title {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(34px, 5.5vw, 64px); font-weight: 800;
  color: #fff; line-height: 1.05; margin-bottom: 18px;
}
.art-hero-sub {
  font-family: 'Poppins', sans-serif;
  max-width: 600px; font-size: clamp(14px, 1.6vw, 17px); font-weight: 300;
  color: rgba(255,255,255,.72); line-height: 1.7;
}

/* ── Contenedor principal ── */
.art-main { background: var(--surface); padding: var(--py) var(--px); min-height: 40vh; }
.art-wrap { max-width: var(--max); margin: 0 auto; }

/* ── Estados (cargando / vacío) ── */
.art-state {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 70px 20px; gap: 16px;
  color: var(--mid);
}
.art-empty h2 {
  font-family: 'Poppins', sans-serif; font-size: 24px; font-weight: 700;
  color: var(--navy); margin-top: 4px;
}
.art-empty p { max-width: 440px; font-size: 15px; line-height: 1.7; }
.art-spinner {
  width: 38px; height: 38px; border-radius: 50%;
  border: 3px solid var(--border); border-top-color: #1B3A6B;
  animation: artSpin .8s linear infinite;
}
@keyframes artSpin { to { transform: rotate(360deg); } }

/* ── Grid de tarjetas ── */
.art-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.art-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  display: flex; flex-direction: column;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.art-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 56px rgba(11,20,40,.12);
  border-color: transparent;
}
.art-card:focus-visible { outline: 2px solid var(--blue-lt); outline-offset: 3px; }
.art-card-media {
  height: 200px; overflow: hidden; background: var(--surface2);
}
.art-card-media img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .5s var(--ease);
}
.art-card:hover .art-card-media img { transform: scale(1.06); }
.art-card-media--empty {
  display: flex; align-items: center; justify-content: center;
}
.art-card-body { padding: 24px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.art-card-date {
  font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--light); margin-bottom: 10px;
}
.art-card-title {
  font-family: 'Poppins', sans-serif;
  font-size: 18px; font-weight: 700; color: var(--navy);
  line-height: 1.3; margin-bottom: 10px;
}
.art-card-excerpt {
  font-size: 14px; color: var(--mid); line-height: 1.65;
  margin-bottom: 18px; flex: 1;
}
.art-card-link {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13px; font-weight: 600; color: #1B3A6B;
  transition: gap .25s;
}
.art-card:hover .art-card-link { gap: 12px; }

/* ── Paginación ── */
.art-pager {
  display: flex; align-items: center; justify-content: center; gap: 22px;
  margin-top: 50px;
}
.art-pager-btn {
  width: 46px; height: 46px; border-radius: 50%;
  border: 1.5px solid var(--border); background: var(--white);
  color: var(--navy);
  display: flex; align-items: center; justify-content: center;
  transition: background .25s, color .25s, border-color .25s, transform .2s;
}
.art-pager-btn:hover:not(:disabled) {
  background: #0b0b0b; color: #fff; border-color: #0b0b0b; transform: translateY(-2px);
}
.art-pager-btn:disabled { opacity: .35; cursor: not-allowed; }
.art-pager-info {
  font-family: 'Poppins', sans-serif; font-size: 14px; font-weight: 600;
  color: var(--text); min-width: 56px; text-align: center;
}

/* ── Vista de artículo (lectura a pantalla completa) ── */
.art-modal-bg {
  position: fixed; inset: 0; z-index: 1200;
  background: var(--white);
  display: none; overflow-y: auto;
}
.art-modal-bg.open { display: block; }
.art-modal {
  position: relative;
  background: var(--white);
  width: 100%; min-height: 100vh;
  animation: artModalIn .4s var(--ease);
}
@keyframes artModalIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
.art-modal-close {
  position: fixed; top: 22px; right: 22px; z-index: 3;
  width: 46px; height: 46px; border-radius: 50%;
  background: rgba(255,255,255,.92); color: var(--navy);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 18px rgba(0,0,0,.2);
  transition: background .2s, transform .2s;
}
.art-modal-close:hover { background: #fff; transform: rotate(90deg); }

/* Imagen como banner grande */
.art-modal-media { width: 100%; height: 56vh; max-height: 620px; overflow: hidden; }
.art-modal-media img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Columna de lectura centrada y cómoda */
.art-modal-body {
  max-width: 820px; margin: 0 auto;
  padding: clamp(40px, 6vw, 80px) var(--px) 100px;
}
.art-modal-date {
  font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--light); margin-bottom: 16px;
}
.art-modal-title {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(30px, 5vw, 52px); font-weight: 800;
  color: var(--navy); line-height: 1.12; margin-bottom: 36px;
  padding-bottom: 36px; border-bottom: 1px solid var(--border);
}
.art-modal-content { color: var(--text); font-size: clamp(16px, 1.4vw, 19px); line-height: 1.85; }
.art-modal-content p { margin-bottom: 24px; }
.art-modal-content p:last-child { margin-bottom: 0; }

/* ── Responsive artículos ── */
@media (max-width: 1024px) {
  .art-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .art-grid { grid-template-columns: 1fr; }
  .art-card-media { height: 190px; }
  .art-hero { min-height: 44vh; }
}
