:root {
  --bg: #f8f5f1;
  --bg-soft: #f3eee8;
  --bg-warm: #f1ebe4;
  --surface: rgba(255, 255, 255, 0.82);
  --surface-solid: #fffaf6;
  --surface-soft: #f3eee8;
  --text: #2f2a26;
  --muted: #7b746d;
  --line: rgba(116, 101, 88, 0.14);
  --accent: #7a6a5c;
  --accent-dark: #5f5146;
  --dark: #1f1a17;
  --cta-accent: #8a7869;
  --shadow-xs: 0 6px 18px rgba(56, 40, 28, 0.04);
  --shadow-sm: 0 12px 30px rgba(56, 40, 28, 0.06);
  --shadow-md: 0 18px 50px rgba(56, 40, 28, 0.08);
  --radius-lg: 24px;
  --radius-md: 18px;
  --header-height: 82px;
  --hero-container-max: 1240px;
  --container-pad: 2rem;
}

/* Base */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

p {
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: "Cormorant Garamond", "Georgia", serif;
  color: var(--text);
  letter-spacing: -0.02em;
  font-weight: 600;
}

h1 {
  margin-bottom: 24px;
  font-size: clamp(3rem, 6vw, 5.4rem);
  line-height: 0.98;
}

h2 {
  margin-bottom: 20px;
  font-size: clamp(2.3rem, 4vw, 3.5rem);
  line-height: 1.02;
}

h3 {
  margin-bottom: 12px;
  font-size: 1.8rem;
  line-height: 1.08;
}

/* Sections */
.section-padding {
  position: relative;
  padding: 110px 0;
}

.section-hero {
  background:
    radial-gradient(circle at top left, rgba(216, 200, 184, 0.16), transparent 30%),
    radial-gradient(circle at bottom right, rgba(203, 191, 179, 0.12), transparent 28%),
    var(--bg);
}

.section-plain {
  background: rgba(248, 245, 241, 0.74);
}

.section-surface {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.66), rgba(243, 238, 232, 0.9));
  border-top: 1px solid rgba(116, 101, 88, 0.08);
  border-bottom: 1px solid rgba(116, 101, 88, 0.1);
}

.section-soft {
  background:
    radial-gradient(circle at top right, rgba(216, 200, 184, 0.16), transparent 30%),
    linear-gradient(180deg, var(--bg-warm) 0%, var(--bg) 100%);
  border-top: 1px solid rgba(116, 101, 88, 0.08);
  border-bottom: 1px solid rgba(116, 101, 88, 0.08);
}

.section-contact {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(243, 238, 232, 0.82));
  border-top: 1px solid rgba(116, 101, 88, 0.08);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 52px;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 16px;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

/* Header */
.site-header {
  background: rgba(248, 245, 241, 0.72);
  border-bottom: 1px solid rgba(116, 101, 88, 0.08);
  backdrop-filter: blur(18px);
}

.navbar {
  min-height: var(--header-height);
  padding: 0.9rem 0;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.brand small {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.73rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.brand strong {
  color: var(--text);
  font-family: "Cormorant Garamond", "Georgia", serif;
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1;
}

.nav-links {
  gap: 0.45rem;
}

.nav-links .nav-link {
  position: relative;
  padding: 0.7rem 1rem !important;
  border-radius: 999px;
  color: #6f685f;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.25s ease;
}

.nav-links .nav-link::after {
  content: "";
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 0.45rem;
  height: 2px;
  border-radius: 999px;
  background: var(--cta-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s ease;
}

.nav-links .nav-link:hover,
.nav-links .nav-link:focus {
  color: var(--accent-dark);
  background: transparent;
}

.nav-links .nav-link:hover::after,
.nav-links .nav-link:focus::after {
  transform: scaleX(1);
}

.custom-toggler {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow-xs);
}

.custom-toggler:focus {
  box-shadow: 0 0 0 4px rgba(216, 200, 184, 0.28);
}

.custom-toggler i {
  color: var(--accent-dark);
  font-size: 1rem;
}

/* Shared cards */
.custom-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(10px);
}

.feature-card,
.timeline-item,
.contact-card,
.diploma-card {
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.feature-card:hover,
.timeline-item:hover,
.contact-card:hover,
.diploma-card:hover {
  transform: translateY(-4px);
  border-color: rgba(122, 106, 92, 0.18);
  box-shadow: var(--shadow-md);
}

/* Buttons */
.custom-btn,
.cta-btn,
.diploma-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 600;
  transition:
    transform 0.22s ease,
    background 0.22s ease,
    color 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease;
}

.custom-btn {
  padding: 15px 24px;
  border: 1px solid transparent;
  font-size: 0.96rem;
  letter-spacing: 0.01em;
}

.custom-btn:hover,
.cta-btn:hover,
.diploma-link:hover {
  transform: translateY(-1px);
}

.btn-primary-custom {
  color: #fff;
  background: linear-gradient(180deg, #8a7869 0%, #736255 100%);
  box-shadow: 0 10px 24px rgba(122, 106, 92, 0.18);
}

.btn-primary-custom:hover {
  color: #fff;
  background: linear-gradient(180deg, #7f6e60 0%, #66564b 100%);
  box-shadow: 0 14px 28px rgba(122, 106, 92, 0.22);
}

.btn-secondary-custom {
  color: var(--accent-dark);
  background: rgba(255, 255, 255, 0.5);
  border-color: rgba(116, 101, 88, 0.12);
}

.btn-secondary-custom:hover {
  color: var(--accent-dark);
  background: rgba(255, 255, 255, 0.86);
  border-color: rgba(116, 101, 88, 0.18);
}

/* Hero */
.hero-section {
  position: relative;
  overflow: hidden;
}

.hero-section .container {
  max-width: var(--hero-container-max);
  padding-left: var(--container-pad);
  padding-right: var(--container-pad);
}

.hero-full,
.hero-text {
  min-height: auto;
}

.hero-row {
  align-items: center;
  padding: 32px 0 40px;
}

.hero-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-description {
  max-width: 700px;
  font-size: 1.08rem;
  line-height: 1.9;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 38px 0 42px;
}

/* Stats showcase */
.stats-showcase {
  display: grid;
  gap: 14px;
  margin-top: 30px;
}

.stats-top-row {
  display: grid;
  grid-template-columns: 0.9fr 1.25fr;
  gap: 14px;
}

.stats-showcase .stat-card {
  min-height: auto;
  padding: 20px;
}

.stat-card-featured {
  background:
    linear-gradient(180deg, rgba(255, 250, 246, 0.9), rgba(243, 238, 232, 0.86));
}

.stat-card-wide {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: center;
}

.stat-card strong {
  display: block;
  margin-bottom: 10px;
  color: var(--text);
  font-family: "Cormorant Garamond", "Georgia", serif;
  font-size: 2.15rem;
  line-height: 0.95;
}

.stat-card-wide strong {
  min-width: 86px;
  margin-bottom: 0;
  font-size: 2.5rem;
}

.stat-card span {
  display: block;
  margin-bottom: 8px;
  color: var(--text);
  font-weight: 600;
  line-height: 1.35;
}

.stat-card p {
  font-size: 0.9rem;
  line-height: 1.55;
}

.stat-card-featured p {
  max-width: 42ch;
}

.hero-image-col {
  display: flex;
  align-items: center;
}

.hero-image-wrap,
.profile-photo-block {
  position: relative;
  width: 100%;
  overflow: hidden;
  border: 1px solid rgba(116, 101, 88, 0.1);
  background: rgba(255, 255, 255, 0.55);
  box-shadow: var(--shadow-sm);
}

.hero-image-wrap {
  max-width: 520px;
  margin-left: auto;
  border-radius: 34px;
  aspect-ratio: 4 / 5;
  max-height: 620px;
}

.hero-image,
.profile-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-image {
  object-position: center top;
}

/* Perfil */
#perfil .row {
  --bs-gutter-x: 4rem;
}

.profile-photo-block {
  max-width: 460px;
  margin-right: auto;
  border-radius: 32px;
  aspect-ratio: 1 / 1;
}

.profile-photo {
  object-position: center top;
}

#perfil .reveal p + p {
  margin-top: 18px;
}

/* Timeline */
.timeline-list {
  display: grid;
  gap: 20px;
}

.timeline-item {
  padding: 28px;
}

.timeline-row {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 24px;
  align-items: start;
}

.timeline-year-wrap {
  display: flex;
}

.timeline-year,
.diploma-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(116, 101, 88, 0.08);
  border-radius: 999px;
  color: var(--accent-dark);
  font-weight: 600;
  background: linear-gradient(180deg, #f5eee7 0%, #eee4d8 100%);
}

.timeline-year {
  padding: 11px 16px;
  font-size: 0.92rem;
  text-align: center;
}

/* Credenciales */
.diploma-heading {
  margin-bottom: 40px;
}

.diploma-grid {
  margin-bottom: 28px;
}

.diploma-card {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 26px 24px;
}

.diploma-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.diploma-card h3 {
  margin-bottom: 0;
  font-size: 1.45rem;
  line-height: 1.12;
}

.diploma-card p {
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.65;
}

.diploma-tag {
  width: fit-content;
  margin-bottom: 6px;
  padding: 7px 12px;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.diploma-link {
  align-self: flex-start;
  margin-top: 22px;
  padding: 12px 18px;
  border: 1px solid rgba(116, 101, 88, 0.12);
  color: var(--accent-dark);
  background: rgba(255, 255, 255, 0.72);
  font-size: 0.93rem;
}

.diploma-link:hover {
  border-color: rgba(116, 101, 88, 0.18);
  background: rgba(255, 255, 255, 0.95);
}

/* Áreas */
.feature-card {
  padding: 32px 28px;
}

.feature-icon,
.contact-symbol {
  display: grid;
  place-items: center;
  color: var(--accent-dark);
  background: linear-gradient(180deg, #f4ece4 0%, #ece1d5 100%);
}

.feature-icon {
  width: 62px;
  height: 62px;
  margin-bottom: 22px;
  border-radius: 18px;
  font-size: 1.35rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

/* CTA */
.cta-section {
  color: #fff;
  background:
    radial-gradient(circle at top left, rgba(216, 200, 184, 0.12), transparent 26%),
    linear-gradient(180deg, #2d2622 0%, #201b18 100%);
}

.cta-section .eyebrow,
.cta-section p {
  color: rgba(255, 248, 242, 0.72);
}

.cta-section h2 {
  color: #fffaf6;
}

.cta-wrap {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: center;
  padding: 42px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: none;
}

.cta-btn {
  padding: 15px 26px;
  color: #2b241f;
  background: #f7f1ea;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.cta-btn:hover {
  color: #2b241f;
  background: #fff;
}

/* Contacto */
.contact-layout {
  --bs-gutter-x: 2rem;
}

.contact-intro {
  max-width: 360px;
  padding-top: 10px;
}

.contact-intro h2 {
  margin-bottom: 12px;
}

.contact-intro p {
  max-width: 320px;
}

.contact-card {
  padding: 32px;
}

.mock-form,
.contact-info-block {
  border: 1px solid rgba(116, 101, 88, 0.08);
}

.mock-form {
  padding: 24px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(243, 238, 232, 0.9), rgba(248, 244, 240, 0.95));
}

.form-field {
  width: 100%;
  margin-top: 12px;
  padding: 15px 16px;
  border: 1px solid rgba(116, 101, 88, 0.12);
  border-radius: 16px;
  outline: none;
  color: var(--text);
  background: rgba(255, 255, 255, 0.9);
  font: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.form-field::placeholder {
  color: #9a9086;
}

.form-field:focus {
  border-color: rgba(122, 106, 92, 0.32);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(216, 200, 184, 0.2);
}

textarea.form-field {
  min-height: 120px;
  resize: vertical;
}

.form-message {
  min-height: 24px;
  margin-top: 14px;
  font-size: 0.95rem;
}

.contact-info-block {
  padding: 22px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(248, 244, 240, 0.82));
}

.contact-item {
  min-height: 100%;
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.contact-symbol {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 14px;
}

.contact-item strong {
  display: block;
  margin-bottom: 4px;
  color: var(--text);
  font-size: 0.98rem;
}

.contact-item p {
  font-size: 0.95rem;
  line-height: 1.55;
}

.contact-link {
  color: inherit;
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: color 0.22s ease;
}

.contact-link:hover,
.contact-link:focus {
  color: var(--accent-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Footer */
.site-footer {
  margin-top: 0;
  padding: 0;
  color: rgba(255, 248, 242, 0.82);
  background:
    radial-gradient(circle at top left, rgba(216, 200, 184, 0.1), transparent 24%),
    linear-gradient(180deg, #2b2521 0%, #211c18 100%);
}

.footer-main {
  display: grid;
  grid-template-columns: 1.25fr 0.85fr 1fr;
  gap: 34px;
  padding: 64px 0 34px;
}

.footer-brand-block {
  max-width: 360px;
}

.footer-brand {
  display: inline-flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
}

.footer-brand small {
  color: rgba(255, 248, 242, 0.56);
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.footer-brand strong {
  color: #fffaf6;
  font-family: "Cormorant Garamond", "Georgia", serif;
  font-size: 2rem;
  font-weight: 600;
  line-height: 1;
}

.footer-description {
  color: rgba(255, 248, 242, 0.66);
  font-size: 0.96rem;
  line-height: 1.75;
}

.footer-column {
  min-width: 0;
}

.footer-title {
  display: inline-block;
  margin-bottom: 18px;
  color: rgba(255, 248, 242, 0.54);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.footer-links,
.footer-contact-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links li + li,
.footer-contact-list li + li {
  margin-top: 12px;
}

.footer-links a {
  position: relative;
  display: inline-block;
  color: rgba(255, 248, 242, 0.82);
  transition: color 0.22s ease;
}

.footer-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: var(--cta-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s ease;
}

.footer-links a:hover {
  color: #fff;
}

.footer-links a:hover::after {
  transform: scaleX(1);
}

.footer-contact-list li {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  align-items: start;
  column-gap: 12px;
  color: rgba(255, 248, 242, 0.74);
  line-height: 1.6;
}

.footer-contact-list i {
  width: 16px;
  margin-top: 5px;
  color: rgba(255, 248, 242, 0.5);
}

.footer-contact-text {
  min-width: 0;
  display: block;
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.65;
}

.footer-contact-text a {
  color: inherit;
  text-decoration: none;
  transition: color 0.22s ease;
}

.footer-contact-text a:hover,
.footer-contact-text a:focus {
  color: #fffaf6;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 0 28px;
  border-top: 1px solid rgba(255, 248, 242, 0.08);
  color: rgba(255, 248, 242, 0.52);
  font-size: 0.88rem;
}

.footer-credit {
  color: rgba(255, 248, 242, 0.42);
}

.footer-credit a {
  color: rgba(255, 248, 242, 0.58);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.22s ease;
}

.footer-credit a:hover {
  color: #fffaf6;
}

/* Animation */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Desktop amplio */
@media (min-width: 1400px) {
  .hero-full {
    min-height: calc(100svh - var(--header-height));
    display: flex;
    align-items: center;
  }

  .hero-row {
    width: 100%;
    padding: 18px 0 20px;
  }

  h1 {
    margin-bottom: 16px;
    font-size: clamp(2.9rem, 4.3vw, 4.6rem);
  }

  .hero-description {
    max-width: 560px;
    font-size: 1rem;
    line-height: 1.75;
  }

  .actions {
    gap: 12px;
    margin: 22px 0;
  }

  .stats-showcase {
    gap: 12px;
    margin-top: 22px;
  }

  .stats-top-row {
    gap: 12px;
  }

  .stats-showcase .stat-card {
    padding: 18px;
  }

  .stat-card strong {
    font-size: 2rem;
  }

  .stat-card-wide strong {
    font-size: 2.35rem;
  }

  .hero-image-wrap {
    aspect-ratio: 4 / 5;
    max-height: 620px;
  }
}

/* <= 1399 */
@media (max-width: 1399.98px) {
  :root {
    --container-pad: 2.25rem;
  }

  .section-padding {
    padding: 92px 0;
  }

  .hero-row {
    padding: 18px 0 20px;
  }

  h1 {
    margin-bottom: 16px;
    font-size: clamp(2.5rem, 4.2vw, 4rem);
  }

  h2 {
    margin-bottom: 16px;
    font-size: clamp(2.1rem, 3.4vw, 3rem);
    line-height: 1.04;
  }

  h3 {
    font-size: 1.6rem;
  }

  p {
    font-size: 0.98rem;
  }

  .hero-description {
    max-width: 560px;
    font-size: 1rem;
    line-height: 1.75;
  }

  .actions {
    gap: 12px;
    margin: 22px 0;
  }

  .stats-showcase {
    gap: 12px;
    margin-top: 22px;
  }

  .stats-top-row {
    gap: 12px;
  }

  .stats-showcase .stat-card {
    padding: 18px;
  }

  .stat-card strong {
    font-size: 2rem;
  }

  .stat-card-wide strong {
    font-size: 2.35rem;
  }

  #perfil .row {
    --bs-gutter-x: 3rem;
  }

  .profile-photo-block {
    max-width: 420px;
  }

  .feature-card {
    padding: 28px 24px;
  }

  .feature-icon {
    width: 56px;
    height: 56px;
    margin-bottom: 18px;
    font-size: 1.2rem;
  }

  .timeline-item,
  .diploma-card {
    padding: 24px;
  }

  .timeline-row {
    grid-template-columns: 145px 1fr;
    gap: 20px;
  }

  .timeline-year {
    padding: 10px 14px;
    font-size: 0.88rem;
  }

  .contact-layout {
    --bs-gutter-x: 1.75rem;
  }

  .contact-intro {
    max-width: 340px;
  }

  .contact-card {
    padding: 28px;
  }

  .mock-form,
  .contact-info-block {
    padding: 20px;
  }

  .cta-wrap {
    padding: 34px;
  }

  .footer-main {
    grid-template-columns: 1.1fr 0.9fr 1fr;
    gap: 28px;
    padding: 56px 0 30px;
  }
}

/* <= 1199 */
@media (max-width: 1199.98px) {
  :root {
    --container-pad: 1.75rem;
  }

  .section-padding {
    padding: 78px 0;
  }

  .hero-row {
    padding: 14px 0;
  }

  h1 {
    margin-bottom: 14px;
    font-size: clamp(2.25rem, 3.8vw, 3.45rem);
    line-height: 1;
  }

  h2 {
    font-size: clamp(1.9rem, 2.6vw, 2.45rem);
  }

  .hero-description {
    max-width: 520px;
    font-size: 0.96rem;
    line-height: 1.7;
  }

  .actions {
    gap: 10px;
    margin: 18px 0;
  }

  .custom-btn,
  .cta-btn {
    padding: 12px 18px;
    font-size: 0.92rem;
  }

  .stats-showcase {
    gap: 12px;
    margin-top: 20px;
  }

  .stats-top-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .stats-showcase .stat-card {
    padding: 16px 14px;
  }

  .stat-card-wide {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .stat-card strong,
  .stat-card-wide strong {
    min-width: 0;
    margin-bottom: 4px;
    font-size: 1.7rem;
  }

  .stat-card span {
    font-size: 0.92rem;
  }

  .stat-card p {
    font-size: 0.86rem;
  }

  .feature-card,
  .timeline-item,
  .contact-card,
  .diploma-card {
    padding: 20px;
  }

  .cta-wrap {
    padding: 26px;
  }

  .contact-intro {
    max-width: 100%;
    padding-top: 0;
  }

  .contact-intro p {
    max-width: 100%;
  }

  .contact-info-grid {
    gap: 16px;
  }

  .footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 28px 32px;
  }

  .footer-brand-block {
    max-width: 100%;
  }

  .footer-contact-text {
    font-size: 0.95rem;
  }
}

/* <= 991 */
@media (max-width: 991.98px) {
  :root {
    --container-pad: 1.25rem;
  }

  body {
    line-height: 1.68;
  }

  .navbar-collapse {
    margin-top: 14px;
    padding: 16px;
    border: 1px solid rgba(116, 101, 88, 0.1);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow-sm);
  }

  .section-padding {
    padding: 72px 0;
  }

  .hero-row {
    min-height: auto !important;
    padding: 28px 0 56px;
  }

  h1 {
    margin-bottom: 18px;
    font-size: clamp(2.4rem, 7vw, 3.6rem);
    line-height: 1.02;
  }

  h2 {
    margin-bottom: 14px;
    font-size: clamp(1.95rem, 5vw, 2.7rem);
    line-height: 1.08;
  }

  h3 {
    margin-bottom: 10px;
    font-size: 1.45rem;
  }

  p,
  .hero-description {
    font-size: 0.98rem;
  }

  .hero-description {
    max-width: 100%;
    line-height: 1.75;
  }

  .actions {
    gap: 10px;
    margin: 26px 0 30px;
  }

  .custom-btn,
  .cta-btn {
    padding: 13px 20px;
    font-size: 0.93rem;
  }

  .stats-showcase {
    gap: 14px;
    margin-top: 28px;
  }

  .stats-top-row {
    gap: 14px;
  }

  .stats-showcase .stat-card {
    padding: 22px;
  }

  .stat-card strong,
  .stat-card-wide strong {
    font-size: 1.95rem;
  }

  .stat-card span {
    font-size: 0.98rem;
  }

  .stat-card p {
    font-size: 0.92rem;
  }

  .feature-card,
  .timeline-item,
  .contact-card,
  .diploma-card {
    padding: 22px;
  }

  .hero-image-col {
    display: block;
  }

  .hero-image-wrap {
    aspect-ratio: 16 / 10;
    max-width: 100%;
    max-height: none;
    margin-left: 0;
  }

  #perfil .row {
    --bs-gutter-x: 2rem;
  }

  .profile-photo-block {
    max-width: 100%;
    margin-right: 0;
  }

  .feature-icon {
    width: 54px;
    height: 54px;
    margin-bottom: 16px;
    font-size: 1.15rem;
  }

  .timeline-list {
    gap: 14px;
  }

  .timeline-year {
    padding: 9px 13px;
    font-size: 0.84rem;
  }

  .cta-wrap {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 28px 22px;
    border-radius: 24px;
  }

  .cta-action,
  .cta-action .cta-btn {
    width: 100%;
  }

  .contact-layout {
    --bs-gutter-x: 1.5rem;
  }

  .mock-form,
  .contact-info-block {
    padding: 20px;
    border-radius: 18px;
  }

  .contact-info-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .contact-item {
    gap: 12px;
  }

  .form-field {
    padding: 13px 14px;
    border-radius: 14px;
    font-size: 0.96rem;
  }

  textarea.form-field {
    min-height: 110px;
  }

  .contact-symbol {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    font-size: 0.95rem;
  }

  .section-heading {
    margin-bottom: 32px;
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 26px;
    padding: 44px 0 26px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    padding: 18px 0 24px;
  }
}

/* <= 767 */
@media (max-width: 767.98px) {
  .actions {
    flex-direction: column;
  }

  .actions .custom-btn,
  .diploma-link {
    width: 100%;
  }

  .timeline-row {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .diploma-card h3 {
    font-size: 1.35rem;
  }
}

/* <= 575 */
@media (max-width: 575.98px) {
  :root {
    --container-pad: 1.1rem;
  }

  .container {
    padding-left: 1.1rem;
    padding-right: 1.1rem;
  }

  .navbar {
    min-height: 72px;
    padding: 0.65rem 0;
  }

  .brand strong {
    font-size: 1.05rem;
  }

  .brand small {
    font-size: 0.64rem;
    letter-spacing: 0.16em;
  }

  .custom-toggler {
    width: 42px;
    height: 42px;
    border-radius: 12px;
  }

  .section-padding {
    padding: 58px 0;
  }

  .hero-row {
    padding: 18px 0 44px;
  }

  h1 {
    font-size: clamp(2.05rem, 9vw, 2.8rem);
    line-height: 1.04;
  }

  h2 {
    font-size: clamp(1.7rem, 7vw, 2.2rem);
    line-height: 1.1;
  }

  h3 {
    font-size: 1.28rem;
  }

  p {
    font-size: 0.95rem;
    line-height: 1.7;
  }

  .eyebrow {
    margin-bottom: 10px;
    font-size: 0.68rem;
    letter-spacing: 0.2em;
  }

  .actions {
    margin: 22px 0 24px;
  }

  .custom-btn,
  .cta-btn {
    width: 100%;
    padding: 12px 18px;
    font-size: 0.92rem;
  }

  .stats-showcase {
    gap: 10px;
    margin-top: 24px;
  }

  .stats-top-row {
    gap: 10px;
  }

  .stats-showcase .stat-card {
    padding: 16px;
    border-radius: 18px;
  }

  .stat-card strong,
  .stat-card-wide strong {
    font-size: 1.7rem;
  }

  .stat-card span {
    margin-bottom: 6px;
    font-size: 0.92rem;
  }

  .stat-card p {
    font-size: 0.86rem;
    line-height: 1.55;
  }

  .hero-image-wrap,
  .profile-photo-block {
    border-radius: 22px;
  }

  .feature-card,
  .timeline-item,
  .contact-card,
  .diploma-card {
    padding: 18px;
    border-radius: 18px;
  }

  .feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    font-size: 1rem;
  }

  .timeline-year {
    padding: 8px 12px;
    font-size: 0.8rem;
  }

  .diploma-card h3 {
    font-size: 1.25rem;
  }

  .cta-wrap {
    padding: 22px 18px;
    border-radius: 20px;
  }

  .contact-intro h2 {
    margin-bottom: 10px;
  }

  .mock-form,
  .contact-info-block {
    padding: 16px;
    border-radius: 16px;
  }

  .contact-info-grid {
    gap: 14px;
  }

  .form-field {
    margin-top: 10px;
    padding: 12px 13px;
    font-size: 0.94rem;
  }

  textarea.form-field {
    min-height: 96px;
  }

  .footer-brand strong {
    font-size: 1.7rem;
  }

  .footer-description,
  .footer-contact-list li,
  .footer-links a,
  .footer-contact-text {
    font-size: 0.92rem;
  }

  .footer-contact-text {
    line-height: 1.7;
  }
}

/* Hidden fields */
.hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

/* Language switch */
.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.lang-btn {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 0.25rem 0.1rem;
  font: inherit;
  cursor: pointer;
  transition: color 0.25s ease;
}

.lang-btn:hover,
.lang-btn.active {
  color: var(--accent-dark);
}