/* ============================================================
   VALBARÁ SOLUTIONS — Diseño Moderno 2025
   Paleta: Azul profundo · Celeste · Turquesa · Blanco
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800;900&family=Inter:wght@300;400;500;600&display=swap');

/* ── Variables ────────────────────────────────────────────── */
:root {
  --navy:       #0a1628;
  --deep:       #0d2240;
  --mid:        #0e4f8a;
  --accent:     #0ea5e9;
  --turq:       #06b6d4;
  --mint:       #22d3ee;
  --light:      #e0f7ff;
  --white:      #ffffff;
  --gray:       #f0f6fb;
  --text:       #1e293b;
  --muted:      #64748b;
  --border:     rgba(14,165,233,.18);

  --font-head:  'Montserrat', sans-serif;
  --font-body:  'Inter', sans-serif;

  --radius:     16px;
  --radius-sm:  8px;
  --shadow:     0 8px 40px rgba(10,22,40,.14);
  --shadow-lg:  0 20px 60px rgba(10,22,40,.22);
  --trans:      all .3s cubic-bezier(.4,0,.2,1);
}

/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
/* Prevent flex from stretching/squishing text */
h1,h2,h3,h4,h5,h6,p,a,span,li,button {
  font-stretch: normal;
  min-width: 0;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; transition: var(--trans); }
ul { list-style: none; }

/* ── Scroll custom ──────────────────────────────────────────*/
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--navy); }
::-webkit-scrollbar-thumb { background: var(--turq); border-radius: 3px; }

/* ── Typography ───────────────────────────────────────────── */
h1,h2,h3,h4,h5 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.25;
  color: var(--navy);
}
.section-label {
  font-family: var(--font-head);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--turq);
  display: block;
  margin-bottom: .75rem;
}
.section-title {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  color: var(--navy);
  margin-bottom: 1rem;
  line-height: 1.25;
  font-weight: 700;
}
.section-title span { color: var(--turq); }
.section-lead {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 600px;
}

/* ── Utility ──────────────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 2.5rem; }
.row { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.col-2 { flex: 0 0 calc(50% - .75rem); }
.col-3 { flex: 0 0 calc(33.333% - 1rem); }
.col-4 { flex: 0 0 calc(25% - 1.125rem); }
.text-center { text-align: center; }
.mt-2 { margin-top: .5rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mb-2 { margin-bottom: .5rem; }
.section-pad { padding: 5rem 0; }
.section-pad-sm { padding: 3rem 0; }

/* ── Gradient backgrounds ─────────────────────────────────── */
.bg-dark-grad {
  background: linear-gradient(135deg, var(--navy) 0%, var(--deep) 60%, #0b3461 100%);
}
.bg-light-grad {
  background: linear-gradient(135deg, var(--gray) 0%, #ddf3fd 100%);
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 2rem;
  border-radius: 50px;
  font-family: var(--font-head);
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: .04em;
  cursor: pointer;
  transition: var(--trans);
  border: none;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--turq));
  color: var(--white);
  box-shadow: 0 4px 20px rgba(6,182,212,.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(6,182,212,.5);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,.5);
}
.btn-outline:hover {
  background: rgba(255,255,255,.1);
  border-color: var(--mint);
  color: var(--mint);
}
.btn-dark {
  background: var(--navy);
  color: var(--white);
}
.btn-dark:hover {
  background: var(--mid);
  transform: translateY(-2px);
}

/* ══════════════════════════════════════════════════════════
   TOP BAR
══════════════════════════════════════════════════════════ */
.topbar {
  background: var(--navy);
  padding: .5rem 0;
  font-size: .82rem;
  color: rgba(255,255,255,.6);
}
.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.topbar-contacts { display: flex; gap: 1.5rem; align-items: center; }
.topbar-contacts a { color: rgba(255,255,255,.7); display: flex; align-items: center; gap: .4rem; }
.topbar-contacts a:hover { color: var(--mint); }
.topbar-social { display: flex; gap: .75rem; }
.topbar-social a {
  color: rgba(255,255,255,.55);
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.15);
  display: flex; align-items: center; justify-content: center;
  font-size: .8rem;
}
.topbar-social a:hover { color: var(--white); border-color: var(--turq); background: rgba(6,182,212,.2); }

/* ══════════════════════════════════════════════════════════
   NAVBAR
══════════════════════════════════════════════════════════ */
.navbar {
  background: var(--deep);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 20px rgba(0,0,0,.3);
  transition: var(--trans);
}
.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.navbar-brand {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--white);
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  letter-spacing: -.01em;
  white-space: nowrap;
  flex-shrink: 0;
  line-height: 1;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
.navbar-brand .brand-icon {
  height: 36px;
  width: auto;
  flex-shrink: 0;
  display: block;
}
.navbar-brand .brand-text {
  display: inline-flex;
  align-items: baseline;
  gap: 0;
  white-space: nowrap;
}
.navbar-brand .brand-name { color: var(--white); font-weight: 800; }
.navbar-brand .brand-accent { color: var(--turq); font-size: .58em; vertical-align: super; font-weight: 700; line-height: 0; }
.navbar-brand .brand-solutions { color: rgba(255,255,255,.72); font-weight: 500; font-size: .88em; margin-left: .3em; }
.navbar-nav {
  display: flex;
  align-items: center;
  gap: .25rem;
}
.navbar-nav .nav-link {
  color: rgba(255,255,255,.75);
  padding: .5rem 1rem;
  border-radius: var(--radius-sm);
  font-size: .9rem;
  font-weight: 500;
  transition: var(--trans);
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--white);
  background: rgba(14,165,233,.2);
}
.navbar-nav .nav-link.active {
  color: var(--mint);
}
.navbar-cta {
  background: linear-gradient(135deg, var(--accent), var(--turq));
  color: var(--white) !important;
  padding: .45rem 1.2rem !important;
  border-radius: 50px !important;
  font-weight: 600 !important;
  box-shadow: 0 4px 15px rgba(6,182,212,.3);
}
.navbar-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(6,182,212,.5) !important;
  background: linear-gradient(135deg, var(--turq), var(--mint)) !important;
}

/* Hamburger */
.navbar-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: .5rem;
}
.navbar-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--trans);
}
.navbar-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.navbar-toggle.open span:nth-child(2) { opacity: 0; }
.navbar-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* ══════════════════════════════════════════════════════════
   HERO
══════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--navy);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: .25;
  transition: opacity 1s;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
    rgba(10,22,40,.95) 0%,
    rgba(13,34,64,.85) 50%,
    rgba(14,79,138,.6) 100%);
}
/* Animated grid */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(14,165,233,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14,165,233,.06) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: gridMove 20s linear infinite;
}
@keyframes gridMove {
  0% { background-position: 0 0; }
  100% { background-position: 60px 60px; }
}
/* Glowing orbs */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .25;
  animation: orbPulse 6s ease-in-out infinite alternate;
}
.hero-orb-1 { width: 500px; height: 500px; background: var(--accent); top: -100px; right: -100px; }
.hero-orb-2 { width: 350px; height: 350px; background: var(--turq); bottom: -50px; left: 30%; animation-delay: 2s; }
@keyframes orbPulse {
  from { opacity: .2; transform: scale(.9); }
  to   { opacity: .35; transform: scale(1.05); }
}
.hero-content {
  position: relative;
  z-index: 10;
  width: 100%;
  padding: 4rem 2.5rem;
}
.hero-label {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(14,165,233,.15);
  border: 1px solid rgba(14,165,233,.3);
  color: var(--mint);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: .4rem 1rem;
  border-radius: 50px;
  margin-bottom: 1.5rem;
}
.hero-label::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--mint);
  animation: blink 1.5s ease-in-out infinite;
}
@keyframes blink {
  0%,100% { opacity: 1; }
  50% { opacity: .2; }
}
.hero-title {
  font-family: var(--font-head);
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.18;
  margin-bottom: 1.5rem;
  font-stretch: normal;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  max-width: 680px;
  letter-spacing: -.02em;
}
.hero-title span {
  background: linear-gradient(135deg, var(--accent), var(--mint));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-text {
  font-size: 1.1rem;
  color: rgba(255,255,255,.72);
  max-width: 560px;
  margin-bottom: 2.5rem;
  line-height: 1.8;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,.1);
}
.stat-item {}
.stat-value {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
}
.stat-value span { color: var(--turq); }
.stat-label { font-size: .8rem; color: rgba(255,255,255,.5); margin-top: .25rem; letter-spacing: .05em; }

/* Slider dots */
.hero-dots {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: .5rem;
  z-index: 20;
}
.hero-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.3);
  cursor: pointer;
  transition: var(--trans);
}
.hero-dot.active {
  background: var(--turq);
  width: 24px;
  border-radius: 4px;
}

/* ══════════════════════════════════════════════════════════
   SERVICES STRIP (Home quick-look)
══════════════════════════════════════════════════════════ */
.services-strip {
  background: var(--white);
  padding: 3rem 0;
  border-bottom: 1px solid var(--border);
}
.services-strip .row { gap: 0; }
.strip-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.strip-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  transition: var(--trans);
}
.strip-item:nth-child(3n) { border-right: none; }
.strip-item:nth-child(4),
.strip-item:nth-child(5),
.strip-item:nth-child(6) { border-bottom: none; }
.strip-item:hover { background: var(--gray); }
.strip-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--accent), var(--turq));
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  font-size: 1.2rem;
  flex-shrink: 0;
}
.strip-text h4 { font-size: .95rem; color: var(--navy); font-weight: 700; }
.strip-text p { font-size: .8rem; color: var(--muted); margin-top: .2rem; }

/* ══════════════════════════════════════════════════════════
   ABOUT SECTION (Home)
══════════════════════════════════════════════════════════ */
.about-section { padding: 5rem 0; }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: stretch;
}
/* Imagen como fondo del div — no como <img>, nunca se distorsiona */
.about-img-bg {
  border-radius: var(--radius);
  background: url('/public/images/about.jpg') center 25% / cover no-repeat;
  min-height: 520px;
  align-self: stretch;
}
.about-btn-wrap { margin-top: 1.5rem; }

@media (max-width: 1100px) {
  .about-img-bg { min-height: 460px; }
}
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
  .about-img-bg {
    min-height: 380px;
    border-radius: 12px;
    background-position: center 20%;
  }
  .about-btn-wrap { text-align: center; }
  .about-btn-wrap .btn { width: 100%; justify-content: center; }
}
@media (max-width: 600px) {
  .about-img-bg { min-height: 280px; background-position: center 15%; }
}
@media (max-width: 400px) {
  .about-img-bg { min-height: 220px; background-position: center 10%; }
}


.service-card-sm {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: var(--trans);
  margin-bottom: 1rem;
}
.service-card-sm:hover {
  border-color: var(--turq);
  background: var(--light);
  transform: translateX(4px);
}
.service-card-sm .sc-icon {
  width: 44px; height: 44px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(14,165,233,.15), rgba(6,182,212,.15));
  display: flex; align-items: center; justify-content: center;
  color: var(--turq);
  font-size: 1.1rem;
  flex-shrink: 0;
}
.service-card-sm h4 { font-size: .95rem; color: var(--navy); margin-bottom: .25rem; }
.service-card-sm p { font-size: .83rem; color: var(--muted); line-height: 1.6; }

/* ══════════════════════════════════════════════════════════
   SERVICES FULL GRID
══════════════════════════════════════════════════════════ */
.services-section { padding: 5rem 0; background: var(--gray); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}
.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  border: 1px solid var(--border);
  transition: var(--trans);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--turq));
  transform: scaleX(0);
  transition: var(--trans);
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.service-card:hover::before { transform: scaleX(1); }
.service-card .sc-num {
  font-family: var(--font-head);
  font-size: 3rem;
  font-weight: 800;
  color: rgba(14,165,233,.08);
  position: absolute;
  top: 1rem; right: 1.5rem;
  line-height: 1;
}
.service-card .sc-icon-wrap {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), var(--turq));
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
}
.service-card h3 { font-size: 1.1rem; color: var(--navy); margin-bottom: .75rem; }
.service-card p { font-size: .88rem; color: var(--muted); line-height: 1.7; }
.service-card .sc-link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  color: var(--accent);
  font-size: .85rem;
  font-weight: 600;
  margin-top: 1rem;
}
.service-card .sc-link:hover { gap: .7rem; }

/* ══════════════════════════════════════════════════════════
   CTA BAND
══════════════════════════════════════════════════════════ */
.cta-band {
  padding: 4rem 0;
  background: linear-gradient(135deg, var(--navy), var(--mid));
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(6,182,212,.2) 0%, transparent 65%);
}
.cta-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.cta-band h2 { color: var(--white); font-size: clamp(1.5rem, 3vw, 2rem); }
.cta-band p { color: rgba(255,255,255,.65); margin-top: .5rem; }

/* ══════════════════════════════════════════════════════════
   NEWS SECTION
══════════════════════════════════════════════════════════ */
.news-section { padding: 5rem 0; }
.news-grid {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}
.news-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: var(--trans);
}
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.news-img {
  aspect-ratio: 16/9;
  background-size: cover;
  background-position: center;
}
.news-body { padding: 1.5rem; }
.news-meta { display: flex; gap: .75rem; margin-bottom: .75rem; }
.news-tag {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--turq);
  background: rgba(6,182,212,.1);
  border-radius: 50px;
  padding: .2rem .7rem;
}
.news-card h3 { font-size: 1.05rem; color: var(--navy); margin-bottom: .5rem; }
.news-card h3 a { color: var(--navy); }
.news-card h3 a:hover { color: var(--turq); }
.news-card p { font-size: .86rem; color: var(--muted); }

/* ══════════════════════════════════════════════════════════
   INNER PAGE HERO
══════════════════════════════════════════════════════════ */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--mid) 100%);
  padding: 5rem 0 4rem;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(14,165,233,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14,165,233,.06) 1px, transparent 1px);
  background-size: 50px 50px;
}
.page-hero-content { position: relative; z-index: 1; }
.page-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--white);
  font-weight: 800;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: .5rem;
  color: rgba(255,255,255,.5);
  font-size: .85rem;
  margin-top: .75rem;
}
.breadcrumb a { color: rgba(255,255,255,.6); }
.breadcrumb a:hover { color: var(--mint); }
.breadcrumb-sep { color: rgba(255,255,255,.25); }

/* ══════════════════════════════════════════════════════════
   ABOUT PAGE — SPLIT LAYOUT
   Imagen: columna izquierda absoluta (no en el grid)
   Contenido: columna derecha con scroll normal
══════════════════════════════════════════════════════════ */
.mvv-section {
  position: relative;
  display: flex;
  min-height: 600px;
}

/* Columna izquierda: imagen fija al 40% del ancho */
.mvv-img-col {
  position: sticky;
  top: 0;
  flex: 0 0 42%;
  max-width: 42%;
  height: 100vh;
  align-self: flex-start;
  overflow: hidden;
}
.mvv-img-inner {
  position: absolute;
  inset: 0;
  background: url('/public/images/about.jpg') center center / cover no-repeat;
}

/* Columna derecha: contenido que crece */
.mvv-content-col {
  flex: 1;
  min-width: 0;
  background: var(--white);
}
.mvv-content-inner {
  padding: 5rem 3.5rem 5rem 4rem;
  max-width: 620px;
}

/* Mobile: imagen arriba como banner, contenido abajo */
@media (max-width: 900px) {
  .mvv-section { flex-direction: column; min-height: auto; }
  .mvv-img-col {
    position: relative;
    flex: none;
    max-width: 100%;
    width: 100%;
    height: 260px;
  }
  .mvv-content-col { width: 100%; }
  .mvv-content-inner { padding: 2.5rem 1.5rem; max-width: 100%; }
}
}
.about-img-desktop {
  position: sticky;
  top: 5rem;
  align-self: start;
  overflow: hidden;
  border-radius: 16px;
  height: 500px;
}
.about-img-desktop img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  object-position: center top;
  border-radius: 16px;
  display: block;
}
.about-img-mobile { display: none; }
.tabs-nav {
  display: flex;
  gap: .5rem;
  margin-bottom: 1.5rem;
  flex-wrap: nowrap;
}
.tab-btn {
  padding: .6rem 1rem;
  border-radius: 50px;
  border: 2px solid var(--border);
  background: transparent;
  color: var(--muted);
  font-family: var(--font-head);
  font-size: .8rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--trans);
  white-space: nowrap;
  flex: 1;
  text-align: center;
  min-width: 0;
}
.tab-btn.active, .tab-btn:hover {
  background: linear-gradient(135deg, var(--accent), var(--turq));
  border-color: transparent;
  color: var(--white);
}
.tab-pane { display: none; animation: fadeIn .3s ease; }
.tab-pane.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.tab-content-box {
  background: var(--gray);
  border-radius: var(--radius);
  padding: 2rem;
  border-left: 4px solid var(--turq);
}
.tab-content-box p { color: var(--text); line-height: 1.8; }

.values-accordion { margin-top: 1.5rem; }
.val-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: .5rem;
  overflow: hidden;
}
.val-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  cursor: pointer;
  font-weight: 600;
  color: var(--navy);
  font-size: .92rem;
  transition: var(--trans);
}
.val-header:hover { background: var(--light); }
.val-header.open { background: var(--light); color: var(--mid); }
.val-arrow {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: .65rem;
  transition: var(--trans);
}
.val-header.open .val-arrow { background: var(--turq); color: var(--white); transform: rotate(180deg); }
.val-body {
  display: none;
  padding: .75rem 1.25rem 1.25rem;
  color: var(--muted);
  font-size: .88rem;
  line-height: 1.8;
}
.val-body.open { display: block; }

/* ══════════════════════════════════════════════════════════
   CONTACT PAGE
══════════════════════════════════════════════════════════ */
.contact-section { padding: 5rem 0; }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 3rem;
  align-items: start;
}
.contact-info-card {
  background: linear-gradient(135deg, var(--navy), var(--deep));
  border-radius: var(--radius);
  padding: 2.5rem;
  color: var(--white);
}
.contact-info-card h3 {
  color: var(--white);
  font-size: 1.4rem;
  margin-bottom: .5rem;
}
.contact-info-card p { color: rgba(255,255,255,.6); margin-bottom: 2rem; }
.info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.info-icon {
  width: 42px; height: 42px;
  border-radius: var(--radius-sm);
  background: rgba(14,165,233,.2);
  display: flex; align-items: center; justify-content: center;
  color: var(--turq);
  font-size: 1rem;
  flex-shrink: 0;
}
.info-text span { display: block; font-size: .75rem; color: rgba(255,255,255,.4); letter-spacing: .06em; text-transform: uppercase; margin-bottom: .15rem; }
.info-text a, .info-text strong { color: rgba(255,255,255,.85); font-size: .92rem; }
.info-text a:hover { color: var(--mint); }
.social-links { display: flex; gap: .75rem; margin-top: 2rem; }
.social-link {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.2);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.6);
  font-size: .9rem;
  transition: var(--trans);
}
.social-link:hover { border-color: var(--turq); background: rgba(6,182,212,.2); color: var(--mint); }

.contact-form-box {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2.5rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.contact-form-box h3 { font-size: 1.5rem; color: var(--navy); margin-bottom: .5rem; }
.contact-form-box p { color: var(--muted); margin-bottom: 2rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-size: .82rem; font-weight: 600; color: var(--navy); margin-bottom: .4rem; letter-spacing: .03em; }
.form-control {
  width: 100%;
  padding: .75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: .9rem;
  color: var(--text);
  background: var(--gray);
  transition: var(--trans);
  outline: none;
}
.form-control:focus {
  border-color: var(--turq);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(6,182,212,.1);
}
textarea.form-control { resize: vertical; min-height: 130px; }
.recaptcha-container { margin-bottom: 1.25rem; }
.btn-submit {
  width: 100%;
  padding: .9rem;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  letter-spacing: .04em;
  justify-content: center;
}
.btn-submit:disabled { opacity: .5; cursor: not-allowed; transform: none !important; }

/* ══════════════════════════════════════════════════════════
   SISLOG PAGE
══════════════════════════════════════════════════════════ */
.sislog-section { padding: 5rem 0; }
.sislog-hero-box {
  background: linear-gradient(135deg, var(--navy), var(--mid));
  border-radius: var(--radius);
  padding: 3rem;
  color: var(--white);
  margin-bottom: 3rem;
  position: relative;
  overflow: hidden;
}
.sislog-hero-box::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 80% 50%, rgba(6,182,212,.2) 0%, transparent 60%);
}
.sislog-hero-box > * { position: relative; z-index: 1; }
.sislog-hero-box h2 { color: var(--white); font-size: 2rem; margin-bottom: 1rem; }
.sislog-hero-box p { color: rgba(255,255,255,.75); max-width: 700px; line-height: 1.8; }
.partner-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(6,182,212,.2);
  border: 1px solid rgba(6,182,212,.4);
  color: var(--mint);
  padding: .4rem 1rem;
  border-radius: 50px;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}
.clients-list {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}
.client-pill {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  color: rgba(255,255,255,.7);
  padding: .35rem .9rem;
  border-radius: 50px;
  font-size: .82rem;
}

/* ══════════════════════════════════════════════════════════
   MODAL
══════════════════════════════════════════════════════════ */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  z-index: 9000;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}
.modal-overlay.show { display: flex; }
.modal-box {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2.5rem;
  max-width: 420px;
  width: 90%;
  text-align: center;
  animation: modalIn .3s ease;
}
@keyframes modalIn { from { opacity: 0; transform: scale(.9); } to { opacity: 1; transform: none; } }
.modal-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--turq));
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  font-size: 1.8rem;
  margin: 0 auto 1.25rem;
}
.modal-box h4 { font-size: 1.3rem; color: var(--navy); margin-bottom: .5rem; }
.modal-box p { color: var(--muted); }
.modal-close { margin-top: 1.5rem; }

/* ══════════════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════════════ */
footer {
  background: var(--navy);
  color: rgba(255,255,255,.65);
  padding: 4rem 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-brand { display: flex; flex-direction: column; }
.footer-brand p { font-size: .85rem; line-height: 1.8; color: rgba(255,255,255,.55); margin-top: .75rem; }
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  text-decoration: none;
  white-space: nowrap;
  margin-bottom: .5rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 1.2rem;
  color: #fff;
}
.footer-logo sup { color: #06b6d4; font-size: .55em; vertical-align: super; font-weight: 700; }
.footer-solutions { font-weight: 500; color: rgba(255,255,255,.72); }
.footer-x-icon { display: flex; align-items: center; justify-content: center; }
footer h4 {
  font-family: 'Montserrat', sans-serif;
  font-size: .8rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}
.footer-links li { margin-bottom: .6rem; }
.footer-links a {
  color: rgba(255,255,255,.55);
  font-size: .88rem;
  display: flex;
  align-items: center;
  gap: .4rem;
}
.footer-links a:hover { color: var(--mint); padding-left: .25rem; }
.footer-links a::before {
  content: '→';
  opacity: 0;
  font-size: .75rem;
  transition: var(--trans);
}
.footer-links a:hover::before { opacity: 1; }
.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  margin-bottom: .8rem;
  font-size: .88rem;
}
.footer-contact li i { color: var(--turq); margin-top: .2rem; font-size: .9rem; flex-shrink: 0; }
.footer-social { display: flex; gap: .6rem; margin-top: 1.25rem; }
.footer-social a {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.15);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.5);
  font-size: .85rem;
  transition: var(--trans);
}
.footer-social a:hover { border-color: var(--turq); background: rgba(6,182,212,.2); color: var(--mint); }
.footer-bottom {
  padding: 1.5rem 0;
  text-align: center;
  font-size: .8rem;
  color: rgba(255,255,255,.3);
}
.footer-bottom a { color: rgba(255,255,255,.45); }
.footer-bottom a:hover { color: var(--mint); }

/* ══════════════════════════════════════════════════════════
   WHATSAPP FLOTANTE
══════════════════════════════════════════════════════════ */
.wa-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: .6rem;
}
.wa-float-btn {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: #25d366;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 1.6rem;
  box-shadow: 0 4px 20px rgba(37,211,102,.45);
  cursor: pointer;
  transition: transform .3s ease, box-shadow .3s ease;
  border: none;
  text-decoration: none;
}
.wa-float-btn:hover { transform: scale(1.1); box-shadow: 0 6px 28px rgba(37,211,102,.6); }
.wa-float-btn .fa-whatsapp { line-height: 1; }
.wa-tooltip {
  background: var(--navy);
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-size: .8rem;
  font-weight: 600;
  padding: .45rem 1rem;
  border-radius: 50px;
  white-space: nowrap;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateX(12px);
  transition: opacity .3s ease, transform .3s ease;
  pointer-events: none;
  border: 1px solid var(--border);
}
.wa-float:hover .wa-tooltip { opacity: 1; transform: translateX(0); }

/* ══════════════════════════════════════════════════════════
   RESPONSIVE — TABLET 1024px
══════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2,1fr); }
  .strip-grid { grid-template-columns: repeat(2, 1fr); }
  .strip-item:nth-child(3n) { border-right: 1px solid var(--border); }
  .strip-item:nth-child(2n) { border-right: none; }
  .strip-item:nth-child(5),
  .strip-item:nth-child(6) { border-bottom: none; }
  .strip-item:nth-child(4) { border-bottom: 1px solid var(--border); }
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-grid { grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
  .services-tab-grid { grid-template-columns: 1fr !important; }
}

@media (max-width: 900px) {
  .mvv-grid { grid-template-columns: 1fr; gap: 2rem; }
  .about-img-desktop { display: none !important; }
  .about-img-mobile { display: block !important; }
}

@media (max-width: 700px) {
  .footer-grid { grid-template-columns: 1fr 1fr !important; gap: 1.5rem; }
  .footer-links a::before { display: none; }
}

@media (max-width: 500px) {
  .footer-grid { grid-template-columns: 1fr !important; gap: 1.5rem; }
}

/* ══════════════════════════════════════════════════════════
   RESPONSIVE — MOBILE 900px (navbar hamburger)
══════════════════════════════════════════════════════════ */
@media (max-width: 900px) {

  /* Topbar */
  .topbar { display: none; }

  /* Navbar — hamburger */
  .navbar { position: relative; }
  .navbar-inner { position: relative; height: 60px; }
  .navbar-toggle { display: flex; }
  .navbar-nav {
    display: none;
    position: absolute;
    top: 60px; left: 0; right: 0;
    background: var(--navy);
    flex-direction: column !important;
    align-items: stretch !important;
    padding: .5rem 0 1rem;
    gap: 0 !important;
    box-shadow: 0 8px 30px rgba(0,0,0,.5);
    z-index: 100;
    border-top: 2px solid var(--turq);
  }
  .navbar-nav.open { display: flex; }
  .navbar-nav li { width: 100%; display: block; }
  .navbar-nav .nav-link {
    padding: .9rem 1.5rem !important;
    font-size: 1rem !important;
    border-radius: 0 !important;
    border-bottom: 1px solid rgba(255,255,255,.06) !important;
    text-align: left !important;
    width: 100% !important;
    display: block !important;
    color: rgba(255,255,255,.8) !important;
  }
  .navbar-nav .nav-link.active {
    background: rgba(14,165,233,.15) !important;
    border-left: 3px solid var(--turq) !important;
    color: var(--mint) !important;
    padding-left: 1.25rem !important;
  }
  .navbar-nav li:last-child { padding: .75rem 1.5rem 0; }
  .navbar-cta {
    display: block !important;
    width: 100% !important;
    text-align: center !important;
    border-radius: 8px !important;
    padding: .85rem 1rem !important;
    border-bottom: none !important;
    border-left: none !important;
    color: var(--white) !important;
  }
}
/* ══════════════════════════════════════════════════════════
   RESPONSIVE — MOBILE 768px
══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {

  /* Hero */
  .hero { min-height: 100svh; }
  .hero-content { padding: 2rem 1.5rem 5rem; }
  .hero-title { font-size: clamp(1.9rem, 7vw, 2.6rem); line-height: 1.2; }
  .hero-text { font-size: .95rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; padding: .85rem 1.5rem; }
  .hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .75rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
  }
  .stat-value { font-size: 1.5rem; }
  .stat-label { font-size: .7rem; }

  /* Strip */
  .services-strip { padding: 1.5rem 0; }
  .strip-grid { grid-template-columns: 1fr !important; }
  .strip-item {
    border-right: none !important;
    border-bottom: 1px solid var(--border) !important;
    padding: 1rem 1.5rem;
  }
  .strip-item:last-child { border-bottom: none !important; }

  /* About */
  .about-section { padding: 3rem 0; }
  .about-image-wrap img { aspect-ratio: 16/9; }

  /* Services */
  .services-section { padding: 3rem 0; }
  .services-grid { grid-template-columns: 1fr; gap: 1rem; }
  .service-card { padding: 1.5rem; }

  /* CTA */
  .cta-band { padding: 3rem 0; }
  .cta-inner { flex-direction: column; text-align: center; gap: 1.5rem; }
  .cta-inner .btn { width: 100%; justify-content: center; }

  /* News */
  .news-section { padding: 3rem 0; }
  .news-grid { grid-template-columns: 1fr; }

  /* Sections general */
  .section-pad { padding: 3rem 0; }
  .mvv-section, .contact-section, .sislog-section { padding: 3rem 0; }

  /* About page */
  .about-img-desktop { display: none !important; }
  .about-img-mobile { display: block !important; }

  /* Contact */
  .contact-grid { grid-template-columns: 1fr; }
  .contact-info-card { order: 2; }
  .form-row { grid-template-columns: 1fr; }
  .contact-form-box { padding: 1.5rem; }

  /* SISLOG */
  .sislog-hero-box { padding: 1.75rem 1.25rem; }
  .sislog-hero-box h2 { font-size: 1.4rem; }
  .sislog-section > .container > div[style*="grid-template-columns:1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }

  /* Footer */
  footer { padding: 3rem 0 0; }

  /* Page hero */
  .page-hero { padding: 3rem 0 2.5rem; }
  .page-hero h1 { font-size: 2rem; }

  /* Tabs nav */
  .tabs-nav { flex-direction: column; gap: .4rem; }
  .tab-btn { border-radius: 10px !important; text-align: center; width: 100%; }

  /* WhatsApp float */
  .wa-float { bottom: 1.25rem; right: 1.25rem; }
  .wa-float-btn { width: 50px; height: 50px; font-size: 1.4rem; }
}

/* ══════════════════════════════════════════════════════════
   RESPONSIVE — SMALL 480px
══════════════════════════════════════════════════════════ */
@media (max-width: 480px) {
  .container { padding: 0 1rem; }
  .hero-title { font-size: 1.8rem; }
  .hero-label { font-size: .72rem; }
  .hero-stats { grid-template-columns: repeat(3,1fr); gap: .5rem; }
  .stat-value { font-size: 1.35rem; }

  .section-title { font-size: 1.5rem; }
  .navbar-brand .brand-solutions { display: none; }
  .service-card .sc-num { font-size: 2rem; }

  .contact-form-box { padding: 1.25rem; }
  .contact-info-card { padding: 1.5rem; }
  .sislog-hero-box { padding: 1.5rem 1rem; }

  .cta-band h2 { font-size: 1.3rem; }
  .news-body { padding: 1rem; }
}

/* ══════════════════════════════════════════════════════════
   ACADEMIA
══════════════════════════════════════════════════════════ */
.academy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.academy-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--trans);
}
.academy-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}
.academy-card-icon {
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: #fff;
}
.academy-card-body {
  padding: 1.5rem;
  flex: 1;
}
.academy-tag {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--turq);
  margin-bottom: .6rem;
}
.academy-card-body h3 {
  font-size: 1rem;
  color: var(--navy);
  margin-bottom: .6rem;
  line-height: 1.35;
}
.academy-card-body p {
  font-size: .84rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 1rem;
}
.academy-highlights {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .35rem;
}
.academy-highlights li {
  font-size: .8rem;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: .4rem;
}
.academy-highlights li i {
  color: var(--turq);
  font-size: .7rem;
  flex-shrink: 0;
}
.academy-card-footer {
  padding: 1.25rem 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.academy-badge {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--turq);
  background: rgba(6,182,212,.1);
  border-radius: 50px;
  padding: .25rem .75rem;
}
.academy-btn {
  padding: .55rem 1.2rem !important;
  font-size: .82rem !important;
  border-radius: 50px !important;
}

@media (max-width: 1024px) {
  .academy-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .academy-grid { grid-template-columns: 1fr; }
}
