/* ============================================
       RESET Y PALETA (EXACTA)
       ============================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --color-primary: #1e3a8a;
  --color-secondary: #ef4444;
  --color-dark: #1f2937;
  --color-gray: #374151;
  --color-light: #f8f9fa;
  --color-white: #ffffff;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--color-dark);
}

/* ============================================
       NAVBAR - MÁS ESQUINADO
       ============================================ */
.navbar {
  background: rgba(255, 255, 255, 0.98);
  padding: 1.2rem 0;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
  width: 100%;
  position: fixed;
  top: 0;
  z-index: 1000;
}

/* CONTENEDOR MÁS ESQUINADO */
.navbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 3rem;
}

@media (min-width: 1400px) {
  .navbar-container {
    padding: 0 5rem;
  }
}

@media (min-width: 2000px) {
  .navbar-container {
    padding: 0 8rem;
  }
}

/* IZQUIERDA: Logo + 5 enlaces */
.nav-left {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

/* LOGO CON EFECTO HOVER (azul → rojo) */
.logo {
    position: relative;
    display: inline-block;
    height: 50px;
}
.logo img {
    height: 50px;
    width: auto;
    transition: opacity 0.3s ease;
}

.logo .logo-dark {
    opacity: 1;
    display: block;
}

.logo .logo-light {
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    display: block;
}

.logo:hover .logo-dark {
    opacity: 0;
}

.logo:hover .logo-light {
    opacity: 1;
}

/* NAV LINKS CON EFECTO DE LÍNEA ANIMADA */
.nav-links {
  display: flex;
  list-style: none;
  gap: 1.8rem;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--color-primary);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  padding-bottom: 5px;
}

/* Línea animada de izquierda a derecha */
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background-color: var(--color-secondary);
  transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-secondary);
}

/* DERECHA: Contacto + números + botón CON DISTANCIAS IGUALES */
.nav-right {
  display: flex;
  align-items: center;
}

.nav-right .nav-links {
  gap: 2rem;
}

.btn {
  background: var(--color-primary);
  color: white;
  border: none;
  padding: 0.8rem 2rem;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  font-size: 0.95rem;
}

.btn:hover {
  background: var(--color-secondary);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(239, 68, 68, 0.3);
}

/* DOS NÚMEROS CON ANIMACIÓN DE LLAMADA */
.phone-numbers {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.phone-number {
  color: var(--color-primary);
  font-weight: 600;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.phone-number i {
  transition: transform 0.3s ease;
}

/* ANIMACIÓN DE TELÉFONO AL HACER HOVER */
.phone-number:hover {
  color: var(--color-secondary);
}

.phone-number:hover i {
  animation: phoneRing 0.6s ease-in-out infinite;
}

@keyframes phoneRing {
  0%, 100% {
    transform: rotate(0deg);
  }
  10%, 30%, 50%, 70% {
    transform: rotate(-15deg);
  }
  20%, 40%, 60%, 80% {
    transform: rotate(15deg);
  }
}

.phone-number.secondary {
  color: var(--color-gray);
  font-weight: 500;
  font-size: 0.85rem;
}

/* ============================================
       HAMBURGER - SE CONVIERTE EN X
       ============================================ */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
  background: none;
  border: none;
  padding: 5px;
  z-index: 1001;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: var(--color-primary);
  transition: all 0.3s ease;
  border-radius: 3px;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
  background: var(--color-secondary);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
  background: var(--color-secondary);
}

/* OVERLAY PARA FONDO OSCURO */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* MENÚ MÓVIL (OCUPA TODA LA PANTALLA) */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100vh;
  background: var(--color-white);
  transition: right 0.4s cubic-bezier(0.77, 0, 0.18, 1);
  z-index: 999;
  overflow-y: auto;
  box-shadow: none;
}

.mobile-menu.active {
  right: 0;
}

/* BOTÓN DE CERRAR OCULTO (USA HAMBURGER COMO X) */
.close-menu {
  display: none;
}

.mobile-menu-content {
  padding: 100px 2rem 2rem;
  max-width: 500px;
  margin: 0 auto;
}

.mobile-nav-links {
  list-style: none;
}

.mobile-nav-links li {
  margin-bottom: 1.5rem;
}

.mobile-nav-links a {
  text-decoration: none;
  color: var(--color-primary);
  font-size: 1.3rem;
  font-weight: 500;
  display: block;
  padding: 0.5rem 0;
  border-left: 4px solid transparent;
  padding-left: 1rem;
  transition: all 0.3s ease;
}

.mobile-nav-links a:hover,
.mobile-nav-links a.active {
  color: var(--color-secondary);
  border-left: 4px solid var(--color-secondary);
  padding-left: 1.5rem;
}

.mobile-contact {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #e5e7eb;
}

.mobile-phone {
  font-size: 1.2rem;
  color: var(--color-primary);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.mobile-phone i {
  transition: transform 0.3s ease;
}

/* ANIMACIÓN DE TELÉFONO EN MÓVIL */
.mobile-phone:hover {
  color: var(--color-secondary);
}

.mobile-phone:hover i {
  animation: phoneRing 0.6s ease-in-out infinite;
}

.mobile-phone.secondary {
  color: var(--color-gray);
  font-size: 1rem;
}

.mobile-btn {
  width: 100%;
  padding: 1rem;
  font-size: 1rem;
}

/* ============================================
       HERO SIMPLE Y CLARO
       ============================================ */
.hero-simple {
  margin-top: 80px;
  min-height: 85vh;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  position: relative;
  overflow: hidden;
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  align-items: center;
  min-height: 80vh;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-block;
  background: rgba(239, 68, 68, 0.1);
  color: var(--color-secondary);
  padding: 0.5rem 1.5rem;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.hero-title {
  font-size: 3.5rem;
  color: var(--color-primary);
  line-height: 1.1;
  margin-bottom: 1.5rem;
  font-weight: 800;
}

.hero-subtitle {
  font-size: 1.3rem;
  color: var(--color-gray);
  margin-bottom: 2rem;
  font-weight: 500;
  line-height: 1.6;
}

.hero-description {
  font-size: 1.1rem;
  color: #4b5563;
  line-height: 1.7;
  margin-bottom: 3rem;
}

.hero-cta {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.btn-primary {
  background: var(--color-secondary);
  color: white;
  border: none;
  padding: 1.2rem 3rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(239, 68, 68, 0.2);
}

.btn-primary:hover {
  background: #dc2626;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(239, 68, 68, 0.35);
}

.btn-secondary {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
  padding: 1.2rem 2.5rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: var(--color-primary);
  color: white;
  transform: translateY(-3px);
}

.hero-image {
  position: relative;
}

.image-wrapper {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
  transform: perspective(1000px) rotateY(-10deg);
  transition: transform 0.5s ease;
}

.image-wrapper:hover {
  transform: perspective(1000px) rotateY(0deg);
}

.hero-img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  object-position: center;
}

.floating-card {
  position: absolute;
  bottom: -40px;
  left: -40px;
  background: white;
  padding: 1.5rem;
  border-radius: 15px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
  border-left: 4px solid var(--color-secondary);
  max-width: 250px;
}

.floating-card .number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1;
}

.floating-card .text {
  font-size: 0.9rem;
  color: var(--color-gray);
  margin-top: 0.5rem;
}

/* ============================================
       RESPONSIVE
       ============================================ */
@media (max-width: 1024px) {
  .navbar-container {
    padding: 0 1.5rem;
  }

  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }

  .hero-title {
    font-size: 2.8rem;
  }

  .floating-card {
    position: relative;
    bottom: 0;
    left: 0;
    margin: 2rem auto 0;
    max-width: 300px;
  }
}

@media (max-width: 768px) {
  .navbar {
    padding: 1rem 0;
  }

  .navbar-container {
    padding: 0 1.5rem;
  }

  .nav-left .nav-links,
  .nav-right {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .hero-cta {
    flex-direction: column;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
  }
}


/* ============================================
       AQUI TERMINA EL HEADER
       ============================================ */


 /* ============================================
   ESTILOS GLOBALES MEJORADOS
   ============================================ */
:root {
    --color-primary: #1e3a8a;
    --color-secondary: #ef4444;
    --color-dark: #1f2937;
    --color-gray: #374151;
    --color-light: #f8f9fa;
    --color-white: #ffffff;
    --color-accent: #3b82f6;
    --color-light-blue: #e0f2fe;
    --color-bg-light: #f8fafc;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--color-dark);
    background-color: #ffffff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ============================================
   SECCIÓN SERVICIOS - DISEÑO MEJORADO
   ============================================ */
.servicios {
    padding: 6rem 1.5rem;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    position: relative;
    overflow: hidden;
}

.servicios::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 80%, rgba(59, 130, 246, 0.05) 0%, transparent 50%);
}

.servicios-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Header de sección mejorado */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-badge {
    display: inline-block;
    background: rgba(239, 68, 68, 0.1);
    color: var(--color-secondary);
    padding: 0.5rem 1.5rem;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.section-title {
    font-size: 2.8rem;
    color: var(--color-primary);
    margin-bottom: 1.2rem;
    font-weight: 800;
 
    background: #1e3a8a;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-description {
    font-size: 1.2rem;
    color: var(--color-gray);
    line-height: 1.7;
    opacity: 0.9;
}

/* Grid de servicios mejorado */
.servicios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

/* Tarjetas de servicio - Diseño más moderno y familiar */
.servicio-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid #e5e7eb;
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.servicio-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}

.servicio-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--color-accent);
}

.servicio-card:hover::before {
    transform: scaleX(1);
}

/* Tarjeta destacada */
.servicio-card.featured {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: white;
    border: none;
}

.servicio-card.featured .servicio-titulo,
.servicio-card.featured .servicio-descripcion,
.servicio-card.featured .servicio-lista li {
    color: white;
}

.featured-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--color-secondary);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Iconos de servicio */
.servicio-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.1), rgba(59, 130, 246, 0.1));
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.servicio-card:hover .servicio-icon {
    transform: rotate(5deg) scale(1.1);
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
}

.servicio-icon i {
    font-size: 2rem;
    color: var(--color-primary);
}

.servicio-card:hover .servicio-icon i {
    color: white;
}

.servicio-card.featured .servicio-icon {
    background: rgba(255, 255, 255, 0.2);
}

.servicio-card.featured .servicio-icon i {
    color: white;
}

/* Títulos y descripciones */
.servicio-titulo {
    font-size: 1.6rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.3;
}

.servicio-card.featured .servicio-titulo {
    color: white;
}

.servicio-descripcion {
    color: var(--color-gray);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
    flex-grow: 1;
}

.servicio-card.featured .servicio-descripcion {
    color: rgba(255, 255, 255, 0.9);
}

/* Listas de características */
.servicio-lista {
    list-style: none;
    margin-bottom: 2rem;
}

.servicio-lista li {
    padding: 0.6rem 0;
    color: var(--color-gray);
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.servicio-lista li:hover {
    transform: translateX(5px);
}

.servicio-lista i {
    color: var(--color-secondary);
    font-size: 1rem;
    width: 20px;
}

.servicio-card.featured .servicio-lista i {
    color: #ffd700;
}

/* Botones mejorados */
.btn-servicio {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    background: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
    padding: 0.8rem 1.8rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: auto;
    align-self: flex-start;
}

.btn-servicio:hover {
    background: var(--color-primary);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(30, 58, 138, 0.2);
    gap: 1.2rem;
}

.btn-servicio i {
    transition: transform 0.3s ease;
}

.btn-servicio:hover i {
    transform: translateX(5px);
}

.btn-servicio.primary {
    background: white;
    color: var(--color-primary);
    border-color: white;
}

.btn-servicio.primary:hover {
    background: rgba(255, 255, 255, 0.9);
    color: var(--color-primary);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* ============================================
   SECCIÓN QUIÉNES SOMOS (MANTENIENDO TU DISEÑO)
   ============================================ */
.quienes-somos {
    padding: 6rem 2rem;
    background: var(--color-white);
}

.quienes-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Intro con imagen */
.quienes-intro {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 5rem;
}

.intro-content {
    position: relative;
}

.intro-text {
    font-size: 1.1rem;
    color: var(--color-gray);
    line-height: 1.8;
    margin-bottom: 3rem;
}

/* Stats grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--color-accent);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--color-primary);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--color-gray);
    font-weight: 500;
}

/* Imagen del equipo */
.intro-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    height: 450px;
    transition: transform 0.5s ease;
}

.intro-image:hover {
    transform: scale(1.02);
}

.intro-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.8), rgba(239, 68, 68, 0.6));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-overlay i {
    font-size: 4rem;
    color: white;
}

.intro-image:hover .image-overlay {
    opacity: 1;
}

/* Grid de valores */
.valores-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.valor-card {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
    height: 100%;
}

.valor-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
    border-color: var(--color-accent);
}

.valor-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.valor-icon i {
    font-size: 1.8rem;
    color: white;
}

.valor-titulo {
    font-size: 1.4rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
    font-weight: 700;
}

.valor-descripcion {
    font-size: 1rem;
    color: var(--color-gray);
    line-height: 1.7;
}

.valores-lista {
    list-style: none;
}

.valores-lista li {
    padding: 0.7rem 0;
    color: var(--color-gray);
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1rem;
}

.valores-lista i {
    color: var(--color-secondary);
    font-size: 1rem;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .section-title {
        font-size: 2.2rem;
    }

    .quienes-intro {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .intro-image {
        order: -1;
        height: 400px;
    }

    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }

    .stat-number {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .servicios,
    .quienes-somos {
        padding: 4rem 1.5rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .servicios-grid {
        grid-template-columns: 1fr;
    }

    .servicio-card {
        padding: 2rem;
    }

    .valores-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .intro-image {
        height: 300px;
    }
}

/* Efectos de animación suaves */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

/* ============================================
   SECCIÓN PROYECTOS EN CONSTRUCCIÓN
   ============================================ */
.proyectos-construccion {
    padding: 6rem 1.5rem;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    text-align: center;
}

.construccion-content {
    max-width: 600px;
    margin: 3rem auto 0;
    padding: 3rem;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 2px dashed #cbd5e1;
}

.construccion-icon {
    font-size: 4rem;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
}

.construccion-content h3 {
    font-size: 1.8rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.construccion-content p {
    color: var(--color-gray);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.progress-container {
    margin: 2rem 0;
}

.progress-bar {
    height: 10px;
    background: #e5e7eb;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    border-radius: 5px;
    transition: width 1.5s ease;
}

.progress-text {
    font-size: 0.9rem;
    color: var(--color-gray);
    font-weight: 500;
}

.btn-notify {
    background: var(--color-primary);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    margin-top: 1rem;
}

.btn-notify:hover {
    background: var(--color-secondary);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(239, 68, 68, 0.2);
}

.btn-notify.notified {
    background: #10b981;
}

.btn-notify.notified:hover {
    background: #0da271;
}

/* ============================================
   SECCIÓN EMPRESAS QUE CONFÍAN
   ============================================ */
.empresas-confianza {
    padding: 6rem 1.5rem;
    background: var(--color-white);
}

.empresas-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* Centra las tarjetas */
    gap: 2rem;
    margin-top: 3rem;
}

.empresa-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
    text-align: center;
}

.empresa-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border-color: var(--color-accent);
}

.empresa-logo {
    margin-bottom: 1.5rem;
}

.logo-placeholder {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.1), rgba(59, 130, 246, 0.1));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.logo-placeholder i {
    font-size: 2.5rem;
    color: var(--color-primary);
}

.empresa-nombre {
    font-size: 1.3rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
    font-weight: 700;
}

.empresa-descripcion {
    color: var(--color-gray);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.empresa-trabajo {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.trabajo-badge {
    background: rgba(30, 58, 138, 0.1);
    color: var(--color-primary);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* ============================================
   SECCIÓN BLOG
   ============================================ */
.blog {
    padding: 6rem 1.5rem;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.blog-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.blog-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-image img {
    transform: scale(1.05);
}

.blog-date {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--color-secondary);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.blog-date .day {
    font-size: 1.2rem;
    line-height: 1;
}

.blog-date .month {
    font-size: 0.8rem;
    opacity: 0.9;
}

.blog-content {
    padding: 2rem;
}

.blog-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: var(--color-gray);
}

.blog-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.blog-meta i {
    font-size: 0.8rem;
}

.blog-title {
    font-size: 1.4rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
    line-height: 1.3;
    font-weight: 700;
}

.blog-excerpt {
    color: var(--color-gray);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.blog-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.tag {
    background: rgba(239, 68, 68, 0.1);
    color: var(--color-secondary);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.blog-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-primary);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.blog-link:hover {
    color: var(--color-secondary);
    gap: 0.8rem;
}

.blog-link i {
    transition: transform 0.3s ease;
}

.blog-link:hover i {
    transform: translateX(5px);
}

.blog-cta {
    text-align: center;
    margin-top: 4rem;
}

.btn-ver-todos {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    background: var(--color-primary);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-ver-todos:hover {
    background: var(--color-secondary);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(239, 68, 68, 0.2);
    gap: 1.2rem;
}

/* ============================================
   RESPONSIVE ADICIONAL PARA NUEVAS SECCIONES
   ============================================ */
@media (max-width: 768px) {
    .proyectos-construccion,
    .empresas-confianza,
    .blog {
        padding: 4rem 1.5rem;
    }
    
    .construccion-content {
        padding: 2rem;
    }
    
    .empresas-grid,
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-image {
        height: 200px;
    }
    
    .blog-content {
        padding: 1.5rem;
    }
}
/* ============================================
   LOGOS DE EMPRESAS - SIN BORDES, NATURAL
   ============================================ */
.empresa-logo {
    margin-bottom: 2rem; /* Más espacio debajo del logo */
    height: 160px; /* Contenedor más alto */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Para imágenes reales de logos - SIN BORDES */
.logo-empresa {
    width: auto;
    height: auto; /* Altura automática */
    max-width: 220px; /* Más ancho máximo */
    max-height: 140px; /* Alto máximo más grande */
    object-fit: contain;
    /* ELIMINADO: padding, background, border-radius, box-shadow, border */
    transition: all 0.3s ease;
    filter: grayscale(30%); /* Opcional: tono gris sutil */
}

.empresa-card:hover .logo-empresa {
    transform: scale(1.1); /* Zoom sutil al hover */
    filter: grayscale(0%); /* Opcional: color completo al hover */
}

/* Para placeholders también más grandes y naturales */
.logo-placeholder {
    width: 180px;
    height: 140px;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.05), rgba(59, 130, 246, 0.05));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    /* ELIMINADO: border-radius, box-shadow, border */
    transition: all 0.3s ease;
}

.logo-placeholder i {
    font-size: 4rem; /* Ícono más grande */
    color: var(--color-primary);
    opacity: 0.7;
}

.empresa-card:hover .logo-placeholder {
    transform: scale(1.1);
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.1), rgba(59, 130, 246, 0.1));
}
.empresa-card {
    flex: 0 0 280px; /* Ancho fijo de 280px, no crece, no encoge */
    /* el resto de estilos... */
}





/* ============================================
   CONTACTO 
   ============================================ */
 
   /* ============================================
   SECCIÓN CONTACTO MEJORADA
   ============================================ */
.contacto-section {
    padding: 6rem 1.5rem;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.contacto-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    margin-top: 3rem;
}

.formulario-container {
    background: var(--color-white);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.formulario-telecom {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    scroll-margin-top: 100px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.form-group:focus-within {
    transform: translateY(-2px);
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-weight: 600;
    color: var(--color-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
}

.form-group label i {
    color: var(--color-secondary);
    width: 20px;
    text-align: center;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 1rem;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f9fafb;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    background: white;
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

/* ============================================
   SELECTOR DE TELÉFONO MEJORADO
   ============================================ */
.telefono-wrapper {
    width: 100%;
}

.telefono-container {
    display: flex;
    gap: 8px;
    width: 100%;
    align-items: stretch;
}

/* Selector de país - MÁS COMPACTO */
.country-selector {
    position: relative;
    flex: 0 0 auto;
    width: 100px; /* MUCHO MÁS COMPACTO */
}

.selected-country {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0.8rem 0.8rem;
    background: #f9fafb;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    height: 54px;
    box-sizing: border-box;
    width: 100%;
    justify-content: space-between;
}

.selected-country:hover {
    border-color: var(--color-primary);
    background: white;
}

.selected-country.active {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
    z-index: 1001;
}

.selected-country:active {
    transform: scale(0.98);
}

.country-flag {
    width: 18px;
    height: 13px;
    border-radius: 2px;
    object-fit: cover;
    flex-shrink: 0;
}

.country-code {
    font-weight: 600;
    color: var(--color-dark);
    font-size: 0.9rem;
    text-align: center;
    flex-grow: 1;
}

.selected-country i {
    font-size: 10px;
    color: #6b7280;
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 2px;
}

.selected-country.active i {
    transform: rotate(180deg);
}

.country-dropdown {
    display: none;
    position: absolute;
    background: white;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    margin-top: 5px;
    width: 180px;
    top: 100%;
    left: 0;
    animation: slideInDown 0.2s ease-out;
}

.country-dropdown.active {
    display: block;
}

.country-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    cursor: pointer;
    transition: background 0.3s ease;
    border-bottom: 1px solid #f3f4f6;
}

.country-option:last-child {
    border-bottom: none;
}

.country-option:hover {
    background: #f9fafb;
}

.country-option:active {
    background: #e5e7eb;
    transform: scale(0.98);
}

.option-flag {
    width: 18px;
    height: 13px;
    border-radius: 2px;
    object-fit: cover;
    flex-shrink: 0;
}

.option-code {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--color-dark);
    width: 45px;
    flex-shrink: 0;
}

.option-name {
    font-size: 0.85rem;
    color: var(--color-gray);
    flex-grow: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Campo de número MÁS COMPACTO */
.numero-wrapper {
    flex: 1;
    min-width: 0;
}

.telefono-input {
    width: 100%;
    height: 54px;
    box-sizing: border-box;
    padding: 0.8rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    font-size: 1rem;
    background: #f9fafb;
    transition: all 0.3s ease;
}

.telefono-input:focus {
    outline: none;
    border-color: var(--color-primary);
    background: white;
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

/* ============================================
   PREFERENCIA DE CONTACTO - MEJOR ALINEACIÓN
   ============================================ */
.preferencia-label {
    font-weight: 600;
    color: var(--color-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.preferencia-group {
    display: flex;
    gap: 8px;
    height: 54px;
    align-items: center;
}

.preferencia-group .radio-option {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 0.5rem;
    background: #f9fafb;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    text-align: center;
    height: 54px;
    box-sizing: border-box;
    min-width: 0;
}

.preferencia-group .radio-option:hover {
    background: #f3f4f6;
    border-color: var(--color-primary);
}

.preferencia-group .radio-option input {
    display: none;
}

.preferencia-group .radio-custom {
    width: 16px;
    height: 16px;
    border: 2px solid var(--color-gray);
    border-radius: 50%;
    display: inline-block;
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.preferencia-group .radio-option input:checked + .radio-custom {
    border-color: var(--color-primary);
    background: var(--color-primary);
}

.preferencia-group .radio-option input:checked + .radio-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
}

.preferencia-group .radio-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
    font-size: 0.85rem;
    justify-content: center;
    white-space: nowrap;
    margin-left: 6px;
}

.preferencia-group .radio-label i {
    font-size: 1rem;
    color: var(--color-primary);
}

/* Radio buttons estándar */
.radio-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    padding: 0.8rem 1.2rem;
    background: #f9fafb;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.radio-option:hover {
    background: #f3f4f6;
    border-color: var(--color-primary);
}

.radio-option input {
    display: none;
}

.radio-custom {
    width: 18px;
    height: 18px;
    border: 2px solid var(--color-gray);
    border-radius: 50%;
    display: inline-block;
    position: relative;
    transition: all 0.3s ease;
}

.radio-option input:checked + .radio-custom {
    border-color: var(--color-primary);
    background: var(--color-primary);
}

.radio-option input:checked + .radio-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.radio-label i {
    color: var(--color-primary);
}

/* Horario grid */
.horario-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.horario-option {
    cursor: pointer;
}

.horario-option input {
    display: none;
}

.horario-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.2rem;
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    transition: all 0.3s ease;
    text-align: center;
    min-height: 100px;
}

.horario-option:hover .horario-box {
    border-color: var(--color-primary);
    background: #f0f9ff;
}

.horario-option input:checked + .horario-box {
    border-color: var(--color-primary);
    background: #dbeafe;
}

.horario-titulo {
    font-weight: 600;
    color: var(--color-primary);
    font-size: 1rem;
}

.horario-horas {
    font-size: 0.9rem;
    color: var(--color-gray);
    margin-top: 0.3rem;
}

/* Checkboxes de servicios */
.servicios-checkbox {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.checkbox-option {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem;
    background: #f9fafb;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.checkbox-option:hover {
    background: #f3f4f6;
    border-color: var(--color-primary);
}

.checkbox-option input {
    display: none;
}

.checkbox-custom {
    width: 20px;
    height: 20px;
    border: 2px solid var(--color-gray);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.checkbox-option input:checked + .checkbox-custom {
    background: var(--color-primary);
    border-color: var(--color-primary);
}

.checkbox-option input:checked + .checkbox-custom::after {
    content: '✓';
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    color: var(--color-dark);
}

.checkbox-label i {
    color: var(--color-primary);
}

/* Términos y condiciones */
.terminos-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: #f9fafb;
    padding: 1.5rem;
    border-radius: 10px;
}

.terminos-option {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    cursor: pointer;
}

.terminos-option input {
    display: none;
}

.terminos-custom {
    width: 20px;
    height: 20px;
    border: 2px solid var(--color-gray);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
    margin-top: 2px;
}

.terminos-option input:checked + .terminos-custom {
    background: var(--color-primary);
    border-color: var(--color-primary);
}

.terminos-option input:checked + .terminos-custom::after {
    content: '✓';
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.terminos-text {
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--color-gray);
}

.enlace-terminos {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
}

.enlace-terminos:hover {
    text-decoration: underline;
}

/* ============================================
   BOTÓN DE ENVÍO MEJORADO
   ============================================ */
.btn-enviar-formulario {
    width: 100%;
    padding: 1.3rem;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-enviar-formulario::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-enviar-formulario:hover::before {
    left: 100%;
}

.btn-enviar-formulario:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.4);
}

.btn-enviar-formulario:active {
    transform: translateY(-1px);
}

.btn-enviar-formulario:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.2);
    animation: pulse 1.5s ease-in-out infinite;
}

.btn-enviar-formulario:focus {
    outline: 3px solid rgba(59, 130, 246, 0.5);
    outline-offset: 2px;
}

.btn-enviar-formulario i {
    font-size: 1.2rem;
}

.btn-enviar-formulario .fa-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* ============================================
   MENSAJES DE ESTADO MEJORADOS
   ============================================ */
.mensaje-exito,
.mensaje-error {
    padding: 0;
    border-radius: 16px;
    font-size: 0.95rem;
    display: none;
    margin: 2rem 0;
    animation: fadeInScale 0.4s ease-out;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    scroll-margin-top: 80px;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.mensaje-exito {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    border: 2px solid #10b981;
}

.mensaje-error {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    border: 2px solid #ef4444;
}

.mensaje-contenido {
    padding: 2.5rem;
    text-align: center;
    position: relative;
    z-index: 1;
}

.mensaje-icono {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: bounceIn 0.6s ease-out;
    display: inline-block;
}

@keyframes bounceIn {
    0% {
        transform: scale(0);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.mensaje-icono-exito {
    filter: drop-shadow(0 4px 8px rgba(16, 185, 129, 0.3));
}

.mensaje-icono-error {
    filter: drop-shadow(0 4px 8px rgba(239, 68, 68, 0.3));
}

.mensaje-contenido h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.mensaje-exito h3 {
    color: #065f46;
}

.mensaje-error h3 {
    color: #991b1b;
}

.mensaje-principal {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1f2937;
}

.mensaje-secundario {
    font-size: 1rem;
    color: #4b5563;
    line-height: 1.6;
    max-width: 500px;
    margin: 0 auto;
}

/* Información de contacto lateral */
.info-contacto {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.info-card {
    background: var(--color-white);
    border-radius: 15px;
    padding: 1.8rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-accent);
}

.info-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.1), rgba(59, 130, 246, 0.1));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.info-icon i {
    font-size: 1.5rem;
    color: var(--color-primary);
}

.info-titulo {
    font-size: 1.2rem;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.info-descripcion {
    font-size: 0.95rem;
    color: var(--color-gray);
    line-height: 1.6;
}

/* Contacto directo */
.contacto-directo {
    background: var(--color-white);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
}

.directo-titulo {
    font-size: 1.2rem;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.directo-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.directo-item:last-child {
    border-bottom: none;
}

.directo-item i {
    width: 40px;
    height: 40px;
    background: rgba(30, 58, 138, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    flex-shrink: 0;
}

.directo-contenido {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.directo-label {
    font-size: 0.85rem;
    color: var(--color-gray);
}

.directo-valor {
    font-weight: 600;
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.directo-valor:hover {
    color: var(--color-secondary);
}

/* Scrollbar para dropdown */
.country-dropdown::-webkit-scrollbar {
    width: 6px;
}

.country-dropdown::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.country-dropdown::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.country-dropdown::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

/* ============================================
   ANIMACIONES Y EFECTOS
   ============================================ */
@keyframes slideInDown {
    from {
        transform: translateY(-10px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ============================================
   ESTILOS PARA ESTADOS DEL FORMULARIO
   ============================================ */
.form-group input.error,
.form-group select.error,
.form-group textarea.error,
.telefono-input.error {
    border-color: #ef4444;
    background: #fef2f2;
}

.form-group input.error:focus,
.form-group select.error:focus,
.form-group textarea.error:focus,
.telefono-input.error:focus {
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.error-message {
    color: #ef4444;
    font-size: 0.85rem;
    margin-top: 0.25rem;
    display: none;
}

.form-group.error .error-message {
    display: block;
}

/* Indicador visual cuando el formulario está enviando */
.formulario-telecom.sending {
    opacity: 0.7;
    pointer-events: none;
}

/* ============================================
   SCROLL SUAVE Y PREVENCIÓN DE SCROLL AUTOMÁTICO
   ============================================ */
html {
    scroll-behavior: smooth;
}

/* Prevenir scroll automático en formularios */
form {
    scroll-margin-block-start: 0;
    scroll-margin-block-end: 0;
}

button[type="submit"] {
    scroll-margin: 0;
}

/* ============================================
   RESPONSIVE MEJORADO PARA MÓVIL
   ============================================ */
@media (max-width: 1024px) {
    .contacto-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .servicios-checkbox {
        grid-template-columns: 1fr;
    }
    
    .country-selector {
        width: 100px;
    }
    
    .country-dropdown {
        width: 180px;
    }
}

@media (max-width: 768px) {
    .contacto-section {
        padding: 4rem 1.5rem;
    }
    
    .formulario-container {
        padding: 2rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .horario-grid {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
    
    .horario-box {
        min-height: 80px;
        padding: 1rem;
    }
    
    .telefono-container {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .country-selector {
        width: 100%;
    }
    
    .selected-country {
        width: 100%;
        justify-content: space-between;
    }
    
    .country-dropdown {
        width: 100%;
        position: relative;
        margin-top: 5px;
        max-height: 250px;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    }
    
    .preferencia-group {
        flex-direction: column;
        height: auto;
        gap: 0.8rem;
    }
    
    .preferencia-group .radio-option {
        width: 100%;
        height: 50px;
    }
    
    .radio-group {
        flex-direction: column;
    }
    
    .radio-option {
        width: 100%;
    }
    
    .servicios-checkbox {
        grid-template-columns: 1fr;
    }
    
    .info-card,
    .contacto-directo {
        padding: 1.5rem;
    }
    
    /* Mensajes responsive */
    .mensaje-contenido {
        padding: 2rem 1.5rem;
    }
    
    .mensaje-icono {
        font-size: 3rem;
        margin-bottom: 0.8rem;
    }
    
    .mensaje-contenido h3 {
        font-size: 1.5rem;
        margin-bottom: 0.8rem;
    }
    
    .mensaje-principal {
        font-size: 1.05rem;
        margin-bottom: 0.8rem;
    }
    
    .mensaje-secundario {
        font-size: 0.95rem;
    }
    
    .btn-enviar-formulario {
        padding: 1.15rem;
        font-size: 1.05rem;
    }
}

@media (max-width: 480px) {
    .contacto-section {
        padding: 3rem 1rem;
    }
    
    .formulario-container {
        padding: 1.5rem;
    }
    
    .formulario-telecom {
        gap: 1.2rem;
    }
    
    .checkbox-option {
        padding: 0.8rem;
    }
    
    .checkbox-label {
        font-size: 0.9rem;
    }
    
    .terminos-container {
        padding: 1.2rem;
    }
    
    .terminos-text {
        font-size: 0.85rem;
    }
    
    .country-option {
        padding: 8px 10px;
    }
    
    .option-name {
        font-size: 0.8rem;
    }
    
    .option-code {
        font-size: 0.8rem;
        width: 40px;
    }
    
    /* Mensajes responsive para móvil pequeño */
    .mensaje-exito,
    .mensaje-error {
        margin: 1.5rem 0;
        border-radius: 12px;
    }
    
    .mensaje-contenido {
        padding: 1.5rem 1rem;
    }
    
    .mensaje-icono {
        font-size: 2.5rem;
        margin-bottom: 0.6rem;
    }
    
    .mensaje-contenido h3 {
        font-size: 1.3rem;
        margin-bottom: 0.6rem;
    }
    
    .mensaje-principal {
        font-size: 1rem;
        margin-bottom: 0.6rem;
    }
    
    .mensaje-secundario {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    .btn-enviar-formulario {
        padding: 1rem;
        font-size: 1rem;
        border-radius: 10px;
    }
    
    .btn-enviar-formulario i {
        font-size: 1.1rem;
    }
}

/* ============================================
   ESTILOS PARA MODO OSCURO (OPCIONAL)
   ============================================ */
@media (prefers-color-scheme: dark) {
    .mensaje-exito {
        background: linear-gradient(135deg, #064e3b 0%, #065f46 100%);
        border-color: #10b981;
    }
    
    .mensaje-error {
        background: linear-gradient(135deg, #7f1d1d 0%, #991b1b 100%);
        border-color: #ef4444;
    }
    
    .mensaje-contenido h3 {
        color: #fff;
    }
    
    .mensaje-principal,
    .mensaje-secundario {
        color: #f3f4f6;
    }
}



/* ============================================
   FOOTER
   ============================================ */
 





/* ============================================ */
/* ============================================
   FOOTER PROFESIONAL
   ============================================ */
.footer {
    background: linear-gradient(135deg, var(--color-dark) 0%, #111827 100%);
    color: var(--color-white);
    padding: 5rem 0 2rem;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 50%, rgba(59, 130, 246, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
    z-index: 1;
}

/* Sección principal del footer */
.footer-main {
    display: grid;
    grid-template-columns: 1.2fr repeat(3, 1fr);
    gap: 3rem;
    margin-bottom: 4rem;
}

/* Logo y marca */
.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-logo {
    position: relative;
    display: inline-block;
    margin-bottom: 1.5rem;
    height: 50px;
}

.footer-logo img {
    height: 50px;
    width: auto;
    transition: opacity 0.3s ease;
}

.footer-logo .logo-dark {
    opacity: 1;
    display: block;
}

.footer-logo .logo-light {
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    display: block;
}

.footer-logo:hover .logo-dark {
    opacity: 0;
}

.footer-logo:hover .logo-light {
    opacity: 1;
}

.footer-description {
    color: #d1d5db;
    line-height: 1.6;
    margin-bottom: 2rem;
    font-size: 1rem;
    max-width: 280px;
}

/* Redes sociales */
.footer-social {
    display: flex;
    gap: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--color-white);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.social-link:hover::before {
    left: 100%;
}

.social-link:hover {
    background: var(--color-secondary);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(239, 68, 68, 0.3);
}

.social-link i {
    font-size: 1rem;
    position: relative;
    z-index: 1;
}

/* Títulos de secciones */
.footer-title {
    font-size: 1.2rem;
    color: var(--color-white);
    margin-bottom: 1.5rem;
    font-weight: 700;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--color-secondary);
    border-radius: 2px;
}

/* Menús del footer */
.footer-menu {
    list-style: none;
}

.footer-menu li {
    margin-bottom: 0.8rem;
}

.footer-menu a {
    color: #d1d5db;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
}

.footer-menu a::before {
    content: '→';
    opacity: 0;
    transform: translateX(-5px);
    transition: all 0.3s ease;
    color: var(--color-secondary);
}

.footer-menu a:hover {
    color: var(--color-white);
    transform: translateX(5px);
}

.footer-menu a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

/* Información de contacto */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-item i {
    color: var(--color-secondary);
    font-size: 1.1rem;
    margin-top: 0.2rem;
    flex-shrink: 0;
    width: 20px;
}

.contact-label {
    font-size: 0.85rem;
    color: #9ca3af;
    margin-bottom: 0.2rem;
}

.contact-value {
    color: #d1d5db;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.95rem;
    line-height: 1.4;
}

.contact-value:hover {
    color: var(--color-secondary);
}

/* Línea divisoria */
.footer-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    margin: 2rem 0;
}

/* Sección inferior del footer */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-copyright {
    color: #9ca3af;
    font-size: 0.9rem;
}

#current-year {
    font-weight: 600;
    color: var(--color-secondary);
}

.footer-legal {
    display: flex;
    gap: 2rem;
}

.legal-link {
    color: #9ca3af;
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.3rem 0;
}

.legal-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-secondary);
    transition: width 0.3s ease;
}

.legal-link:hover {
    color: var(--color-white);
}

.legal-link:hover::after {
    width: 100%;
}

/* Botón para ir arriba */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--color-secondary);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    z-index: 1000;
    box-shadow: 0 5px 15px rgba(239, 68, 68, 0.3);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: #dc2626;
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(239, 68, 68, 0.4);
}

/* ============================================
   RESPONSIVE PARA FOOTER
   ============================================ */
@media (max-width: 1024px) {
    .footer-main {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem;
    }
    
    .footer-brand {
        grid-column: 1 / -1;
        align-items: center;
        text-align: center;
    }
    
    .footer-description {
        max-width: 100%;
    }
    
    .footer-social {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .footer {
        padding: 4rem 0 2rem;
    }
    
    .footer-main {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
    
    .footer-legal {
        flex-direction: column;
        gap: 1rem;
    }
    
    .back-to-top {
        bottom: 1rem;
        right: 1rem;
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .footer {
        padding: 3rem 0 2rem;
    }
    
    .footer-title {
        font-size: 1.1rem;
    }
    
    .footer-description {
        font-size: 0.95rem;
    }
    
    .footer-menu a {
        font-size: 0.9rem;
    }
    
    .contact-value {
        font-size: 0.9rem;
    }
}

/* Animaciones */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.footer-main > * {
    animation: fadeInUp 0.6s ease forwards;
}

.footer-main > *:nth-child(1) { animation-delay: 0.1s; }
.footer-main > *:nth-child(2) { animation-delay: 0.2s; }
.footer-main > *:nth-child(3) { animation-delay: 0.3s; }
.footer-main > *:nth-child(4) { animation-delay: 0.4s; }

/* Efecto hover en tarjetas de contacto */
.contact-item {
    position: relative;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.contact-item:hover i {
    animation: bounce 0.5s ease;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

/* Mejoras de accesibilidad */
.footer-menu a:focus,
.legal-link:focus,
.social-link:focus,
.back-to-top:focus {
    outline: 2px solid var(--color-secondary);
    outline-offset: 2px;
}

/* Modo oscuro optimizado */
@media (prefers-color-scheme: dark) {
    .footer {
        background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    }
}

/* Estilos para cuando el footer está al final de la página */
.footer:last-child {
    margin-top: auto;
}