/* ============================================
   BI & Consulting - Estilos principales
   Tema: Fondo blanco
   ============================================ */

/* --- Variables --- */
:root {
  --azul-acento: #2563EB;
  --azul-claro: #60A5FA;
  --azul-hover: #1d4ed8;
  --texto-principal: #1e293b;
  --texto-secundario: #64748b;
  --texto-suave: #94a3b8;
  --fondo-blanco: #ffffff;
  --fondo-gris-claro: #f8fafc;
  --fondo-card: #f1f5f9;
  --borde: #e2e8f0;
  --borde-oscuro: #cbd5e1;
  --radius: 12px;
  --radius-card: 16px;
  --sombra: 0 1px 3px rgba(0, 0, 0, 0.08);
  --sombra-hover: 0 4px 12px rgba(37, 99, 235, 0.15);
}

/* --- Reset --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* --- Base --- */
body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--fondo-blanco);
  color: var(--texto-principal);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: 'Sora', -apple-system, sans-serif;
}

/* --- Header --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding: 1rem 2rem;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--borde);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-icon {
  width: 44px;
  height: 44px;
  background: var(--azul-acento);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  color: white;
}

.logo-text {
  font-family: 'Sora', sans-serif;
  font-size: 1.1rem;
}

.logo-text .amp {
  color: var(--azul-acento);
}

.logo-text .consulting {
  color: var(--texto-secundario);
  font-weight: 400;
}

.logo-img {
  height: 44px;
  width: auto;
}

.nav a {
  color: var(--texto-secundario);
  text-decoration: none;
  margin-left: 1.5rem;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.nav a:hover {
  color: var(--azul-acento);
}

.nav-toggle {
  display: none;
}

/* --- Botones --- */
.btn-cta {
  background: var(--azul-acento);
  color: white;
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius);
  font-weight: 600;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.95rem;
  transition: background 0.2s, transform 0.2s;
}

.btn-cta:hover {
  background: var(--azul-hover);
  transform: translateY(-1px);
}

/* --- Hero --- */
.hero {
  min-height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 2rem 3rem;
  background: linear-gradient(180deg, var(--fondo-blanco) 0%, var(--fondo-gris-claro) 100%);
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  color: var(--texto-principal);
  margin-bottom: 0.75rem;
  line-height: 1.2;
}

.hero h1 span {
  color: var(--azul-acento);
}

.hero p {
  font-size: 1.25rem;
  color: var(--texto-secundario);
  max-width: 600px;
  margin: 0 auto 1.5rem;
}

/* --- Secciones --- */
.section {
  padding: 3rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section h2 {
  font-size: 2.25rem;
  color: var(--texto-principal);
  margin-bottom: 0.5rem;
}

.section .subtitle {
  color: var(--texto-secundario);
  margin-bottom: 1.5rem;
}

/* --- Cards de servicios --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--fondo-blanco);
  border: 1px solid var(--borde);
  border-radius: var(--radius-card);
  padding: 2rem;
  box-shadow: var(--sombra);
  transition: border-color 0.3s, box-shadow 0.3s;
}

.card:hover {
  border-color: var(--azul-acento);
  box-shadow: var(--sombra-hover);
}

.card-icon {
  width: 48px;
  height: 48px;
  background: rgba(37, 99, 235, 0.1);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--azul-acento);
}

.card-icon svg {
  width: 24px;
  height: 24px;
}

.card h3 {
  color: var(--texto-principal);
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.card p {
  font-size: 0.95rem;
  color: var(--texto-secundario);
}

/* --- Simulador --- */
.simulator {
  background: var(--fondo-card);
  border: 1px solid var(--borde);
  border-radius: var(--radius-card);
  padding: 2.5rem;
  max-width: 500px;
  margin: 0 auto;
}

.simulator label {
  display: block;
  color: var(--texto-secundario);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.simulator input,
.simulator select {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--fondo-blanco);
  border: 1px solid var(--borde);
  border-radius: var(--radius);
  color: var(--texto-principal);
  font-size: 1rem;
  font-family: inherit;
  margin-bottom: 1.25rem;
}

.simulator input:focus,
.simulator select:focus {
  outline: none;
  border-color: var(--azul-acento);
}

.simulator-result {
  margin-top: 1.5rem;
  padding: 1.5rem;
  background: rgba(37, 99, 235, 0.08);
  border-radius: var(--radius);
  border-left: 4px solid var(--azul-acento);
}

.simulator-result strong {
  color: var(--azul-acento);
  font-size: 1.5rem;
}

.simulator-result p {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: var(--texto-secundario);
}

/* --- Por qué elegirnos --- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
}

.why-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.why-item .icon {
  width: 40px;
  height: 40px;
  background: rgba(37, 99, 235, 0.1);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--azul-acento);
  flex-shrink: 0;
}

.why-item .icon svg {
  width: 20px;
  height: 20px;
}

.why-item h3 {
  color: var(--texto-principal);
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.why-item p {
  color: var(--texto-secundario);
  font-size: 0.95rem;
}

/* --- Clientes --- */
.clients-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  align-items: center;
}

.client-logo {
  width: 120px;
  height: 60px;
  background: var(--fondo-card);
  border: 1px solid var(--borde);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--texto-secundario);
  font-size: 0.9rem;
  opacity: 0.8;
  transition: opacity 0.3s, border-color 0.3s;
}

.client-logo:hover {
  opacity: 1;
  border-color: var(--azul-acento);
}

/* --- Testimonios --- */
.testimonial {
  background: var(--fondo-card);
  border: 1px solid var(--borde);
  border-radius: var(--radius-card);
  padding: 2rem;
  max-width: 600px;
  margin: 0 auto 1.5rem;
}

.testimonial blockquote {
  color: var(--texto-principal);
  font-size: 1.1rem;
  font-style: italic;
  margin-bottom: 1rem;
}

.testimonial blockquote::before {
  content: '"';
  color: var(--azul-acento);
}

.testimonial blockquote::after {
  content: '"';
  color: var(--azul-acento);
}

.testimonial .author {
  color: var(--texto-principal);
  font-weight: 600;
}

.testimonial .role {
  color: var(--texto-secundario);
  font-size: 0.9rem;
}

/* --- CTA --- */
.cta {
  text-align: center;
  padding: 2.5rem 2rem;
  background: var(--fondo-gris-claro);
}

.cta h2 {
  margin-bottom: 1rem;
}

.cta p {
  margin-bottom: 1.5rem;
  color: var(--texto-secundario);
}

/* --- Formulario de contacto --- */
.contact-form {
  max-width: 500px;
  margin: 0 auto;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--fondo-blanco);
  border: 1px solid var(--borde);
  border-radius: var(--radius);
  color: var(--texto-principal);
  font-family: inherit;
  font-size: 1rem;
  margin-bottom: 1rem;
}

.contact-form textarea {
  min-height: 120px;
  resize: vertical;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--texto-suave);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--azul-acento);
}

.contact-form button {
  width: 100%;
  padding: 1rem;
  background: var(--azul-acento);
  color: white;
  border: none;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s;
}

.contact-form button:hover {
  background: var(--azul-hover);
}

/* --- Footer --- */
.footer {
  padding: 2rem;
  text-align: center;
  border-top: 1px solid var(--borde);
  background: var(--fondo-blanco);
  color: var(--texto-secundario);
  font-size: 0.9rem;
}

.footer .logo {
  justify-content: center;
  margin-bottom: 1rem;
}

/* --- Carrusel --- */
.carousel-section {
  padding: 0;
  overflow: hidden;
}

.carousel {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease;
}

.carousel-slide {
  min-width: 100%;
  flex-shrink: 0;
  position: relative;
}

.carousel-slide img {
  width: 100%;
  height: 692px;
  object-fit: cover;
  display: block;
}

.carousel-floats {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
}

.float-card {
  position: absolute;
  background: rgba(13, 16, 32, 0.95);
  border: 1px solid #1e2235;
  border-radius: 6px;
  padding: 10px 14px;
  min-width: 120px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.4);
  border-left: 3px solid #2563EB;
}

.float-card:nth-child(1) { top: 15%; left: 61%; }
.float-card:nth-child(2) { top: 30%; right: 8%; }
.float-card:nth-child(3) { bottom: 33%; right: 10%; }

.float-card-green { border-left-color: #22c55e; }

.float-label {
  display: block;
  font-size: 0.65rem;
  color: #64748b;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}

.float-value {
  display: block;
  font-size: 1.1rem;
  font-weight: 800;
  color: white;
}

.float-sub {
  display: block;
  font-size: 0.65rem;
  color: #60a5fa;
  margin-top: 2px;
}

.float-card-green .float-sub { color: #22c55e; }

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border: none;
  background: rgba(37, 99, 235, 0.9);
  color: white;
  font-size: 2rem;
  cursor: pointer;
  z-index: 10;
  transition: background 0.2s;
  line-height: 1;
  padding: 0;
}

.carousel-btn:hover {
  background: var(--azul-hover);
}

.carousel-prev { left: 1rem; }
.carousel-next { right: 1rem; }

.carousel-dots {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 10;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid white;
  background: transparent;
  cursor: pointer;
  transition: background 0.2s;
}

.carousel-dot.active {
  background: white;
}

/* --- Animaciones --- */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-in {
  animation: fadeUp 0.6s ease forwards;
}

.delay-1 {
  animation-delay: 0.1s;
}

.delay-2 {
  animation-delay: 0.2s;
}

.delay-3 {
  animation-delay: 0.3s;
}

/* --- Responsive móvil --- */
@media (max-width: 768px) {
  .header {
    padding: 0.75rem 1rem;
    flex-wrap: wrap;
  }

  .logo-icon {
    width: 36px;
    height: 36px;
    font-size: 0.75rem;
  }

  .logo-text {
    font-size: 0.95rem;
  }

  .nav {
    order: 3;
    width: 100%;
    display: none;
    flex-direction: column;
    padding: 1rem 0;
    border-top: 1px solid var(--borde);
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    margin: 0;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--borde);
  }

  .nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--texto-principal);
  }

  .btn-cta {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }

  .hero {
    padding: 1.5rem 1rem 2rem;
  }

  .hero h1 {
    font-size: 1.75rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .section {
    padding: 3rem 1rem;
  }

  .section h2 {
    font-size: 1.5rem;
  }

  .section .subtitle {
    margin-bottom: 1.25rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .carousel-slide img {
    height: 510px;
  }

  .float-card {
    padding: 8px 10px;
    min-width: 100px;
  }

  .float-card:nth-child(1) { top: 12%; left: 55%; }
  .float-card:nth-child(2) { top: 28%; right: 4%; }
  .float-card:nth-child(3) { bottom: 28%; right: 4%; }

  .float-value { font-size: 1rem; }
  .float-label, .float-sub { font-size: 0.6rem; }

  .carousel-btn {
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
  }

  .carousel-prev { left: 0.5rem; }
  .carousel-next { right: 0.5rem; }

  .simulator {
    padding: 1.5rem;
  }

  .why-grid {
    grid-template-columns: 1fr;
  }

  .client-logo {
    width: 100px;
    height: 50px;
    font-size: 0.8rem;
  }

  .testimonial {
    padding: 1.5rem;
  }

  .testimonial blockquote {
    font-size: 1rem;
  }

  .cta {
    padding: 2rem 1rem;
  }

  .contact-form input,
  .contact-form textarea {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .header {
    padding: 0.5rem 0.75rem;
  }

  .hero h1 {
    font-size: 1.5rem;
  }

  .carousel-slide img {
    height: 364px;
  }

  .float-card {
    padding: 6px 8px;
    min-width: 85px;
  }

  .float-card:nth-child(1) { top: 8%; left: 50%; transform: translateX(-50%); }
  .float-card:nth-child(2) { top: 22%; right: 2%; }
  .float-card:nth-child(3) { bottom: 22%; right: 2%; }

  .float-value { font-size: 0.9rem; }
  .float-label, .float-sub { font-size: 0.55rem; }
}
