/* ==========================================================================
   svm.cl - Official Executive Design System (Exact Faithful Preservation)
   ========================================================================== */

/* Typography */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&family=Manrope:wght@200..800&display=swap');

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: #f4f0e8 !important;
  color: #121719 !important;
  font-family: 'DM Sans', Arial, sans-serif !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* --------------------------------------------------------------------------
   Navigation
   -------------------------------------------------------------------------- */
.svm-nav {
  position: fixed;
  z-index: 999;
  top: 0;
  left: 0;
  right: 0;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4.5vw;
  background: rgba(244, 240, 232, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(214, 208, 196, 0.75);
}

.svm-logo-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #14181a;
  color: #a8844d;
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  letter-spacing: 0.02em;
  font-size: 13px;
  text-decoration: none;
}

.svm-lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.svm-lang-btn {
  background: none;
  border: 0;
  padding: 3px;
  font-size: 16px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  text-decoration: none;
}

.svm-navlinks {
  display: flex;
  gap: 30px;
}

.svm-navlinks a {
  font-family: 'DM Sans', sans-serif;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.17em;
  color: #121719;
  opacity: 0.65;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.svm-navlinks a:hover {
  opacity: 1;
}

/* --------------------------------------------------------------------------
   Hero Section
   -------------------------------------------------------------------------- */
.svm-hero-wrapper {
  min-height: calc(100vh - 76px);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  padding: 76px 4.5vw 40px;
  align-items: center;
  background-color: #f4f0e8;
}

.svm-hero-h1 {
  font-family: 'Manrope', sans-serif !important;
  font-size: clamp(48px, 6.8vw, 110px) !important;
  line-height: 0.88 !important;
  letter-spacing: -0.075em !important;
  font-weight: 500 !important;
  color: #121719 !important;
  margin: 0 0 24px 0 !important;
}

.svm-portrait-img {
  max-height: 640px;
  max-width: 90%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

/* --------------------------------------------------------------------------
   Band Bar (Sub-Hero Badges)
   -------------------------------------------------------------------------- */
.svm-band-bar {
  background: #eeeadf;
  padding: 24px 4vw;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  border-top: 1px solid #d6d0c4;
  border-bottom: 1px solid #d6d0c4;
}

.svm-band-span {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #121719;
  font-weight: 600;
  padding: 6px 22px;
  border-right: 1px solid #d6d0c4;
  white-space: nowrap;
}

.svm-band-span:last-child {
  border-right: 0;
}

/* --------------------------------------------------------------------------
   Sections & Headings
   -------------------------------------------------------------------------- */
.svm-section {
  padding: 110px 8vw;
}

.svm-section.dark {
  background-color: #14181a;
  color: #ffffff;
}

.svm-section-head {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 8vw;
  margin-bottom: 70px;
  align-items: flex-end;
}

.svm-section-h2 {
  font-family: 'Manrope', sans-serif;
  font-size: clamp(40px, 5.5vw, 80px);
  line-height: 0.92;
  letter-spacing: -0.07em;
  font-weight: 500;
  margin: 0;
}

.svm-lead-p {
  font-size: 15.5px;
  line-height: 1.75;
  color: #6b6f70;
  margin: 0;
}

.svm-section.dark .svm-lead-p {
  color: #a8adad;
}

/* --------------------------------------------------------------------------
   Logos Grid (7 Experience Logos)
   -------------------------------------------------------------------------- */
.svm-logos-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  border-top: 1px solid #d6d0c4;
  border-bottom: 1px solid #d6d0c4;
  width: 100%;
}

.svm-logo-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 18px;
  border-right: 1px solid #d6d0c4;
  min-height: 120px;
}

.svm-logo-item:last-child {
  border-right: 0;
}

.svm-logo-item img {
  max-width: 115px;
  max-height: 52px;
  width: auto;
  height: auto;
  object-fit: contain;
  margin: 0 auto;
}

/* --------------------------------------------------------------------------
   Words Row (Dark Section 5 Pillars)
   -------------------------------------------------------------------------- */
.svm-words-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid #343a3d;
  border-bottom: 1px solid #343a3d;
}

.svm-word-col {
  padding: 38px 18px;
  border-right: 1px solid #343a3d;
  font-family: 'Manrope', sans-serif;
  font-size: clamp(22px, 2.6vw, 42px);
  letter-spacing: -0.055em;
  color: #ffffff;
  font-weight: 500;
}

.svm-word-col:last-child {
  border-right: 0;
}

.svm-word-col small {
  display: block;
  font-family: 'DM Sans', sans-serif;
  font-size: 9px;
  letter-spacing: 0.18em;
  color: #a8844d;
  margin-bottom: 22px;
}

/* --------------------------------------------------------------------------
   Cards Grid (8 Ámbitos de Gestión)
   -------------------------------------------------------------------------- */
.svm-cards-8 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid #d6d0c4;
}

.svm-card-result {
  padding: 38px 24px;
  border-right: 1px solid #d6d0c4;
  border-bottom: 1px solid #d6d0c4;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

.svm-card-result:nth-child(4n) {
  border-right: 0;
}

.svm-card-result strong {
  font-family: 'Manrope', sans-serif;
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: #121719;
}

.svm-card-result p {
  margin: 0;
  color: #6b6f70;
  font-size: 13.5px;
  line-height: 1.55;
}

/* --------------------------------------------------------------------------
   Perspectives Section
   -------------------------------------------------------------------------- */
.svm-persp-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
}

.svm-persp-feat {
  min-height: 420px;
  background: #dfd9cd;
  padding: 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.svm-persp-feat:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.svm-persp-side {
  display: flex;
  flex-direction: column;
}

.svm-persp-item {
  border-top: 1px solid #343a3d;
  padding: 24px 0;
  text-decoration: none;
  display: block;
}

.svm-persp-item:hover {
  opacity: 0.85;
}

/* --------------------------------------------------------------------------
   Academia & Mentoring
   -------------------------------------------------------------------------- */
.svm-acad-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid #d6d0c4;
  border-bottom: 1px solid #d6d0c4;
}

.svm-acad-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 34px 20px;
  border-right: 1px solid #d6d0c4;
  text-decoration: none;
  color: inherit;
}

.svm-acad-block:last-child {
  border-right: 0;
}

.svm-acad-block img {
  max-width: 130px;
  max-height: 52px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.svm-mentor-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid #d6d0c4;
  border-bottom: 1px solid #d6d0c4;
}

.svm-mentor-block {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px 18px;
  border-right: 1px solid #d6d0c4;
  text-decoration: none;
}

.svm-mentor-block:last-child {
  border-right: 0;
}

.svm-mentor-block img {
  max-width: 115px;
  max-height: 48px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(1) brightness(0.72);
}

/* --------------------------------------------------------------------------
   Contact Section
   -------------------------------------------------------------------------- */
.svm-contact-wrap {
  background-color: #a8844d !important;
  color: #ffffff !important;
  padding: 120px 8vw;
}

.svm-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
}

.svm-form-grid input::placeholder,
.svm-form-grid textarea::placeholder {
  color: rgba(255, 255, 255, 0.85) !important;
  opacity: 1 !important;
}

.svm-form-grid select option {
  color: #121719 !important;
  background: #ffffff !important;
}

.svm-form-feedback {
  grid-column: 1 / -1;
  padding: 14px 18px;
  border-radius: 4px;
  font-size: 13.5px;
  line-height: 1.5;
  display: none;
}

.svm-form-feedback.success {
  display: block;
  background: rgba(20, 24, 26, 0.85);
  color: #ffffff;
  border-left: 4px solid #10b981;
}

.svm-form-feedback.error {
  display: block;
  background: rgba(20, 24, 26, 0.85);
  color: #ffffff;
  border-left: 4px solid #ef4444;
}

/* --------------------------------------------------------------------------
   Responsive Layout (Mobile & Tablet)
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .svm-navlinks { display: none; }
  .svm-hero-wrapper { grid-template-columns: 1fr; padding-top: 90px; }
  .svm-section { padding: 70px 6vw; }
  .svm-section-head { grid-template-columns: 1fr; gap: 30px; margin-bottom: 40px; }
  .svm-logos-grid { grid-template-columns: repeat(2, 1fr); }
  .svm-logo-item:nth-child(2n) { border-right: 0; }
  .svm-words-row { grid-template-columns: 1fr 1fr; }
  .svm-cards-8 { grid-template-columns: 1fr 1fr; }
  .svm-card-result:nth-child(2n) { border-right: 0; }
  .svm-persp-layout { grid-template-columns: 1fr; gap: 30px; }
  .svm-acad-row { grid-template-columns: 1fr; }
  .svm-acad-block { border-right: 0; border-bottom: 1px solid #d6d0c4; }
  .svm-acad-block:last-child { border-bottom: 0; }
  .svm-mentor-row { grid-template-columns: 1fr 1fr; }
  .svm-mentor-block:nth-child(2n) { border-right: 0; }
  .svm-contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .svm-band-span { padding: 4px 14px; }
}

/* --------------------------------------------------------------------------
   Print Styles (PDF Export Protection)
   -------------------------------------------------------------------------- */
@media print {
  body {
    background-color: #f4f0e8 !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
  .svm-nav {
    position: static !important;
  }
  .svm-hero-wrapper {
    min-height: auto !important;
    padding-top: 20px !important;
    page-break-after: avoid;
  }
  .svm-portrait-img {
    max-height: 400px !important;
  }
  .svm-logos-grid {
    display: grid !important;
    grid-template-columns: repeat(7, 1fr) !important;
  }
  .svm-logo-item img {
    max-width: 90px !important;
    max-height: 40px !important;
  }
  .svm-section {
    padding: 40px 4vw !important;
  }
  .svm-contact-wrap {
    background-color: #a8844d !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
}
