/* Variables de Diseño */
:root {
  --primary-color: #0056b3;     /* Azul profesional corporativo */
  --accent-color: #ff6b00;      /* Naranja brillante para llamadas a la acción */
  --whatsapp-color: #25d366;    /* Verde directo de WhatsApp */
  --bg-light: #f8f9fa;          /* Fondo gris suave */
  --text-dark: #212529;         /* Texto oscuro legible */
  --text-muted: #6c757d;        /* Texto secundario */
  --card-shadow: 0 10px 20px rgba(0, 0, 0, 0.08); /* Sombra elevada moderna */
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

body {
  background-color: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.6;
}

/* Header & Navegación */
.navbar {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  padding: 10px 5% !important;
  background: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 0;
  z-index: 1000;
}

/* Horario discreto en el Header */
.header-schedule {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-size: 0.85rem;
  line-height: 1.2;
}

.schedule-title {
  font-weight: 700;
  color: var(--primary-color, #0056b3);
}

.schedule-time {
  color: var(--text-muted, #6c757d);
  font-weight: 600;
}

/* Enlace del logo */
.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

/* Imagen del logo controlada */
.logo img {
  height: 45px;       /* Altura fija para que no estire la barra */
  width: auto;        /* Mantiene la proporción */
  object-fit: contain;
  display: block;
}

/* Contenedor de las dos líneas de texto */
.brand-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* 1. Nombre Principal (ASIS TÉCNICOS) */
.brand-name {
  font-family: 'Montserrat', 'Segoe UI', Arial, sans-serif; /* Tipo de letra */
  font-size: 1.35rem;         /* Tamaño de letra */
  font-weight: 700;            /* Grosor/Negrita (400 = normal, 700 = bold, 800 = extra bold) */
  color: #000000;              /* Color (puedes usar Hexadecimal o var(--primary-color)) */
  letter-spacing: 0.1px;       /* Espacio/separación entre letras */
  text-transform: uppercase;    /* Fuerza a que siempre esté en MAYÚSCULAS */
  line-height: 0.5;            /* Altura de línea para pegar/separar del subtexto */
}

/* 2. Subtexto / Lema de Experiencia */
.brand-tagline {
  font-family: 'Segoe UI', Roboto, sans-serif; /* Tipo de letra secundario */
  font-size: 0.75rem;          /* Tamaño más pequeño */
  font-weight: 400;            /* Grosor intermedio (Semi-bold) */
  color: #6c757d;              /* Color gris neutro */
  letter-spacing: 0.3px;       /* Espaciado ligero entre letras */
  margin-top: 3px;             /* Margen superior para separarlo del título */
}

/* Barra Superior */
.top-bar {
  background-color: #003366; /* Azul oscuro corporativo para contraste */
  color: #ffffff;
  padding: 6px 5%;
  font-size: 0.82rem;
  font-weight: 600;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-bar-content {
  background: linear-gradient(90deg, #001f42 0%, #004a9e 50%, #002b5c 100%);
  color: #ffffff;
  border-bottom: 2px solid #ff6b00;
  padding: 6px 20px;
  font-family: 'Inter', system-ui, sans-serif;
  width: 100%;
}

.top-bar-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

/* Indicador con animación parpadeante */
.status-badge {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.75rem;
  color: #cbd5e1;
  font-weight: 500;
}

.status-dot {
  width: 8px;
  height: 8px;
  background-color: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Texto de ubicación e ícono pin */
.top-bar-inner .location {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 500;
  color: #ffffff;
}

.location-icon {
  width: 14px;
  height: 14px;
  stroke: #ff6b00;
  flex-shrink: 0;
}

/* Ajuste responsive para celulares */
@media (max-width: 680px) {
  .top-bar-inner {
    justify-content: center;
  }
  .status-badge {
    display: none;
  }
  .top-bar-inner .location {
    font-size: 0.72rem;
    text-align: center;
  }
}

/* Adaptación para pantallas de celular */
@media (max-width: 600px) {
  .top-bar-content {
    justify-content: center;
    text-align: center;
  }
}

/* Ajuste opcional: En pantallas muy pequeñas (celulares) */
@media (max-width: 600px) {
  .logo img {
    max-height: 40px; /* Un poco más pequeño en celular */
  }
}

.btn-head {
  background: var(--whatsapp-color);
  color: #fff;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 700;
  transition: transform 0.2s, background 0.2s;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.btn-head:hover {
  transform: translateY(-2px);
  background: #20ba5a;
}

/* Sección de Marcas */
.brands-section {
  padding: 30px 15px 15px 15px;
  text-align: center;
  max-width: 1280px;
  margin: 0 auto;
}

/* Título con más tamaño, presencia y líneas decorativas */
.brands-section {
  padding: 30px 15px 10px 15px;
  text-align: center;
  max-width: 1280px;
  margin: 0 auto;
}

/* Encabezado elegante con tag superior */
.brands-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-bottom: 22px;
}

.brands-badge-tag {
  font-family: 'Poppins', sans-serif;
  font-size: 0.68rem !important;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: #ff6b00; /* Naranja de tu marca */
  text-transform: uppercase;
  background: rgba(255, 107, 0, 0.08);
  padding: 3px 10px;
  border-radius: 12px;
}

.brands-title {
  font-family: 'Poppins', 'Montserrat', sans-serif !important;
  font-size: 1.20rem !important; /* Título claro y con peso visual */
  font-weight: 700 !important;
  color: #004494 !important;
  letter-spacing: -0.2px;
  margin: 0 !important;
}

/* Grilla en 1 sola fila fluida */
.brands-grid {
  display: flex;
  flex-wrap: nowrap !important;
  justify-content: center;
  align-items: center;
  gap: 10px !important;
}

/* Botón/Cápsula refinada de marca */
.brand-item {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  
  /* Estilo base: translúcido y fino */
  background: linear-gradient(180deg, #ffffff 0%, #f0f5fa 100%);
  border: 1px solid #d4e3f3;
  padding: 6px 14px !important; /* Más compacto y fino */
  border-radius: 30px;          /* Forma redondeada estilo píldora elegante */
  
  /* Tipografía estilizada */
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif !important;
  font-size: 0.83rem !important; /* Tamaño estilizado para no competir con el título */
  font-weight: 600 !important;
  letter-spacing: 0.5px;        /* Espaciado para quitar el aspecto "común" */
  color: #004494 !important;
  white-space: nowrap;
  
  box-shadow: 0 2px 4px rgba(0, 68, 148, 0.04);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  overflow: hidden;
}

/* Detalle dinámico: Punto de luz decorativo a la izquierda de cada texto */
.brand-item::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: #25d366; /* Verde de garantía */
  margin-right: 7px;
  transition: transform 0.2s, background-color 0.2s;
}

/* EFECTO INTERACTIVO (HOVER DINÁMICO) */
.brand-item:hover {
  background: #0056b3 !important; /* Fondo azul vivo al pasar el cursor */
  border-color: #0056b3 !important;
  color: #ffffff !important;
  transform: translateY(-3px);     /* Animación de elevación sutil */
  box-shadow: 0 6px 16px rgba(0, 86, 179, 0.25); /* Glow / Brillo de sombra */
}

.brand-item:hover::before {
  background-color: #ff9d00;      /* El puntito cambia a naranja al interactuar */
  transform: scale(1.3);
}

/* HERO SECTION */

.hero {
  background: linear-gradient(135deg, #004494 0%, #0056b3 100%);
  color: #ffffff;
  padding: 30px 4%;
  padding-top: 15px !important;
  padding-bottom: 15px !important;
  border-bottom-left-radius: 25px;
  border-bottom-right-radius: 25px;
}

.hero-container {
  display: flex !important;
  align-items: center !important;     /* Centrado vertical perfecto de los 3 bloques */
  justify-content: space-between !important;
  gap: 20px !important;
  max-width: 1280px !important;
  margin: 0 auto !important;
}

/* ==========================================
   TIPOGRAFÍA Y EDITORIAL DEL TEXTO HERO
   ========================================== */

.hero-text {
  max-width: 440px !important;
  width: 100% !important;
  text-align: left !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ==========================================
   ESTILOS DE LAS TARJETAS / BOTONES CENTRADOS
   ========================================== */

.hero-badges {
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
  max-width: 280px !important;
  width: 100% !important;
  
  /* Mantenemos el centrado perfecto que ya se logró */
  margin: 0 auto !important;
  align-self: center !important;
}

/* Restablece la caja/botón con fondo translúcido y borde */
.badge-card {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  background: rgba(255, 255, 255, 0.1) !important; /* Fondo del botón */
  border: 1px solid rgba(255, 255, 255, 0.2) !important; /* Borde sutil */
  padding: 10px 14px !important;
  border-radius: 10px !important;
  backdrop-filter: blur(4px);
  transition: all 0.2s ease;
}

.badge-card:hover {
  background: rgba(255, 255, 255, 0.18) !important;
  transform: translateX(3px);
}

/* Fondo oscuro circular para el chulito/ícono verde */
.badge-icon {
  background: rgba(0, 0, 0, 0.25) !important;
  border-radius: 50% !important;
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
}

/* Mantiene el título arriba y la descripción abajo (en lugar de a un lado) */
.badge-text {
  display: flex !important;
  flex-direction: column !important;
}

.badge-text strong {
  color: #ffffff !important;
  font-size: 0.88rem !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
}

.badge-text span {
  color: rgba(255, 255, 255, 0.8) !important;
  font-size: 0.75rem !important;
  font-weight: 400 !important;
  line-height: 1.2 !important;
  margin-top: 2px !important;
}

/* Título con presencia y buen interletrado */
.hero-title {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(2.4rem, 4vw, 3.1rem); /* Tamaño significativamente mayor */
  font-weight: 900;
  color: #FFFFFF;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.35); /* Despega el texto del fondo */
  letter-spacing: -0.5px;
  line-height: 1.1;
  margin-bottom: 1.2rem;
}

/* Párrafo principal balanceado */
.hero-description {
  font-size: 1.1rem; /* ~18px */
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 1rem;
}

.hero-description strong {
  color: #ffffff;
  font-weight: 700;
}

/* Contenedor del Botón y Nota inferior */
.hero-action-group {
  display: flex;
  flex-direction: column;
  align-items: center; /* Centra el botón y los textos de abajo */
  margin-top: 1.5rem;
}

.btn-main {
  width: 100%;
  max-width: 340px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px; /* Espacio entre el ícono y el texto */
  background: linear-gradient(135deg, #ff6b00 0%, #e65100 100%);
  color: #ffffff;
  font-weight: 800;
  font-size: 1.1rem;
  padding: 14px 24px;
  border-radius: 50px;
  box-shadow: 0 8px 20px rgba(255, 107, 0, 0.4);
  text-decoration: none;
}

.btn-main:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(255, 107, 0, 0.5);
  background: linear-gradient(135deg, #ff781a 0%, #f55a00 100%);
}

/* Nota aclaratoria fina y simétrica */
.hero-note {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.82);
  margin-top: 1rem;
  line-height: 1.4;
}

/* Para destacar el beneficio sin usar colores Chillones */
.hero-note strong {
  color: #ffd166; /* Dorado/Amarillo suave muy legible sobre azul */
  font-weight: 600;
}

/* 2. FOTO: Tarjeta Flotante con Marco Limpio */
.hero-image-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
}

.hero-img {
  max-height: 310px;         /* Altura perfecta dentro de la franja azul */
  width: auto;               /* Respeta el ancho real de la foto */
  object-fit: contain;       /* Cero recortes: Muestra "ANTES / DESPUÉS" completo */
  border-radius: 12px;       /* Redondeado suave en las esquinas */
  border: 4px solid #ffffff; /* Marco blanco que la separa del fondo azul */
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35); /* Sombra elegante de elevación */
}

/* Adaptación Celular */
@media (max-width: 850px) {
  .hero-container {
    flex-direction: column-reverse;
  }
  .hero-text {
    max-width: 100%;
  }
  .hero-img {
    max-height: 220px;
  }
}

/* Sección Servicios */
.services {
  padding: 45px 20px 30px 20px;
  max-width: 1140px;
  margin: 0 auto;
  text-align: center;
}

/* Encabezado con la misma línea de marcas */
.services-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-bottom: 28px;
}

.services-tag {
  font-family: 'Poppins', sans-serif;
  font-size: 0.68rem !important;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: #ff6b00;
  text-transform: uppercase;
  background: rgba(255, 107, 0, 0.08);
  padding: 3px 12px;
  border-radius: 12px;
}

.services h2 {
  font-family: 'Poppins', 'Montserrat', sans-serif !important;
  font-size: 1.5rem !important;
  font-weight: 700 !important;
  color: #004494 !important;
  letter-spacing: -0.3px;
  margin: 0 !important;
}

/* Grilla adaptable */
.services .grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}

/* Tarjeta con bordes suaves e interactivos */
.services .card {
  background: #ffffff;
  border: 1px solid #e1ebf5;
  border-radius: 16px;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(0, 68, 148, 0.03);
}

.services .card:hover {
  transform: translateY(-4px);
  border-color: #0056b3;
  box-shadow: 0 10px 25px rgba(0, 68, 148, 0.08);
}

/* Contenedor preparado para ícono o foto */
.services .card-icon {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  background: #eef5fc;
  border: 1px solid #d0e2f7;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  transition: all 0.3s ease;
  overflow: hidden;
}

/* En el futuro, si colocas <img src="..."> en vez del svg, encajará solo */
.services .card-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Estilo del trazo de una sola línea */
.services .card-icon svg {
  width: 28px;
  height: 28px;
  color: #0056b3;
  transition: color 0.3s ease, transform 0.3s ease;
}

.services .card:hover .card-icon {
  background: #0056b3;
  border-color: #0056b3;
}

.services .card:hover .card-icon svg {
  color: #ffffff;
  transform: scale(1.08);
}

/* Tipografía de la tarjeta */
.services .card h3 {
  font-family: 'Poppins', sans-serif !important;
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  color: #004494 !important;
  margin: 0 0 8px 0 !important;
}

.services .card p {
  font-family: 'Inter', system-ui, sans-serif !important;
  font-size: 0.85rem !important;
  color: #556980 !important;
  line-height: 1.5 !important;
  margin: 0 !important;
}

/* Sección Equipos / Especialidades */
.equipment {
  text-align: center;
  padding: 60px 8%;
  background: #ffffff;
  border-radius: 20px;
  margin: 20px 8%;
  box-shadow: var(--card-shadow);
}

.equipment h2 {
  font-size: 2rem;
  color: var(--text-dark);
  margin-bottom: 25px;
}

.tags {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.tags span {
  background: var(--bg-light);
  color: var(--primary-color);
  border: 2px solid #e2e8f0;
  padding: 12px 24px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
}

/* ==========================================
   VENTANA EMERGENTE (LIGHTBOX / MODAL)
   ========================================== */

/* Fondo oscuro superpuesto */
.modal {
  display: none; /* Oculto por defecto */
  position: fixed;
  z-index: 10000; /* Siempre encima de toda la web */
  padding-top: 50px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.85); /* Fondo negro semitransparente */
  backdrop-filter: blur(4px);            /* Difumina sutilmente el fondo */
}

/* La imagen ampliada en el centro */
.modal-content {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 85vh;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  animation: zoomIn 0.25s ease-out;
}

/* Botón para cerrar (X) */
.close-modal {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #ffffff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.2s;
}

.close-modal:hover {
  color: #ff6b00; /* Naranja de tu marca */
}

/* Animación suave de apertura */
@keyframes zoomIn {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}


/* ==========================================
   BOTÓN FLOTANTE FACEBOOK (IZQUIERDA)
   ========================================== */

.fb-float-btn {
  position: fixed;
  bottom: 20px;
  left: 20px; /* Posicionado a la izquierda */
  width: 55px;
  height: 55px;
  background-color: #1877f2; /* Azul oficial de Facebook */
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(24, 119, 242, 0.4);
  z-index: 999;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
}

.fb-float-btn svg {
  width: 28px;
  height: 28px;
  fill: #ffffff;
}

/* Efecto al pasar el cursor */
.fb-float-btn:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 8px 20px rgba(24, 119, 242, 0.55);
  background-color: #166fe5;
}

/* Ajuste responsive para celulares si es necesario */
@media (max-width: 480px) {
  .fb-float-btn {
    width: 48px;
    height: 48px;
    bottom: 15px;
    left: 15px;
  }
  
  .fb-float-btn svg {
    width: 24px;
    height: 24px;
  }
}

/* ==========================================
   GLOBO DE INVITACIÓN A CONSULTAS (IZQUIERDA)
   ========================================== */

.chat-invite-container {
  position: fixed;
  bottom: 20px;                /* Distancia desde la parte inferior */
  left: 50%;                   /* Se ubica a la mitad de la pantalla */
  transform: translateX(-50%);  /* Centrado horizontal exacto */
  z-index: 998;
}

/* Globo de mensaje */
.chat-invite-bubble {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  border: 1px solid #d0e2f7;
  padding: 8px 18px;
  border-radius: 25px;
  box-shadow: 0 8px 22px rgba(0, 43, 92, 0.18);
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;        /* Evita que el texto cree saltos de línea */
  animation: float-soft 3s ease-in-out infinite; /* Animación aquí */
}

/* Ícono de mensaje en naranja */
.invite-icon {
  width: 32px;
  height: 32px;
  background-color: rgba(255, 107, 0, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.invite-icon svg {
  width: 18px;
  height: 18px;
  stroke: #ff6b00;
}

/* Texto de la notificación */
.invite-text {
  display: flex;
  flex-direction: column;
}

.invite-title {
  font-family: 'Poppins', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  color: #004494;
  line-height: 1.2;
}

.invite-sub {
  font-family: 'Inter', sans-serif;
  font-size: 0.68rem;
  color: #556980;
  margin-top: 1px;
}

/* Efecto Hover */
.chat-invite-bubble:hover {
  transform: translateY(-4px) scale(1.03);
  border-color: #ff6b00;
  box-shadow: 0 12px 25px rgba(255, 107, 0, 0.28);
}

/* Animación sutil de levitación */
@keyframes float-soft {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

/* Ajuste Responsive para Celulares */
@media (max-width: 480px) {
  .chat-invite-container {
    bottom: 15px;
  }
  
  .chat-invite-bubble {
    padding: 7px 14px;
  }
  
  .invite-sub {
    display: none; /* En pantallas muy pequeñas se deja solo el título para ahorrar espacio */
  }
}

/* ==========================================
   BOTONES FLOTANTES DERECHOS (ALINEADOS)
   ========================================== */

.right-floating-buttons {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column; /* Apila los botones verticalmente */
  align-items: center;    /* Centra ambos botones en el mismo eje */
  gap: 12px;              /* Espaciado constante entre ambos */
  z-index: 999;
}

/* Estilo base compartido para garantizar mismo tamaño */
.float-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  box-sizing: border-box;
}

/* Íconos adaptados al tamaño de la cápsula */
.float-btn svg {
  width: 24px;
  height: 24px;
}

/* Botón Llamada */
.btn-call {
  background-color: #ff6b00;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(255, 107, 0, 0.35);
}

.btn-call svg {
  stroke: #ffffff;
}

.btn-call:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 18px rgba(255, 107, 0, 0.5);
  background-color: #e05e00;
}

/* Botón WhatsApp */
.btn-whatsapp {
  background-color: #25d366;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.35);
}

.btn-whatsapp svg {
  fill: #ffffff;
}

.btn-whatsapp:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 18px rgba(37, 211, 102, 0.5);
  background-color: #20bd5a;
}

/* Ajuste Celular */
@media (max-width: 480px) {
  .right-floating-buttons {
    bottom: 15px;
    right: 15px;
    gap: 10px;
  }
  
  .float-btn {
    width: 46px;
    height: 46px;
  }

  .float-btn svg {
    width: 20px;
    height: 20px;
  }
}

/* Footer */
.main-footer {
  position: relative;
  background: #002b5c; /* Azul corporativo oscuro */
  color: #e2e8f0;
  font-family: 'Inter', system-ui, sans-serif;
  padding-top: 50px;
  border-top: 4px solid #ff6b00;
  overflow: hidden; /* Mantiene la marca de agua dentro del footer */
}

/* Marca de agua (Logo gigante difuminado al centro) */
.footer-bg-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.04; /* Ajusta la transparencia (muy sutil) */
  pointer-events: none;
  z-index: 1;
}

.footer-bg-logo img {
  width: 320px;
  height: auto;
  filter: grayscale(100%);
}

.footer-container {
  position: relative;
  z-index: 2; /* Coloca el contenido por encima del fondo difuminado */
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px 40px 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 35px;
}

/* Estilo del Logo a la izquierda (idéntico al header) */
.footer-brand-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.footer-logo-img {
  width: 48px;
  height: auto;
  object-fit: contain;
}

.footer-logo-text {
  display: flex;
  flex-direction: column;
}

.footer-logo-text .brand-title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.1;
  letter-spacing: 0.5px;
}

.footer-logo-text .brand-subtitle {
  font-size: 0.72rem;
  color: #94a3b8;
  margin-top: 3px;
}

.footer-note {
  font-size: 0.83rem;
  color: #cbd5e1;
  line-height: 1.5;
  margin: 0;
}

/* Titulares de columnas */
.footer-col h4 {
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 16px 0;
  position: relative;
  padding-bottom: 8px;
}

.footer-col h4::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 28px;
  height: 2px;
  background-color: #ff6b00;
}

/* Listas informativas sin links */
.footer-info {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-info li {
  font-size: 0.85rem;
  margin-bottom: 10px;
  color: #cbd5e1;
  line-height: 1.5;
}

.footer-info strong {
  color: #ffffff;
}

/* Piso del Footer */
.footer-bottom {
  position: relative;
  z-index: 2;
  background-color: #001f42;
  padding: 16px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-bottom-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  color: #64748b;
}

.footer-bottom p {
  margin: 0;
}

.credits span {
  color: #38bdf8;
  font-weight: 600;
}

/* Ajuste Celular */
@media (max-width: 600px) {
  .footer-bottom-container {
    flex-direction: column;
    text-align: center;
  }
}

/* ==========================================
   CARRUSEL DE MARCAS EN MÓVIL
   ========================================== */
@media screen and (max-width: 768px) {
  
  /* Habilita el desplazamiento horizontal solo en el contenedor de marcas */
  .brands-grid {
    justify-content: flex-start !important; /* Alinea a la izquierda para poder deslizar */
    overflow-x: auto !important;            /* Activa el scroll horizontal */
    padding-bottom: 10px !important;        /* Espacio para evitar que se corte la sombra */
    -webkit-overflow-scrolling: touch;      /* Deslizamiento suave en pantallas táctiles */
    scrollbar-width: none;                  /* Oculta la barra en Firefox */
  }

  /* Oculta la barra de scroll visual en Chrome/Safari/Edge */
  .brands-grid::-webkit-scrollbar {
    display: none !important;
  }

  /* Evita que las cápsulas se aplasten intentando caber en la pantalla */
  .brand-item {
    flex: 0 0 auto !important; /* Fuerza a la cápsula a mantener su ancho natural */
  }
}

/* --- TARJETA DE IMAGEN FLOTANTE (ANTES Y DESPUÉS) --- */
.img-zoom-container {
  position: relative;
  background: rgba(10, 25, 47, 0.65); /* Fondo oscuro profundo */
  backdrop-filter: blur(12px);
  padding: 14px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.18); /* Borde de cristal fino */
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 25px rgba(255, 107, 0, 0.25); /* Sombra + resplandor naranja */
  transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
}

.img-zoom-container:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: rgba(255, 107, 0, 0.6);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6), 0 0 35px rgba(255, 107, 0, 0.45);
}

/* Etiqueta flotante de acento */
.img-badge {
  position: absolute;
  top: -12px;
  left: 20px;
  background: linear-gradient(135deg, #ff6b00, #e65100);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(255, 107, 0, 0.4);
  z-index: 2;
}

.hero-img {
  width: 100%;
  height: auto;
  border-radius: 14px;
  display: block;
}

.zoom-icon {
  position: absolute;
  bottom: 18px;
  right: 18px;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(6px);
  color: #ffffff;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: all 0.2s ease;
}

.img-zoom-container:hover .zoom-icon {
  transform: scale(1.1);
  background: #ff6b00;
  border-color: #ff6b00;
}