/* ===== VARIABLES ===== */
:root {
  --primary-blue: #112FAF;     /* NUEVO COLOR DE FONDO PRINCIPAL */
  --primary-blue-dark: #0D2690; /* Versión más oscura */
  --primary-blue-light: #1A3DC9; /* Versión más clara */
  --deep-blue: #0A2A5E;
  --blue-electric: #1E4A8C;
  --red-accent: #DC2626;
  --orange-accent: #fa5700;
  --white: #FFFFFF;
  --gray-light: #F8FAFC;
  --gray-text: #334155;
  --border-light: rgba(255, 255, 255, 0.2);
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--primary-blue); /* FONDO PRINCIPAL #112FAF */
  color: white;
  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
}

/* ===== NAVBAR ===== */
.navbar {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  padding: 1rem 2rem;
  border-bottom: 1px solid rgba(17, 47, 175, 0.1);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.nav-container {
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  max-width: 150px;
}

.logo img {
  max-height: 55px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-weight: 600;
  color: var(--primary-blue);
  transition: 0.2s;
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--primary-blue-light);
}

.menu-icon {
  display: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: var(--primary-blue);
}

/* responsive */
@media (max-width: 880px) {
  .menu-icon {
    display: block;
  }
  .nav-links {
    position: absolute;
    top: 70px;
    left: -100%;
    background: white;
    width: 100%;
    flex-direction: column;
    align-items: center;
    padding: 2rem 0;
    gap: 1.5rem;
    transition: 0.3s;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  }
  .nav-links.active {
    left: 0;
  }
}

/* Botones */
.btn-primary {
  background: white;
  border: none;
  padding: 12px 32px;
  border-radius: 40px;
  font-weight: 600;
  color: var(--primary-blue);
  cursor: pointer;
  transition: 0.2s;
  display: inline-block;
  font-size: 0.9rem;
  text-decoration: none;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
  background: white;
}

.btn-outline {
  background: transparent;
  border: 2px solid white;
  padding: 12px 32px;
  border-radius: 40px;
  font-weight: 600;
  color: white;
  transition: 0.2s;
  text-decoration: none;
}

.btn-outline:hover {
  background: white;
  color: var(--primary-blue);
  border-color: white;
}

/* Hero */
.hero {
  min-height: 95vh;
  background: linear-gradient(135deg, #051020, #091832), url('./img/fondop1.jpeg') center/cover no-repeat;
  background-blend-mode: overlay;
  display: flex;
  align-items: center;
  position: relative;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.55);
}

.hero-content {
  position: relative;
  max-width: 800px;
  margin-left: 8%;
  padding: 2rem;
}

.hero-logo {
  font-size: 3rem;
  font-weight: 800;
  color: white;
  margin-bottom: 1rem;
}

.hero-logo span {
  color: var(--red-accent);
}

.hero-content h1 {
  font-size: 3.5rem;
  font-weight: 700;
  color: white;
  line-height: 1.2;
}

.hero-sub {
  font-size: 1.2rem;
  margin: 1.5rem 0;
  color: #ccc;
}

.hero-buttons {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
}


/* Secciones generales */
.section {
  padding: 5rem 2rem;
}

.container {
  max-width: 1300px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: white;
}

.section-header h2 span {
  color: white;
  background: rgba(255, 255, 255, 0.2);
  padding: 0 0.5rem;
  border-radius: 10px;
}

.blue-line {
  width: 70px;
  height: 3px;
  background: white;
  margin: 1rem auto;
}

.bg-gray {
  background-color: rgba(255, 255, 255, 0.08);
}

/* Nosotros */
.nosotros-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.nosotros-text p {
  margin-bottom: 1rem;
  line-height: 1.6;
  color: white;
}

.stats-mini {
  display: flex;
  gap: 1.5rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.stats-mini div {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  padding: 0.5rem 1rem;
  border-radius: 30px;
  font-weight: 600;
  color: white;
}

.stats-mini span {
  color: white;
  font-weight: 800;
  margin-right: 5px;
  background: rgba(255,255,255,0.2);
  padding: 0 0.3rem;
  border-radius: 20px;
}

.nosotros-cards {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.mv-card {
  background: rgba(255, 255, 255, 0.95);
  padding: 1.2rem;
  border-radius: 20px;
  border-left: 4px solid var(--red-accent);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  color: var(--gray-text);
}

.mv-card i {
  font-size: 1.6rem;
  color: var(--red-accent);
  margin-bottom: 0.5rem;
}

.mv-card h4 {
  color: var(--primary-blue);
  margin-bottom: 0.5rem;
}

.mv-card p {
  color: var(--gray-text);
}

.valores-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  margin-top: 2rem;
}

.valor-item {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  padding: 0.8rem 1.8rem;
  border-radius: 60px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: white;
}

.valor-item i {
  color: white;
  font-size: 1.3rem;
}

/* Servicios grid */
.servicios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}

.service-card {
  background: var(--gray-card);
  padding: 1.8rem;
  border-radius: 24px;
  transition: 0.25s;
  text-align: center;
  border: 1px solid #052c96;
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: var(--blue-accent);
  box-shadow: 0 20px 30px -12px rgba(0, 0, 0, 0.5);
}

.service-card i {
  font-size: 2.8rem;
  color: var(--blue-accent);
  margin-bottom: 1rem;
}

.service-card h3 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.service-card p {
  color: #ffffff;
  margin: 0.8rem 0;
}

.btn-more {
  background: transparent;
  border: none;
  color: var(--blue-accent);
  font-weight: 600;
  cursor: pointer;
  margin-top: 0.5rem;
}

/* Clientes carrusel */
.carousel-container {
  position: relative;
  overflow: hidden;
  margin: 2rem 0;
  padding: 0;
}

.carousel-track {
  display: flex;
  gap: 1.5rem;
  transition: transform 0.5s ease;
  will-change: transform;
  cursor: grab;
}

.carousel-track:active {
  cursor: grabbing;
}

.client-logo {
  min-width: 200px;
  background: white;
  padding: 1.2rem;
  text-align: center;
  border-radius: 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
  flex-shrink: 0;
}

.client-logo:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.client-img {
  width: 100%;
  max-height: 60px;
  object-fit: contain;
  margin-bottom: 0.8rem;
}

.client-name {
  display: block;
  font-size: 0.8rem;
  color: var(--gray-text);
  font-weight: 500;
}

/* Indicadores */
.carousel-indicators {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
}

.indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  transition: var(--transition);
  cursor: pointer;
}

.indicator.active {
  width: 24px;
  border-radius: 4px;
  background: white;
}

@media (max-width: 768px) {
  .client-logo {
    min-width: 160px;
  }
}

/* ===== SECCIÓN PROPUESTA DE VALOR ===== */
.propuesta-section {
  background: rgba(255, 255, 255, 0.05);
}

.pilares-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin: 3rem 0;
}

.pilar-card {
  background: white;
  border-radius: 24px;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: var(--transition);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.pilar-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.pilar-icon {
  margin-bottom: 1.2rem;
}

.icon-emoji {
  font-size: 3.5rem;
  display: inline-block;
  transition: var(--transition);
}

.pilar-card:hover .icon-emoji {
  transform: scale(1.1);
}

.pilar-card h3 {
  font-size: 1.6rem;
  margin-bottom: 1rem;
  color: var(--primary-blue);
  font-weight: 700;
}

.pilar-card p {
  color: var(--gray-text);
  line-height: 1.6;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.pilar-linea {
  width: 50px;
  height: 2px;
  background: var(--red-accent);
  margin: 0 auto;
  transition: width 0.3s ease;
}

.pilar-card:hover .pilar-linea {
  width: 80px;
}

/* Frase destacada */
.propuesta-destacado {
  background: rgba(13, 38, 144, 0.9);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 2rem 2.5rem;
  margin-top: 2rem;
  text-align: center;
  position: relative;
  color: white;
}

.comillas {
  font-size: 5rem;
  font-family: serif;
  color: rgba(255, 255, 255, 0.2);
  position: absolute;
  top: -10px;
  left: 20px;
  line-height: 1;
}

.propuesta-destacado p {
  font-size: 1.1rem;
  line-height: 1.6;
  font-weight: 500;
  position: relative;
  z-index: 1;
}

/* Responsive */
@media (max-width: 1024px) {
  .pilares-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .pilares-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== SECCIÓN POST VENTA ===== */
.postventa-section {
  background: rgba(255, 255, 255, 0.05);
}

.postventa-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 3rem;
}

.postventa-card {
  background: white;
  border-radius: 24px;
  padding: 2rem 1.8rem;
  transition: var(--transition);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

.postventa-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.card-numero {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-size: 4rem;
  font-weight: 800;
  color: rgba(17, 47, 175, 0.05);
  line-height: 1;
  transition: var(--transition);
  font-family: monospace;
}

.postventa-card:hover .card-numero {
  color: rgba(17, 47, 175, 0.1);
  transform: scale(1.1);
}

.card-icon {
  font-size: 2.5rem;
  color: var(--red-accent);
  margin-bottom: 1.2rem;
}

.postventa-card h3 {
  font-size: 1.4rem;
  margin-bottom: 0.3rem;
  color: var(--primary-blue);
}

.postventa-card h4 {
  font-size: 0.9rem;
  color: var(--primary-blue);
  margin-bottom: 1rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.postventa-card p {
  color: var(--gray-text);
  line-height: 1.6;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.card-footer {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.card-tag {
  background: rgba(17, 47, 175, 0.1);
  padding: 0.3rem 1rem;
  border-radius: 30px;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--primary-blue);
}

/* Beneficio destacado */
.postventa-destacado {
  background: rgba(13, 38, 144, 0.9);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 1.8rem 2rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 1rem;
  color: white;
}

.destacado-icon {
  background: rgba(255, 255, 255, 0.2);
  width: 65px;
  height: 65px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.destacado-icon i {
  font-size: 2rem;
  color: white;
}

.destacado-texto h4 {
  font-size: 1.3rem;
  margin-bottom: 0.3rem;
}

.destacado-texto p {
  font-size: 0.9rem;
  opacity: 0.9;
}

/* Responsive */
@media (max-width: 1024px) {
  .postventa-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .postventa-grid {
    grid-template-columns: 1fr;
  }
  
  .postventa-destacado {
    flex-direction: column;
    text-align: center;
  }
}

/* ===== SECCIÓN POLEAS VDG ===== */
.poleas-section {
  background: rgba(235, 143, 6, 0.05);
}

.poleas-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3rem auto;
}

.poleas-header .badge {
  background: var(--red-accent);
  padding: 0.3rem 1.2rem;
  border-radius: 40px;
  font-size: 0.8rem;
  font-weight: 600;
  display: inline-block;
  margin-bottom: 1rem;
  color: white;
}

.poleas-header h2 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  color: #FF6A1A;
}

.poleas-header h2 span {
  color: #FF6A1A;
  background: rgba(255, 255, 255, 0.2);
  padding: 0 0.5rem;
  border-radius: 10px;
}

.poleas-header h3 {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1rem;
  font-weight: 500;
}

.poleas-header h3 span {
  color: white;
  font-weight: 700;
}

.poleas-header p {
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
}

/* Imagen destacada */
.poleas-imagen-destacada {
  margin: 2rem 0 3rem 0;
}

.imagen-fondo {
  background: linear-gradient(135deg, var(--primary-blue-dark), var(--primary-blue));
  border-radius: 28px;
  height: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.imagen-fondo::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('./img/vdg.jpeg') center/cover no-repeat;
  
}

.imagen-texto {
  position: relative;
  z-index: 1;
}

.imagen-texto h4 {
  font-size: 1.8rem;
  color: white;
  margin-bottom: 0.5rem;
}

.imagen-texto p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1rem;
}

/* Grid de información */
.poleas-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 4rem;
}

.info-card-ventajas,
.info-card-irongrip {
  background: white;
  border-radius: 24px;
  padding: 1.8rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
}

.info-card-ventajas:hover,
.info-card-irongrip:hover {
  transform: translateY(-5px);
}

.info-card-ventajas h4,
.info-card-irongrip h4 {
  font-size: 1.3rem;
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary-blue);
}

.info-card-ventajas h4 i,
.info-card-irongrip h4 i {
  color: var(--red-accent);
}

.info-card-irongrip h4 span {
  color: var(--red-accent);
}

.ventajas-lista {
  list-style: none;
}

.ventajas-lista li {
  margin: 0.8rem 0;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--gray-text);
}

.ventajas-lista li i {
  color: var(--primary-blue);
  font-size: 1.1rem;
}

.info-card-irongrip p {
  color: var(--gray-text);
  line-height: 1.6;
  margin-bottom: 1.2rem;
}

.stats-irongrip {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.stats-irongrip .stat {
  background: rgba(17, 47, 175, 0.1);
  padding: 0.6rem 1.2rem;
  border-radius: 40px;
  font-size: 0.85rem;
  color: var(--primary-blue);
  font-weight: 500;
}

.stats-irongrip .stat span {
  color: var(--orange-accent);
  font-weight: 700;
  font-size: 1rem;
  margin-right: 0.2rem;
}

/* Productos VDG */
.productos-vdg {
  margin-top: 2rem;
}

.productos-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.productos-header h3 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  color: white;
}

.productos-header h3 span {
  color: #FF8C50;
  background: rgba(255, 255, 255, 0.2);
  padding: 0 0.5rem;
  border-radius: 10px;
}

.productos-header p {
  color: rgba(255, 255, 255, 0.9);
}

.productos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
}

.producto-card {
  background: white;
  border-radius: 20px;
  padding: 1.8rem;
  transition: var(--transition);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  position: relative;
}

.producto-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.producto-numero {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-size: 3rem;
  font-weight: 800;
  color: rgba(17, 47, 175, 0.05);
  line-height: 1;
}

.producto-icon {
  font-size: 2.5rem;
  color: var(--orange-accent);
  margin-bottom: 1rem;
}

.producto-card h4 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  color: var(--primary-blue);
}

.producto-destacado {
  font-size: 0.8rem;
  color: var(--primary-blue);
  font-weight: 600;
  margin-bottom: 1rem;
  letter-spacing: 0.5px;
}

.producto-descripcion {
  font-size: 0.85rem;
  color: var(--gray-text);
  line-height: 1.5;
  margin-bottom: 1.2rem;
}

.producto-especificaciones {
  list-style: none;
  border-top: 1px solid #e2e8f0;
  padding-top: 1rem;
}

.producto-especificaciones li {
  margin: 0.6rem 0;
  font-size: 0.8rem;
  color: var(--gray-text);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.producto-especificaciones li i {
  color: var(--primary-blue);
  font-size: 0.8rem;
  width: 20px;
}

/* Responsive */
@media (max-width: 1024px) {
  .productos-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .poleas-info-grid {
    grid-template-columns: 1fr;
  }
  
  .productos-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== SECCIÓN DE CONTACTO COMPLETA ===== */
.contacto-completo {
  background: rgba(255, 255, 255, 0.05);
}

.contacto-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2.5rem;
  align-items: start;
}

/* Columna izquierda */
.contacto-info-col {
  background: white;
  border-radius: 28px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.info-header {
  text-align: center;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #e2e8f0;
}

.info-header i {
  font-size: 2.5rem;
  color: var(--red-accent);
  margin-bottom: 1rem;
}

.info-header h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--primary-blue);
}

.info-header p {
  color: var(--gray-text);
  font-size: 0.9rem;
}

/* Detalles de contacto */
.contact-details-modern {
  margin-bottom: 2rem;
}

.detail-item {
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid #e2e8f0;
  transition: var(--transition);
}

.detail-item:hover {
  transform: translateX(5px);
}

.detail-icon {
  width: 45px;
  height: 45px;
  background: rgba(17, 47, 175, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.detail-icon i {
  font-size: 1.3rem;
  color: var(--red-accent);
}

.detail-text h4 {
  font-size: 0.9rem;
  color: var(--gray-text);
  margin-bottom: 0.25rem;
  font-weight: 500;
}

.detail-text p {
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary-blue);
  margin-bottom: 0.25rem;
}

.detail-text small {
  font-size: 0.75rem;
  color: var(--gray-text);
}

/* Columna derecha - Formulario */
.contacto-form-col {
  background: white;
  border-radius: 28px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.contact-form-simple {
  width: 100%;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  margin-bottom: 0.5rem;
}

.form-group {
  margin-bottom: 1.2rem;
}

.form-group label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--primary-blue);
  font-size: 0.85rem;
}

.form-group label i {
  color: var(--red-accent);
  font-size: 0.85rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  color: var(--primary-blue);
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(17, 47, 175, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #94a3b8;
}

.form-check {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin: 1.5rem 0;
}

.form-check input {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--red-accent);
}

.form-check label {
  color: var(--gray-text);
  font-size: 0.8rem;
}

.form-check label a {
  color: var(--primary-blue);
  text-decoration: none;
}

.form-check label a:hover {
  text-decoration: underline;
}

.btn-submit {
  width: 100%;
  background: var(--primary-blue);
  border: none;
  padding: 14px 28px;
  border-radius: 40px;
  font-weight: 600;
  color: white;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(17, 47, 175, 0.3);
  background: var(--primary-blue-dark);
}

.form-message {
  margin-top: 1.2rem;
  padding: 12px;
  border-radius: 12px;
  text-align: center;
  font-size: 0.85rem;
  display: none;
}

.form-message.success {
  display: block;
  background: rgba(39, 174, 96, 0.15);
  border: 1px solid #27ae60;
  color: #27ae60;
}

.form-message.error {
  display: block;
  background: rgba(231, 76, 60, 0.15);
  border: 1px solid #e74c3c;
  color: #e74c3c;
}

/* ===== SELECTOR DE OFICINAS ===== */
.oficinas-selector {
  margin: 1.5rem 0;
  background: #f8fafc;
  border-radius: 20px;
  padding: 1.2rem;
}

.oficinas-selector h4 {
  font-size: 1rem;
  margin-bottom: 1rem;
  color: var(--primary-blue);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.botones-oficinas {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.btn-oficina {
  flex: 1;
  background: white;
  border: 1.5px solid #e2e8f0;
  padding: 10px 20px;
  border-radius: 40px;
  color: var(--primary-blue);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: 'Inter', sans-serif;
}

.btn-oficina i {
  font-size: 1rem;
}

.btn-oficina:hover {
  border-color: var(--primary-blue);
  background: rgba(17, 47, 175, 0.05);
}

.btn-oficina.active {
  background: var(--primary-blue);
  border-color: var(--primary-blue);
  color: white;
}

.info-oficina {
  display: none;
  animation: fadeIn 0.3s ease;
}

.info-oficina.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.direccion-detalle {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  background: white;
  border-radius: 16px;
  align-items: flex-start;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.direccion-detalle i {
  font-size: 1.5rem;
  color: var(--red-accent);
  margin-top: 0.2rem;
}

.direccion-detalle strong {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--primary-blue);
  font-size: 0.95rem;
}

.direccion-detalle p {
  color: var(--gray-text);
  line-height: 1.5;
  font-size: 0.9rem;
}

/* Mapa */
.contacto-mapa {
  background: white;
  border-radius: 24px;
  overflow: hidden;
  height: 450px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.mapa-container {
  width: 100%;
  height: 100%;
  display: none;
}

.mapa-container.active {
  display: block;
}

.mapa-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.contacto-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.btn-maps {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: var(--primary-blue);
  padding: 10px 20px;
  border-radius: 40px;
  color: white;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  font-size: 0.9rem;
}

.btn-maps:hover {
  background: var(--primary-blue-dark);
  transform: translateY(-2px);
}

/* Footer */
.footer {
  background: var(--primary-blue-dark);
  padding: 3rem 2rem 1rem;
  color: rgba(255, 255, 255, 0.8);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
}

.footer h3, .footer h4 {
  color: white;
}

.footer a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
}

.footer ul {
  list-style: none;
}

.footer li {
  margin-bottom: 8px;
}

.footer-bottom {
  text-align: center;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Botones flotantes */
.whatsapp-float {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background: #25D366;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  text-decoration: none;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  background: #20b359;
}

.back-to-top {
  position: fixed;
  bottom: 100px;
  right: 25px;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  background: white;
  border: none;
  color: var(--primary-blue);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
}

.back-to-top:hover {
  background: var(--primary-blue);
  color: white;
  transform: translateY(-3px);
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Responsive general */
@media (max-width: 992px) {
  .contacto-grid {
    grid-template-columns: 1fr;
  }
  
  .contacto-wrapper {
    grid-template-columns: 1fr;
  }
  
  .contacto-mapa {
    order: -1;
    height: 400px;
  }
}

@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2rem;
  }
  
  .section {
    padding: 3rem 1rem;
  }
  
  .nosotros-grid {
    grid-template-columns: 1fr;
  }
  
  .carousel-track {
    gap: 1rem;
  }
  
  .botones-oficinas {
    flex-direction: column;
  }
  
  .back-to-top {
    width: 45px;
    height: 45px;
    font-size: 1.2rem;
    bottom: 85px;
  }
}

@media (max-width: 640px) {
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .stats-mini {
    flex-direction: column;
    align-items: center;
  }
  
  .direccion-detalle {
    flex-direction: column;
    text-align: center;
  }
  
  .direccion-detalle i {
    margin: 0 auto;
  }
}



/* Servicios grid */
.servicios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}

.service-card {
  background: var(--card-bg);
  padding: 1.8rem;
  border-radius: 24px;
  transition: 0.25s;
  text-align: center;
  border: 1px solid #20273b;
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: var(--sky-blue);
  box-shadow: 0 20px 30px -12px rgba(30, 144, 255, 0.3);
}

/* Para iconos FontAwesome */
.service-card i {
  font-size: 2.8rem;
  color: var(--sky-blue);
  margin-bottom: 1rem;
}

/* Para imágenes personalizadas */
.service-img {
  width: 150px;
  height: 150px;
  margin: 0 auto 1rem auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-img img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: var(--transition);
}

.service-card:hover .service-img img {
  transform: scale(1.1);
}

.service-card h3 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  color: white;
}

.service-card p {
  color: #abb4cc;
  margin: 0.8rem 0;
  line-height: 1.5;
}

.btn-more {
  background: transparent;
  border: none;
  color: var(--sky-blue);
  font-weight: 600;
  cursor: pointer;
  margin-top: 0.5rem;
  transition: var(--transition);
}

.btn-more:hover {
  transform: translateX(5px);
  color: var(--sky-light);
}