/*
 * SVB - Portada corporativa compacta
 * Versión integral: base actual + ajustes de pie de página y WhatsApp.
 * Fecha: 2026-10-31
 *
 * Este archivo conserva los estilos y selectores de la portada existente.
 * No modifica HTML, PHP, enlaces, formularios, cursos ni funciones del campus.
 */

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

.svb-corporate-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  width: 100%;
  min-height: clamp(390px, 39vw, 520px);
  margin: 12px 0 20px;
  overflow: hidden;
  border-radius: 22px;
  background: #082f55;
  color: #fff;
  box-shadow: 0 16px 38px rgba(7, 35, 62, .14);
}

.svb-corporate-hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
  display: block;
  width: 100%;
  height: 100%;
}

.svb-corporate-hero__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 44%;
}

.svb-corporate-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    90deg,
    rgba(3, 29, 55, .94),
    rgba(3, 39, 72, .82) 37%,
    rgba(3, 39, 72, .22) 76%,
    rgba(3, 39, 72, .08)
  );
  pointer-events: none;
}

.svb-corporate-hero__copy {
  position: relative;
  z-index: 1;
  width: min(650px, 58%);
  padding: clamp(28px, 4vw, 58px);
}

.svb-corporate-hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 15px;
  color: #d8eaff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .13em;
  line-height: 1.5;
  text-transform: uppercase;
}

.svb-corporate-hero__kicker::before {
  content: "";
  width: 26px;
  height: 3px;
  border-radius: 4px;
  background: #f5a623;
}

.svb-corporate-hero__copy h1 {
  max-width: 650px;
  margin: 0 0 14px;
  color: #fff;
  font-size: clamp(34px, 3.8vw, 56px);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -.035em;
  text-wrap: balance;
}

.svb-corporate-hero__copy h1 span {
  color: #ffbd55;
}

.svb-corporate-hero__copy p {
  max-width: 540px;
  margin: 0 0 20px;
  color: rgba(255, 255, 255, .93);
  font-size: clamp(14px, 1.2vw, 17px);
  line-height: 1.55;
}

.svb-corporate-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.svb-corporate-hero__primary,
.svb-corporate-hero__secondary {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 750;
  text-decoration: none;
  transition: transform .18s ease, background .18s ease;
}

.svb-corporate-hero__primary {
  background: #fff;
  color: #073766;
}

.svb-corporate-hero__secondary {
  border-color: rgba(255, 255, 255, .65);
  background: rgba(4, 35, 66, .18);
  color: #fff;
  backdrop-filter: blur(5px);
}

.svb-corporate-hero__primary:hover,
.svb-corporate-hero__secondary:hover {
  transform: translateY(-2px);
}

.svb-corporate-hero__note {
  display: block;
  margin-top: 17px;
  color: rgba(255, 255, 255, .8);
  font-size: 11px;
  letter-spacing: .035em;
}

/* =========================================================
   ESPACIADO COMPACTO DE LA PORTADA
   ========================================================= */

.svb-about-section,
.svb-legal-info,
.svb-home-gallery,
.svb-catalog-strip,
.svb-student-featured,
.svb-how,
.svb-commercial-block,
.svb-document-lookup,
.main > .section-title,
.main > .categories {
  margin-top: 16px !important;
  margin-bottom: 16px !important;
}

.svb-about-section {
  gap: 16px !important;
  padding: 16px !important;
}

.svb-about-section h2,
.svb-legal-info h2,
.svb-home-gallery h2,
.svb-student-featured h2,
.svb-how h2,
.svb-commercial-block h2 {
  margin-top: 4px !important;
  margin-bottom: 8px !important;
}

.svb-about-section p,
.svb-legal-info p,
.svb-home-gallery p,
.svb-student-featured p,
.svb-how p,
.svb-commercial-block p {
  margin-top: 6px !important;
  margin-bottom: 8px !important;
}

.svb-legal-info {
  padding: 15px 18px !important;
}

.svb-legal-info-body {
  padding-top: 10px !important;
}

.svb-home-gallery {
  padding: 0 !important;
}

.svb-home-section-heading {
  margin-bottom: 10px !important;
}

.svb-gallery-viewport {
  max-height: 150px !important;
}

.svb-gallery-slide img {
  height: 112px !important;
  object-fit: cover !important;
}

.svb-gallery-slide figcaption {
  padding: 5px 7px !important;
  font-size: 10px !important;
}

.svb-gallery-status {
  margin: 5px 0 0 !important;
  font-size: 10px !important;
}

.svb-catalog-strip {
  padding: 14px 16px !important;
  gap: 12px !important;
}

.svb-catalog-strip__number {
  font-size: 26px !important;
}

.svb-featured-grid {
  gap: 12px !important;
}

.svb-featured-card {
  min-height: 0 !important;
}

.svb-featured-cover {
  height: 105px !important;
  min-height: 105px !important;
}

.svb-featured-content {
  padding: 10px 12px !important;
}

.svb-featured-content h3 {
  margin: 5px 0 !important;
  font-size: 13px !important;
  line-height: 1.35 !important;
}

.svb-how {
  padding: 16px !important;
}

.svb-how-grid {
  gap: 10px !important;
  margin: 12px 0 !important;
}

.svb-how-grid li {
  padding: 12px !important;
}

.svb-how-grid li p {
  margin-bottom: 0 !important;
}

.svb-how-cta {
  margin-top: 8px !important;
}

.svb-commercial-block {
  padding: 18px !important;
  gap: 18px !important;
}

.svb-commercial-block h2 {
  font-size: clamp(20px, 2.2vw, 28px) !important;
}

.svb-impact-counter {
  padding: 13px !important;
}

.svb-document-lookup {
  padding: 15px 18px !important;
}

.main > .section-title {
  margin-bottom: 8px !important;
}

.main > .categories {
  gap: 8px !important;
}

.main > .categories .panel {
  padding: 10px 12px !important;
}

/* =========================================================
   PIE INSTITUCIONAL COMPACTO Y SOBRIO
   Conserva los datos y enlaces existentes.
   ========================================================= */

.svb-footer {
  padding: 16px 22px 9px !important;
}

.svb-footer-inner {
  gap: 14px !important;
  padding-bottom: 10px !important;
}

.svb-footer-brand h2 {
  margin: 5px 0 !important;
  font-size: 21px !important;
  line-height: 1.15 !important;
}

.svb-footer-brand p,
.svb-footer-location p {
  margin: 5px 0 !important;
  font-size: 12px !important;
  line-height: 1.4 !important;
}

.svb-footer-contact h3,
.svb-footer-location h3 {
  margin: 0 0 7px !important;
  font-size: 13px !important;
  line-height: 1.2 !important;
}

.svb-footer-contact {
  gap: 5px !important;
}

.svb-footer-contact a {
  min-height: 0 !important;
  margin: 0 !important;
  padding: 6px 9px !important;
  font-size: 12px !important;
}

.svb-footer-catalog {
  margin-top: 7px !important;
  padding: 7px 11px !important;
  font-size: 12px !important;
}

.svb-footer-bottom {
  gap: 8px !important;
  margin-top: 4px !important;
  padding-top: 9px !important;
  font-size: 10px !important;
  line-height: 1.35 !important;
}

.svb-footer-bottom-links {
  gap: 10px !important;
  row-gap: 6px !important;
}

.svb-footer-bottom a {
  font-size: 10px !important;
  opacity: .92 !important;
}

/* =========================================================
   WHATSAPP FLOTANTE CIRCULAR
   ========================================================= */

.svb-whatsapp-float {
  position: fixed !important;
  right: 20px !important;
  bottom: 20px !important;
  z-index: 99999 !important;

  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  width: 58px !important;
  height: 58px !important;
  min-width: 58px !important;
  min-height: 58px !important;
  max-width: 58px !important;

  padding: 0 !important;
  gap: 0 !important;
  overflow: hidden !important;

  border: 0 !important;
  border-radius: 50% !important;
  background: #25d366 !important;
  color: #fff !important;

  box-shadow: 0 5px 18px rgba(0, 0, 0, .22) !important;
  font-size: 0 !important;
  line-height: 0 !important;
  text-decoration: none !important;

  transition: transform .18s ease, box-shadow .18s ease !important;
}

.svb-whatsapp-float:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .25) !important;
}

.svb-whatsapp-float svg,
.svb-whatsapp-float img {
  display: block !important;
  width: 29px !important;
  height: 29px !important;
  min-width: 29px !important;
  min-height: 29px !important;
  flex: 0 0 29px !important;
}

.svb-whatsapp-float i {
  font-size: 28px !important;
  line-height: 1 !important;
}

.svb-whatsapp-float span,
.svb-whatsapp-float strong,
.svb-whatsapp-float small {
  display: none !important;
}

/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 850px) {
  .svb-corporate-hero {
    min-height: 520px;
    margin: 10px 0 16px;
    border-radius: 18px;
    align-items: flex-end;
  }

  .svb-corporate-hero__media img {
    object-position: center 28%;
  }

  .svb-corporate-hero::after {
    background: linear-gradient(
      180deg,
      rgba(3, 29, 55, .02),
      rgba(3, 29, 55, .12) 27%,
      rgba(3, 29, 55, .78) 58%,
      rgba(3, 29, 55, .97)
    );
  }

  .svb-corporate-hero__copy {
    width: 100%;
    padding: 24px 22px 25px;
  }

  .svb-corporate-hero__copy h1 {
    max-width: 560px;
    font-size: clamp(31px, 7vw, 43px);
    line-height: 1.07;
  }

  .svb-corporate-hero__copy p {
    margin-bottom: 15px;
    font-size: 14px;
    line-height: 1.5;
  }

  .svb-corporate-hero__note {
    margin-top: 13px;
  }

  .svb-about-section {
    grid-template-columns: 1fr !important;
  }

  .svb-featured-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .svb-footer {
    padding: 16px 16px 9px !important;
  }

  .svb-footer-inner {
    grid-template-columns: 1fr 1fr !important;
    gap: 12px !important;
  }

  .svb-footer-brand {
    grid-column: 1 / -1 !important;
  }

  .svb-footer-bottom {
    flex-direction: column !important;
    align-items: flex-start !important;
  }
}

/* =========================================================
   MOVIL
   ========================================================= */

@media (max-width: 560px) {
  .svb-corporate-hero {
    min-height: 500px;
  }

  .svb-corporate-hero__copy {
    padding: 21px 18px 22px;
  }

  .svb-corporate-hero__actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .svb-corporate-hero__primary,
  .svb-corporate-hero__secondary {
    width: 100%;
    box-sizing: border-box;
  }

  .svb-featured-grid {
    grid-template-columns: 1fr !important;
  }

  .svb-gallery-slide img {
    height: 105px !important;
  }

  .svb-footer {
    padding: 14px 14px 8px !important;
  }

  .svb-footer-inner {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  .svb-footer-brand {
    grid-column: auto !important;
  }

  .svb-footer-brand h2 {
    font-size: 19px !important;
  }

  .svb-footer-brand p,
  .svb-footer-contact a,
  .svb-footer-location p,
  .svb-footer-catalog {
    font-size: 12px !important;
  }

  .svb-footer-bottom {
    font-size: 10px !important;
  }

  .svb-footer-bottom-links {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 6px 10px !important;
  }

  .svb-whatsapp-float {
    right: 13px !important;
    bottom: 13px !important;
    width: 54px !important;
    height: 54px !important;
    min-width: 54px !important;
    min-height: 54px !important;
    max-width: 54px !important;
  }

  .svb-whatsapp-float svg,
  .svb-whatsapp-float img {
    width: 26px !important;
    height: 26px !important;
    min-width: 26px !important;
    min-height: 26px !important;
    flex-basis: 26px !important;
  }
}

/* =========================================================
   ACCESIBILIDAD: RESPETAR REDUCCION DE MOVIMIENTO
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
  .svb-corporate-hero__primary,
  .svb-corporate-hero__secondary,
  .svb-whatsapp-float {
    transition: none !important;
  }
}
