/* =========================================================
   KENTEL · Kenalia Telecomunicaciones
   Modern design system — 2025
   ========================================================= */

:root {
  --bg:        #070b16;
  --bg-2:      #0d1424;
  --bg-3:      #131c30;
  --bg-card:   #161f33;
  --line:      rgba(255, 255, 255, 0.07);
  --line-2:    rgba(255, 255, 255, 0.12);

  --text:      #f4f6fb;
  --text-2:    #b3bdd1;
  --text-3:    #7c869e;

  --accent:    #00d4ff;
  --accent-2:  #5eb1d6;
  --accent-3:  #1e3a5f;
  --gradient:  linear-gradient(135deg, #00d4ff 0%, #1a8fb8 100%);
  --gradient-soft: linear-gradient(135deg, rgba(0,212,255,0.12), rgba(0,212,255,0.04));

  --radius:    14px;
  --radius-lg: 22px;

  --shadow:    0 20px 60px -20px rgba(0, 0, 0, 0.7);
  --shadow-glow: 0 0 0 1px rgba(0,212,255,0.2), 0 20px 60px -10px rgba(0,212,255,0.25);

  --container: 1240px;
  /* Strong ease-out (Emil): faster perceived response than the default */
  --ease:      cubic-bezier(0.23, 1, 0.32, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  overflow-x: hidden;
  min-height: 100vh;
}

img { max-width: 100%; height: auto; display: block; }
a   { color: inherit; text-decoration: none; transition: color .25s var(--ease); }

h1, h2, h3, h4, h5 {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.1rem, 4vw, 3.4rem); font-weight: 600; }
h2 { font-size: clamp(1.7rem, 3vw, 2.6rem); font-weight: 600; }
h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); }
h4 { font-size: 1.1rem; }

p { color: var(--text-2); }

.container { max-width: var(--container); margin: 0 auto; padding: 0 28px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.78rem; font-weight: 500; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--accent);
  padding: 8px 16px; border-radius: 999px;
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid rgba(0, 212, 255, 0.2);
  margin-bottom: 24px;
}
.eyebrow::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
}

.muted { color: var(--text-3); }
.lead  { font-size: 1.15rem; color: var(--text-2); max-width: 640px; }

/* =========================================================
   ACCESSIBILITY · SKIP LINK + FOCUS
   ========================================================= */
.skip-link {
  position: absolute; top: -50px; left: 16px;
  background: var(--gradient); color: white;
  padding: 12px 22px; font-size: 0.85rem; font-weight: 600;
  letter-spacing: 0.04em; z-index: 1000; border-radius: 8px;
  transition: top .25s var(--ease);
  box-shadow: 0 8px 24px -8px rgba(0,212,255,0.5);
}
.skip-link:focus { top: 16px; outline: 2px solid var(--text); outline-offset: 3px; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}
.cta-btn:focus-visible, .cta-ghost:focus-visible, button:focus-visible {
  outline-offset: 4px;
}
.nav a:focus-visible { outline-offset: 0; border-radius: 8px; }

/* =========================================================
   BACKGROUND DECORATIONS
   ========================================================= */
.bg-grid {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at top, black 30%, transparent 80%);
}
.bg-glow {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden;
}
.bg-glow::before, .bg-glow::after {
  content: ""; position: absolute; width: 600px; height: 600px; border-radius: 50%;
  filter: blur(160px); opacity: 0.18;
}
.bg-glow::before { background: var(--accent);   top: -200px; left: -150px; }
.bg-glow::after  { background: var(--accent-3); top: 40%;    right: -200px; opacity: 0.25; }

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 18px 0;
  transition: transform .35s var(--ease), opacity .35s var(--ease), background-color .35s var(--ease), border-color .35s var(--ease), color .35s var(--ease), box-shadow .35s var(--ease);
  backdrop-filter: blur(0);
}
.site-header.scrolled {
  background: rgba(7, 11, 22, 0.85);
  backdrop-filter: blur(20px) saturate(140%);
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 32px;
}
.brand img { height: 44px; width: auto; transition: transform .3s var(--ease); }
.brand:hover img { transform: scale(1.04); }

.nav { display: flex; align-items: center; gap: 6px; }
.nav a {
  font-size: 0.88rem; font-weight: 500; letter-spacing: 0.04em;
  padding: 10px 16px; border-radius: 8px;
  color: var(--text-2);
  position: relative;
}
.nav a:hover { color: var(--text); background: rgba(255,255,255,0.04); }
.nav a.active { color: var(--accent); }

.nav .dropdown { position: relative; }
.nav .dropdown > a::after {
  content: "▾"; margin-left: 6px; font-size: 0.7rem; opacity: 0.6;
}
.nav .dropdown-menu {
  position: absolute; top: calc(100% + 8px); left: 0;
  min-width: 240px;
  background: rgba(13, 20, 36, 0.95); backdrop-filter: blur(20px);
  border: 1px solid var(--line-2); border-radius: 12px;
  padding: 8px; opacity: 0; visibility: hidden;
  transform: translateY(-8px);
  transition: transform .25s var(--ease), opacity .25s var(--ease), background-color .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease), box-shadow .25s var(--ease);
  box-shadow: var(--shadow);
}
.nav .dropdown:hover .dropdown-menu {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.nav .dropdown-menu a {
  display: block; padding: 10px 14px; border-radius: 8px;
  font-size: 0.85rem;
}
.nav .dropdown-menu a:hover { background: rgba(0,212,255,0.08); color: var(--accent); }

.cta-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px;
  background: var(--gradient);
  color: white !important; font-weight: 600; font-size: 0.88rem;
  letter-spacing: 0.02em;
  transition: transform .3s var(--ease), opacity .3s var(--ease), background-color .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease), box-shadow .3s var(--ease);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 8px 20px -10px rgba(0, 0, 0, 0.6);
}
.cta-btn:hover { transform: translateY(-2px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 14px 28px -10px rgba(0, 0, 0, 0.7); }

.cta-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line-2);
  color: var(--text) !important; font-weight: 500; font-size: 0.88rem;
  transition: transform .3s var(--ease), opacity .3s var(--ease), background-color .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease), box-shadow .3s var(--ease);
}
.cta-ghost:hover { background: rgba(255,255,255,0.08); border-color: var(--accent); }

.menu-toggle {
  display: none; background: transparent; border: 1px solid var(--line-2);
  width: 44px; height: 44px; border-radius: 10px;
  align-items: center; justify-content: center; cursor: pointer;
}
.menu-toggle span {
  display: block; width: 18px; height: 2px; background: var(--text);
  position: relative; transition: transform .3s var(--ease), opacity .3s var(--ease), background-color .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease), box-shadow .3s var(--ease);
}
.menu-toggle span::before, .menu-toggle span::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 2px;
  background: var(--text); transition: transform .3s var(--ease), opacity .3s var(--ease), background-color .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease), box-shadow .3s var(--ease);
}
.menu-toggle span::before { top: -6px; }
.menu-toggle span::after  { top:  6px; }
.menu-toggle.open span { background: transparent; }
.menu-toggle.open span::before { transform: rotate(45deg);  top: 0; }
.menu-toggle.open span::after  { transform: rotate(-45deg); top: 0; }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center;
  padding: 140px 0 80px;
  overflow: hidden;
}
.hero-content { max-width: 880px; }
.hero h1 {
  color: var(--text);
  margin-bottom: 28px;
}
.hero h1 .accent {
  color: var(--accent);
  font-weight: 700;
}
.hero p { font-size: 1.2rem; max-width: 620px; margin-bottom: 40px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 64px; }

.hero-stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: var(--line);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; max-width: 920px;
  background-color: rgba(13, 20, 36, 0.5); backdrop-filter: blur(10px);
}
.hero-stats .stat { padding: 28px 24px; background: rgba(7, 11, 22, 0.7); }
.hero-stats .num { font-family: 'Space Grotesk', sans-serif; font-size: 2.2rem; font-weight: 700; color: var(--text); letter-spacing: -0.03em; }
.hero-stats .num .accent { color: var(--accent); }
.hero-stats .lbl { font-size: 0.82rem; color: var(--text-3); margin-top: 4px; letter-spacing: 0.04em; }

.scroll-hint {
  position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: var(--text-3); font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase;
  animation: floaty 2.4s ease-in-out infinite;
}
.scroll-hint::after {
  content: ""; width: 1px; height: 40px; background: linear-gradient(180deg, var(--text-3), transparent);
}
@keyframes floaty { 0%,100% {transform: translate(-50%, 0);} 50% {transform: translate(-50%, 8px);} }

/* =========================================================
   SECTIONS
   ========================================================= */
.section { padding: 100px 0; position: relative; }
.section-head { max-width: 760px; margin: 0 auto 64px; text-align: center; }
.section-head.left { margin-left: 0; text-align: left; }
.section-head h2 { margin-bottom: 18px; }
.section-head p { font-size: 1.1rem; }

/* =========================================================
   SERVICE CARDS
   ========================================================= */
.services-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: minmax(280px, auto);
  gap: 18px;
}
/* Bento: first card is featured (large), rest fill in */
.services-grid > .service-card:nth-child(1) { grid-column: span 4; grid-row: span 2; }
.services-grid > .service-card:nth-child(2) { grid-column: span 2; }
.services-grid > .service-card:nth-child(3) { grid-column: span 2; }
.services-grid > .service-card:nth-child(4) { grid-column: span 3; }
.services-grid > .service-card:nth-child(5) { grid-column: span 3; }
.services-grid > .service-card:nth-child(6) { grid-column: span 6; }
.services-grid > .service-card:nth-child(1) .img { aspect-ratio: 16 / 9; }
.services-grid > .service-card:nth-child(1) h3 { font-size: 1.6rem; }
.services-grid > .service-card:nth-child(6) { display: grid; grid-template-columns: 1fr 1fr; align-items: center; }
.services-grid > .service-card:nth-child(6) .img { aspect-ratio: 16 / 9; height: 100%; }
.services-grid > .service-card:nth-child(6) .img::after { background: linear-gradient(90deg, transparent 30%, var(--bg-card) 100%); }
.service-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .4s var(--ease), opacity .4s var(--ease), background-color .4s var(--ease), border-color .4s var(--ease), color .4s var(--ease), box-shadow .4s var(--ease);
}
.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 212, 255, 0.3);
  box-shadow: var(--shadow-glow);
}
.service-card .img {
  aspect-ratio: 16 / 10; overflow: hidden;
  position: relative;
}
.service-card .img::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 30%, var(--bg-card) 100%);
}
.service-card .img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .8s var(--ease);
}
.service-card:hover .img img { transform: scale(1.06); }
.service-card .num {
  position: absolute; top: 18px; left: 18px; z-index: 2;
  font-family: 'Space Grotesk', sans-serif; font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.16em; color: var(--accent);
  padding: 6px 12px; border-radius: 999px;
  background: rgba(7, 11, 22, 0.7); backdrop-filter: blur(10px);
  border: 1px solid rgba(0,212,255,0.3);
}
.service-card .body { padding: 28px; }
.service-card h3 { margin-bottom: 12px; color: var(--text); }
.service-card p  { font-size: 0.95rem; }

.service-card .arrow {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 18px; color: var(--accent); font-weight: 500; font-size: 0.9rem;
}
.service-card .arrow svg { transition: transform .3s var(--ease); }
.service-card:hover .arrow svg { transform: translateX(4px); }

/* =========================================================
   FEATURE LIST (numbered detail blocks)
   ========================================================= */
.feature-list { display: grid; gap: 20px; }
.feature-item {
  display: grid; grid-template-columns: 80px 1fr; gap: 24px;
  padding: 26px 28px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform .35s var(--ease), opacity .35s var(--ease), background-color .35s var(--ease), border-color .35s var(--ease), color .35s var(--ease), box-shadow .35s var(--ease);
}
.feature-item:hover { background: var(--bg-3); border-color: var(--line-2); }
.feature-item .n {
  font-family: 'Space Grotesk', sans-serif; font-size: 1.6rem; font-weight: 600;
  color: transparent; -webkit-text-stroke: 1px var(--accent);
  line-height: 1;
}
.feature-item h4 { margin-bottom: 8px; font-size: 1.15rem; font-weight: 600; }
.feature-item p { font-size: 0.95rem; }

/* =========================================================
   SPLIT (text + image)
   ========================================================= */
.split {
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px;
  align-items: center;
}
.split.reverse { direction: rtl; }
.split.reverse > * { direction: ltr; }
.split img {
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.split .copy h2 { margin-bottom: 24px; }
.split .copy p  { margin-bottom: 16px; }

/* Stat row */
.stat-row {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px;
  margin-top: 40px;
}
.stat-row .s { border-left: 2px solid var(--accent); padding-left: 16px; }
.stat-row .s .n { font-family: 'Space Grotesk', sans-serif; font-size: 2rem; font-weight: 700; color: var(--text); }
.stat-row .s .l { font-size: 0.85rem; color: var(--text-3); }

/* =========================================================
   VALUES (icon cards)
   ========================================================= */
.values-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.value-card {
  padding: 32px 26px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: left;
  transition: transform .35s var(--ease), opacity .35s var(--ease), background-color .35s var(--ease), border-color .35s var(--ease), color .35s var(--ease), box-shadow .35s var(--ease);
}
.value-card:hover { transform: translateY(-4px); border-color: rgba(0, 212, 255, 0.3); }
.value-card .icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--gradient-soft);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  color: var(--accent);
}
.value-card h4 { margin-bottom: 8px; }
.value-card p  { font-size: 0.92rem; }

/* =========================================================
   CTA BANNER
   ========================================================= */
.cta-banner {
  position: relative;
  padding: 80px 60px;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(0,212,255,0.12), rgba(124,58,237,0.12)),
    var(--bg-2);
  border: 1px solid rgba(0,212,255,0.2);
  overflow: hidden;
  text-align: center;
}
.cta-banner::before {
  content: ""; position: absolute; top: -50%; right: -20%;
  width: 500px; height: 500px; border-radius: 50%;
  background: var(--accent); filter: blur(120px); opacity: 0.18;
}
.cta-banner h2 { margin-bottom: 18px; max-width: 680px; margin-left: auto; margin-right: auto; }
.cta-banner p  { max-width: 560px; margin: 0 auto 32px; font-size: 1.05rem; }
.cta-banner .actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; position: relative; }

/* =========================================================
   PAGE HERO (interior pages)
   ========================================================= */
.page-hero {
  padding: 180px 0 80px;
  position: relative;
  border-bottom: 1px solid var(--line);
}
.page-hero h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); margin-bottom: 18px; }
.page-hero .lead { font-size: 1.2rem; color: var(--text-2); max-width: 700px; }
.breadcrumbs {
  display: flex; gap: 10px; align-items: center;
  font-size: 0.82rem; color: var(--text-3); margin-bottom: 24px;
  letter-spacing: 0.04em;
}
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs .sep { opacity: 0.5; }

/* =========================================================
   CONTACT
   ========================================================= */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.contact-info { display: grid; gap: 26px; }
.contact-info .row {
  display: grid; grid-template-columns: 48px 1fr; gap: 20px;
  padding: 22px 24px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform .3s var(--ease), opacity .3s var(--ease), background-color .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease), box-shadow .3s var(--ease);
}
.contact-info .row:hover { border-color: rgba(0,212,255,0.3); }
.contact-info .icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--gradient-soft); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
}
.contact-info h4 { margin-bottom: 4px; font-size: 1rem; }
.contact-info p, .contact-info a { font-size: 0.95rem; color: var(--text-2); }
.contact-info a:hover { color: var(--accent); }

.contact-form {
  padding: 36px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.contact-form h3 { margin-bottom: 6px; }
.contact-form p  { margin-bottom: 28px; font-size: 0.92rem; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 0.82rem; color: var(--text-3); margin-bottom: 8px; letter-spacing: 0.04em; }
.field input, .field textarea, .field select {
  width: 100%; padding: 14px 16px;
  background: var(--bg);
  border: 1px solid var(--line-2);
  border-radius: 10px;
  color: var(--text); font-family: inherit; font-size: 0.95rem;
  transition: transform .25s var(--ease), opacity .25s var(--ease), background-color .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease), box-shadow .25s var(--ease);
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0,212,255,0.15);
}
.field textarea { min-height: 120px; resize: vertical; }
.contact-form button {
  width: 100%; margin-top: 6px;
  padding: 16px 24px; border: none; border-radius: 999px;
  background: var(--gradient);
  color: white; font-weight: 600; font-size: 0.95rem;
  cursor: pointer; transition: transform .3s var(--ease), opacity .3s var(--ease), background-color .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease), box-shadow .3s var(--ease);
}
.contact-form button:hover { transform: translateY(-2px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 14px 28px -10px rgba(0, 0, 0, 0.7); }

.sedes-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.sede-card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .35s var(--ease), opacity .35s var(--ease), background-color .35s var(--ease), border-color .35s var(--ease), color .35s var(--ease), box-shadow .35s var(--ease);
}
.sede-card:hover { transform: translateY(-4px); border-color: rgba(0,212,255,0.3); }
.sede-card iframe { width: 100%; height: 220px; border: 0; display: block; filter: grayscale(0.3) contrast(1.05); }
.sede-card .info { padding: 24px; }
.sede-card .city {
  font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 8px;
}
.sede-card h3 { margin-bottom: 10px; font-size: 1.25rem; }
.sede-card p  { font-size: 0.92rem; }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  margin-top: 80px;
  padding: 80px 0 30px;
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  position: relative;
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 60px;
  margin-bottom: 60px;
}
.footer-brand img { height: 44px; margin-bottom: 22px; }
.footer-brand p { font-size: 0.92rem; max-width: 320px; }
.footer-col h5 {
  font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--text-3); margin-bottom: 18px; font-weight: 500;
}
.footer-col ul { list-style: none; display: grid; gap: 10px; }
.footer-col a { font-size: 0.92rem; color: var(--text-2); }
.footer-col a:hover { color: var(--accent); }

.socials { display: flex; gap: 10px; margin-top: 24px; }
.socials a {
  width: 40px; height: 40px; border-radius: 10px;
  background: rgba(255,255,255,0.04); border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-2);
  transition: transform .25s var(--ease), opacity .25s var(--ease), background-color .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease), box-shadow .25s var(--ease);
}
.socials a:hover { background: var(--gradient); color: white; border-color: transparent; transform: translateY(-2px); }

.group-bar {
  padding: 24px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 30px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; flex-wrap: wrap;
}
.group-bar .label {
  font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-3);
}
.group-bar .links { display: flex; gap: 8px; flex-wrap: wrap; }
.group-bar .links a {
  font-size: 0.78rem; padding: 8px 14px; border-radius: 999px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line);
  color: var(--text-2); letter-spacing: 0.06em;
}
.group-bar .links a:hover { color: var(--accent); border-color: rgba(0,212,255,0.3); background: rgba(0,212,255,0.06); }

.copyright {
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  font-size: 0.82rem; color: var(--text-3);
}

/* =========================================================
   FLOATING WHATSAPP
   ========================================================= */
.fab {
  position: fixed; right: 24px; bottom: 24px; z-index: 90;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25d366;
  display: flex; align-items: center; justify-content: center;
  color: white;
  box-shadow: 0 10px 30px -8px rgba(37, 211, 102, 0.6);
  transition: transform .3s var(--ease), opacity .3s var(--ease), background-color .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease), box-shadow .3s var(--ease);
}
.fab:hover { transform: scale(1.1) translateY(-2px); }
.fab svg { width: 28px; height: 28px; }

/* =========================================================
   ANIMATIONS
   ========================================================= */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: translateY(0); }

/* =========================================================
   ACCESSIBILITY · MOTION POLISH
   ========================================================= */

/* Tactile feedback on press (Emil: buttons must feel responsive) */
.cta-btn:active,
.cta-ghost:active,
.fab:active,
.menu-toggle:active,
.contact-form button:active {
  transform: scale(0.97);
  transition-duration: 0.1s;
}
.fab:active { transform: scale(1.04); }

/* Disable hover transforms on touch devices to avoid sticky states */
@media (hover: none) {
  .service-card:hover,
  .value-card:hover,
  .video-card:hover,
  .sede-card:hover,
  .feature-item:hover,
  .contact-info .row:hover,
  .cta-btn:hover,
  .cta-ghost:hover,
  .fab:hover {
    transform: none;
  }
  .service-card:hover .img img { transform: none; }
}

/* Respect prefers-reduced-motion (WCAG AAA) */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1024px) {
  .services-grid     { grid-template-columns: repeat(2, 1fr); grid-auto-rows: auto; }
  .services-grid > .service-card:nth-child(n) { grid-column: span 1 !important; grid-row: auto !important; }
  .services-grid > .service-card:nth-child(6) { grid-template-columns: 1fr; }
  .values-grid       { grid-template-columns: repeat(2, 1fr); }
  .footer-grid       { grid-template-columns: 1fr 1fr; gap: 40px; }
  .sedes-grid        { grid-template-columns: 1fr; }
  .split             { grid-template-columns: 1fr; gap: 40px; }
  .split.reverse     { direction: ltr; }
  .hero-stats        { grid-template-columns: repeat(2, 1fr); }
  .stat-row          { grid-template-columns: repeat(2, 1fr); }
  .contact-grid      { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 720px) {
  .container         { padding: 0 20px; }
  .section           { padding: 70px 0; }
  .hero              { padding: 120px 0 60px; min-height: auto; }
  .hero p            { font-size: 1.05rem; }
  .services-grid     { grid-template-columns: 1fr; }
  .values-grid       { grid-template-columns: 1fr; }
  .footer-grid       { grid-template-columns: 1fr; gap: 36px; }
  .feature-item      { grid-template-columns: 1fr; gap: 12px; padding: 22px; }
  .cta-banner        { padding: 50px 24px; }
  .nav {
    position: fixed; top: 0; right: -100%; bottom: 0;
    width: 86%; max-width: 360px;
    background: rgba(7, 11, 22, 0.98); backdrop-filter: blur(20px);
    flex-direction: column; align-items: flex-start; gap: 8px;
    padding: 100px 28px 28px;
    border-left: 1px solid var(--line);
    transition: right .35s var(--ease);
    overflow-y: auto;
  }
  .nav.open      { right: 0; }
  .nav a         { width: 100%; padding: 14px 16px; font-size: 0.95rem; }
  .nav .dropdown { width: 100%; }
  .nav .dropdown-menu {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; background: transparent; border: none;
    padding: 4px 0 4px 16px;
  }
  .menu-toggle   { display: flex; }
  .header-inner .cta-btn { display: none; }
  .scroll-hint   { display: none; }
  .copyright     { flex-direction: column; gap: 8px; }
}
