/* ============================================
   BUFFI PAGANO Y ASOCIADOS — Estilos
   Paleta: negro + dorado
   Tipografía: Instrument Serif + Manrope
   ============================================ */

:root {
  /* Paleta */
  --black:        #0A0908;
  --black-soft:   #121110;
  --black-card:   #161514;
  --gold:         #C9A961;
  --gold-bright:  #DCBF82;
  --gold-deep:    #8A7344;
  --text:         #EFE9DD;
  --text-muted:   #8F8A7E;
  --text-dim:     #5F5C55;
  --border:       rgba(201, 169, 97, 0.12);
  --border-strong:rgba(201, 169, 97, 0.30);

  /* Tipografía */
  --font-serif: 'Instrument Serif', serif;
  --font-sans:  'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Layout */
  --container: 1200px;
  --nav-height: 76px;
  --radius: 4px;
  --radius-lg: 8px;

  /* Transiciones */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* Reset ====================================== */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--black);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { background: none; border: none; color: inherit; font: inherit; cursor: pointer; }
ul { list-style: none; }

::selection { background: var(--gold); color: var(--black); }

/* Scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--black); }
::-webkit-scrollbar-thumb { background: var(--gold-deep); border-radius: 10px; border: 2px solid var(--black); }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

/* Layout ===================================== */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}

.section {
  padding: clamp(5rem, 10vw, 8rem) 0;
  position: relative;
}

/* Tipografía ================================= */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--text);
}

em {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--gold);
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
  position: relative;
  padding-left: 28px;
}

.eyebrow::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 20px;
  height: 1px;
  background: var(--gold);
}

.section-head { max-width: 640px; margin-bottom: 4rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.section-head.center .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding-left: 0;
  padding-right: 0;
}

.section-head.center .eyebrow::before {
  position: static;
  left: auto;
  top: auto;
  width: 20px;
  height: 1px;
  transform: none;
}

.section-head.center .eyebrow::after {
  content: '';
  display: block;
  width: 20px;
  height: 1px;
  background: var(--gold);
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.05;
  margin-bottom: 1rem;
}

.section-desc {
  color: var(--text-muted);
  font-size: 1.0625rem;
  line-height: 1.7;
  max-width: 58ch;
}

.section-head.center .section-desc { margin-left: auto; margin-right: auto; }

/* Buttons ==================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.95rem 1.6rem;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  border-radius: var(--radius);
  transition: all 0.25s var(--ease);
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gold);
  color: var(--black);
  border: 1px solid var(--gold);
}

.btn-primary:hover {
  background: var(--gold-bright);
  border-color: var(--gold-bright);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-strong);
}

.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* Navbar ===================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 100;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), backdrop-filter 0.3s var(--ease);
  border-bottom: 1px solid transparent;
}

.navbar.scrolled {
  background: rgba(10, 9, 8, 0.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--border);
}

.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--text);
}

.logo-mark {
  width: 36px;
  height: 36px;
  background: var(--gold);
  color: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.02em;
  border-radius: var(--radius);
  transition: background 0.25s var(--ease);
}

.logo:hover .logo-mark { background: var(--gold-bright); }

.logo-text em {
  font-style: italic;
  color: var(--gold);
  margin: 0 0.1em;
}

.nav-links {
  display: flex;
  gap: 2.25rem;
  margin: 0 auto;
}

.nav-links a {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 400;
  color: var(--text-muted);
  position: relative;
  padding: 0.5rem 0;
  transition: color 0.25s var(--ease);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.3s var(--ease);
}

.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }

.nav-cta { padding: 0.6rem 1.2rem; font-size: 13px; }

.lang-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 32px;
  padding: 0 0.6rem;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease), background 0.25s var(--ease);
  margin-left: 0.25rem;
}

.lang-switch:hover {
  color: var(--gold);
  border-color: var(--gold);
  background: rgba(201, 169, 97, 0.04);
}

.nav-toggle { display: none; width: 32px; height: 32px; flex-direction: column; justify-content: center; gap: 5px; }
.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
  margin: 0 auto;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Hero ======================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--nav-height) + 3rem);
  padding-bottom: 4rem;
  overflow: hidden;
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse at 50% 40%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 40%, black 20%, transparent 70%);
  pointer-events: none;
  opacity: 0.6;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(201, 169, 97, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 880px;
}

.badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: rgba(201, 169, 97, 0.04);
  margin-bottom: 2rem;
}

.hero-title {
  font-size: clamp(2.75rem, 7vw, 5.25rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin-bottom: 1.75rem;
  font-weight: 400;
}

.hero-title em {
  font-style: italic;
  color: var(--gold);
}

.hero-desc {
  font-size: clamp(1.0625rem, 1.5vw, 1.1875rem);
  color: var(--text-muted);
  max-width: 58ch;
  line-height: 1.65;
  margin-bottom: 2.75rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Servicios ================================== */
.section-services {
  border-top: 1px solid var(--border);
  background: var(--black-soft);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.service-card {
  background: var(--black-soft);
  padding: 2.25rem 1.75rem;
  transition: background 0.3s var(--ease);
  position: relative;
}

.service-card:hover { background: var(--black-card); }

.service-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  color: var(--gold);
  margin-bottom: 1.75rem;
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease);
}

.service-card:hover .service-icon {
  border-color: var(--gold);
  color: var(--gold-bright);
}

.service-card h3 {
  font-size: 1.5rem;
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.6;
}

/* Nosotros =================================== */
.section-about {
  border-top: 1px solid var(--border);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 5rem;
  align-items: center;
}

.about-text .section-title { margin-bottom: 1.5rem; }

.about-text p {
  color: var(--text-muted);
  font-size: 1.0625rem;
  line-height: 1.75;
  margin-bottom: 1.25rem;
  max-width: 52ch;
}

.stats {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding-left: 2.5rem;
  border-left: 1px solid var(--border);
}

.stat { position: relative; }

.stat-num {
  display: block;
  font-family: var(--font-serif);
  font-size: clamp(3rem, 5vw, 4rem);
  line-height: 1;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.stat-sign {
  font-size: 0.65em;
  vertical-align: top;
  margin-left: 0.05em;
}

.stat-label {
  font-family: var(--font-sans);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 500;
}

/* Equipo ===================================== */
.team-wrap {
  margin-top: 6rem;
  padding-top: 5rem;
  border-top: 1px solid var(--border);
}

.team-head {
  text-align: center;
  margin-bottom: 3.5rem;
}

.team-head .eyebrow {
  padding-left: 28px;
  padding-right: 28px;
}

.team-head .eyebrow::before {
  left: 50%;
  transform: translateX(-40px);
}

.team-head .eyebrow::after {
  content: '';
  position: absolute;
  right: 50%;
  top: 50%;
  width: 20px;
  height: 1px;
  background: var(--gold);
  transform: translateX(40px);
}

.team-heading {
  font-size: clamp(1.75rem, 3.2vw, 2.25rem);
  line-height: 1.15;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
}

.team-card {
  display: flex;
  gap: 1.75rem;
  padding: 2rem;
  background: var(--black-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}

.team-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.team-photo {
  flex-shrink: 0;
  width: 120px;
  height: 120px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  border: 1px solid var(--border-strong);
}

.team-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 70%, rgba(10, 9, 8, 0.3) 100%);
  pointer-events: none;
}

.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.9);
  transition: filter 0.4s var(--ease), transform 0.5s var(--ease);
}

.team-card:hover .team-photo img {
  filter: saturate(1);
  transform: scale(1.04);
}

.team-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.25rem;
  flex: 1;
  min-width: 0;
}

.team-name {
  font-family: var(--font-serif);
  font-size: 1.625rem;
  line-height: 1.1;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 0.1rem;
}

.team-role {
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--gold);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.team-mat {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0.35rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-top: 0.6rem;
  align-self: flex-start;
}

.team-bio {
  margin-top: 1rem;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--text-muted);
}

/* Equipo / Socios =========================== */
.section-team {
  border-top: 1px solid var(--border);
  background: var(--black-soft);
}

.team-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 880px;
  margin: 0 auto;
}

.partner-card {
  background: var(--black-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1.5rem;
  align-items: center;
  transition: border-color 0.35s var(--ease), transform 0.35s var(--ease);
}

.partner-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.partner-photo {
  position: relative;
  width: 140px;
  height: 140px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--black);
  border: 1px solid var(--border-strong);
}

.partner-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 65%, rgba(10, 9, 8, 0.25) 100%);
  pointer-events: none;
}

.partner-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease), filter 0.6s var(--ease);
  filter: grayscale(15%) contrast(1.02);
}

.partner-card:hover .partner-photo img {
  transform: scale(1.04);
  filter: grayscale(0%) contrast(1.02);
}

.partner-info {
  text-align: left;
}

.partner-role {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.4rem;
}

.partner-name {
  font-size: 1.75rem;
  line-height: 1.1;
  margin-bottom: 0.5rem;
}

.partner-email {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--gold);
  letter-spacing: 0.01em;
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease);
  word-break: break-all;
}

.partner-email:hover {
  color: var(--gold-bright);
  border-bottom-color: var(--gold);
}

.partner-contacts {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}

.partner-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--gold);
  letter-spacing: 0.02em;
  margin-bottom: 0.85rem;
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease);
}

.partner-phone:hover {
  color: var(--gold-bright);
  border-bottom-color: var(--gold);
}

.partner-phone svg {
  flex-shrink: 0;
}

.partner-linkedin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  color: var(--gold);
  background: rgba(201, 169, 97, 0.04);
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease);
}

.partner-linkedin:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--black);
  transform: translateY(-1px);
}

.partner-linkedin svg { display: block; }

.partner-specialty {
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--text);
  margin: 0 0 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
  letter-spacing: 0.01em;
}

.partner-bio {
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.65;
  margin-bottom: 0.75rem;
  text-align: left;
}

.partner-license {
  font-family: var(--font-sans);
  font-size: 11px;
  color: var(--gold);
  letter-spacing: 0.08em;
  font-weight: 500;
}

/* Contacto =================================== */
.section-contact {
  border-top: 1px solid var(--border);
  background: var(--black-soft);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  max-width: 880px;
  margin: 0 auto;
}

.contact-card {
  background: var(--black-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  position: relative;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}

.contact-card-link:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.contact-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  color: var(--gold);
  margin-bottom: 1.25rem;
}

.contact-label {
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 500;
}

.contact-value {
  font-family: var(--font-serif);
  font-size: 1.625rem;
  color: var(--text);
  line-height: 1.2;
  margin-top: 0.15rem;
}

.contact-sub {
  color: var(--text-muted);
  font-size: 0.9375rem;
  margin-top: 0.25rem;
}

.contact-arrow {
  position: absolute;
  top: 2.5rem;
  right: 2.5rem;
  color: var(--gold);
  font-size: 1.25rem;
  transition: transform 0.3s var(--ease);
}

.contact-card-link:hover .contact-arrow {
  transform: translate(4px, -4px);
}

/* Footer ===================================== */
.footer {
  background: var(--black);
  border-top: 1px solid var(--border);
  padding: 4.5rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--border);
}

.logo-footer { margin-bottom: 1.25rem; }

.footer-address {
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.65;
  margin-bottom: 1rem;
  max-width: 280px;
}

.footer-email {
  display: inline-block;
  font-family: var(--font-serif);
  font-size: 1.125rem;
  color: var(--gold);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s var(--ease);
}

.footer-email:hover { border-bottom-color: var(--gold); }

.footer-col h4 {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
}

.footer-col ul { display: flex; flex-direction: column; gap: 0.65rem; }
.footer-col a, .link-btn {
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--text-muted);
  transition: color 0.25s var(--ease);
  text-align: left;
  padding: 0;
}
.footer-col a:hover, .link-btn:hover { color: var(--gold); }

.footer-bottom {
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.footer-bottom p {
  font-size: 13px;
  color: var(--text-dim);
}
.footer-note { font-style: italic; }

/* Modales ==================================== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity 0.25s var(--ease);
}

.modal[hidden] { display: none; }

.modal.open { opacity: 1; }

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 9, 8, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.modal-panel {
  position: relative;
  width: 100%;
  max-width: 720px;
  max-height: 88vh;
  background: var(--black-soft);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: translateY(20px) scale(0.98);
  transition: transform 0.3s var(--ease);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5);
}

.modal.open .modal-panel { transform: translateY(0) scale(1); }

.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 2rem 2.25rem 1.25rem;
  border-bottom: 1px solid var(--border);
  gap: 1rem;
}

.modal-eyebrow {
  display: block;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.4rem;
}

.modal-head h2 {
  font-size: 1.875rem;
  line-height: 1.1;
}

.modal-close {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  color: var(--text-muted);
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
  flex-shrink: 0;
}

.modal-close:hover {
  background: rgba(201, 169, 97, 0.08);
  color: var(--gold);
}

.modal-body {
  padding: 1.75rem 2.25rem 2.25rem;
  overflow-y: auto;
  flex: 1;
}

.modal-body section { margin-bottom: 1.5rem; }
.modal-body section:last-of-type { margin-bottom: 0; }

.modal-body h3 {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--gold);
  margin-bottom: 0.6rem;
  text-transform: none;
}

.modal-body p,
.modal-body ul {
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.7;
  margin-bottom: 0.75rem;
}

.modal-body ul { padding-left: 1.25rem; list-style: disc; }
.modal-body li { margin-bottom: 0.35rem; }
.modal-body strong { color: var(--text); font-weight: 500; }
.modal-body a { color: var(--gold); border-bottom: 1px solid var(--border-strong); transition: border-color 0.25s var(--ease); }
.modal-body a:hover { border-bottom-color: var(--gold); }

.modal-updated {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-dim);
  font-style: italic;
}

body.modal-open { overflow: hidden; }

/* Cookie banner ============================== */
.cookie-banner {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(140%);
  z-index: 150;
  width: calc(100% - 2rem);
  max-width: 820px;
  background: rgba(18, 17, 16, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(201, 169, 97, 0.05);
  transition: transform 0.7s var(--ease), opacity 0.5s var(--ease);
  opacity: 0;
}

.cookie-banner.visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.cookie-banner[hidden] { display: none; }

.cookie-banner-inner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.cookie-icon {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  background: rgba(201, 169, 97, 0.04);
}

.cookie-content {
  flex: 1;
  min-width: 0;
}

.cookie-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--text);
  margin: 0 0 0.15rem;
  line-height: 1.1;
}

.cookie-text {
  color: var(--text-muted);
  font-size: 13.5px;
  line-height: 1.5;
  margin: 0;
}

.cookie-link {
  color: var(--gold);
  border-bottom: 1px solid var(--border-strong);
  padding: 0;
  font: inherit;
  font-size: inherit;
  cursor: pointer;
  transition: border-color 0.25s var(--ease);
}

.cookie-link:hover { border-bottom-color: var(--gold); }

.cookie-actions {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

.btn-sm { padding: 0.65rem 1.15rem; font-size: 13px; }

/* Animaciones reveal ========================= */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.hero .reveal:nth-child(1) { transition-delay: 0.05s; }
.hero .reveal:nth-child(2) { transition-delay: 0.15s; }
.hero .reveal:nth-child(3) { transition-delay: 0.28s; }
.hero .reveal:nth-child(4) { transition-delay: 0.4s; }

.services-grid .reveal:nth-child(1) { transition-delay: 0.05s; }
.services-grid .reveal:nth-child(2) { transition-delay: 0.15s; }
.services-grid .reveal:nth-child(3) { transition-delay: 0.25s; }
.services-grid .reveal:nth-child(4) { transition-delay: 0.35s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}

/* Responsive ================================= */
@media (max-width: 960px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .stats {
    padding-left: 0;
    border-left: none;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    flex-direction: row;
    gap: 2rem;
    flex-wrap: wrap;
  }

  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }

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

@media (max-width: 760px) {
  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(10, 9, 8, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 2rem 1.5rem;
    gap: 0.5rem;
    border-bottom: 1px solid var(--border);
    transform: translateY(-110%);
    transition: transform 0.35s var(--ease);
    margin: 0;
  }

  .nav-links.open { transform: translateY(0); }

  .nav-links li { width: 100%; }
  .nav-links a {
    display: block;
    padding: 0.9rem 0.5rem;
    font-size: 16px;
    color: var(--text);
    border-bottom: 1px solid var(--border);
  }
  .nav-links a::after { display: none; }

  .nav-cta { display: none; }
  .lang-switch { margin-left: auto; }
  .nav-toggle { display: flex; }

  .hero { min-height: auto; padding-top: calc(var(--nav-height) + 2rem); }
  .hero-title { font-size: clamp(2.25rem, 9vw, 3.5rem); }

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

  .partner-card {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    padding: 1.5rem;
    text-align: center;
  }
  .partner-photo { width: 140px; height: 140px; margin: 0 auto; }
  .partner-name { font-size: 1.5rem; }
  .partner-info { text-align: center; }
  .partner-specialty { text-align: center; }
  .partner-bio { text-align: left; }

  .contact-grid { grid-template-columns: 1fr; }
  .contact-card { padding: 2rem; }
  .contact-arrow { top: 2rem; right: 2rem; }

  .stats { flex-direction: column; }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .footer-brand { grid-column: auto; }

  .modal { padding: 1rem; }
  .modal-head { padding: 1.5rem 1.5rem 1rem; }
  .modal-head h2 { font-size: 1.5rem; }
  .modal-body { padding: 1.25rem 1.5rem 1.75rem; }

  .cookie-banner { padding: 1rem; bottom: 0.75rem; }
  .cookie-banner-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 0.875rem;
    text-align: left;
  }
  .cookie-icon { display: none; }
  .cookie-actions { flex-direction: row; }
  .cookie-actions .btn { flex: 1; }

  .team-wrap { margin-top: 4rem; padding-top: 3rem; }
  .team-card {
    flex-direction: column;
    gap: 1.25rem;
    padding: 1.75rem;
  }
  .team-photo { width: 100px; height: 100px; }
}

@media (max-width: 480px) {
  .logo-text { font-size: 0.95rem; }
  .btn { padding: 0.85rem 1.3rem; }
  .section-title { font-size: 1.875rem; }
}