/* styles.css - Moderno, profesional, sin desplazamiento lateral */
:root {
  --primary: #0d6efd;
  --primary-dark: #0a58ca;
  --secondary: #6c757d;
  --light: #f8f9fa;
  --dark: #1f2937;
  --shadow-sm: 0 4px 12px rgba(0,0,0,0.05);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.1);
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  scroll-behavior: smooth;
  background: white;
  line-height: 1.5;
  overflow-x: hidden !important;
  width: 100%;
  position: relative;
}

/* Evitar desplazamiento lateral en móvil */
.container, .container-fluid {
  overflow-x: hidden !important;
}

@media (max-width: 768px) {
  body, html {
    overflow-x: hidden !important;
    width: 100%;
  }
  .row {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  .col, [class*="col-"] {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
}

/* Header Sticky */
.sticky-top {
  background: white !important;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.navbar-brand {
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
}

.nav-link {
  font-weight: 500;
  color: var(--dark) !important;
  transition: var(--transition);
}

.nav-link:hover { color: var(--primary) !important; }

/* Botones */
.btn-primary {
  background: linear-gradient(105deg, var(--primary), var(--primary-dark));
  border: none;
  transition: var(--transition);
  font-weight: 600;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -8px rgba(13,110,253,0.5);
}

/* Efectos hover */
.hover-lift {
  transition: var(--transition);
}

.hover-lift:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md) !important;
}

/* Animaciones fade-up */
.animate-fade-up {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.6s ease forwards;
}

.animation-delay-1 { animation-delay: 0.15s; }
.animation-delay-2 { animation-delay: 0.3s; }
.animation-delay-3 { animation-delay: 0.45s; }

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* Efecto typing para el H1 */
.typing-text {
  display: inline-block;
  border-right: 3px solid var(--primary);
  white-space: nowrap;
  overflow: hidden;
  animation: blinkCursor 0.75s step-end infinite;
}

@keyframes blinkCursor {
  from, to { border-color: transparent; }
  50% { border-color: var(--primary); }
}

@media (max-width: 768px) {
  .typing-text {
    white-space: normal;
    border-right: none;
    animation: none;
    display: inline;
  }
}

.animate-scale {
  transition: transform 0.4s ease;
}
.animate-scale:hover { transform: scale(1.02); }

/* Hero imagen */
.hero-section img {
  max-width: 100%;
  background: var(--light);
  border-radius: 1rem;
}

/* Service cards */
.service-card, .benefit-item, .step-card, .testimonial-card {
  transition: var(--transition);
  border-radius: 1.25rem;
}

.step-number {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: bold;
  margin-bottom: 1rem;
  transition: var(--transition);
}

.step-card:hover .step-number { transform: scale(1.1); }

/* Branding cards */
.brand-card-link { text-decoration: none; display: block; }
.brand-card {
  background: white;
  border-radius: 1.25rem;
  transition: all 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1);
  border: 1px solid rgba(13,110,253,0.1);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}
.brand-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 25px 40px -15px rgba(13,110,253,0.25);
  border-color: rgba(13,110,253,0.3);
}
.brand-icon-circle {
  width: 90px;
  height: 90px;
  background: linear-gradient(135deg, #e7f1ff, #d4e4ff);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  transition: all 0.3s;
}
.brand-card:hover .brand-icon-circle {
  transform: scale(1.1);
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
}
.brand-card:hover .brand-icon-circle i { color: white !important; }
.brand-icon-circle i { transition: all 0.3s; color: var(--primary); font-size: 2.5rem; }

/* Botón WhatsApp flotante - Arrastrable */
.btn-whatsapp-float {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background: #25D366;
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(37,211,102,0.4);
  z-index: 1040;
  transition: all 0.25s ease;
  text-decoration: none;
  cursor: grab;
  animation: pulse 2s infinite;
}
.btn-whatsapp-float:active { cursor: grabbing; }
.btn-whatsapp-float:hover { transform: scale(1.1); background: #20b859; color: white; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(37,211,102,0.6); }
  70% { box-shadow: 0 0 0 12px rgba(37,211,102,0); }
  100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}

/* Botón Scroll to Top */
.scroll-top-btn {
  position: fixed;
  bottom: 100px;
  right: 25px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  z-index: 1039;
  transition: var(--transition);
  opacity: 0;
  visibility: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.scroll-top-btn.visible {
  opacity: 1;
  visibility: visible;
}
.scroll-top-btn:hover {
  transform: translateY(-3px);
  background: var(--primary-dark);
}

@media (max-width: 768px) {
  .btn-whatsapp-float { width: 55px; height: 55px; bottom: 20px; right: 20px; }
  .scroll-top-btn { bottom: 90px; right: 20px; width: 45px; height: 45px; }
  .display-4 { font-size: 2rem; }
  .display-5 { font-size: 1.8rem; }
  .fs-4 { font-size: 1.25rem !important; }
  .step-number { width: 55px; height: 55px; font-size: 26px; }
  .brand-icon-circle { width: 70px; height: 70px; }
  .brand-icon-circle i { font-size: 2rem; }
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  background: white;
  padding: 1rem;
  border-radius: 1rem;
  z-index: 1050;
  box-shadow: var(--shadow-md);
  display: none;
  flex-wrap: wrap;
  gap: 1rem;
}
@media (min-width: 768px) {
  .cookie-banner { left: auto; right: 20px; max-width: 400px; }
}
.cookie-content { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; width: 100%; }

/* Results section */
.results-section { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); }

/* Formulario */
.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.2rem rgba(13,110,253,0.15);
}

/* Footer */
footer a { transition: var(--transition); text-decoration: none; }
footer a:hover { color: white !important; transform: translateX(3px); }

/* Audience icons */
.audience-icon { transition: var(--transition); cursor: pointer; }
.audience-icon:hover { transform: translateY(-5px); }

/* Ajustes de texto responsivo */
@media (max-width: 768px) {
  .hero-section .lead { font-size: 1.1rem; }
  .display-4 { font-size: 1.8rem; }
  .display-5, .display-6 { font-size: 1.5rem; }
}