/* ============================================
   Punto TI - Estilos personalizados
   Temas: claro y oscuro | www.punto-ti.com
   ============================================ */

/* ---------- Tema claro ---------- */
[data-theme="light"] {
  --punto-primary: #0d9488;
  --punto-primary-dark: #0f766e;
  --punto-primary-light: #14b8a6;
  --punto-accent: #0891b2;
  --punto-bg: #f8fafc;
  --punto-bg-section: #ffffff;
  --punto-bg-section-alt: #f1f5f9;
  --punto-text: #1e293b;
  --punto-text-muted: #64748b;
  --punto-card-bg: #ffffff;
  --punto-card-border: rgba(15, 118, 110, 0.15);
  --punto-card-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  --punto-card-shadow-hover: 0 12px 32px rgba(0, 0, 0, 0.12);
  --punto-hero-overlay: rgba(12, 45, 38, 0.35);
  --punto-nav-bg: rgba(255, 255, 255, 0.95);
  --punto-nav-text: #1e293b;
  /* Nosotros, Contacto, Footer: solo verdes, blancos y negros (sin azules) */
  --punto-footer-bg: #0a0a0a;
  --punto-footer-text: #e5e5e5;
  --punto-contact-bg: linear-gradient(135deg, #0d9488 0%, #0f766e 100%);
  --punto-section-title: #1e293b;
  --punto-icon-box-bg: linear-gradient(135deg, #0d9488 0%, #0f766e 100%);
  --punto-btn-hero-bg: rgba(255, 255, 255, 0.15);
  --punto-btn-hero-border: rgba(255, 255, 255, 0.8);
  --punto-btn-hero-text: #fff;
  --punto-sector-bg: rgba(13, 148, 136, 0.08);
  --punto-sector-border: rgba(13, 148, 136, 0.25);
}

/* ---------- Tema oscuro: negros, grises, contraste; imágenes blanco ---------- */
[data-theme="dark"] {
  --punto-primary: #e5e5e5;
  --punto-primary-dark: #a3a3a3;
  --punto-primary-light: #fafafa;
  --punto-accent: #d4d4d4;
  --punto-bg: #0a0a0a;
  --punto-bg-section: #141414;
  --punto-bg-section-alt: #1c1c1c;
  --punto-text: #fafafa;
  --punto-text-muted: #a3a3a3;
  --punto-card-bg: #171717;
  --punto-card-border: rgba(255, 255, 255, 0.08);
  --punto-card-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
  --punto-card-shadow-hover: 0 12px 40px rgba(0, 0, 0, 0.5);
  --punto-hero-overlay: rgba(10, 10, 10, 0.52);
  --punto-nav-bg: rgba(10, 10, 10, 0.96);
  --punto-nav-text: #fafafa;
  --punto-footer-bg: #000000;
  --punto-footer-text: #e5e5e5;
  --punto-contact-bg: linear-gradient(135deg, #262626 0%, #171717 100%);
  --punto-section-title: #fafafa;
  --punto-icon-box-bg: linear-gradient(145deg, #404040 0%, #262626 100%);
  --punto-btn-hero-bg: rgba(255, 255, 255, 0.1);
  --punto-btn-hero-border: rgba(255, 255, 255, 0.5);
  --punto-btn-hero-text: #fff;
  --punto-sector-bg: rgba(255, 255, 255, 0.06);
  --punto-sector-border: rgba(255, 255, 255, 0.15);
}

/* ---------- Base ---------- */
html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  overflow-x: hidden;
  background: var(--punto-bg);
  color: var(--punto-text);
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* ---------- Accesibilidad: saltar al contenido ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 4rem;
  z-index: 9999;
  padding: 0.6rem 1rem;
  background: var(--punto-primary);
  color: #fff;
  font-weight: 600;
  border-radius: 0.5rem;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: left 0.2s ease, background 0.2s;
}
.skip-link:focus {
  left: 1rem;
  outline: 3px solid #fff;
  outline-offset: 2px;
}

/* ---------- Accesibilidad: focus visible (teclado) ---------- */
.nav-link:focus-visible,
.btn-theme-toggle:focus-visible,
.navbar-toggler:focus-visible,
.btn-hero:focus-visible,
.btn-contact:focus-visible,
.btn-outline-contact:focus-visible,
.btn-back-to-top:focus-visible {
  outline: 2px solid var(--punto-primary);
  outline-offset: 2px;
}
[data-theme="dark"] .nav-link:focus-visible,
[data-theme="dark"] .btn-theme-toggle:focus-visible,
[data-theme="dark"] .navbar-toggler:focus-visible {
  outline-color: var(--punto-primary);
  outline-offset: 2px;
}

/* Logos por tema */
[data-theme="light"] .logo-dark,
[data-theme="light"] .logo-hero-dark { display: none !important; }
[data-theme="light"] .logo-light,
[data-theme="light"] .logo-hero-light { display: inline-block; }
[data-theme="light"] .logo-footer-light { display: none !important; }
[data-theme="light"] .logo-footer-dark { display: inline-block !important; }

[data-theme="dark"] .logo-light,
[data-theme="dark"] .logo-hero-light,
[data-theme="dark"] .logo-footer-light { display: none !important; }
[data-theme="dark"] .logo-dark,
[data-theme="dark"] .logo-hero-dark,
[data-theme="dark"] .logo-footer-dark { display: inline-block; }

/* ---------- Navbar ---------- */
#mainNav {
  background: transparent;
  transition: background-color 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
  overflow: hidden; /* contiene el pulso del botón de tema dentro del navbar */
}

#mainNav.scrolled {
  background: var(--punto-nav-bg) !important;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
  color: var(--punto-nav-text);
}

[data-theme="dark"] #mainNav.scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.35);
}

/* Sobre el hero: texto y logo claros para que se vean */
#mainNav:not(.scrolled) .navbar-brand,
#mainNav:not(.scrolled) .nav-link {
  color: #fff !important;
}
#mainNav:not(.scrolled) .logo-light { display: none !important; }
#mainNav:not(.scrolled) .logo-dark { display: inline-block !important; }

#mainNav.scrolled .navbar-brand,
#mainNav.scrolled .nav-link {
  color: var(--punto-nav-text) !important;
}

#mainNav .nav-link {
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 0.35rem;
  transition: color 0.2s, background 0.2s;
}

#mainNav .nav-link:hover {
  background: var(--punto-sector-bg);
  color: var(--punto-primary) !important;
}

.navbar-brand img.logo-nav {
  max-height: 40px;
  width: auto;
}

/* Toggle tema */
.btn-theme-toggle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--punto-sector-border);
  background: var(--punto-sector-bg);
  color: var(--punto-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-theme-toggle:hover {
  transform: scale(1.05);
  box-shadow: var(--punto-card-shadow);
}

/* Solo escritorio: animación para que se note que se puede cambiar el tema */
@media (min-width: 992px) {
  .btn-theme-toggle {
    animation: theme-toggle-pulse 1.8s ease-out infinite;
  }
  .btn-theme-toggle:hover {
    animation: none;
  }
}

/* Ola más lenta; pausa corta entre ola y ola */
@keyframes theme-toggle-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.45);
  }
  55% {
    box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
  }
  58% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
  }
  62%, 100% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.45);
  }
}

@media (min-width: 992px) {
  [data-theme="light"] .btn-theme-toggle {
    animation: theme-toggle-pulse-light 1.8s ease-out infinite;
  }
}

@keyframes theme-toggle-pulse-light {
  0% {
    box-shadow: 0 0 0 0 rgba(13, 148, 136, 0.5);
  }
  55% {
    box-shadow: 0 0 0 10px rgba(13, 148, 136, 0);
  }
  58% {
    box-shadow: 0 0 0 0 rgba(13, 148, 136, 0);
  }
  62%, 100% {
    box-shadow: 0 0 0 0 rgba(13, 148, 136, 0.5);
  }
}

[data-theme="light"] .btn-theme-toggle .icon-moon { display: none !important; }
[data-theme="light"] .btn-theme-toggle .icon-sun { display: inline-block; }
[data-theme="dark"] .btn-theme-toggle .icon-sun { display: none !important; }
[data-theme="dark"] .btn-theme-toggle .icon-moon { display: inline-block; }

#mainNav:not(.scrolled) .btn-theme-toggle {
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.navbar-toggler {
  border-color: var(--punto-card-border);
}

/* Sobre el hero: hamburguesa visible (fondo oscuro) */
#mainNav:not(.scrolled) .navbar-toggler {
  border-color: rgba(255, 255, 255, 0.8);
}
#mainNav:not(.scrolled) .navbar-toggler-icon {
  filter: invert(1);
}

.navbar-toggler-icon {
  filter: invert(0);
}
[data-theme="dark"] .navbar-toggler-icon {
  filter: invert(1);
}

/* ---------- Hero estilo moderno: cuadrícula + resplandor + curva inferior ---------- */
.hero {
  position: relative;
  background: #0d1117;
  overflow: hidden;
}

[data-theme="light"] .hero {
  background: #0c2d26;
}

[data-theme="dark"] .hero {
  background: #0a0a0a;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* Cuadrícula tipo data-grid (más visible para contraste) */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
}

[data-theme="light"] .hero-grid {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.12) 1px, transparent 1px);
}

/* Resplandor desde arriba (más contraste) */
.hero-glow {
  position: absolute;
  top: -30%;
  left: 50%;
  transform: translateX(-50%);
  width: 140%;
  height: 80%;
  background: radial-gradient(
    ellipse 80% 60% at 50% 0%,
    rgba(255, 255, 255, 0.18) 0%,
    rgba(255, 255, 255, 0.06) 35%,
    transparent 70%
  );
  pointer-events: none;
}

[data-theme="light"] .hero-glow {
  background: radial-gradient(
    ellipse 80% 60% at 50% 0%,
    rgba(255, 255, 255, 0.28) 0%,
    rgba(255, 255, 255, 0.1) 40%,
    transparent 70%
  );
}

/* Curva inferior (horizonte / esfera) */
.hero-curve {
  position: absolute;
  left: -50%;
  bottom: -45%;
  width: 200%;
  height: 100%;
  border-radius: 50% 50% 0 0;
  background: radial-gradient(
    ellipse 100% 100% at 50% 100%,
    rgba(0, 0, 0, 0.5) 0%,
    rgba(0, 0, 0, 0.35) 40%,
    transparent 70%
  );
  box-shadow: 0 -1px 0 rgba(255, 255, 255, 0.03);
}

[data-theme="dark"] .hero-curve {
  background: radial-gradient(
    ellipse 100% 100% at 50% 100%,
    rgba(0, 0, 0, 0.6) 0%,
    rgba(0, 0, 0, 0.4) 45%,
    transparent 70%
  );
}

.hero-particles {
  position: absolute;
  inset: 0;
  z-index: 0.5;
  pointer-events: none;
}

.hero-particles .particle {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #fff;
  opacity: 0.6;
  animation: particleFloat 10s ease-in-out infinite;
  will-change: transform;
}

.hero-particles .particle-alt {
  animation-name: particleFloat2;
}

[data-theme="light"] .hero-particles .particle {
  opacity: 0.65;
  background: #fff;
}

[data-theme="dark"] .hero-particles .particle {
  opacity: 0.5;
  background: #fff;
}

/* Partículas con tamaños variados */
.hero-particles .particle:nth-child(3n) {
  width: 3px;
  height: 3px;
  opacity: 0.5;
}

.hero-particles .particle:nth-child(5n) {
  width: 5px;
  height: 5px;
  opacity: 0.45;
}

/* Movimiento 1: trayectoria amplia */
@keyframes particleFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  20% { transform: translate(35px, -45px) scale(1.15); }
  40% { transform: translate(-40px, 25px) scale(0.9); }
  60% { transform: translate(25px, 40px) scale(1.1); }
  80% { transform: translate(-30px, -20px) scale(1.05); }
}

/* Movimiento 2: otra trayectoria para variedad */
@keyframes particleFloat2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(-45px, 30px) scale(1.12); }
  50% { transform: translate(40px, -35px) scale(0.92); }
  75% { transform: translate(-25px, -40px) scale(1.08); }
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--punto-hero-overlay);
  pointer-events: none;
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero-content {
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5), 0 0 24px rgba(0, 0, 0, 0.25);
}

[data-theme="light"] .hero-content,
[data-theme="light"] .hero-content .hero-title,
[data-theme="light"] .hero-content .hero-slogan,
[data-theme="light"] .hero-content .hero-sub,
[data-theme="light"] .hero-content .hero-intro {
  color: #ffffff;
}

[data-theme="light"] .hero-content .hero-sub { color: rgba(255, 255, 255, 0.98); }
[data-theme="light"] .hero-content .hero-intro { color: rgba(255, 255, 255, 0.95); }

[data-theme="dark"] .hero-content,
[data-theme="dark"] .hero-content .hero-title,
[data-theme="dark"] .hero-content .hero-slogan,
[data-theme="dark"] .hero-content .hero-sub,
[data-theme="dark"] .hero-content .hero-intro {
  color: #ffffff;
}

[data-theme="dark"] .hero-content .hero-sub {
  color: rgba(255, 255, 255, 0.96);
}

[data-theme="dark"] .hero-content .hero-intro {
  color: rgba(255, 255, 255, 0.92);
}

/* Título principal del hero (grande, bold) */
.hero-title {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 0.75rem;
}

.hero-slogan {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  margin-bottom: 0.5rem;
}

.hero-sub {
  color: rgba(255, 255, 255, 0.95);
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.hero-intro {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}

/* Botón CTA destacado (sin sombra en texto/icono) */
.btn-hero,
.btn-hero i {
  text-shadow: none;
}

.btn-hero {
  background: #fff;
  color: #0d1117;
  border: none;
  border-radius: 2rem;
  padding: 0.75rem 2rem;
  font-weight: 600;
  font-size: 1.05rem;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.btn-hero:hover {
  background: #f0f0f0;
  color: #0d1117;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25);
}

[data-theme="light"] .btn-hero {
  background: #fff;
  color: #0c2d26;
}

[data-theme="light"] .btn-hero:hover {
  background: #f0fdfa;
  color: #0c2d26;
}

[data-theme="dark"] .btn-hero {
  background: #fff;
  color: #0a0a0a;
}

[data-theme="dark"] .btn-hero:hover {
  background: #e5e5e5;
  color: #0a0a0a;
}

/* ---------- Secciones ---------- */
.section {
  background: var(--punto-bg-section);
  transition: background 0.3s ease;
}

.section-servicios {
  background: var(--punto-bg-section-alt);
  padding-bottom: 4.5rem;
}

/* Separación clara entre "Nuestros servicios" y "A quién servimos" */
.section-sectores {
  padding-top: 4.5rem;
}

[data-theme="light"] .section-sectores {
  background: #f1f5f9;
}

[data-theme="dark"] .section-sectores {
  background: var(--punto-bg-section);
}

/* Tema claro: estilo propio de la sección "A quién servimos" (diferente tono que Servicios) */
[data-theme="light"] .section-sectores .section-title {
  color: #0f766e;
}

[data-theme="light"] .section-sectores .section-title::after {
  background: linear-gradient(90deg, #0d9488, #0f766e);
}

[data-theme="light"] .section-sectores .section-subtitle {
  color: #475569;
  font-weight: 500;
}

[data-theme="light"] .section-sectores .sector-item {
  background: #ffffff;
  border: 1px solid rgba(15, 118, 110, 0.3);
  color: #1e293b;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .section-sectores .sector-item:hover {
  border-color: #0d9488;
  box-shadow: 0 4px 16px rgba(13, 148, 136, 0.15);
}

/* Tema claro: más contraste y color en la sección Servicios (no afecta tema oscuro) */
[data-theme="light"] .section-servicios {
  background: linear-gradient(180deg, #d4ede9 0%, #e0f5f2 35%, #f0fdfa 70%, #ffffff 100%);
}

[data-theme="light"] .section-servicios .section-title {
  color: #0c5c54;
}

[data-theme="light"] .section-servicios .section-title::after {
  width: 80px;
  height: 5px;
  background: linear-gradient(90deg, #0d9488, #0f766e);
  border-radius: 3px;
}

[data-theme="light"] .section-servicios .section-subtitle {
  color: #334155;
  font-weight: 600;
}

/* Tema claro: tarjeta, icono y texto que resaltan (misma paleta teal/blanco/oscuro) */
[data-theme="light"] .section-servicios .servicio-card {
  background: #ffffff;
  border: 1px solid rgba(15, 118, 110, 0.35);
  border-left: 4px solid #0d9488;
  box-shadow: 0 6px 28px rgba(13, 148, 136, 0.12), 0 2px 8px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .section-servicios .servicio-card:hover {
  border-left-color: #0f766e;
  box-shadow: 0 24px 56px rgba(13, 148, 136, 0.2), 0 8px 20px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .section-servicios .servicio-card .card-title {
  color: #0f766e;
  font-weight: 700;
  font-size: 1.15rem;
  margin-bottom: 0.35rem;
}

[data-theme="light"] .section-servicios .servicio-card .card-text {
  color: #1e293b;
  line-height: 1.6;
  font-weight: 500;
  margin-bottom: 0;
  margin-top: 0.35rem;
}

[data-theme="light"] .section-servicios .servicio-card-icon {
  color: #0d9488;
  opacity: 0.32;
}

/* Tema oscuro: mismo trazo izquierdo que en claro, en tono gris/blanco */
[data-theme="dark"] .section-servicios .servicio-card {
  border-left: 4px solid rgba(255, 255, 255, 0.4);
}

[data-theme="dark"] .section-servicios .servicio-card:hover {
  border-left-color: rgba(255, 255, 255, 0.65);
}

.section-nosotros {
  background: var(--punto-bg-section-alt);
}

/* Separación clara entre "A quién servimos" y "Nosotros": fondo distinto */
[data-theme="light"] .section-nosotros {
  background: #ffffff;
}

[data-theme="light"] .section-nosotros .section-title {
  color: #0f766e;
}

[data-theme="light"] .section-nosotros .section-title::after {
  background: #0d9488;
}

[data-theme="light"] .section-nosotros .section-subtitle {
  color: #475569;
}

.section-title {
  font-weight: 700;
  color: var(--punto-section-title);
  position: relative;
  display: inline-block;
  padding-bottom: 0.5rem;
  transition: color 0.3s;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 64px;
  height: 4px;
  background: var(--punto-primary);
  border-radius: 2px;
}

.section-subtitle {
  color: var(--punto-text-muted);
  transition: color 0.3s;
}

.section-intro {
  max-width: 42rem;
  color: var(--punto-text-muted);
  font-size: 1.05rem;
  line-height: 1.65;
  margin-top: 0.75rem;
  transition: color 0.3s;
}

[data-theme="light"] .section-nosotros .section-intro {
  color: #475569;
}

/* ---------- Tarjetas servicios (icono grande de fondo, texto encima) ---------- */
.servicio-card {
  position: relative;
  background: var(--punto-card-bg);
  border: 1px solid var(--punto-card-border);
  border-radius: 0.75rem;
  box-shadow: var(--punto-card-shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s;
  overflow: hidden;
}

.servicio-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--punto-card-shadow-hover);
  border-color: var(--punto-primary);
}

/* Icono grande de fondo, ~75% dentro del card, cortado por el borde */
.servicio-card-icon {
  position: absolute;
  left: -10%;
  top: 50%;
  transform: translateY(-50%);
  z-index: 0;
  pointer-events: none;
  color: var(--punto-primary);
  opacity: 0.16;
  line-height: 1;
}

[data-theme="light"] .servicio-card-icon {
  opacity: 0.18;
}

[data-theme="dark"] .servicio-card-icon {
  opacity: 0.12;
}

.servicio-card-icon i {
  font-size: clamp(5rem, 14vw, 7.5rem);
  display: block;
}

.servicio-card .card-body {
  position: relative;
  z-index: 1;
}

.servicio-card .card-title {
  color: var(--punto-text);
  font-weight: 600;
}

.servicio-card .card-text {
  color: var(--punto-text-muted);
}

/* Icon-box (por si se usa en otros bloques) */
.icon-box {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--punto-icon-box-bg);
  color: #fff;
  border-radius: 0.6rem;
  box-shadow: 0 4px 14px rgba(13, 148, 136, 0.35);
}

[data-theme="dark"] .icon-box {
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

.icon-box i {
  font-size: 1.5rem;
}

/* ---------- Sectores ---------- */
.sectores-list {
  max-width: 900px;
  margin: 0 auto;
}

.sector-item {
  background: var(--punto-sector-bg);
  border: 1px solid var(--punto-sector-border);
  border-radius: 0.5rem;
  padding: 0.85rem 0.75rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--punto-text);
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}

.sector-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--punto-card-shadow);
}

/* ---------- Nosotros (Misión, Visión, Valores) — icono grande de fondo como en Servicios ---------- */
.card-mision,
.card-vision,
.card-valores {
  position: relative;
  overflow: hidden;
}

.nosotros-card-icon {
  position: absolute;
  left: -10%;
  top: 50%;
  transform: translateY(-50%);
  z-index: 0;
  pointer-events: none;
  line-height: 1;
  opacity: 0.2;
}

.nosotros-card-icon i {
  font-size: clamp(7rem, 20vw, 11rem);
  display: block;
}

.card-mision .nosotros-card-icon,
.card-vision .nosotros-card-icon {
  color: #fff;
}

.card-valores .nosotros-card-icon {
  color: var(--punto-primary);
  opacity: 0.18;
}

.card-mision .card-body,
.card-vision .card-body,
.card-valores .card-body {
  position: relative;
  z-index: 1;
}

.card-mision {
  background: linear-gradient(145deg, #0d9488 0%, #0f766e 100%);
  border: none;
  border-radius: 0.75rem;
  box-shadow: 0 8px 28px rgba(13, 148, 136, 0.35);
  color: #fff;
}

[data-theme="dark"] .card-mision {
  background: linear-gradient(145deg, #3d3d3d 0%, #2e2e2e 100%);
  color: #fafafa;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
}

[data-theme="dark"] .card-mision .nosotros-card-icon {
  color: #fff;
  opacity: 0.15;
}

.card-vision {
  background: linear-gradient(145deg, #1e293b 0%, #0f172a 100%);
  border: none;
  border-radius: 0.75rem;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.4);
  color: #f1f5f9;
}

[data-theme="light"] .card-vision {
  background: linear-gradient(145deg, #404040 0%, #2d2d2d 100%);
  color: #f5f5f5;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .card-vision {
  background: linear-gradient(145deg, #262626 0%, #171717 100%);
  color: #fafafa;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .card-vision .nosotros-card-icon {
  color: #fff;
  opacity: 0.12;
}

.card-valores {
  background: var(--punto-card-bg);
  border: 2px solid var(--punto-card-border);
  border-radius: 0.75rem;
  box-shadow: var(--punto-card-shadow);
}

.card-valores .card-title {
  color: var(--punto-primary);
  font-weight: 600;
}

.card-valores li {
  color: var(--punto-text-muted);
}

[data-theme="dark"] .card-valores .nosotros-card-icon {
  color: var(--punto-primary);
  opacity: 0.1;
}

/* ---------- Contacto ---------- */
.section-contacto {
  background: var(--punto-contact-bg);
  color: #fff;
}

.section-contacto .lead {
  color: rgba(255, 255, 255, 0.95);
}

.btn-contact {
  background: #fff;
  color: #1a1a1a;
  border: none;
  border-radius: 2rem;
  padding: 0.6rem 1.5rem;
  font-weight: 600;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-contact:hover {
  background: #f5f5f5;
  color: #000;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.2);
}

.btn-outline-contact {
  border: 2px solid rgba(255, 255, 255, 0.9);
  color: #fff;
  border-radius: 2rem;
  padding: 0.6rem 1.5rem;
  font-weight: 600;
  background: transparent;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}

.btn-outline-contact:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  border-color: #fff;
  transform: translateY(-2px);
}

/* ---------- Footer ---------- */
.footer {
  background: var(--punto-footer-bg);
  color: var(--punto-footer-text);
  transition: background 0.3s, color 0.3s;
}

.logo-footer {
  opacity: 0.9;
}

.footer-slogan {
  color: var(--punto-footer-text);
}

.footer-copy {
  color: var(--punto-text-muted);
}

[data-theme="dark"] .footer-copy {
  color: #737373;
}

/* ---------- Botón Volver arriba (solo móvil) ---------- */
.btn-back-to-top {
  display: none;
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 1000;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  background: var(--punto-primary);
  color: #fff;
  border-radius: 50%;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  text-decoration: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(0.5rem);
  transition: opacity 0.3s ease, visibility 0.3s, transform 0.2s, background 0.2s;
}
.btn-back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.btn-back-to-top:hover {
  background: var(--punto-primary-dark);
  color: #fff;
}
@media (min-width: 768px) {
  .btn-back-to-top {
    display: none !important;
  }
}
@media (max-width: 767px) {
  .btn-back-to-top {
    display: flex;
  }
}

.sector-item i {
  font-size: 0.85em;
  opacity: 0.9;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2rem;
  }

  .hero-slogan {
    font-size: 1.25rem;
  }

  .hero-intro {
    font-size: 0.9rem;
  }

  .sector-item {
    font-size: 0.8rem;
    padding: 0.65rem 0.5rem;
  }
}
