/* =====================================================
   TNR MEDICAL — style.css
   Paleta principal: #01271c (verde oscuro corporativo)
   ===================================================== */

/* ─── Reset & Variables ─────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --color-primary:        #01271c;
  --color-primary-light:  #023d2c;
  --color-primary-dark:   #010f0b;
  --color-accent:         #1aab6d;
  --color-accent-light:   #22d68a;
  --color-accent-vibrant: #00E676;
  --color-gold:           #c8a96e;
  --color-white:          #ffffff;
  --color-off-white:      #F4F6F6;
  --color-light-gray:     #e2e8f0;
  --color-text:           #1a2e28;
  --color-text-muted:     #64748b;

  --font-main: 'Inter', system-ui, -apple-system, BlinkMacSystemFont,
               'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

  --shadow-sm:  0 2px 8px rgba(1, 39, 28, 0.08);
  --shadow-md:  0 4px 20px rgba(1, 39, 28, 0.12);
  --shadow-lg:  0 8px 40px rgba(1, 39, 28, 0.16);
  --shadow-xl:  0 20px 60px rgba(1, 39, 28, 0.20);

  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  20px;
  --radius-xl:  32px;

  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-main);
  color: var(--color-text);
  background-color: var(--color-off-white);
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Inter', sans-serif !important;
}

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


/* ═══════════════════════════════════════════════════════
   PAGE HERO — para páginas internas
═══════════════════════════════════════════════════════ */
.page-hero {
  margin-top: 80px;
  padding: 8rem 2rem 4rem;
  background: var(--color-primary);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -10%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 230, 118, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.page-hero h1 {
  font-family: 'Inter', sans-serif;
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  font-weight: 700;
  color: var(--color-white);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.page-hero p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.70);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
  position: relative;
  z-index: 1;
}

@media (max-width: 768px) {
  .page-hero {
    padding: 6rem 1.25rem 3rem;
  }
}

/* ═══════════════════════════════════════════════════════
   HEADER / NAVIGATION
═══════════════════════════════════════════════════════ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: var(--color-primary);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
  transition: var(--transition);
}

.site-header.scrolled {
  background-color: var(--color-primary);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

/* Logo */
.site-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.site-logo img {
  height: 52px;
  width: auto;
  object-fit: contain;
  filter: brightness(1.05);
  transition: var(--transition);
}

.site-logo img:hover {
  filter: brightness(1.15) drop-shadow(0 0 8px rgba(26, 171, 109, 0.4));
}

/* Desktop Nav */
.main-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.main-nav a {
  display: block;
  padding: 0.55rem 1rem;
  color: rgba(255,255,255,0.88);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  position: relative;
  white-space: nowrap;
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--color-accent);
  border-radius: 2px;
  transition: var(--transition);
}

.main-nav a:hover {
  color: var(--color-white);
  background-color: rgba(255,255,255,0.08);
}

.main-nav a:hover::after {
  width: calc(100% - 2rem);
}

/* CTA Button in nav */
.nav-cta {
  margin-left: 0.75rem;
  padding: 0.6rem 1.4rem !important;
  background: linear-gradient(135deg, var(--color-accent-vibrant), var(--color-accent)) !important;
  color: var(--color-white) !important;
  border-radius: 999px !important;
  font-weight: 600 !important;
  font-size: 0.85rem !important;
  box-shadow: 0 4px 20px rgba(0, 230, 118, 0.30) !important;
  transition: var(--transition) !important;
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(0, 230, 118, 0.45) !important;
}

.nav-cta::after {
  display: none !important;
}

/* Hamburger menu */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 0.4rem;
  border-radius: var(--radius-sm);
  background: none;
  border: none;
  z-index: 1001;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--color-white);
  border-radius: 2px;
  transition: var(--transition);
}

.nav-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}


/* ═══════════════════════════════════════════════════════
   HERO SLIDER / CARRUSEL PRINCIPAL
═══════════════════════════════════════════════════════ */
.hero-slider {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 550px;
  overflow: hidden;
  margin-top: 80px;   /* altura del header fijo */
}

/* Track de slides */
.slides-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.8s cubic-bezier(0.77, 0, 0.175, 1);
  will-change: transform;
}

.slide-item {
  flex: 0 0 100%;
  position: relative;
  overflow: hidden;
}

.slide-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 8s ease;
  transform: scale(1.05);
}

.slide-item.active img {
  transform: scale(1);
}

/* ── SLIDES LIMPIOS: sin overlay ni zoom ─────────── */
.hero-slider--clean .slide-item img {
  transform: none !important;
  transition: none !important;
}

.slide-item--clean img {
  transform: none !important;
  transition: none !important;
}

/* Overlay gradiente — desactivado para slides limpios */
.slide-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(1, 39, 28, 0.65) 0%,
    rgba(1, 39, 28, 0.30) 50%,
    rgba(0, 0, 0, 0.10) 100%
  );
  z-index: 1;
}

/* Slides limpios: sin overlay oscuro */
.slide-item--clean::after {
  display: none !important;
}

/* Slide-content: oculto — las imágenes ya contienen sus propios textos */
.slide-content {
  display: none;
}

/* Flechas de navegación del slider */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 100;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
  color: var(--color-white);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.slider-arrow:hover {
  background: rgba(0, 230, 118, 0.25);
  border-color: var(--color-accent-vibrant);
  transform: translateY(-50%) scale(1.08);
}

.slider-arrow svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.slider-prev { left: 1.5rem; }
.slider-next { right: 1.5rem; }

/* Puntos indicadores */
.slider-dots {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.6rem;
  z-index: 100;
}

.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.40);
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.slider-dot.active {
  width: 28px;
  border-radius: 4px;
  background: var(--color-accent-vibrant);
  box-shadow: 0 0 12px rgba(0, 230, 118, 0.6);
}


/* ═══════════════════════════════════════════════════════
   SECCIÓN: FEATURES / PILARES (debajo del slider)
═══════════════════════════════════════════════════════ */
.features-strip {
  background: var(--color-primary);
  padding: 0;
  overflow: hidden;
  position: relative;
}

.features-strip::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 230, 118, 0.12), transparent);
  pointer-events: none;
}

.features-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  divide-x: 1px solid rgba(255,255,255,0.1);
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.8rem 2rem;
  border-right: 1px solid rgba(255,255,255,0.10);
  transition: var(--transition);
}

.feature-item:last-child { border-right: none; }

.feature-item:hover {
  background: rgba(255,255,255,0.04);
}

.feature-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, rgba(26,171,109,0.25), rgba(26,171,109,0.10));
  border: 1px solid rgba(26,171,109,0.30);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
}

.feature-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature-text h4 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-white);
  margin-bottom: 0.2rem;
}

.feature-text p {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.4;
}


/* ═══════════════════════════════════════════════════════
   SECCIÓN: SERVICIOS / PRODUCTOS
   — Fondo claro con tarjetas en verde corporativo
═══════════════════════════════════════════════════════ */
.section-services {
  padding: 6rem 2rem;
  background: var(--color-off-white);
  position: relative;
}

.section-services::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-light-gray), transparent);
  pointer-events: none;
}

/* Variante con tono alterno */
.section-services--alt {
  background: var(--color-off-white);
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 4rem;
}

.section-tag {
  display: inline-block;
  color: var(--color-accent-vibrant);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.section-header h2 {
  font-family: 'Inter', sans-serif;
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.15;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.section-header p {
  color: var(--color-text-muted);
  font-size: 1rem;
  line-height: 1.7;
}

.services-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.service-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  border: 1px solid var(--color-light-gray);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-accent-vibrant), transparent);
  opacity: 0;
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(0, 230, 118, 0.12);
  border-color: var(--color-accent-vibrant);
}

.service-card:hover::before {
  opacity: 1;
}

.service-card-icon {
  width: 58px;
  height: 58px;
  background: var(--color-primary);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--color-accent-vibrant);
  transition: var(--transition);
}

.service-card:hover .service-card-icon {
  background: linear-gradient(135deg, var(--color-accent-vibrant), var(--color-accent));
  color: var(--color-white);
  border-color: transparent;
}

.service-card-icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.75rem;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.65;
}

.service-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1.25rem;
  color: var(--color-accent-vibrant);
  font-size: 0.85rem;
  font-weight: 600;
  transition: var(--transition);
}

.service-card-link svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.5;
  transition: var(--transition);
}

.service-card:hover .service-card-link {
  gap: 0.65rem;
}

.service-card-logo {
  width: 100%;
  height: 160px;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  padding: 0.5rem;
  overflow: hidden;
}

.service-card-logo img {
  max-width: 95%;
  max-height: 95%;
  object-fit: contain;
  display: block;
}

.product-card-image {
  width: calc(100% + 4.4rem);
  margin: -2.2rem -2.2rem 1.5rem;
  height: 200px;
  overflow: hidden;
  background: var(--color-off-white);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  padding: 0.75rem;
}

.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}


/* ═══════════════════════════════════════════════════════
   SECCIÓN MULTIMEDIA: VIDEO + IMAGEN LATERAL
═══════════════════════════════════════════════════════ */
.section-media {
  padding: 6rem 2rem;
  background: var(--color-off-white);
  position: relative;
}

.section-media::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-light-gray), transparent);
  pointer-events: none;
}

.media-inner {
  max-width: 1280px;
  margin: 0 auto;
}

.media-columns {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 2.5rem;
  align-items: stretch;
}

/* Contenedor del video */
.media-video-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  background: #000;
  min-height: 380px;
}

.media-video-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Badge sobre el video */
.video-badge {
  position: absolute;
  top: 1.2rem;
  left: 1.2rem;
  background: rgba(1, 39, 28, 0.80);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(0, 230, 118, 0.30);
  color: var(--color-accent-vibrant);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-xl);
  z-index: 2;
}

/* Panel lateral */
.media-side {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.media-side-image {
  flex: 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  min-height: 220px;
  box-shadow: var(--shadow-md);
}

.media-side-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.media-side-image:hover img {
  transform: scale(1.04);
}

/* Tarjeta de texto lateral */
.media-side-card {
  background: var(--color-primary);
  border-radius: var(--radius-lg);
  padding: 2rem;
  color: var(--color-white);
  position: relative;
  overflow: hidden;
}

.media-side-card::after {
  content: '';
  position: absolute;
  bottom: -30px;
  right: -30px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(26, 171, 109, 0.12);
  pointer-events: none;
}

.media-side-card h3 {
  font-family: 'Inter', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.media-side-card p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.70);
  line-height: 1.65;
  margin-bottom: 1.25rem;
}

.media-side-card a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-accent-vibrant);
  font-size: 0.85rem;
  font-weight: 600;
  transition: var(--transition);
}

.media-side-card a:hover {
  gap: 0.8rem;
}

.media-side-card a svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.5;
}


/* ═══════════════════════════════════════════════════════
   SECCIÓN: STATS / NÚMEROS
═══════════════════════════════════════════════════════ */
.section-stats {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  padding: 5rem 2rem;
  position: relative;
  overflow: hidden;
}

.section-stats::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 230, 118, 0.12), transparent);
  pointer-events: none;
}

.section-stats::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(26, 171, 109, 0.08);
  pointer-events: none;
}

.stats-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-item {
  padding: 2rem 1rem;
  border-right: 1px solid rgba(255,255,255,0.10);
}

.stat-item:last-child { border-right: none; }

.stat-number {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 800;
  background: linear-gradient(135deg, var(--color-white), var(--color-accent-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.60);
  font-weight: 500;
  letter-spacing: 0.03em;
}


/* ═══════════════════════════════════════════════════════
   SECCIÓN: CTA CONTACTO
   — Tarjeta verde + botones píldora con efecto glow
═══════════════════════════════════════════════════════ */
.section-cta {
  padding: 6rem 2rem;
  background: var(--color-white);
  position: relative;
}

.section-cta::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-light-gray), transparent);
  pointer-events: none;
}

.cta-card {
  max-width: 900px;
  margin: 0 auto;
  background: var(--color-primary);
  border-radius: var(--radius-lg);
  padding: 4rem 3rem;
  text-align: center;
  box-shadow: var(--shadow-xl);
  border: 1px solid rgba(255, 255, 255, 0.06);
  position: relative;
  overflow: hidden;
}

.cta-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-accent-vibrant), transparent);
}

.cta-card .section-tag {
  margin-bottom: 1rem;
}

.cta-card h2 {
  font-family: 'Inter', sans-serif;
  font-size: clamp(2rem, 4.5vw, 2.8rem);
  color: var(--color-white);
  margin-bottom: 1rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.cta-card p {
  color: rgba(255, 255, 255, 0.70);
  max-width: 500px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}


/* ─── Unified Card — recuadro agrupador de secciones ── */
.unified-card {
  max-width: 900px;
  margin: 0 auto;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-light-gray);
  overflow: hidden;
}

.unified-card-section {
  padding: 3rem 3rem;
}

.unified-card-section:first-child {
  padding-top: 3.5rem;
}

.unified-card-section:last-child {
  padding-bottom: 3.5rem;
}

.unified-card-section .section-tag {
  margin-bottom: 0.75rem;
}

.unified-card-section h2 {
  font-family: 'Inter', sans-serif;
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  color: var(--color-primary);
  margin-bottom: 1.25rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.unified-card-section p {
  color: var(--color-text);
  line-height: 1.8;
  font-size: 1rem;
  max-width: 100%;
  margin: 0;
}

.unified-divider {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-light-gray), transparent);
  margin: 0;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 2.2rem;
  background: linear-gradient(135deg, var(--color-accent-vibrant), var(--color-accent));
  color: var(--color-white);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 999px;
  box-shadow: 0 4px 25px rgba(0, 230, 118, 0.30);
  transition: var(--transition);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 35px rgba(0, 230, 118, 0.45);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 2.2rem;
  background: transparent;
  color: var(--color-white);
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  transition: var(--transition);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--color-accent-vibrant);
  color: var(--color-accent-vibrant);
  transform: translateY(-3px);
  box-shadow: 0 0 25px rgba(0, 230, 118, 0.20);
}

.btn-primary svg, .btn-outline svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
}


/* ═══════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════ */
.site-footer {
  background: var(--color-primary-dark);
  color: rgba(255,255,255,0.75);
  padding: 5rem 2rem 0;
}

.footer-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1.2fr;
  gap: 3rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

/* Footer brand */
.footer-brand .footer-logo {
  height: 46px;
  width: auto;
  margin-bottom: 1.25rem;
  filter: brightness(1.05);
}

.footer-brand p {
  font-size: 0.875rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.55);
  max-width: 280px;
  margin-bottom: 1.75rem;
}

.footer-socials {
  display: flex;
  gap: 0.75rem;
}

.social-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.65);
  transition: var(--transition);
}

.social-btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.social-btn:hover {
  background: var(--color-accent-vibrant);
  border-color: var(--color-accent-vibrant);
  color: var(--color-white);
  transform: translateY(-3px);
  box-shadow: 0 0 20px rgba(0, 230, 118, 0.30);
}

/* Footer columns */
.footer-col h4 {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-white);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 0.75rem;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 28px;
  height: 2px;
  background: var(--color-accent);
  border-radius: 2px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-col ul li a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.55);
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.footer-col ul li a::before {
  content: '›';
  color: var(--color-accent);
  font-weight: 700;
  opacity: 0;
  transform: translateX(-4px);
  transition: var(--transition);
  display: inline-block;
}

.footer-col ul li a:hover {
  color: var(--color-white);
  padding-left: 0.3rem;
}

.footer-col ul li a:hover::before {
  opacity: 1;
  transform: translateX(0);
}

/* Footer contact info */
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.footer-contact-item svg {
  width: 16px;
  height: 16px;
  stroke: var(--color-accent);
  fill: none;
  stroke-width: 2;
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-contact-item span {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.5;
}

/* Footer bottom bar */
.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1.5rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
}

.footer-legal-links {
  display: flex;
  gap: 1.5rem;
}

.footer-legal-links a {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
  transition: var(--transition);
}

.footer-legal-links a:hover {
  color: rgba(255,255,255,0.65);
}

.footer-bottom .agency-link {
  color: rgba(255,255,255,0.35);
  transition: color 0.3s ease;
}

.footer-bottom .agency-link:hover {
  color: #ffffff;
}


/* ═══════════════════════════════════════════════════════
   SCROLL TO TOP
═══════════════════════════════════════════════════════ */
.scroll-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 999;
  width: 46px;
  height: 46px;
  background: linear-gradient(135deg, var(--color-accent-vibrant), var(--color-accent));
  color: var(--color-white);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(0, 230, 118, 0.35);
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 30px rgba(0, 230, 118, 0.50);
}

.scroll-top svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}


/* ═══════════════════════════════════════════════════════
   RESPONSIVE / MOBILE
═══════════════════════════════════════════════════════ */
@media (max-width: 1100px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stats-inner {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat-item {
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.10);
  }
}

@media (max-width: 900px) {
  .media-columns {
    grid-template-columns: 1fr;
  }
  .media-side {
    flex-direction: row;
  }
  .media-side-image { min-height: 180px; flex: 1; }
  .media-side-card { flex: 1; }
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .feature-item {
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.10);
  }
}

@media (max-width: 768px) {
  /* Header mobile */
  .nav-toggle { display: flex; }

  /* Legal pages */
  .legal-main {
    margin-top: 100px;
    padding: 4rem 1.25rem;
  }
  .legal-content {
    padding: 2.5rem 1.5rem;
  }
  .legal-content h1 {
    font-size: 1.8rem;
  }

  .main-nav {
    position: fixed;
    inset: 0;
    top: 80px;
    background: var(--color-primary) !important;
    box-shadow: 0 4px 30px rgba(0,0,0,0.3);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
  }

  .main-nav.open {
    transform: translateX(0);
  }

  .main-nav a {
    font-size: 1rem;
    padding: 0.75rem 1.5rem;
    width: 100%;
    max-width: 320px;
    text-align: center;
  }

  .nav-cta {
    margin-left: 0 !important;
    margin-top: 0.5rem;
  }

  /* Hero */
  .hero-slider {
    height: 75vh;
    min-height: 480px;
  }

  .slide-content {
    left: 5%;
    right: 5%;
    bottom: 12%;
    max-width: none;
  }

  /* Services */
  .services-grid { grid-template-columns: 1fr; }
  .section-services { padding: 4rem 1.25rem; }
  .section-media { padding: 4rem 1.25rem; }

  /* Media */
  .media-side { flex-direction: column; }
  .media-video-wrap { min-height: 280px; }

  /* Stats */
  .stats-inner { grid-template-columns: repeat(2, 1fr); }

  /* CTA */
  .cta-card { padding: 2.5rem 1.5rem; }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
  .stats-inner { grid-template-columns: 1fr; }
  .slider-arrow { display: none; }
  .hero-slider { height: 65vh; }
}

/* =====================================================
   SECCIÓN: DIVISIONES Y SOLUCIONES COMERCIALES (B2B)
   — Fondo claro con tarjetas en verde corporativo
   ===================================================== */
.section-divisions {
  padding: 6rem 2rem;
  background: var(--color-off-white);
  position: relative;
  overflow: hidden;
}

.section-divisions::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-light-gray), transparent);
  pointer-events: none;
}

.divisions-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.division-card {
  background: var(--color-primary);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.division-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-accent-vibrant), transparent);
  opacity: 0;
  transition: var(--transition);
}

.division-card:hover {
  transform: translateY(-8px);
  border-color: rgba(0, 230, 118, 0.30);
  box-shadow: 0 20px 60px rgba(0, 230, 118, 0.15);
}

.division-card:hover::before {
  opacity: 1;
}

.division-card-icon {
  width: 58px;
  height: 58px;
  background: rgba(0, 230, 118, 0.12);
  border: 1px solid rgba(0, 230, 118, 0.20);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--color-accent-vibrant);
  transition: var(--transition);
}

.division-card:hover .division-card-icon {
  background: linear-gradient(135deg, var(--color-accent-vibrant), var(--color-accent));
  color: var(--color-white);
  border-color: transparent;
}

.division-card-icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.division-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 0.75rem;
}

.division-card p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.70);
  line-height: 1.65;
}

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

@media (max-width: 768px) {
  .divisions-grid {
    grid-template-columns: 1fr;
  }
  .section-divisions {
    padding: 4rem 1.25rem;
  }
}

/* =====================================================
   PÁGINAS LEGALES (Aviso, Términos, Cookies)
   ===================================================== */
.legal-main {
  margin-top: 120px;
  padding: 6rem 2rem;
  min-height: 60vh;
  background: var(--color-off-white);
  display: flex;
  align-items: center;
}

.legal-content {
  max-width: 800px;
  margin: 0 auto;
  background: var(--color-primary);
  padding: 4rem 3rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.legal-content h1 {
  font-family: 'Inter', sans-serif;
  font-size: 2.6rem;
  color: var(--color-white);
  margin-bottom: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.legal-content p {
  color: rgba(255, 255, 255, 0.70);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 2.5rem;
}




