/* VARIABLES Y RESET GENERAL */
:root {
  --bg-primary: #e6f7f8; /* Tono celeste claro característico de la web */
  --bg-dark-card: #0c0f1d;
  --primary-blue: #4f46e5;
  --primary-hover: #4338ca;
  --whatsapp-color: #22c55e;
  --text-main: #0f172a;
  --text-muted: #475569;
  --font-inter: 'Inter', system-ui, sans-serif;
  --font-serif-price: 'Playfair Display', serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-inter);
  line-height: 1.6;
}

/* ==========================================
   HEADER & NAVBAR RESPONSIVE
   ========================================== */
.main-header {
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 15px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

/* Estilo y tamaño del Logo en el Header */
.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.site-logo {
  height: 60px;
  width: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.site-logo:hover {
  transform: scale(1.03);
}


/* Enlaces del Menú Desktop */
.nav-menu {
  display: flex;
  align-items: center;
}

.nav-menu a {
  color: var(--text-muted, #4b5563);
  text-decoration: none;
  margin-left: 25px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

.nav-menu a:hover {
  color: var(--primary-blue, #4f46e5);
}

/* Estilo especial y llamativo para el botón de Proyectos en el menú */
.nav-menu .nav-btn-highlight {
  background: linear-gradient(135deg, #4f46e5, #6366f1);
  color: #ffffff !important;
  padding: 8px 18px;
  border-radius: 50px; /* Forma de pastilla/cápsula */
  margin-left: 20px;
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(79, 70, 229, 0.4);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
}

/* Animación al hacer Hover */
.nav-menu .nav-btn-highlight:hover {
  transform: translateY(-3px) scale(1.05); /* Se eleva y agranda un poco */
  box-shadow: 0 8px 25px rgba(79, 70, 229, 0.65); /* Brillo más intenso */
  background: linear-gradient(135deg, #4338ca, #4f46e5);
}

/* Efecto de destello opcional al pasar el mouse */
.nav-menu .nav-btn-highlight::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: 0.5s;
}

.nav-menu .nav-btn-highlight:hover::after {
  left: 100%;
}



/* Botón Hamburguesa (Oculto en pantallas grandes) */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 22px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1100;
}

.menu-toggle span {
  width: 100%;
  height: 3px;
  background-color: #1f2937;
  border-radius: 3px;
  transition: all 0.3s ease;
}

/* ==========================================
   ESTILOS RESPONSIVE (MÓVILES Y TABLETS)
   ========================================== */
@media (max-width: 992px) {
  .menu-toggle {
    display: flex; /* Muestra la hamburguesa en pantallas menores a 992px */
  }

  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    
    /* Oculto por defecto y con transición suave */
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s ease, opacity 0.3s ease;
  }

  .nav-menu a {
    margin: 12px 0;
    font-size: 1.1rem;
  }

  /* Clase que activa el despliegue del menú desde JS */
  .nav-menu.active {
    max-height: 350px;
    opacity: 1;
  }

  /* Animación del botón hamburguesa a una "X" cuando está activo */
  .menu-toggle.active span:nth-child(1) {
    transform: translateY(9.5px) rotate(45deg);
  }

  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.active span:nth-child(3) {
    transform: translateY(-9.5px) rotate(-45deg);
  }
}

/* ==========================================
   SECCIÓN HERO (DOS COLUMNAS + ESFERA 3D)
   ========================================== */
.hero-section {
  position: relative;
  width: 100%;
  min-height: 620px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  background-image: linear-gradient(
      rgba(6, 8, 18, 0.8), 
      rgba(6, 8, 18, 0.8)
    ), 
    url('../img/fondo-azul.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
  margin-top: 0;
}

.hero-container {
  max-width: 1150px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  z-index: 2;
}

.hero-content {
  flex: 1;
  max-width: 580px;
  text-align: left;
}

.hero-badge {
  color: #818cf8;
  font-weight: 600;
  margin-bottom: 12px;
  font-size: 1rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.hero-section h1 {
  font-size: 3.2rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 18px;
  line-height: 1.2;
}

.hero-section p {
  color: #d1d5db;
  font-size: 1.12rem;
  margin-bottom: 30px;
  line-height: 1.6;
}

.btn-hero-contact {
  display: inline-block;
  background-color: var(--primary-blue, #4f46e5);
  color: #fff;
  padding: 14px 32px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(79, 70, 229, 0.4);
  transition: background 0.3s ease, transform 0.3s ease;
}

.btn-hero-contact:hover {
  background-color: var(--primary-hover, #4338ca);
  transform: translateY(-2px);
}

/* Columna Derecha con el Canvas de la Esfera 3D */
.hero-visual {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  height: 400px;
}

#heroCanvas {
  width: 100%;
  height: 100%;
}

/* Responsive para Celulares y Tablets */
@media (max-width: 900px) {
  .hero-container {
    flex-direction: column;
    text-align: center;
  }
  .hero-content {
    max-width: 100%;
    text-align: center;
  }
  .hero-section h1 {
    font-size: 2.5rem;
  }
  .hero-visual {
    height: 300px;
    width: 100%;
  }
}
/* SECCIÓN DE CARDS DE SERVICIOS */
.osba-services-container {
  display: flex;
  gap: 25px;
  justify-content: center;
  flex-wrap: wrap;
  padding: 20px 20px 100px;
  max-width: 1200px;
  margin: 0 auto;
}

.osba-card {
  background: linear-gradient(145deg, #0d1021, #060812);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 32px 26px;
  width: 100%;
  max-width: 360px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
  transition: transform 1.5s cubic-bezier(0.25, 1, 0.5, 1), 
              box-shadow 1.5s ease, 
              border-color 1.5s ease;
}

.osba-card:hover {
  transform: translateY(-10px) scale(1.02);
  border-color: rgba(79, 70, 229, 0.5);
  box-shadow: 0 20px 35px rgba(0, 0, 0, 0.5), 
              0 0 20px rgba(79, 70, 229, 0.25);
}

.osba-card-title {
  color: #ffffff;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.4;
}

.osba-card-features {
  list-style: none;
  padding: 0;
  margin: 0 0 30px 0;
  flex-grow: 1;
}

.osba-card-features li {
  color: #9ca3af;
  font-size: 0.95rem;
  margin-bottom: 12px;
  line-height: 1.5;
  position: relative;
  padding-left: 20px;
}

.osba-card-features li::before {
  content: "•";
  color: var(--primary-blue);
  font-weight: bold;
  font-size: 1.3rem;
  position: absolute;
  left: 0;
  top: -2px;
}

.osba-card-buttons {
  display: flex;
  gap: 12px;
}

.osba-btn {
  flex: 1;
  text-align: center;
  padding: 11px 14px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.osba-btn-primary {
  background-color: var(--primary-blue);
  color: #fff;
}
.osba-btn-primary:hover {
  background-color: var(--primary-hover);
}

.osba-btn-whatsapp {
  background-color: var(--whatsapp-color);
  color: #fff;
}
.osba-btn-whatsapp:hover {
  background-color: #16a34a;
}

/* ==========================================
   REDISEÑO CONSULTORÍA SENIOR
   ========================================== */
.senior-consulting-section {
  padding: 100px 20px;
  display: flex;
  justify-content: center;
}

.consulting-container {
  background-color: #ffffff;
  border-radius: 20px;
  padding: 40px;
  max-width: 1050px;
  width: 100%;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
}

.consulting-header {
  text-align: center;
  margin-bottom: 35px;
}

.consulting-header h2 {
  color: #4f46e5;
  font-size: 2.1rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.consulting-subtitle {
  color: #0f172a;
  font-size: 1.1rem;
  font-weight: 600;
}

/* Card Body Layout */
.consulting-card-body {
  display: flex;
  gap: 35px;
  align-items: stretch;
}

/* Imagen proporcional a la izquierda */
.consulting-image-wrapper {
  flex: 1 1 40%;
  min-height: 320px;
  border-radius: 14px;
  overflow: hidden;
}

.consulting-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Columna derecha con contenido */
.consulting-info {
  flex: 1 1 60%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Grid de 2x2 para las características */
.consulting-grid-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 25px;
}

.c-feature-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.c-num {
  background-color: #e0e7ff;
  color: #4f46e5;
  font-weight: 800;
  font-size: 0.95rem;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.c-text strong {
  display: block;
  color: #0f172a;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 3px;
}

.c-text span {
  display: block;
  color: #64748b;
  font-size: 0.85rem;
  line-height: 1.35;
}

/* Barra inferior del CTA */
.consulting-cta-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 15px 25px;
  gap: 20px;
}

.consulting-price-badge {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.price-val {
  font-size: 2rem;
  font-weight: 800;
  color: #0f172a;
}

.price-lbl {
  font-size: 0.9rem;
  color: #64748b;
  font-weight: 600;
}

.consulting-btn-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.btn-ws-consulting {
  background-color: #22c55e;
  color: #ffffff;
  font-weight: 700;
  padding: 12px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.25);
}

.btn-ws-consulting:hover {
  background-color: #16a34a;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(34, 197, 94, 0.35);
}

.cta-note {
  font-size: 0.78rem;
  color: #64748b;
}

/* Responsive */
@media (max-width: 850px) {
  .consulting-card-body {
    flex-direction: column;
  }
  .consulting-grid-features {
    grid-template-columns: 1fr;
  }
  .consulting-cta-box {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .consulting-btn-wrapper {
    align-items: center;
  }
}


/* ==========================================
   SECCIÓN VISIÓN / MISIÓN (FONDO OSCURO LIBRE, CONTENEDOR AZUL)
   ========================================== */
.vision-mission-section {
  position: relative;
  padding: 80px 20px;
  text-align: center;
}

.vm-container {
  max-width: 1050px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.vm-title {
  font-size: 2.3rem;
  font-weight: 800;
  margin-bottom: 50px;
  color: #4f46e5;
  letter-spacing: 0.5px;
}

.vm-cards-container {
  display: flex;
  gap: 35px;
  justify-content: center;
  flex-wrap: wrap;
}

.vm-card {
  /* Contenedor con fondo azul corporativo y efecto sutil */
  background: linear-gradient(135deg, #0e131f 0%, #131b2e 100%);
  color: #fff;
  padding: 40px 35px;
  border-radius: 16px;
  max-width: 460px;
  width: 100%;
  text-align: left;
  border: 1px solid rgba(79, 70, 229, 0.3); /* Borde azul sutil tecnológico */
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.35);
  transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
  position: relative;
}

/* Efecto Hover en las tarjetas */
.vm-card:hover {
  transform: translateY(-8px);
  border-color: rgba(79, 70, 229, 0.8);
  box-shadow: 0 20px 40px rgba(79, 70, 229, 0.25);
}

.vm-icon-box {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: rgba(79, 70, 229, 0.2);
  color: #818cf8;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  border: 1px solid rgba(79, 70, 229, 0.4);
  transition: background 0.3s ease, color 0.3s ease;
}

.vm-card:hover .vm-icon-box {
  background: #4f46e5;
  color: #ffffff;
}

.vm-card h3 {
  font-size: 1.4rem;
  color: #ffffff;
  margin-bottom: 12px;
  font-weight: 700;
}

.vm-card p {
  color: #94a3b8;
  font-size: 0.98rem;
  line-height: 1.65;
}

/* SECCIÓN ESTADÍSTICAS */
.stats-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 100px 25px;
  max-width: 1200px;
  margin: 0 auto;
  gap: 40px;
  flex-wrap: wrap;
}

.stats-left {
  flex: 1.2;
  min-width: 300px;
}

.stats-small-title {
  color: var(--primary-blue);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1px;
}

.stats-left h2 {
  font-size: 2.2rem;
  font-weight: 800;
  margin: 10px 0 15px;
}

.stats-left p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.stats-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 250px;
}

.stat-item {
  display: flex;
  align-items: baseline;
  gap: 20px;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary-blue);
  min-width: 90px;
}

.stat-label {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-main);
}

/* ==========================================
   GRUPO OSBA & AVATARES RESPONSIVOS
   ========================================== */
.team-section {
  text-align: center;
  padding: 60px 20px;
  overflow: hidden;
}

.team-section h2 {
  font-size: 2.2rem;
  font-weight: 800;
  color: #4f46e5;
  margin-bottom: 40px;
}

/* Contenedor: Fila única en PC, cuadrícula centrada en teléfonos para que se vean todos */
.team-avatars-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  flex-wrap: nowrap; /* En PC se quedan en una sola fila */
  padding: 25px 10px;
}

/* Tarjetas individuales de cada miembro */
.team-card {
  flex: 0 0 95px;
  transition: all 1.2s cubic-bezier(0.25, 1, 0.5, 1);
  opacity: 0.45;
  transform: scale(0.85);
  filter: grayscale(40%);
  cursor: pointer;
}

/* El avatar enfocado (activo) se agranda, resalta y activa el pulso */
.team-card.active-center {
  opacity: 1;
  transform: scale(1.15);
  filter: grayscale(0%);
  z-index: 10;
}

/* Fondo circular blanco perfecto */
.avatar-circle {
  width: 95px;
  height: 95px;
  border-radius: 50%;
  background-color: #ffffff;
  padding: 3px;
  border: 3px solid rgba(79, 70, 229, 0.2);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: all 1.2s ease;
  margin: 0 auto;
}

.avatar-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

/* Animación de pulso e iluminación para el activo */
.team-card.active-center .avatar-circle {
  border-color: #4f46e5;
  animation: avatarGlowPulse 2.5s infinite ease-in-out;
}

@keyframes avatarGlowPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(79, 70, 229, 0.5), 0 10px 25px rgba(0, 0, 0, 0.15);
  }
  50% {
    box-shadow: 0 0 0 12px rgba(79, 70, 229, 0), 0 15px 35px rgba(79, 70, 229, 0.35);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(79, 70, 229, 0), 0 10px 25px rgba(0, 0, 0, 0.15);
  }
}

/* ==========================================
   ADAPTACIÓN PARA TELÉFONOS (Móviles)
   ========================================== */
@media (max-width: 768px) {
  .team-avatars-wrapper {
    flex-wrap: wrap; /* Permite que bajen de línea ordenadamente en móviles */
    justify-content: center;
    gap: 12px;
  }
  
  .team-card {
    flex: 0 0 80px; /* Ligeramente más compactos para que encajen perfecto en filas de 3 o 4 */
  }

  .avatar-circle {
    width: 80px;
    height: 80px;
  }
}


/* ==========================================
   ESTILOS DE LAS VENTANAS MODALES (ESTILO TARJETA OSCURA)
   ========================================== */
.osba-modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.75);
  z-index: 99999;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.osba-modal-content {
  background-color: #0e131f; /* Mismo tono oscuro elegante de las tarjetas */
  width: 100%;
  max-width: 520px;
  border-radius: 16px;
  padding: 35px 30px;
  position: relative;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
  animation: modalPopIn 0.3s ease;
}

@keyframes modalPopIn {
  from { transform: scale(0.85); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.osba-modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background-color: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: none;
  padding: 6px 14px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.85rem;
  transition: background 0.2s ease;
}

.osba-modal-close:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.modal-avatar-box {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: #ffffff;
  margin: 0 auto 20px auto;
  padding: 3px;
  border: 3px solid #4f46e5;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.modal-avatar-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.modal-name-box {
  color: #ffffff;
  text-align: center;
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.modal-cargo-box {
  color: #94a3b8; /* Gris claro sutil */
  font-size: 1rem;
  text-align: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-cargo-box span {
  color: #818cf8; /* Azul claro corporativo */
  font-weight: 600;
  margin-right: 5px;
}

.modal-knowledge-box {
  color: #e2e8f0;
}

.knowledge-title {
  color: #818cf8;
  font-weight: 700;
  display: block;
  margin-bottom: 10px;
  font-size: 1.05rem;
}

.modal-knowledge-box ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.modal-knowledge-box li {
  font-size: 0.93rem;
  line-height: 1.6;
  color: #cbd5e1;
  margin-bottom: 6px;
  position: relative;
  padding-left: 15px;
}

.modal-knowledge-box li::before {
  content: "•";
  color: #4f46e5;
  font-weight: bold;
  position: absolute;
  left: 0;
}

/* SECCIÓN CONTACTO */
.contact-section {
  background: var(--bg-dark-card);
  color: #fff;
  padding: 60px 20px;
  text-align: center;
  margin-top: 40px;
}

.contact-section h2 {
  font-size: 2rem;
  margin-bottom: 15px;
}

.contact-info-bar {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 30px;
  color: #9ca3af;
  font-size: 0.95rem;
  flex-wrap: wrap;
}

.contact-form {
  max-width: 650px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.form-row {
  display: flex;
  gap: 15px;
}

/* Estilo unificado para input y textarea */
.contact-form input,
.contact-form textarea {
  width: 100%;
  flex: 1;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 14px 18px;
  border-radius: 8px;
  color: #fff;
  font-size: 0.95rem;
  outline: none;
  font-family: inherit; /* Mantiene la misma tipografía */
}

.contact-form textarea {
  resize: vertical; /* Permite al usuario ajustar la altura si lo desea, sin romper el ancho */
  min-height: 110px;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #9ca3af;
}

.btn-submit {
  background-color: var(--primary-blue);
  color: #fff;
  border: none;
  padding: 14px;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.3s ease;
  margin-top: 10px;
}

.btn-submit:hover {
  background-color: var(--primary-hover);
}

/* FOOTER */
.main-footer {
  text-align: center;
  padding: 30px;
  background-color: #060812;
  color: #6b7280;
  font-size: 0.85rem;
  border-top: 1px solid rgba(255,255,255,0.05);
}




/* ==========================================
   BOTONES FLOTANTES INFERIOR DERECHA
   ========================================== */
.osba-floating-buttons {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.float-btn {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
  animation: osbaPulse 2.5s infinite ease-in-out;
  position: relative;
  overflow: hidden; /* Necesario para que el destello luzca bien dentro del círculo */
}

/* Colores específicos de cada botón */
.float-whatsapp {
  background-color: #22c55e;
}

.float-instagram {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #df4996 45%, #70a0af 60%, #515ec4 90%);
  background-color: #e1306c;
}

/* Efecto al pasar el cursor (similar al botón de proyectos) */
.float-btn:hover {
  transform: scale(1.12) translateY(-3px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.4);
  animation: none; /* Detiene la palpitación al hacer hover para facilitar el clic */
}

/* Animación de destello de luz al hacer hover (igual que en Proyectos) */
.float-btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transition: 0.5s;
}

.float-btn:hover::after {
  left: 100%;
}

/* Animación de palpitación fluida base */
@keyframes osbaPulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4);
  }
  50% {
    transform: scale(1.06);
    box-shadow: 0 0 0 12px rgba(34, 197, 94, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
  }
}


/* ==========================================
   ESTILOS DE SECCIÓN PLANES Y PRECIOS
   ========================================== */
.pricing-section {
  padding: 100px 20px;
  background-color: #e6f7f8;
  text-align: center;
}

.pricing-container {
  max-width: 1150px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 30px;
  flex-wrap: wrap;
}

.pricing-card {
  background-color: #0e131f;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 40px 25px;
  width: 100%;
  max-width: 350px;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.pricing-card:hover {
  transform: translateY(-5px);
  border-color: rgba(79, 70, 229, 0.5);
}

/* Tarjeta popular destacada al medio */
.pricing-card.popular {
  background: linear-gradient(180deg, #131b2e 0%, #0e131f 100%);
  border: 2px solid #4f46e5;
  transform: scale(1.03);
}

.popular-badge {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #4f46e5;
  color: #fff;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
}

.plan-title {
  color: #ffffff;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.plan-price {
  color: #818cf8;
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 25px;
}

.plan-features {
  list-style: none;
  padding: 0;
  margin: 0 0 30px 0;
  text-align: left;
  flex-grow: 1;
}

.plan-features li {
  color: #cbd5e1;
  font-size: 0.9rem;
  margin-bottom: 10px;
  position: relative;
  padding-left: 20px;
}

.plan-features li::before {
  content: "✔";
  color: #22c55e;
  position: absolute;
  left: 0;
  font-size: 0.85rem;
}

.btn-plan {
  background-color: transparent;
  color: #ffffff;
  border: 2px solid #4f46e5;
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
}

.btn-plan:hover, .active-btn {
  background-color: #4f46e5;
  color: #fff;
  box-shadow: 0 4px 15px rgba(79, 70, 229, 0.4);
}

/* ==========================================
   ESTILOS FORMULARIO DENTRO DEL MODAL
   ========================================== */
.modal-subtitle-plan {
  color: #94a3b8;
  text-align: center;
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.plan-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  text-align: left;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  color: #e2e8f0;
  font-size: 0.88rem;
  font-weight: 600;
}

.form-group input, 
.form-group textarea {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 12px;
  border-radius: 8px;
  color: #fff;
  font-size: 0.95rem;
  outline: none;
  font-family: inherit;
}

.form-group input:focus, 
.form-group textarea:focus {
  border-color: #4f46e5;
  background: rgba(255, 255, 255, 0.08);
}

.btn-submit-plan {
  background-color: #22c55e;
  color: #fff;
  border: none;
  padding: 14px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s ease;
  margin-top: 10px;
}

.btn-submit-plan:hover {
  background-color: #16a34a;
}




/* ==========================================
   ESTILOS DE SECCIÓN NUESTROS PROYECTOS
   ========================================== */
.projects-section {
  padding: 100px 20px 100px 20px;
  background-color: #0b0f19;
  text-align: center;
}

/* Filtros de categorías */
.project-filters {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.filter-btn {
  background-color: #131b2e;
  color: #94a3b8;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 10px 22px;
  border-radius: 25px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
}

.filter-btn:hover, 
.filter-btn.active {
  background-color: #4f46e5;
  color: #ffffff;
  border-color: #4f46e5;
  box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
}

/* Grid de proyectos (4 columnas) */
.projects-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* Contenedor enlace de cada tarjeta (Evita romper la grilla) */
.project-card-link {
  display: contents;
  text-decoration: none;
  color: inherit;
}

/* Card individual */
.project-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  height: 220px;
  background-color: #0e131f;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  display: none; /* Se controlará mediante JS para mostrar solo filas iniciales */
  transition: transform 0.3s ease;
}

.project-card.show {
  display: block;
  animation: fadeInProject 0.5s ease;
}

@keyframes fadeInProject {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

/* Capa oscura y nombre del proyecto en Hover */
.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(11, 15, 25, 0.82); /* Se oscurece al hacer hover */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px;
  text-align: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.project-card:hover img {
  transform: scale(1.08);
}

.project-overlay h3 {
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.4;
}

/* Botón Cargar Más */
.load-more-container {
  margin-top: 40px;
  text-align: center;
}

.btn-load-more {
  background-color: #4f46e5;
  color: #ffffff;
  border: none;
  padding: 12px 35px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.btn-load-more:hover {
  background-color: #4338ca;
  box-shadow: 0 4px 15px rgba(79, 70, 229, 0.4);
}

/* Responsive para tablets y celulares */
@media (max-width: 992px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }
}