/**
 * Estilos para páginas internas
 * Instituto Jiménez - Cursos Libres
 */

/* ===== Hero de páginas ===== */
.page-hero {
  position: relative;
  min-height: 50vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: center/cover no-repeat;

}

.page-hero .hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1;
}

.page-hero .hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 40px 20px;
  width: min(1100px, 92%);
  animation: rise 0.8s ease both;
}

.page-hero .eyebrow {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--brand);
  color: white;
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 16px;
}

.page-hero h1 {
  font-size: clamp(2rem, 4vw + 1rem, 3.5rem);
  margin: 12px 0 16px;
  font-weight: 900;
  color: white;
  line-height: 1.2;
}

.page-hero .lead {
  font-size: clamp(1rem, 1.5vw + 0.5rem, 1.3rem);
  color: var(--muted);
  margin: 0 auto;
  line-height: 1.6;
  max-width: 70ch;
}

/* ===== Contenido de páginas ===== */
.page-content {
  padding: 60px 0;
  background: #f8f9fa;
}

.intro-section {
  background: white;
  padding: 40px;
  border-radius: var(--radius);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  margin-bottom: 40px;
  animation: fade 0.5s ease both;
}

.intro-section h2 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 20px;
  border-bottom: 3px solid var(--brand);
  padding-bottom: 12px;
}

.intro-section p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #333;
}

/* ===== Grid de características ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

.feature-card {
  background: white;
  padding: 32px;
  border-radius: var(--radius);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: all var(--transition-normal);
  animation: fade 0.5s ease both;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.feature-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--brand), var(--brand-hover));
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.feature-icon svg {
  color: white;
}

.feature-card h3 {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.feature-card p {
  font-size: 1rem;
  line-height: 1.6;
  color: #666;
}

/* ===== Sección CTA ===== */
.cta-section {
  background: linear-gradient(135deg, var(--brand), var(--brand-hover));
  padding: 60px 40px;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  animation: fade 0.5s ease both;
}

.cta-section h2 {
  font-size: 2.2rem;
  font-weight: 900;
  color: white;
  margin-bottom: 16px;
}

.cta-section p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 32px;
  max-width: 70ch;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-whatsapp {
  background: #25D366;
  color: white;
}

.btn-whatsapp:hover {
  background: #20BA5A;
}

/* ===== Formulario de contacto ===== */
.contact-form {
  background: white;
  padding: 40px;
  border-radius: var(--radius);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  animation: fade 0.5s ease both;
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
  font-size: 1rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e9ecef;
  border-radius: 10px;
  font-size: 1rem;
  font-family: inherit;
  transition: all var(--transition-fast);
  background: white;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(0, 108, 182, 0.1);
}

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

.form-group small {
  display: block;
  margin-top: 6px;
  color: #666;
  font-size: 0.9rem;
}

.form-submit {
  text-align: center;
  margin-top: 32px;
}

.form-submit .btn {
  min-width: 200px;
}

/* ===== Información de contacto ===== */
.contact-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

.contact-info-card {
  background: white;
  padding: 32px;
  border-radius: var(--radius);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  text-align: center;
  animation: fade 0.5s ease both;
}

.contact-info-card .icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--brand), var(--brand-hover));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.contact-info-card .icon svg {
  color: white;
}

.contact-info-card h3 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.contact-info-card p {
  font-size: 1rem;
  color: #666;
  line-height: 1.6;
}

.contact-info-card a {
  color: var(--brand);
  font-weight: 600;
  text-decoration: none;
}

.contact-info-card a:hover {
  color: var(--brand-hover);
}

/* ===== Mapa ===== */
.map-container {
  background: white;
  padding: 40px;
  border-radius: var(--radius);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  animation: fade 0.5s ease both;
}

.map-container h2 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 20px;
  border-bottom: 3px solid var(--brand);
  padding-bottom: 12px;
}

.map-embed {
  width: 100%;
  height: 450px;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid #e9ecef;
}

.map-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* ===== Lista de empresas ===== */
.empresas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.empresa-card {
  background: white;
  padding: 32px;
  border-radius: var(--radius);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  text-align: center;
  transition: all var(--transition-normal);
  animation: fade 0.5s ease both;
}

.empresa-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.empresa-logo {
  width: 100px;
  height: 100px;
  background: #f8f9fa;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-weight: 900;
  font-size: 2rem;
  color: var(--brand);
  border: 2px solid #e9ecef;
}

.empresa-card h3 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.empresa-card p {
  font-size: 0.9rem;
  color: #666;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .page-hero {
    min-height: 40vh;
  }

  .page-content {
    padding: 40px 0;
  }

  .intro-section {
    padding: 28px 20px;
  }

  .intro-section h2 {
    font-size: 1.6rem;
  }

  .intro-section p {
    font-size: 1rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .feature-card {
    padding: 24px;
  }

  .cta-section {
    padding: 40px 24px;
  }

  .cta-section h2 {
    font-size: 1.8rem;
  }

  .cta-buttons {
    flex-direction: column;
  }

  .cta-buttons .btn {
    width: 100%;
  }

  .contact-form {
    padding: 28px 20px;
  }

  .contact-info-grid {
    grid-template-columns: 1fr;
  }

  .map-container {
    padding: 28px 20px;
  }

  .map-embed {
    height: 350px;
  }

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

@media (max-width: 480px) {
  .page-hero h1 {
    font-size: 1.8rem;
  }

  .page-hero .lead {
    font-size: 1rem;
  }

  .intro-section h2 {
    font-size: 1.4rem;
  }

  .feature-icon {
    width: 60px;
    height: 60px;
  }

  .feature-icon svg {
    width: 32px;
    height: 32px;
  }

  .feature-card h3 {
    font-size: 1.1rem;
  }

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

  .cta-section p {
    font-size: 1rem;
  }
}

/* ============================================================
   Componentes de páginas de Servicios  (.sv-*)
   ============================================================ */

/* ── Héroe degradado (sin imagen) ─────────────────────────── */
.sv-hero-gradient {
  background: linear-gradient(135deg, #002c50 0%, #004a8e 45%, var(--brand) 100%);
  position: relative;
}
.sv-hero-gradient::before {
  content: '';
  position: absolute; top: -80px; right: -60px;
  width: 400px; height: 400px; border-radius: 50%;
  background: rgba(255,255,255,.05);
  pointer-events: none;
}
.sv-hero-gradient::after {
  content: '';
  position: absolute; bottom: -100px; left: -70px;
  width: 300px; height: 300px; border-radius: 50%;
  background: rgba(254,220,9,.07);
  pointer-events: none;
}

/* ── Filas alternadas texto + imagen ──────────────────────── */
.sv-rows { padding: 2rem 0 4rem; }

.sv-row {
  display: flex;
  align-items: center;
  gap: 4rem;
  margin-bottom: 5rem;
}
.sv-row.reverse { flex-direction: row-reverse; }
.sv-row__text,
.sv-row__image { flex: 1; }

.sv-row__card {
  background: white;
  padding: 2.5rem;
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(0,0,0,.06);
  border-left: 4px solid var(--brand);
  font-size: 1.1rem;
  line-height: 1.8;
  color: #555;
}
.sv-row__card strong { color: var(--text-dark); }

.sv-row__img-wrap {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  height: 380px;
  box-shadow: 0 15px 35px rgba(0,0,0,.1);
}
.sv-row__img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s;
}
.sv-row__image:hover .sv-row__img-wrap img { transform: scale(1.04); }

/* ── Tagline / cita central ───────────────────────────────── */
.sv-tagline {
  text-align: center;
  padding: 3rem 2rem;
  background: #f0f6ff;
  border-radius: var(--radius);
  border: 1px solid rgba(0,108,182,.12);
  margin: 0 0 4rem;
}
.sv-tagline__text {
  display: block;
  font-size: clamp(1.3rem, 2vw + .4rem, 1.9rem);
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: .75rem;
}
.sv-tagline__sub {
  font-size: 1.05rem;
  color: #666;
  max-width: 60ch;
  margin: 0 auto;
  line-height: 1.6;
}

/* ── Formulario de servicios (fondo claro) ────────────────── */
.sv-form-section { margin-top: 2rem; }

.sv-form-wrap {
  max-width: 620px;
  margin: 0 auto;
  background: white;
  padding: 2.5rem 3rem;
  border-radius: var(--radius);
  box-shadow: 0 16px 40px rgba(0,0,0,.08);
}
.sv-form-wrap__head {
  text-align: center;
  margin-bottom: 2rem;
}
.sv-form-wrap__head h2 {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--text-dark);
  margin-bottom: .5rem;
}
.sv-form-wrap__head p {
  color: #666;
  font-size: 1rem;
  margin: 0;
}

/* ── Sección trust + carrusel de logos ────────────────────── */
.sv-trust {
  background: linear-gradient(135deg, #003060, var(--brand));
  padding: 5rem 2rem;
  border-radius: 24px;
  text-align: center;
  margin-bottom: 4rem;
  position: relative;
  overflow: hidden;
}
.sv-trust::before {
  content: '';
  position: absolute; top: -60px; right: -60px;
  width: 300px; height: 300px; border-radius: 50%;
  background: rgba(255,255,255,.06);
  pointer-events: none;
}
.sv-trust::after {
  content: '';
  position: absolute; bottom: -80px; left: -50px;
  width: 220px; height: 220px; border-radius: 50%;
  background: rgba(254,220,9,.08);
  pointer-events: none;
}
.sv-trust h2 {
  color: white;
  font-size: clamp(1.5rem, 2vw + .5rem, 2.2rem);
  font-weight: 900;
  margin-bottom: 1rem;
}
.sv-trust__desc {
  max-width: 680px;
  margin: 0 auto 3rem;
  color: rgba(255,255,255,.85);
  font-size: 1.05rem;
  line-height: 1.6;
}

.sv-carousel {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 60px;
  overflow: hidden;
}
.sv-carousel__track {
  display: flex;
  transition: transform .5s cubic-bezier(.25,1,.5,1);
  padding: 16px 0;
}
.sv-carousel__slide {
  min-width: 33.333%;
  box-sizing: border-box;
  padding: 0 14px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.sv-logo-card {
  background: white;
  border-radius: 14px;
  padding: 18px;
  width: 100%; height: 110px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 20px rgba(0,0,0,.14);
  transition: all .3s;
}
.sv-logo-card:hover { transform: translateY(-4px); box-shadow: 0 16px 28px rgba(0,0,0,.2); }
.sv-logo-card img { max-width: 100%; max-height: 100%; object-fit: contain; }

.sv-carousel__btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,.9); border: none;
  width: 44px; height: 44px; border-radius: 50%;
  cursor: pointer; z-index: 10; color: var(--brand);
  box-shadow: 0 4px 12px rgba(0,0,0,.2);
  display: flex; align-items: center; justify-content: center;
  transition: all .3s;
}
.sv-carousel__btn:hover { background: white; transform: translateY(-50%) scale(1.1); }
.sv-carousel__btn--prev { left: 0; }
.sv-carousel__btn--next { right: 0; }

/* ── CTA oscuro (Empresas) ────────────────────────────────── */
.sv-cta-dark {
  background: linear-gradient(135deg, #002c50, #004a8e);
  padding: 4rem 2rem;
  border-radius: 20px;
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
}
.sv-cta-dark::after {
  content: '';
  position: absolute; bottom: -80px; right: -60px;
  width: 280px; height: 280px; border-radius: 50%;
  background: rgba(254,220,9,.08);
  pointer-events: none;
}
.sv-cta-dark h3 {
  font-size: clamp(1.5rem, 2vw + .5rem, 2rem);
  font-weight: 900;
  margin-bottom: .75rem;
}
.sv-cta-dark > p {
  color: rgba(255,255,255,.85);
  max-width: 55ch;
  margin: 0 auto 2rem;
  font-size: 1.05rem;
  line-height: 1.6;
}
.sv-cta-dark .form-group label { color: rgba(255,255,255,.9); }
.sv-cta-dark .form-group input,
.sv-cta-dark .form-group textarea {
  background: rgba(255,255,255,.95);
  border-color: transparent;
}
.sv-cta-dark .form-group input:focus,
.sv-cta-dark .form-group textarea:focus {
  background: white;
  border-color: var(--secondary-1);
  box-shadow: 0 0 0 3px rgba(254,220,9,.25);
}
.sv-simple-form { max-width: 480px; margin: 0 auto; }

/* ── Tarjetas de certificación ────────────────────────────── */
.sv-cert-card {
  text-align: center;
  display: flex; flex-direction: column;
  align-items: center;
}
.sv-cert-card__logo {
  width: 180px; height: 180px;
  margin: 0 auto 20px;
  display: flex; align-items: center; justify-content: center;
}
.sv-cert-card__logo img {
  width: 100%; height: 100%;
  object-fit: contain;
}
.sv-cert-btn {
  margin-top: auto; width: 100%;
  padding: 10px 20px; border-radius: 50px;
  background: transparent;
  border: 2px solid var(--brand);
  color: var(--brand);
  font-size: .85rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .5px;
  cursor: pointer; transition: all .3s;
  font-family: inherit;
}
.sv-cert-btn:hover { background: var(--brand); color: white; }

/* ── Modal de certificación ───────────────────────────────── */
.sv-modal-overlay {
  display: none;
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(4px);
  align-items: center; justify-content: center;
  opacity: 0; transition: opacity .3s;
}
.sv-modal-overlay.show { display: flex; opacity: 1; }

.sv-modal {
  background: white;
  width: 90%; max-width: 580px;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0,0,0,.25);
  position: relative;
  transform: translateY(24px); transition: transform .3s;
  overflow: hidden;
  display: flex; flex-direction: column;
  max-height: 90vh;
}
.sv-modal-overlay.show .sv-modal { transform: translateY(0); }

.sv-modal__head {
  background: linear-gradient(135deg, var(--brand), #002c50);
  padding: 2rem; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
}
.sv-modal__logo {
  width: 120px; height: 120px;
  object-fit: contain;
  background: white; border-radius: 16px; padding: 12px;
}
.sv-modal__title {
  font-size: 1.3rem; font-weight: 800;
  color: white; margin: 0;
}
.sv-modal__close {
  position: absolute; top: 14px; right: 18px;
  font-size: 26px; font-weight: bold;
  color: rgba(255,255,255,.7);
  cursor: pointer; line-height: 1;
  transition: color .2s;
  border: none; background: transparent;
}
.sv-modal__close:hover { color: white; }

.sv-modal__body {
  padding: 2rem;
  overflow-y: auto;
  display: flex; flex-direction: column; gap: 1.5rem;
}
.sv-modal__desc {
  font-size: .95rem; color: #555; line-height: 1.7;
}
.sv-modal__desc strong { color: var(--text-dark); }
.sv-modal__desc ul { margin: .5rem 0 0 1.2rem; line-height: 1.8; }

.sv-modal__actions {
  display: flex; flex-direction: column; gap: 12px;
  border-top: 1px solid #eee; padding-top: 1.5rem;
}
.sv-modal__action-label {
  display: block;
  font-size: .85rem; color: #888;
  text-align: center; margin-bottom: 4px;
}
.sv-modal__btn {
  display: flex; justify-content: center; align-items: center; gap: 10px;
  width: 100%; padding: 14px; border-radius: 50px;
  font-weight: 700; font-size: 1rem;
  cursor: pointer; border: none; text-decoration: none;
  transition: transform .2s, box-shadow .2s;
  font-family: inherit;
}
.sv-modal__btn:hover { transform: translateY(-2px); }
.sv-modal__btn--wsp { background: #25D366; color: white; }
.sv-modal__btn--wsp:hover { background: #1ebe5c; }
.sv-modal__btn--contact { background: linear-gradient(135deg, var(--brand), #004a8e); color: white; }

/* ── Lista de beneficios ──────────────────────────────────── */
.sv-benefits { list-style: none; padding: 0; margin: 1rem 0 0; }
.sv-benefits li {
  display: flex; align-items: flex-start; gap: 14px;
  margin-bottom: 1rem;
  font-size: 1.05rem; color: #555; line-height: 1.5;
}
.sv-benefits__icon {
  width: 28px; height: 28px; flex-shrink: 0;
  background: rgba(0,108,182,.1); color: var(--brand);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .8rem; font-weight: 800;
}

/* ── Píldoras en el héroe ─────────────────────────────────── */
.sv-hero-pills {
  display: flex; flex-wrap: wrap; gap: .6rem;
  justify-content: center;
  margin-top: 1.5rem;
}
.sv-hero-pill {
  background: rgba(255,255,255,.14);
  backdrop-filter: blur(4px);
  color: rgba(255,255,255,.95);
  padding: 5px 14px; border-radius: 999px;
  font-size: .82rem; font-weight: 600;
  border: 1px solid rgba(255,255,255,.22);
}

/* ── Tira de estadísticas ─────────────────────────────────── */
.sv-stats {
  background: white;
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(0,0,0,.07);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  overflow: hidden;
  margin-bottom: 3.5rem;
}
.sv-stats__item {
  padding: 1.75rem 1rem;
  text-align: center;
  position: relative;
}
.sv-stats__item + .sv-stats__item::before {
  content: '';
  position: absolute; left: 0; top: 20%; bottom: 20%;
  width: 1px; background: #f0f0f0;
}
.sv-stats__num {
  display: block;
  font-size: 2.1rem; font-weight: 900;
  color: var(--brand); line-height: 1;
  margin-bottom: .4rem;
}
.sv-stats__label {
  font-size: .75rem; color: #888;
  font-weight: 600; text-transform: uppercase;
  letter-spacing: .07em; line-height: 1.3;
}

/* ── Encabezado de sección centrado ───────────────────────── */
.sv-section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 2.5rem;
}
.sv-section-head h2 {
  font-size: clamp(1.6rem, 2.2vw + .4rem, 2.2rem);
  font-weight: 900; color: var(--text-dark);
  margin-bottom: .6rem; line-height: 1.2;
}
.sv-section-head p {
  font-size: 1.05rem; color: #666;
  line-height: 1.6; margin: 0;
}
.sv-section-head__accent {
  width: 52px; height: 4px;
  background: linear-gradient(90deg, var(--brand), var(--secondary-1));
  border-radius: 2px;
  margin: .9rem auto 0;
}

/* ── Grid de tarjetas temáticas ───────────────────────────── */
.sv-topic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 1.25rem;
  margin-bottom: 4rem;
}
.sv-topic-card {
  background: white;
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  box-shadow: 0 4px 16px rgba(0,0,0,.05);
  border-top: 3px solid transparent;
  transition: all .3s;
}
.sv-topic-card:hover {
  border-top-color: var(--brand);
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0,0,0,.09);
}
.sv-topic-card__icon { font-size: 2.2rem; margin-bottom: .85rem; display: block; }
.sv-topic-card h3 { font-size: 1rem; font-weight: 800; color: var(--text-dark); margin-bottom: .4rem; }
.sv-topic-card p { font-size: .88rem; color: #666; line-height: 1.5; margin: 0; }

/* ── Pasos del proceso ────────────────────────────────────── */
.sv-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.5rem;
  margin-bottom: 4rem;
  position: relative;
}
/* Línea conectora en desktop */
.sv-steps::before {
  content: '';
  position: absolute;
  top: 44px; left: calc(16.67% + 1rem); right: calc(16.67% + 1rem);
  height: 2px;
  background: linear-gradient(90deg, var(--brand), var(--secondary-1));
  opacity: .2;
  z-index: 0;
}
.sv-step {
  background: white; border-radius: var(--radius);
  padding: 2rem 1.75rem;
  box-shadow: 0 4px 16px rgba(0,0,0,.05);
  position: relative; z-index: 1;
  transition: transform .3s, box-shadow .3s;
}
.sv-step:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(0,0,0,.09); }
.sv-step__num {
  width: 52px; height: 52px;
  background: linear-gradient(135deg, var(--brand), #004a8e);
  color: white; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem; font-weight: 900;
  margin-bottom: 1.25rem;
}
.sv-step h3 { font-size: 1.05rem; font-weight: 800; color: var(--text-dark); margin-bottom: .5rem; }
.sv-step p { font-size: .9rem; color: #666; line-height: 1.6; margin: 0; }

/* ── Testimonio ───────────────────────────────────────────── */
.sv-testimonial-wrap { background: #f8f9fa; padding: 4rem 0; margin: 0 -1px; }
.sv-testimonial {
  background: white;
  border-radius: var(--radius);
  padding: 3rem 3.5rem;
  box-shadow: 0 8px 32px rgba(0,0,0,.06);
  position: relative; overflow: hidden;
  max-width: 820px; margin: 0 auto;
}
.sv-testimonial::before {
  content: '\201C';
  font-size: 11rem; line-height: .7;
  color: var(--brand); opacity: .07;
  position: absolute; top: -4px; left: 14px;
  font-family: Georgia, serif; pointer-events: none;
}
.sv-testimonial::after {
  content: '';
  position: absolute; right: -40px; bottom: -40px;
  width: 180px; height: 180px; border-radius: 50%;
  background: rgba(249,176,54,.08);
  pointer-events: none;
}
.sv-testimonial__stars { color: #f9b036; font-size: 1.1rem; margin-bottom: .75rem; }
.sv-testimonial__text {
  font-size: 1.15rem; line-height: 1.78;
  color: #444; font-style: italic;
  margin-bottom: 1.75rem; position: relative;
}
.sv-testimonial__author { display: flex; align-items: center; gap: 1rem; }
.sv-testimonial__avatar {
  width: 54px; height: 54px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--brand), #004a8e);
  display: flex; align-items: center; justify-content: center;
  color: white; font-weight: 800; font-size: 1.15rem;
}
.sv-testimonial__name { font-weight: 700; color: var(--text-dark); font-size: 1rem; }
.sv-testimonial__role { font-size: .85rem; color: #888; margin-top: 2px; }

/* ── Badge de nivel (certificaciones) ────────────────────── */
.sv-level {
  display: inline-block;
  padding: 3px 10px; border-radius: 999px;
  font-size: .72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em;
  margin-bottom: .6rem;
}
.sv-level--intro      { background: #e8f5e9; color: #2e7d32; }
.sv-level--intermedio { background: #fff3e0; color: #e65100; }
.sv-level--avanzado   { background: #e3f2fd; color: #1565c0; }
.sv-level--experto    { background: #ede7f6; color: #4527a0; }
.sv-level--tech       { background: #fce4ec; color: #c62828; }

/* Meta del curso (duración, etc.) */
.sv-cert-meta {
  display: flex; gap: 1rem; flex-wrap: wrap;
  justify-content: center; margin: .25rem 0 .75rem;
}
.sv-cert-meta__item {
  font-size: .78rem; color: #999;
  display: flex; align-items: center; gap: 4px;
}

/* ── FAQ con <details> ────────────────────────────────────── */
.sv-faq { margin-bottom: 4rem; }
.sv-faq__item {
  background: white;
  border-radius: var(--radius);
  margin-bottom: .6rem;
  box-shadow: 0 2px 8px rgba(0,0,0,.05);
  overflow: hidden;
  border-left: 3px solid transparent;
  transition: border-color .2s;
}
.sv-faq__item[open] { border-left-color: var(--brand); }
.sv-faq__q {
  padding: 1.2rem 1.5rem;
  cursor: pointer;
  font-weight: 700; font-size: .98rem; color: var(--text-dark);
  list-style: none;
  display: flex; justify-content: space-between; align-items: center;
  user-select: none;
}
.sv-faq__q::-webkit-details-marker { display: none; }
.sv-faq__q::after {
  content: '+';
  font-size: 1.3rem; color: var(--brand);
  flex-shrink: 0; margin-left: 1rem;
  line-height: 1;
}
.sv-faq__item[open] .sv-faq__q::after { content: '\2212'; }
.sv-faq__a {
  padding: 0 1.5rem 1.2rem;
  font-size: .95rem; color: #666; line-height: 1.65; margin: 0;
}

/* ── Responsive servicios ─────────────────────────────────── */
@media (max-width: 992px) {
  .sv-row,
  .sv-row.reverse { flex-direction: column; gap: 2rem; }
  .sv-row__img-wrap { height: 300px; }
  .sv-carousel__slide { min-width: 50%; }
  .sv-steps::before { display: none; }
}

@media (max-width: 600px) {
  .sv-carousel__slide { min-width: 100%; }
  .sv-carousel { padding: 0 40px; }
  .sv-trust { padding: 3rem 1rem; }
  .sv-form-wrap { padding: 2rem 1.5rem; }
  .sv-cta-dark { padding: 3rem 1.5rem; }
  .sv-tagline { padding: 2rem 1.5rem; }
  .sv-row__img-wrap { height: 240px; }
  .sv-stats { grid-template-columns: repeat(2, 1fr); }
  .sv-testimonial { padding: 2rem 1.5rem; }
  .sv-steps { grid-template-columns: 1fr; }
  .sv-topic-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
}

/* ============================================================
   Página de Contacto  (.sv-contact-*)
   ============================================================ */

/* ── Layout 2 columnas ────────────────────────────────────── */
.sv-contact-layout {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 2.5rem;
  margin-bottom: 4rem;
  align-items: start;
}

/* Columna formulario */
.sv-contact-form-col {
  background: white;
  border-radius: var(--radius);
  padding: 2.5rem 3rem;
  box-shadow: 0 8px 32px rgba(0,0,0,.07);
}
.sv-contact-form-col h2 {
  font-size: 1.8rem; font-weight: 900; color: var(--text-dark);
  margin-bottom: .4rem;
}
.sv-contact-form-col > p {
  color: #666; font-size: .98rem; margin-bottom: 2rem;
}

/* Columna canales */
.sv-contact-sidebar {
  display: flex; flex-direction: column; gap: 1rem;
  position: sticky; top: 100px;
}

/* ── WhatsApp — canal principal ───────────────────────────── */
.sv-channel-wsp {
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: white; border-radius: var(--radius);
  padding: 1.6rem 1.5rem;
  text-decoration: none;
  display: flex; align-items: center; gap: 1.2rem;
  box-shadow: 0 8px 24px rgba(37,211,102,.22);
  transition: transform .3s, box-shadow .3s;
}
.sv-channel-wsp:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(37,211,102,.32);
  color: white;
}
.sv-channel-wsp__icon {
  width: 54px; height: 54px; border-radius: 50%;
  background: rgba(255,255,255,.2);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.sv-channel-wsp__eyebrow {
  display: block;
  font-size: .72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em;
  opacity: .8; margin-bottom: 2px;
}
.sv-channel-wsp__value {
  font-size: 1.1rem; font-weight: 800; line-height: 1.2;
}
.sv-channel-wsp__sub {
  font-size: .8rem; opacity: .75; margin-top: 2px; display: block;
}

/* ── Tarjetas de canal (teléfono, email) ──────────────────── */
.sv-channel-card {
  background: white; border-radius: var(--radius);
  padding: 1.2rem 1.5rem;
  box-shadow: 0 4px 16px rgba(0,0,0,.06);
  display: flex; align-items: center; gap: 1rem;
  text-decoration: none; color: inherit;
  border-left: 4px solid #eee;
  transition: all .3s;
}
.sv-channel-card:hover {
  border-left-color: var(--brand);
  transform: translateX(5px);
  box-shadow: 0 8px 24px rgba(0,0,0,.09);
  color: inherit;
}
.sv-channel-card__icon {
  width: 46px; height: 46px; border-radius: 12px;
  background: rgba(0,108,182,.08);
  color: var(--brand);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.sv-channel-card__eyebrow {
  display: block;
  font-size: .7rem; font-weight: 700;
  color: #aaa; text-transform: uppercase; letter-spacing: .07em;
  margin-bottom: 2px;
}
.sv-channel-card__value {
  font-size: .98rem; font-weight: 700; color: var(--text-dark); line-height: 1.3;
}

/* ── Franja de horarios ───────────────────────────────────── */
.sv-hours-strip {
  background: white; border-radius: var(--radius);
  padding: 1.2rem 1.5rem;
  box-shadow: 0 4px 16px rgba(0,0,0,.06);
}
.sv-hours-strip__head {
  font-size: .7rem; font-weight: 700; color: #aaa;
  text-transform: uppercase; letter-spacing: .07em;
  margin-bottom: .75rem;
  display: flex; align-items: center; gap: .4rem;
}
.sv-hours-row {
  display: flex; justify-content: space-between;
  padding: .35rem 0;
  font-size: .88rem;
  border-bottom: 1px solid #f5f5f5;
}
.sv-hours-row:last-child { border-bottom: none; }
.sv-hours-row__day { color: #666; }
.sv-hours-row__time { font-weight: 700; color: var(--text-dark); }

/* ── Mapa de ubicación ────────────────────────────────────── */
.sv-map-section {
  margin-bottom: 4rem;
}
.sv-map-section h2 {
  font-size: 1.8rem; font-weight: 900; color: var(--text-dark);
  margin-bottom: 1.5rem;
  display: flex; align-items: center; gap: .75rem;
}
.sv-map-embed {
  width: 100%; height: 480px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,.1);
  border: 2px solid #e9ecef;
}
.sv-map-embed iframe { width: 100%; height: 100%; border: 0; }

.sv-map-info-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}
.sv-map-info-card {
  background: white; border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  box-shadow: 0 4px 16px rgba(0,0,0,.06);
  border-left: 4px solid var(--brand);
}
.sv-map-info-card h4 {
  font-size: .8rem; font-weight: 700; color: #aaa;
  text-transform: uppercase; letter-spacing: .07em; margin-bottom: .5rem;
}
.sv-map-info-card p { font-size: .93rem; color: #555; line-height: 1.5; margin: 0; }
.sv-map-info-card strong { color: var(--text-dark); }

/* ── Botones de navegación (Maps / Waze) ──────────────────── */
.sv-nav-btns {
  display: flex; gap: .75rem; flex-wrap: wrap;
  margin-top: 1.5rem;
}
.sv-nav-btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: 9px 20px; border-radius: 50px;
  font-size: .88rem; font-weight: 700;
  text-decoration: none; transition: all .25s;
  background: white; border: 1.5px solid currentColor;
}
.sv-nav-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,.1); text-decoration: none; }
.sv-nav-btn--google { color: #4285F4; border-color: #4285F4; }
.sv-nav-btn--google:hover { background: #f0f5ff; }
.sv-nav-btn--waze   { color: #00a8d8; border-color: #00c3ff; }
.sv-nav-btn--waze:hover { background: #f0fbff; }

/* ── Responsive contacto / ubicación ─────────────────────── */
@media (max-width: 960px) {
  .sv-contact-layout { grid-template-columns: 1fr; }
  .sv-contact-layout .sv-contact-sidebar { order: -1; position: static; }
  .sv-contact-sidebar { flex-direction: row; flex-wrap: wrap; }
  .sv-channel-wsp { flex: 1 1 100%; }
  .sv-channel-card { flex: 1 1 calc(50% - .5rem); }
  .sv-hours-strip  { flex: 1 1 100%; }
}
@media (max-width: 600px) {
  .sv-contact-form-col { padding: 2rem 1.5rem; }
  .sv-channel-card { flex: 1 1 100%; }
  .sv-map-embed { height: 320px; }
}
