/* ==========================================
   VARIABLES GLOBALES
========================================== */
:root {
  --sionline-blue: #1B2341;
  --sionline-blue-mid: #24325D;
  --sionline-orange: #E87722;
  --sionline-orange-hover: #cf6510;
  --radius-card: 18px;
  --shadow-soft: 0 5px 25px rgba(0,0,0,.08);
  --shadow-hover: 0 15px 40px rgba(0,0,0,.14);
}

/* ==========================================
   HERO
========================================== */

.hero {
  min-height: 85vh;
  display: flex;
  align-items: center;
  background: linear-gradient(
    135deg,
    #1B2341 0%,
    #24325D 100%
  );
  color: white;
  padding: clamp(60px, 10vw, 120px) 0 clamp(40px, 7vw, 80px);
  overflow: hidden;
}

.hero h1 {
  font-size: clamp(1.9rem, 4.5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.15;
}

.hero p {
  font-size: clamp(1rem, 2vw, 1.2rem);
}

.hero-image {
  width: 100%;
  max-width: 600px;
  height: auto;
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 20px 45px rgba(0,0,0,.25));
}

/* ==========================================
   BENEFIT CARDS (SOLUCIÓN)
========================================== */
.feature-icon {
  font-size: 2rem;
  color: var(--sionline-orange);
}

.benefit-card {
  border: none;
  border-radius: var(--radius-card);
  transition: .3s;
  box-shadow: var(--shadow-soft);
}

.benefit-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.benefit-card p {
  text-align: left;
  line-height: 1.7;
}

/* ==========================================
   CLIENTES
========================================== */
.clientes-grid {
  margin-top: 40px;
}

.cliente-card {
  border: none;
  border-radius: var(--radius-card);
  background: #fff;
  min-height: 230px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1.25rem;
  gap: .75rem;
  transition: all .3s ease;
  box-shadow: var(--shadow-soft);
}

.cliente-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.client-logo {
  height: 80px;
  width: 100%;
  object-fit: contain;
  transition: .3s;
}

.cliente-card:hover .client-logo {
  transform: scale(1.05);
}

.cliente-codigo {
  font-size: .9rem;
  font-weight: 600;
  color: #dc3545;
  text-align: center;
}

.cliente-ficha {
  display: inline-block;
  background: var(--sionline-blue);
  color: white;
  text-decoration: none;
  padding: 8px 18px;
  border-radius: 10px;
  font-weight: 600;
  font-size: .9rem;
  transition: .3s;
}

.cliente-ficha:hover {
  background: var(--sionline-orange);
  color: white;
}

/* ==========================================
   BADGE / PRECIO
========================================== */
.badge-sionline {
  background: var(--sionline-blue);
  color: white;
  padding: 10px 16px;
  border-radius: 50px;
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .5px;
  box-shadow: 0 5px 15px rgba(27,35,65,.25);
}

.price-sionline {
  font-size: clamp(2.5rem, 7vw, 4rem);
  line-height: 1;
}

/* ==========================================
   PASOS (FUNCIONAMIENTO)
========================================== */
.step-card {
  background: #fff;
  border-radius: 20px;
  padding: 35px 25px;
  text-align: center;
  height: 100%;
  position: relative;
  transition: .3s;
  box-shadow: var(--shadow-soft);
}

.step-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

.step-number {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--sionline-orange);
  color: white;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-icon {
  font-size: 3rem;
  color: var(--sionline-blue);
  margin-bottom: 20px;
}

.step-card h4 {
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--sionline-blue);
}

.step-card p {
  color: #6c757d;
  margin: 0;
}

/* ==========================================
   EXPERTO
========================================== */
.experto-media {
  position: relative;
  display: inline-block;
}

.experto-foto {
  width: 260px;
  height: 260px;
  object-fit: cover;
  border-radius: 50%;
  border: 6px solid #fff;
  box-shadow: var(--shadow-hover);
}

.experto-badge {
  position: absolute;
  bottom: 8px;
  right: 8px;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #0A66C2;
  color: #fff;
  font-size: 1.35rem;
  box-shadow: var(--shadow-soft);
  transition: .3s;
}

.experto-badge:hover {
  color: #fff;
  transform: scale(1.1);
}

.experto-tags .badge-sionline {
  display: inline-block;
}

/* ==========================================
   IMAGEN VALIDACIÓN SEPE
========================================== */
.sepe-validacion-img {
  max-width: 100%;
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 15px 40px rgba(0,0,0,.12);
}

/* ==========================================
   INTEGRACIONES
========================================== */
.integration-logo {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  font-weight: 600;
}

/* ==========================================
   TABLET  (≤992px)
========================================== */
@media (max-width: 992px) {
  .hero {
    min-height: auto;
    text-align: center;
  }

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

  .hero-image {
    width: 100%;
    max-width: 580px;
    margin-top: 40px;
  }

  .navbar-sionline {
    height: auto;
    padding: 15px 0;
  }

  .benefit-card {
    margin-bottom: 0;
  }
}

/* ==========================================
   MÓVIL  (≤768px)
========================================== */
@media (max-width: 768px) {
  .hero {
    padding: 60px 0;
  }

  .hero h1 {
    font-size: 2.3rem;
    line-height: 1.2;
  }

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

  .hero-image {
    width: 100%;
    max-width: 100%;
    margin-top: 30px;
  }

  /* Botones hero apilados */
  .hero .btn {
    width: 100%;
    margin-bottom: 10px;
    margin-right: 0 !important;
  }

  .client-logo {
    height: 60px;
  }

  .cliente-card {
    min-height: 200px;
    padding: 1.25rem 1rem;
  }

  .benefit-card {
    margin-bottom: 20px;
  }

  .step-card {
    padding: 28px 20px;
  }

  .display-2 {
    font-size: 3rem !important;
  }

  .btn-sionline,
  .btn-outline-sionline {
    width: 100%;
    margin-bottom: 10px;
  }

  .topbar {
    text-align: center;
    font-size: .75rem;
  }

  .topbar span {
    display: block;
    margin: 5px 0;
  }
}

/* ==========================================
   MÓVIL PEQUEÑO  (≤576px)
========================================== */
@media (max-width: 576px) {
  .hero h1 {
    font-size: 2rem;
  }

  .hero-image {
    width: 100%;
    max-width: 100%;
  }

  .display-2 {
    font-size: 2.5rem !important;
  }

  .client-logo {
    height: 50px;
  }

  .cliente-card {
    min-height: 180px;
  }

  .card-body {
    padding: 1.5rem !important;
  }

  .step-card {
    padding: 22px 16px;
  }

  .step-icon {
    font-size: 2.2rem;
  }

  .price-sionline {
    font-size: 3rem;
  }
}