/* --- Base y Reset --- */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: radial-gradient(circle at bottom right, #1e293b, #1e3a8a, #0f172a);
  margin-top: 5px;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

/* --- Fondos --- */
.hero-bg-image {
  position: absolute;
  inset: 0;
  background-image: url('https://images.unsplash.com/photo-1451187580459-43490279c0fa?w=1920&h=1080&fit=crop&q=80');
  background-size: cover;
  background-position: center;
  opacity: 0.2;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, 
    rgba(30, 58, 138, 0.8), 
    rgba(15, 23, 42, 0.7), 
    rgba(30, 64, 175, 0.8));
  z-index: 2;
}

/* --- Elementos Animados (Blobs) --- */
.hero-bg-elements {
  position: absolute;
  inset: 0;
  z-index: 3;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  animation: pulse-hero 6s infinite ease-in-out;
}

.blob-1 {
  top: -160px;
  right: -160px;
  width: 320px;
  height: 320px;
  background: rgba(59, 130, 246, 0.1);
}

.blob-2 {
  bottom: -160px;
  left: -160px;
  width: 384px;
  height: 384px;
  background: rgba(255, 255, 255, 0.05);
  animation-delay: 1s;
}

.blob-3 {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 256px;
  height: 256px;
  background: rgba(96, 165, 250, 0.1);
  animation-delay: 0.5s;
}

/* --- Contenedor --- */
.hero-container {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
  display: flex;
  justify-content: center;
}

/* --- Tipografía --- */
.hero-title {
  font-size: 3rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.1;
  margin-bottom: 2rem;
}

.hero-title-gradient {
  display: block;
  background: linear-gradient(to right, #60a5fa, #93c5fd, #ffffff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: #dbeafe;
  max-width: 896px;
  margin: 0 auto 3rem;
  line-height: 1.6;
}

/* --- Tech Stack (Badges) --- */
.hero-trust {
  padding-top: 3rem;
  opacity: 0.8;
}

.trust-label {
  color: #bfdbfe;
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.tech-stack {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

.tech-badge {
  background: rgba(59, 130, 246, 0.2);
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: #93c5fd;
  padding: 8px 16px;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.tech-badge:hover {
  background: rgba(59, 130, 246, 0.3);
  border-color: rgba(59, 130, 246, 0.5);
  transform: translateY(-2px);
}

/* --- Animaciones --- */
@keyframes pulse-hero {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.1); opacity: 0.8; }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(32px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-fade-up {
  animation: fadeUp 1s ease-out forwards;
}

/* --- Media Queries (Responsividad) --- */
@media (max-width: 800px){
    .services-container{
        padding: 10px 0px!important;
    }
    .services-container {
  display: grid;
  /* Crea columnas de mínimo 300px; si no caben, saltan abajo */
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  padding: 20px;
}
}
@media (min-width: 640px) {
  .hero-title { font-size: 4rem; }
  .hero-subtitle { font-size: 1.5rem; }
}

@media (min-width: 1024px) {
  .hero-title { font-size: 4.5rem; }
}

/* --- Showcase & Tabs --- */
.services-showcase {
  padding: 80px 0;
  background: linear-gradient(135deg, #f8fafc 0%, #e0f2fe 50%, #f0f9ff 100%);
  min-height: 100vh;
}

.services-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}


.service-card {
  width: 100%; /* Evita que la card se desborde */
  box-sizing: border-box;
}
.services-title {
  text-align: center;
  font-size: 48px;
  font-weight: 800;
  background: linear-gradient(135deg, #1e40af, #3b82f6, #06b6d4);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 24px;
}

.tabs-wrapper {
  display: flex;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px);
  border-radius: 60px;
  padding: 8px;
  justify-content: center;
  gap: 10px;
  margin-bottom: 48px;
}

.tab-button {
  padding: 16px 32px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  transition: 0.4s;
  background: transparent;
  color: #64748b;
}

.tab-button.active {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: white;
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

/* --- Cards --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 32px;
}

.service-card {
  background: white;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
  transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.service-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 25px 50px rgba(59, 130, 246, 0.2);
}

.card-image-container {
  height: 200px;
  position: relative;
  overflow: hidden;
}

.card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --- TABS MEJORADAS --- */
.tabs-container {
  margin-bottom: 48px;
  display: flex;
  justify-content: center;
  width: 100%;
  overflow-x: auto; /* Evita que se vea larga, permite scroll */
  padding: 10px 0;
}

.tabs-wrapper {
  display: flex;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px);
  border-radius: 60px;
  padding: 8px;
  border: 1px solid rgba(59, 130, 246, 0.1);
  box-shadow: 0 8px 32px rgba(59, 130, 246, 0.1);
  white-space: nowrap; /* Mantiene los botones en una línea */
}

.tab-button {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px;
  border-radius: 50px;
  border: none;
  background: transparent;
  cursor: pointer;
  transition: all 0.4s ease;
  font-weight: 600;
  color: #64748b;
}

.tab-button.active {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: white;
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

.tab-count {
  background: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
  font-size: 12px;
  padding: 2px 10px;
  border-radius: 20px;
}

.tab-button.active .tab-count {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}

/* --- CARD HOVERS Y BOTÓN --- */
.service-card {
  background: white;
  border-radius: 24px;
  border: 1px solid rgba(59, 130, 246, 0.1);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.service-card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 25px 50px rgba(59, 130, 246, 0.2);
}

/* Efecto Shine del Botón */
.details-button {
  display: flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: white;
  padding: 12px 24px;
  border-radius: 50px;
  border: none;
  font-weight: 600;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: 0.4s;
}

.button-shine {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: 0.6s;
}

.details-button:hover .button-shine {
  left: 100%;
}

.details-button:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 20px rgba(59, 130, 246, 0.3);
}

.card-category {
  position: absolute;
  top: 16px;
  left: 16px;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  z-index: 10;
}
/* Contenedor de la imagen */
.card-image-container {
  position: relative;
  height: 200px;
  overflow: hidden;
  background: linear-gradient(135deg, #e0f2fe, #bae6fd);
}

.card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* LA CORTINA AZUL (Overlay) */
.card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.8), rgba(29, 78, 216, 0.9));
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0; /* Invisible por defecto */
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Efectos al pasar el mouse por la CARD */
.service-card:hover .card-overlay {
  opacity: 1; /* Aparece la cortina */
}

.service-card:hover .card-image {
  transform: scale(1.1) rotate(2deg); /* Zoom y rotación de la imagen de fondo */
}

/* El círculo del botón Play dentro de la cortina */
.play-button-circle {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(20px);
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: scale(0.8);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover .play-button-circle {
  transform: scale(1.2); /* El icono crece al hacer hover */
  background: rgba(255, 255, 255, 0.3);
}

/* Icono Play (Triángulo SVG blanco) */
.play-icon-svg {
  width: 24px;
  height: 24px;
  fill: white;
}















/* --- ESTILOS DEL MODAL --- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 16px;
  animation: fadeIn 0.3s ease-out;
}

.modal-container {
  max-width: 900px;
  width: 100%;
  max-height: 85vh;
  background: white;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(59, 130, 246, 0.1);
  position: relative;
  overflow-y: auto;
  animation: slideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideIn {
  from { opacity: 0; transform: scale(0.95) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

/* Sección de Video / Header del Modal */
.modal-video-section {
  position: relative;
  height: 300px;
  background: linear-gradient(135deg, #1e40af, #3b82f6, #06b6d4);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.modal-video-content {
  position: relative;
  z-index: 10;
  text-align: center;
  color: white;
}

.modal-play-button-large {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(20px);
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  padding: 24px;
  cursor: pointer;
  transition: all 0.4s ease;
  margin-bottom: 16px;
  display: inline-flex;
}

.modal-play-button-large:hover {
  transform: scale(1.1);
  background: rgba(255, 255, 255, 0.3);
}

/* Botón de cierre */
.modal-close-button {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 100;
  background: white;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: 0.3s;
}

.modal-close-button:hover {
  transform: rotate(90deg);
  background: #ef4444;
  color: white;
}

/* Cuerpo del Modal */
.modal-body { padding: 40px; }

.modal-category-badge {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: white;
  font-weight: 700;
  padding: 8px 20px;
  border-radius: 25px;
  display: inline-block;
  margin-bottom: 16px;
}

.modal-title {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 24px;
  background: linear-gradient(135deg, #1f2937, #3b82f6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.modal-features-section {
  background: linear-gradient(135deg, #f8fafc, #e0f2fe);
  border-radius: 20px;
  padding: 32px;
  border: 1px solid rgba(59, 130, 246, 0.1);
}
.btn-demo {
  display: inline-block;
  padding: 12px 24px;
  background-color: #25D366; /* Verde oficial de WhatsApp */
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  font-family: sans-serif;
  transition: background-color 0.3s ease, transform 0.2s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-demo:hover {
  background-color: #128C7E; /* Un verde más oscuro al pasar el mouse */
  transform: translateY(-2px);
  color: white;
}

.btn-demo:active {
  transform: translateY(0);
}