:root {
  /* Paleta principal */
  --color-primary: #0b1f3b;
  --color-primary-light: #162b4f;
  --color-accent: #ff7a1a;
  --color-accent-hover: #e56a10;
  --color-accent-light: #fff0e6;

  /* Nueva paleta extendida - MÁS INTENSA */
  --color-blue-50: #e8f4fc;
  --color-blue-100: #cce7f9;
  --color-blue-200: #a3d4f5;
  --color-blue-300: #7ac1f0;
  --color-slate-50: #f0f5fa;
  --color-slate-100: #e2ebf3;

  /* Fondos y texto */
  --color-bg: #ffffff;
  --color-text: #1f2933;
  --color-muted: #6b7280;
  --color-border: #e5e7eb;

  /* Sombras mejoradas - MÁS VISIBLES */
  --shadow-soft: 0 14px 30px rgba(15, 23, 42, 0.15);
  --shadow-glass: 0 10px 40px rgba(15, 23, 42, 0.12);
  --shadow-glow: 0 0 30px rgba(255, 122, 26, 0.4);
  --shadow-card: 0 8px 32px rgba(15, 23, 42, 0.1);

  /* Glassmorphism - MÁS VISIBLE */
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(255, 255, 255, 0.6);
  --glass-blur: blur(16px);

  /* Gradientes - MÁS INTENSOS */
  --gradient-accent: linear-gradient(135deg, #ff7a1a 0%, #ffb547 100%);
  --gradient-blue: linear-gradient(135deg, #d4edfc 0%, #f0f8ff 50%, #ffffff 100%);
  --gradient-warm: linear-gradient(135deg, #fff0e6 0%, #fff8f3 50%, #ffffff 100%);

  /* Radios y medidas */
  --radius-lg: 18px;
  --radius-xl: 24px;
  --container-width: 1120px;
  --header-height: 72px;
}

/* RESET BÁSICO */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Roboto", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.6;
}

/* UTILIDADES */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 16px;
}

.section {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 40px;
}

.section-header h2 {
  font-size: 2rem;
  margin-bottom: 12px;
}

.section-header p {
  color: var(--color-muted);
  font-size: 0.98rem;
}

.section-tag {
  display: inline-block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 1.6px;
  color: var(--color-accent);
  font-weight: 600;
  margin-bottom: 8px;
}

/* BOTONES */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-weight: 500;
  font-size: 0.96rem;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--color-accent);
  color: #fff;
  box-shadow: 0 10px 20px rgba(229, 106, 16, 0.25);
}

.btn-primary:hover {
  background-color: var(--color-accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(229, 106, 16, 0.32);
}

/* HEADER */
.main-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.header-content {
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  padding: 0;
  /* Eliminar padding extra del contenedor */
}

.logo-img {
  height: 64px;
  /* Aumentar tamaño para mejor visibilidad */
  width: auto;
  /* Eliminar estilos de caja para que se vea la imagen limpia */
  border-radius: 0;
  padding: 0;
  object-fit: contain;
}

/* Navegación */
.main-nav ul {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
}

.main-nav a {
  color: var(--color-primary);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  position: relative;
  padding-bottom: 4px;
  transition: color 0.2s ease;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  background-color: var(--color-accent);
  border-radius: 999px;
  transition: width 0.2s ease;
}

.main-nav a:hover {
  color: var(--color-accent);
}

.main-nav a:hover::after,
.main-nav a.active::after {
  width: 100%;
}

.main-nav .cta-nav {
  padding: 7px 16px;
  border-radius: 999px;
  background-color: rgba(255, 122, 26, 0.1);
  border: 1px solid rgba(255, 122, 26, 0.4);
}

.main-nav .cta-nav:hover {
  background-color: rgba(255, 122, 26, 0.22);
}

/* Botón menú móvil */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background-color: var(--color-primary);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* HERO */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-height));
  display: flex;
  align-items: center;
  color: #f9fafb;
  background-color: var(--color-primary);
  /* Reduce overlay opacity for better image visibility */
  background-image: linear-gradient(rgba(11, 31, 59, 0.3), rgba(11, 31, 59, 0.3)), url("img/volvo paisaje.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg,
      rgba(11, 31, 59, 0.92),
      rgba(11, 31, 59, 0.82),
      rgba(11, 31, 59, 0.7));
}

.hero-content {
  position: relative;
  padding: 80px 16px;
}

.hero-text {
  max-width: 560px;
}

.hero h1 {
  font-size: 2.6rem;
  line-height: 1.15;
  margin-bottom: 18px;
}

.hero p {
  font-size: 1rem;
  color: #e5e7eb;
  margin-bottom: 26px;
}

/* QUIÉNES SOMOS */
.about {
  background: var(--gradient-blue);
  position: relative;
  overflow: hidden;
}

.about::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -15%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(255, 122, 26, 0.15) 0%, rgba(255, 122, 26, 0.05) 40%, transparent 70%);
  pointer-events: none;
}

.about::after {
  content: '';
  position: absolute;
  bottom: -20%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(11, 31, 59, 0.1) 0%, rgba(11, 31, 59, 0.03) 40%, transparent 70%);
  pointer-events: none;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}

.about-text h2 {
  font-size: 2rem;
  margin-bottom: 12px;
}

.about-text p {
  color: var(--color-muted);
  font-size: 0.98rem;
  margin-bottom: 14px;
}

.about-list {
  list-style: none;
  margin-top: 14px;
}

.about-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--color-text);
  font-size: 0.95rem;
  margin-bottom: 8px;
}

.about-list i {
  color: var(--color-accent);
}

/* Placeholder imagen */
.about-image-placeholder {
  display: flex;
  justify-content: center;
}

.image-frame {
  width: 100%;
  max-width: 360px;
  aspect-ratio: 4/3;
  border-radius: var(--radius-xl);
  background: radial-gradient(circle at top left, #1f2937, #020617);
  box-shadow: var(--shadow-soft);
  color: #e5e7eb;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
}

.image-frame i {
  font-size: 2.4rem;
  margin-bottom: 14px;
  color: #f97316;
}

.image-frame p {
  font-size: 0.9rem;
  color: #d1d5db;
}

/* SECCIÓN PILARES */
.pillars-section {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  padding-top: 80px !important;
  padding-bottom: 100px !important;
  position: relative;
  overflow: hidden;
}

.pillars-section::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255, 122, 26, 0.2) 0%, transparent 60%);
  pointer-events: none;
}

.pillars-section::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.pillars-header {
  text-align: center;
  margin-bottom: 48px;
  position: relative;
  z-index: 1;
}

.pillars-header .section-tag {
  background: rgba(255, 122, 26, 0.2);
  color: #ffb547;
  border: 1px solid rgba(255, 122, 26, 0.4);
}

.pillars-header h3 {
  font-size: 2.2rem;
  color: #ffffff;
  margin-bottom: 16px;
}

.pillars-header p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.05rem;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.7;
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* PILLAR CARDS */
.pillar-card {
  background: #ffffff;
  border-radius: var(--radius-xl);
  padding: 32px 28px;
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.2);
  border: none;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: center;
}

.pillar-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25), 0 0 40px rgba(255, 122, 26, 0.15);
}

.pillar-icon {
  width: 70px;
  height: 70px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  background: var(--gradient-accent);
  color: #ffffff;
  font-size: 1.8rem;
  box-shadow: 0 12px 35px rgba(255, 122, 26, 0.45);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.pillar-card:hover .pillar-icon {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 18px 45px rgba(255, 122, 26, 0.55);
}

.pillar-card h4 {
  font-size: 1.2rem;
  color: var(--color-primary);
  margin-bottom: 14px;
}

.pillar-card p {
  color: var(--color-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  margin: 0;
  text-align: justify;
}

@media (max-width: 900px) {
  .pillars-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
  }
}

/* SERVICIOS */
.services {
  background: var(--gradient-blue);
  position: relative;
  overflow: hidden;
}

.services::before {
  content: '';
  position: absolute;
  top: -10%;
  left: -12%;
  width: 650px;
  height: 650px;
  background: radial-gradient(circle, rgba(255, 122, 26, 0.15) 0%, rgba(255, 122, 26, 0.05) 35%, transparent 65%);
  pointer-events: none;
}

.services::after {
  content: '';
  position: absolute;
  bottom: -15%;
  right: -10%;
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, rgba(11, 31, 59, 0.1) 0%, rgba(11, 31, 59, 0.03) 35%, transparent 65%);
  pointer-events: none;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  margin-top: 32px;
  position: relative;
  z-index: 1;
}

.service-card {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--radius-xl);
  padding: 32px 28px;
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.12);
  border: 2px solid rgba(255, 255, 255, 0.8);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: var(--gradient-accent);
  opacity: 1;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.15), var(--shadow-glow);
  border-color: rgba(255, 122, 26, 0.4);
}

.service-icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  background: var(--gradient-accent);
  color: #ffffff;
  box-shadow: 0 10px 30px rgba(255, 122, 26, 0.4);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.service-card:hover .service-icon {
  transform: scale(1.15) rotate(5deg);
  box-shadow: 0 16px 40px rgba(255, 122, 26, 0.5);
}

.service-icon i {
  font-size: 1.6rem;
}

.service-card h3 {
  font-size: 1.25rem;
  margin-bottom: 14px;
  color: var(--color-primary);
}

.service-card p {
  font-size: 0.95rem;
  color: var(--color-muted);
  margin-bottom: 16px;
  line-height: 1.7;
}

.service-card ul {
  list-style: none;
  font-size: 0.92rem;
  color: var(--color-text);
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #e8eef5;
}

.service-card li {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
  padding: 14px 16px;
  background: #f8fafc;
  border-radius: 12px;
  transition: background 0.2s ease;
  position: relative;
  padding-left: 52px;
}

.service-card li:hover {
  background: #f0f5fa;
}

.service-card li::before {
  content: "✓";
  position: absolute;
  left: 14px;
  top: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  background: var(--gradient-accent);
  color: #ffffff;
  border-radius: 7px;
  font-size: 0.8rem;
  font-weight: bold;
}

.li-title {
  font-weight: 700;
  color: var(--color-primary);
  font-size: 0.95rem;
}

.li-text {
  display: block;
  text-align: justify;
  line-height: 1.6;
  color: var(--color-muted);
  font-size: 0.88rem;
}

/* CONTACTO */
.contact {
  background: var(--gradient-warm);
  position: relative;
  overflow: hidden;
}

.contact::before {
  content: '';
  position: absolute;
  top: -15%;
  right: -8%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255, 122, 26, 0.18) 0%, rgba(255, 122, 26, 0.08) 35%, transparent 65%);
  pointer-events: none;
}

.contact::after {
  content: '';
  position: absolute;
  bottom: -15%;
  left: -8%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(11, 31, 59, 0.12) 0%, rgba(11, 31, 59, 0.04) 35%, transparent 65%);
  pointer-events: none;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 40px;
  align-items: flex-start;
  position: relative;
  z-index: 1;
}

.contact-form-wrapper h2 {
  font-size: 2rem;
  margin-bottom: 10px;
}

.contact-form-wrapper p {
  color: var(--color-muted);
  font-size: 0.95rem;
  margin-bottom: 22px;
}

/* Formulario */
.contact-form {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-radius: var(--radius-xl);
  padding: 28px 24px;
  box-shadow: var(--shadow-glass);
  border: 1px solid var(--glass-border);
  transition: all 0.3s ease;
}

.contact-form:hover {
  box-shadow: var(--shadow-glass), 0 0 30px rgba(255, 122, 26, 0.1);
}

.form-group {
  margin-bottom: 14px;
}

.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--color-text);
}

/* Input Wrapper con Iconos */
.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-wrapper i {
  position: absolute;
  left: 14px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-accent);
  color: #ffffff;
  border-radius: 10px;
  font-size: 0.9rem;
  z-index: 2;
  box-shadow: 0 4px 12px rgba(255, 122, 26, 0.3);
}

.input-wrapper input,
.input-wrapper textarea {
  width: 100%;
  padding: 16px 18px 16px 62px;
  border-radius: 14px;
  border: 2px solid #e2e8f0;
  background-color: #f8fafc;
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  transition: all 0.3s ease;
}

.textarea-wrapper {
  align-items: flex-start;
}

.textarea-wrapper i {
  top: 14px;
}

.input-wrapper input:hover,
.input-wrapper textarea:hover {
  border-color: #cbd5e1;
  background-color: #ffffff;
}

.input-wrapper input:focus,
.input-wrapper textarea:focus {
  border-color: var(--color-accent);
  background-color: #ffffff;
  box-shadow: 0 0 0 4px rgba(255, 122, 26, 0.12);
}

/* Estilos de error en formulario */
.input-error input,
.input-error textarea {
  border-color: #ef4444 !important;
  background-color: #fef2f2 !important;
}

.input-error input:focus,
.input-error textarea:focus {
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.15) !important;
}

.error-message {
  display: none;
  color: #dc2626;
  font-size: 0.82rem;
  margin-top: 6px;
  padding-left: 4px;
}

/* Botón de envío mejorado */
.btn-submit {
  width: 100%;
  padding: 16px 24px;
  margin-top: 10px;
  font-size: 1rem;
  font-weight: 600;
  gap: 10px;
  box-shadow: 0 8px 24px rgba(255, 122, 26, 0.35);
}

.btn-submit:hover {
  box-shadow: 0 12px 32px rgba(255, 122, 26, 0.45);
  transform: translateY(-2px);
}

/* Info contacto */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--glass-border);
  font-size: 0.92rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-glass);
  border-color: rgba(255, 122, 26, 0.25);
}

.contact-card h3 {
  font-size: 1rem;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.contact-card p {
  margin-bottom: 10px;
  color: var(--color-text);
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.contact-card i {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-accent);
  color: #ffffff;
  border-radius: 8px;
  font-size: 0.8rem;
  flex-shrink: 0;
}

.contact-card a {
  color: var(--color-primary-light);
  text-decoration: none;
  transition: color 0.2s ease;
}

.contact-card a:hover {
  color: var(--color-accent);
}

.contact-highlights ul {
  list-style: none;
}

.contact-highlights li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  color: var(--color-text);
  font-weight: 500;
}

.contact-highlights li i {
  width: 32px;
  height: 32px;
  font-size: 0.85rem;
}

/* FOOTER */
/* FOOTER PROFESIONAL */
.main-footer {
  background: linear-gradient(180deg, #0a1628 0%, #020617 100%);
  color: #9ca3af;
  padding: 60px 0 30px;
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 50px;
  margin-bottom: 40px;
}

/* Columna 1: Logo y descripción */
.footer-brand {
  max-width: 320px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.footer-logo-icon {
  width: 42px;
  height: 42px;
  background: var(--gradient-accent);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 700;
  font-size: 1rem;
}

.footer-logo-text {
  font-size: 1.2rem;
  font-weight: 700;
  color: #ffffff;
}

.footer-logo-text span {
  color: var(--color-accent);
}

.footer-brand p {
  line-height: 1.7;
  margin-bottom: 20px;
  color: #94a3b8;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  font-size: 1.1rem;
  transition: all 0.3s ease;
}

.footer-social a:hover {
  background: var(--gradient-accent);
  color: #ffffff;
  transform: translateY(-3px);
}

/* Columnas de enlaces */
.footer-links h4 {
  color: #ffffff;
  font-size: 1rem;
  margin-bottom: 20px;
  font-weight: 600;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--color-accent);
}

/* Footer bottom */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-bottom p {
  margin: 0;
  color: #64748b;
  font-size: 0.85rem;
}

.footer-bottom-links {
  display: flex;
  gap: 24px;
}

.footer-bottom-links a {
  color: #64748b;
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s ease;
}

.footer-bottom-links a:hover {
  color: #94a3b8;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 35px;
  }

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

  .footer-bottom-links {
    justify-content: center;
  }
}

/* MAPA DE UBICACIÓN - Tarjeta */
.contact-map-card {
  padding: 18px;
}

.map-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  flex-wrap: wrap;
  gap: 12px;
}

.map-card-header h3 {
  font-size: 1rem;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.map-card-header h3 i {
  color: var(--color-accent);
}

.btn-map-small {
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-hover) 100%);
  color: #ffffff;
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.85rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.25s ease;
  box-shadow: 0 4px 12px rgba(255, 122, 26, 0.3);
}

.btn-map-small:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(255, 122, 26, 0.4);
}

.map-wrapper {
  width: 100%;
  line-height: 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.1);
}

.map-wrapper iframe {
  width: 100%;
  height: 280px;
  display: block;
}

@media (max-width: 768px) {
  .map-card-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .map-wrapper iframe {
    height: 220px;
  }
}

/* RESPONSIVE */
@media (max-width: 960px) {

  .about-grid,
  .services-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-image-placeholder {
    order: -1;
  }
}

@media (max-width: 768px) {
  .header-content {
    gap: 12px;
  }

  .main-nav {
    position: absolute;
    top: var(--header-height);
    right: 0;
    width: 100%;
    max-width: 260px;
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.15);
    transform: translateX(100%);
    transition: transform 0.22s ease;
  }

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

  .main-nav ul {
    flex-direction: column;
    align-items: flex-start;
    padding: 14px 18px 16px;
    gap: 14px;
  }

  .main-nav .cta-nav {
    width: 100%;
    text-align: center;
  }

  .nav-toggle {
    display: flex;
  }

  /* Animación icono burger */
  .nav-toggle.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-toggle.open span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .hero {
    text-align: left;
  }

  .hero h1 {
    font-size: 2.1rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .section {
    padding: 64px 0;
  }

  .hero-content {
    padding: 64px 16px 72px;
  }

  .contact-form {
    padding: 18px 16px;
  }
}

/* BOTÓN WHATSAPP FLOTANTE */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.8rem;
  text-decoration: none;
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.45);
  z-index: 9999;
  transition: all 0.3s ease;
  animation: whatsapp-pulse 2s infinite;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 35px rgba(37, 211, 102, 0.6);
}

.whatsapp-float::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: inherit;
  opacity: 0.4;
  animation: whatsapp-ring 1.5s ease-out infinite;
}

@keyframes whatsapp-pulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }
}

@keyframes whatsapp-ring {
  0% {
    transform: scale(1);
    opacity: 0.4;
  }

  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}

/* Tooltip WhatsApp */
.whatsapp-float .tooltip {
  position: absolute;
  right: 70px;
  background: #ffffff;
  color: var(--color-text);
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.whatsapp-float:hover .tooltip {
  opacity: 1;
  visibility: visible;
}

.whatsapp-float .tooltip::after {
  content: '';
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-left-color: #ffffff;
}

/* PÁGINAS LEGALES */
.legal-page {
  background: var(--gradient-blue);
}

.legal-page .container {
  max-width: 800px;
  background: #ffffff;
  padding: 50px;
  border-radius: var(--radius-xl);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.legal-page h1 {
  font-size: 2rem;
  color: var(--color-primary);
  margin-bottom: 30px;
  padding-bottom: 15px;
  border-bottom: 2px solid var(--color-accent);
}

.legal-page h2 {
  font-size: 1.3rem;
  color: var(--color-primary);
  margin-top: 30px;
  margin-bottom: 15px;
}

.legal-page h3 {
  font-size: 1.1rem;
  color: var(--color-primary);
  margin-top: 20px;
  margin-bottom: 10px;
}

.legal-page p {
  color: var(--color-text);
  line-height: 1.8;
  margin-bottom: 15px;
}

.legal-page ul {
  margin-bottom: 20px;
  padding-left: 25px;
}

.legal-page li {
  color: var(--color-text);
  line-height: 1.8;
  margin-bottom: 8px;
}

.legal-page a {
  color: var(--color-accent);
}

.legal-page .legal-date {
  margin-top: 40px;
  color: var(--color-muted);
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .legal-page .container {
    padding: 30px 20px;
  }
}

/* ========================================
   HERO CON VIDEO DE FONDO
======================================== */
.hero-video {
  position: relative;
  min-height: calc(100vh - var(--header-height));
  display: flex;
  align-items: center;
  color: #f9fafb;
  background-color: var(--color-primary);
  overflow: hidden;
}

.hero-video-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

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

.hero-video-mobile {
  display: none;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Mostrar video móvil en pantallas pequeñas */
@media (max-width: 768px) {
  .hero-video-bg {
    display: none;
  }
  
  .hero-video-mobile {
    display: block;
  }
}

.hero-video .hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
      rgba(11, 31, 59, 0.85) 0%,
      rgba(11, 31, 59, 0.7) 50%,
      rgba(11, 31, 59, 0.6) 100%);
  z-index: 1;
}

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

/* ========================================
   GALERÍA LIGHTBOX
======================================== */
.gallery-grid-lightbox {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.2);
}

.gallery-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(11, 31, 59, 0.8) 100%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay i {
  width: 50px;
  height: 50px;
  background: var(--gradient-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.2rem;
  box-shadow: 0 8px 25px rgba(255, 122, 26, 0.4);
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay i {
  transform: translateY(0);
}

/* Lightbox Modal */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-image {
  max-width: 90%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.lightbox.active .lightbox-image {
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 50%;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-close:hover {
  background: var(--color-accent);
  transform: rotate(90deg);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 55px;
  height: 55px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: none;
  border-radius: 50%;
  color: #fff;
  font-size: 1.3rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-nav:hover {
  background: var(--gradient-accent);
  transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
  left: 30px;
}

.lightbox-next {
  right: 30px;
}

.lightbox-counter {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  padding: 10px 24px;
  border-radius: 999px;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 500;
}

@media (max-width: 768px) {
  .lightbox-nav {
    width: 45px;
    height: 45px;
  }
  
  .lightbox-prev {
    left: 15px;
  }
  
  .lightbox-next {
    right: 15px;
  }
}

/* ========================================
   SECCIÓN DE ESTADÍSTICAS / INFOGRAFÍA
======================================== */
.stats-section {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.stats-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255, 122, 26, 0.25) 0%, transparent 60%);
  pointer-events: none;
}

.stats-section::after {
  content: '';
  position: absolute;
  bottom: -40%;
  left: -15%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.stats-header {
  text-align: center;
  margin-bottom: 50px;
  position: relative;
  z-index: 1;
}

.stats-header .section-tag {
  background: rgba(255, 122, 26, 0.2);
  color: #ffb547;
  padding: 6px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 122, 26, 0.4);
}

.stats-header h2 {
  color: #ffffff;
  font-size: 2.2rem;
  margin-top: 16px;
  margin-bottom: 12px;
}

.stats-header p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  position: relative;
  z-index: 1;
}

.stat-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-radius: var(--radius-xl);
  padding: 35px 24px;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: var(--gradient-accent);
}

.stat-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2), 0 0 40px rgba(255, 122, 26, 0.15);
}

.stat-icon {
  width: 70px;
  height: 70px;
  background: var(--gradient-accent);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.8rem;
  color: #fff;
  box-shadow: 0 12px 30px rgba(255, 122, 26, 0.4);
  transition: transform 0.3s ease;
}

.stat-card:hover .stat-icon {
  transform: scale(1.1) rotate(5deg);
}

.stat-number {
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  color: var(--color-muted);
  font-size: 0.95rem;
  font-weight: 500;
}

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

@media (max-width: 600px) {
  .stats-grid {
    grid-template-columns: 1fr;
    max-width: 350px;
    margin: 0 auto;
  }
  
  .stat-number {
    font-size: 2.4rem;
  }
}

/* ========================================
   SECCIÓN DE CLIENTES Y CERTIFICACIONES
======================================== */
.clients-section {
  background: var(--gradient-blue);
  padding: 80px 0;
  overflow: hidden;
  position: relative;
}

.clients-section::before {
  content: '';
  position: absolute;
  top: -20%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255, 122, 26, 0.1) 0%, transparent 60%);
  pointer-events: none;
}

.clients-header {
  text-align: center;
  margin-bottom: 50px;
}

.clients-header h2 {
  font-size: 2rem;
  color: var(--color-primary);
  margin-top: 12px;
}

.clients-header p {
  color: var(--color-muted);
  font-size: 1rem;
  margin-top: 12px;
}

/* Carrusel infinito de logos */
.clients-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 20px 0;
}

.clients-carousel::before,
.clients-carousel::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 150px;
  z-index: 2;
  pointer-events: none;
}

.clients-carousel::before {
  left: 0;
  background: linear-gradient(90deg, var(--color-blue-50) 0%, transparent 100%);
}

.clients-carousel::after {
  right: 0;
  background: linear-gradient(270deg, var(--color-blue-50) 0%, transparent 100%);
}

.clients-track {
  display: flex;
  gap: 60px;
  animation: scroll-logos 25s linear infinite;
  width: max-content;
}

.clients-track:hover {
  animation-play-state: paused;
}

@keyframes scroll-logos {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.client-logo {
  flex-shrink: 0;
  width: 160px;
  height: 80px;
  background: #ffffff;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 24px;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.08);
  transition: all 0.3s ease;
}

.client-logo:hover {
  transform: scale(1.08);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
}

.client-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: all 0.3s ease;
}

.client-logo:hover img {
  filter: grayscale(0%);
  opacity: 1;
}

/* Placeholder para logos */
.client-logo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--color-muted);
  font-size: 0.8rem;
  text-align: center;
  gap: 6px;
}

.client-logo-placeholder i {
  font-size: 1.6rem;
  color: #cbd5e1;
}

/* Certificaciones */
.certifications {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-top: 50px;
  flex-wrap: wrap;
}

.cert-card {
  background: #ffffff;
  border-radius: var(--radius-xl);
  padding: 28px 40px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 10px 35px rgba(15, 23, 42, 0.1);
  border: 2px solid transparent;
  transition: all 0.35s ease;
}

.cert-card:hover {
  transform: translateY(-5px);
  border-color: var(--color-accent);
  box-shadow: 0 16px 45px rgba(15, 23, 42, 0.12), 0 0 30px rgba(255, 122, 26, 0.1);
}

.cert-card i {
  width: 55px;
  height: 55px;
  background: var(--gradient-accent);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #fff;
  box-shadow: 0 8px 20px rgba(255, 122, 26, 0.35);
}

.cert-card span {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-primary);
}

.cert-card small {
  display: block;
  font-size: 0.85rem;
  color: var(--color-muted);
  font-weight: 400;
  margin-top: 2px;
}

@media (max-width: 600px) {
  .certifications {
    flex-direction: column;
    align-items: center;
  }
  
  .cert-card {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }
}