html, body {
  margin: 0; padding: 0;
  height: 100%;
  background: #ffffff;
  color: var(--color-text);
  font-family: var(--font-body);
  font-weight: var(--fw-regular);
  width: 100%;
}
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
#page-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* ══════════════════════════════════════════════════════════
   NAV
   ══════════════════════════════════════════════════════════ */
#nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 190;
  display: flex; justify-content: space-between; align-items: center;
  padding: 0 clamp(1.2rem, 3vw, 2.5rem);
  background: #ffffff;
  box-shadow: 0 1px 0 rgba(26,39,86,0.1);
  transition: background 0.5s ease, box-shadow 0.5s ease;
}
#nav.scrolled {
  background: #ffffff;
  box-shadow: 0 1px 0 rgba(26,39,86,0.1);
}
#nav-logo-img {
  height: clamp(50px, 5.5vw, 92px);
  width: auto;
  display: block;
}
#nav-logo-link {
  display: flex;
  align-items: center;
}

/* Nav center (menú horizontal) */
#nav-center {
  position: absolute; left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: clamp(1.1rem, 2.2vw, 2.2rem);
}
.nav-link {
  position: relative;
  display: inline-flex; align-items: center;
  line-height: 1;
  font-family: var(--font-sans);
  font-size: clamp(0.68rem, 0.6rem + 0.3vw, 0.78rem); font-weight: 400;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(26,39,86,0.5);
  text-decoration: none;
  transition: color 0.3s;
  white-space: nowrap;
}
.nav-link:hover { color: var(--color-navy); }
.nav-link-wrap {
  position: relative;
  display: flex; align-items: center;
}
.nav-dropdown {
  position: absolute; top: calc(100% + 1rem); left: 0;
  background: #ffffff;
  border-top: 2px solid var(--color-gold);
  box-shadow: 0 8px 30px rgba(26,39,86,0.12);
  min-width: 220px;
  display: flex; flex-direction: column;
  opacity: 0; pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 0.3s, transform 0.3s;
  z-index: 100;
}
.nav-dropdown a {
  padding: 0.7rem 1.2rem;
  font-family: var(--font-sans);
  font-size: var(--fs-2xs); letter-spacing: 0.15em; text-transform: uppercase;
  color: rgba(26,39,86,0.5); text-decoration: none;
  border-bottom: 1px solid rgba(26,39,86,0.05);
  transition: color 0.3s, background 0.3s;
}
.nav-dropdown a:hover { color: var(--color-navy); background: rgba(184,149,42,0.05); }

.nav-arrow-btn, .menu-arrow-btn {
  background: none; border: none; cursor: pointer;
}
.nav-arrow-btn {
  display: flex; align-items: center;
  padding: 0 0 0 16px;
  line-height: 1;
}
.nav-arrow-btn .nav-arrow {
  color: var(--color-gold); font-size: var(--fs-xs); line-height: 1;
  display: inline-block;
  transition: transform 0.3s ease;
}
.nav-link-wrap.dd-open .nav-arrow-btn .nav-arrow { transform: rotate(90deg); }
.nav-link-wrap.dd-open .nav-dropdown {
  opacity: 1; pointer-events: all; transform: translateY(0);
}

/* Hamburger */
#hamburger {
  display: flex; flex-direction: column; gap: 5px;
  width: 28px; padding: 4px 0;
  background: none; border: none; cursor: pointer;
}
#hamburger span {
  display: block; height: 3px;
  background: #CB9F49;
  transition: background 0.3s, transform 0.4s, opacity 0.3s;
}
#hamburger:hover span { background: var(--color-gold); }
#hamburger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
#hamburger.open span:nth-child(2) { opacity: 0; }
#hamburger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ══════════════════════════════════════════════════════════
   MENU LATERAL (hamburguesa)
   ══════════════════════════════════════════════════════════ */
#menu-overlay {
  position: fixed; inset: 0; z-index: 180;
  opacity: 0; pointer-events: none;
  transition: opacity 0.4s ease;
}
#menu-overlay.open { opacity: 1; pointer-events: all; }

#menu-backdrop {
  position: absolute; inset: 0;
  background: rgba(8,9,15,0.6);
  backdrop-filter: blur(2px);
}

#menu-panel {
  position: absolute; top: 0; left: 0; bottom: 0;
  width: 280px;
  background: #ffffff;
  display: flex; flex-direction: column;
  padding: 10rem 2rem;
  transform: translateX(-100%);
  transition: transform 0.5s cubic-bezier(0.16,1,0.3,1);
  z-index: 2;
  box-shadow: 4px 0 30px rgba(8,9,15,0.15);
}
#menu-overlay.open #menu-panel { transform: translateX(0); }

#menu-nav {
  display: flex; flex-direction: column;
  flex: 1;
}
.menu-item { border-bottom: 1px solid rgba(26,39,86,0.08); }
.menu-item > a {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1rem 0;
  font-family: var(--font-sans);
  font-size: var(--fs-xs); font-weight: 400;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(26,39,86,0.5);
  text-decoration: none;
  transition: color 0.3s;
}
.menu-item > a:hover { color: var(--color-navy); }
.menu-item.active > a { color: var(--color-gold); }

.menu-arrow {
  font-size: var(--fs-sm);
  transition: transform 0.3s ease;
  color: var(--color-gold);
}
.menu-item.sub-open .menu-arrow { transform: rotate(90deg); }

.menu-sub {
  max-height: 0; overflow: hidden;
  transition: max-height 0.4s ease;
  display: flex; flex-direction: column;
  padding-left: 0.5rem;
}
.menu-item.sub-open .menu-sub { max-height: 300px; }

.menu-sub a {
  padding: 0.55rem 1rem;
  font-family: var(--font-sans);
  font-size: var(--fs-2xs); letter-spacing: 0.15em; text-transform: uppercase;
  color: rgba(26,39,86,0.4);
  text-decoration: none;
  border-left: 2px solid rgba(184,149,42,0.2);
  transition: color 0.3s, border-color 0.3s;
  display: block;
}
.menu-sub a:hover { color: var(--color-navy); border-left-color: var(--color-gold); }

.menu-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1rem 0;
}
.menu-title-link {
  font-family: var(--font-sans); font-size: var(--fs-xs); font-weight: 400;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(26,39,86,0.5); text-decoration: none;
  transition: color 0.3s;
}
.menu-title-link:hover { color: var(--color-navy); }

#menu-footer {
  display: flex; flex-direction: column; gap: 0.4rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(26,39,86,0.08);
  font-size: var(--fs-2xs); letter-spacing: 0.15em;
  color: rgba(26,39,86,0.3);
  font-family: var(--font-sans);
}

/* Side dots */
#nav-dots {
  position: fixed; right: 2rem; top: 50%;
  transform: translateY(-50%);
  z-index: 300;
  display: flex; flex-direction: column; gap: 12px;
}
.ndot {
  width: 5px; height: 5px; border-radius: 50%;
  background: rgba(26,39,86,0.2);
  cursor: pointer;
  transition: background 0.4s, height 0.4s, border-radius 0.4s;
}
.ndot.active { background: var(--color-navy); height: 22px; border-radius: 3px; }

/* ══════════════════════════════════════════════════════════
   FONDO / PARTICLES / CONTENEDOR PRINCIPAL
   ══════════════════════════════════════════════════════════ */
#particles-canvas {
  position: fixed; inset: 0;
  z-index: 1;
  pointer-events: none;
}

/* ══════════════════════════════════════════════════════════
   HERO
   ══════════════════════════════════════════════════════════ */
#hero-screen {
    flex-direction: column;
    justify-content: flex-start;
    text-align: center;
    height: 100dvh;
    min-height: 100dvh;
    gap: 0.8rem;
    padding-top: calc(var(--nav-h, 90px) + clamp(2rem, 5vh, 3.5rem));
    padding-bottom: clamp(50px, 6vh, 70px);
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
.hero-bg-layer {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: var(--color-navy);
  opacity: 0;
  transition: opacity 1.4s ease;
}
.hero-bg-layer.active { opacity: 1; }
#hero-vignette {
  position: absolute; inset: 0;
  background: linear-gradient(180deg,
    rgba(255,255,255,0.94) 0%,
    rgba(255,255,255,0.94) 26%,
    rgba(255,255,255,0.6) 40%,
    rgba(26,39,86,0.6) 52%,
    rgba(26,39,86,0.94) 64%,
    rgba(26,39,86,0.97) 100%);
  -webkit-mask-image: linear-gradient(100deg, transparent 0%, transparent 18%, black 65%, black 100%);
  mask-image: linear-gradient(100deg, transparent 0%, transparent 18%, black 65%, black 100%);
}
#hero-content {
  position: relative; z-index: 10;
  display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between;
  flex: 1;
  height: 100%;
  width: 100%;
  max-width: 100%;
  will-change: opacity, transform;
  transition: opacity 0.4s ease;
}
#hero-content.fading { opacity: 0; }
#hero-title {
  flex: none;
  width: 100%;
  max-width: 600px;
  margin-left: auto;
  text-align: center;
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: clamp(1.9rem, 1.3rem + 2.8vmin, 4.6rem);
  line-height: 1.12;
  letter-spacing: 0.01em;
  margin-top: 0;
  margin-bottom: 0;
  opacity: 0;
  animation: heroRise 1s ease forwards 0.2s;
}
#hero-desc {
  flex: none;
  width: 100%;
  max-width: 560px;
  margin-left: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
#hero-title .title-navy { color: var(--color-navy); }
#hero-title .title-gold { color: var(--color-gold); }
.hero-text {
  max-width: 560px;
  margin: 1.1rem 0 0;
  text-align: center;
  font-family: var(--font-body);
  font-style: normal;
  font-size: clamp(0.92rem, 0.78rem + 1.1vmin, 1.5rem);
  line-height: 1.65;
  color: #ffffff;
  text-shadow: 0 2px 14px rgba(8,9,15,0.4);
  opacity: 0;
  animation: heroRise 1s ease forwards 0.4s;
}
@keyframes heroRise {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
#hero-cta-wrap {
  flex: none;
  width: 100%;
  max-width: 560px;
  margin-left: auto;
  margin-top: 1.6rem;
  display: flex;
  justify-content: center;
}
#hero-cta {
  display: inline-block;
  padding: 0.9rem 2.8rem;
  font-size: var(--fs-sm);
  background: var(--color-gold);
  border: 1px solid var(--color-gold);
  border-radius: 8px;
  color: var(--color-navy);
  font-family: var(--font-sans);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.4s ease, color 0.4s ease, border-color 0.4s ease, transform 0.3s ease;
  opacity: 0;
  animation: heroRise 1s ease forwards 0.6s;
}
#hero-cta:hover {
  background: var(--color-navy);
  color: #ffffff;
  border-color: var(--color-navy);
  transform: translateY(-2px);
}
@keyframes breathe { 0%,100%{ opacity:0.3; } 50%{ opacity:1; } }
@keyframes lineGrow { 0%,100%{ transform:scaleY(0.3); } 50%{ transform:scaleY(1); } }

/* ══════════════════════════════════════════════════════════
   HERO CARRUSEL
   ══════════════════════════════════════════════════════════ */
   
#hero-dots {
  position: absolute;
  left: 50%; bottom: clamp(14px, 3vh, 28px);
  transform: translateX(-50%);
  z-index: 12;
  display: flex; gap: 10px;
}
.hero-dot {
  width: 8px; height: 8px;
  border: none; padding: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: background 0.3s ease, width 0.3s ease, border-radius 0.3s ease;
}
.hero-dot.active {
  background: var(--color-gold);
  width: 26px;
  border-radius: 5px;
}

/* ══════════════════════════════════════════════════════════
   NOSOTROS
   ══════════════════════════════════════════════════════════ */
#nosotros-screen {
  position: relative;
  width: 100%;
  background: #ffffff;
  display: flex; align-items: center;
  padding-top: clamp(140px, 18vh, 180px);
  padding-bottom: clamp(40px, 10vh, 120px);
  scroll-margin-top: 110px;
  overflow: hidden;
}
.nosotros-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  margin-top: 2.5rem;
  position: relative;
}
.nosotros-cols::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--color-gold);
  transform: translateX(-50%);
}
.nosotros-body {
  font-size: var(--fs-base); line-height: 2.0;
  color: var(--color-text);
  font-family: var(--font-body);
  text-align: center;
}
.nosotros-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}
.pillar-card {
  background: var(--color-navy);
  border-radius: 10px;
  padding: 2.2rem 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.pillar-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(26,39,86,0.28);
}
.pillar-icon {
  width: 42px; height: 42px;
  color: var(--color-gold);
  margin-bottom: 0.3rem;
}
.pillar-icon svg { width: 100%; height: 100%; }
.pillar-card .pillar-name { color: #ffffff; }
.pillar-name {
  font-family: var(--font-display);
  font-size: var(--fs-lg); font-weight: var(--fw-bold);
  color: var(--color-navy); letter-spacing: 0.04em;
}
.pillar-desc {
  font-size: var(--fs-sm); letter-spacing: 0.02em;
  color: var(--color-gold); font-family: var(--font-body);
  font-style: italic;
}
.nosotros-cta {
  margin-top: 3.5rem;
}
.nosotros-cta-btn-wrap {
  display: flex;
  justify-content: center;
  margin-top: 2.5rem;
}
.hero-cta-btn {
  display: inline-block;
  padding: 1.15rem 3.2rem;
  font-size: var(--fs-sm);
  background: var(--color-gold);
  border: 1px solid var(--color-gold);
  border-radius: 8px;
  color: var(--color-navy);
  font-family: var(--font-sans);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.4s ease, color 0.4s ease, border-color 0.4s ease, transform 0.3s ease;
}
.hero-cta-btn:hover {
  background: var(--color-navy);
  color: #ffffff;
  border-color: var(--color-navy);
  transform: translateY(-2px);
}
.section-title.title-gold-solid {
  color: var(--color-gold);
}

/* ══════════════════════════════════════════════════════════
   SERVICIOS (bloque teaser en index.html)
   ══════════════════════════════════════════════════════════ */
#servicios-screen {
  position: relative;
  width: 100%;
  min-height: 100vh;
  background-image: url('../assets/images/servicios-bg.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 170px;
  padding-bottom: clamp(50px, 6vh, 70px);
  scroll-margin-top: 110px;
  overflow: hidden;
  text-align: center;
}
#servicios-screen::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(26, 39, 86, 0.85);
  z-index: 1;
}
#servicios-screen .panel-inner {
  position: relative;
  z-index: 2;
  width: 100%;
}
.servicios-body {
  max-width: 700px;
  margin: 1.5rem auto 0;
  font-size: var(--fs-base); line-height: 2.0;
  color: #ffffff;
  font-family: var(--font-body);
  text-align: center;
}
.servicios-btn-wrap {
  display: flex;
  justify-content: center;
  margin-top: 2.5rem;
}
#servicios-screen .section-title {
  color: var(--color-gold);
}
#servicios-screen .section-title .title-navy {
  color: #ffffff;
}
@media (max-width: 768px) {
  #servicios-screen {
    background-attachment: scroll;
  }
}

/* ══════════════════════════════════════════════════════════
   ÁREAS DE PRÁCTICA
   ══════════════════════════════════════════════════════════ */
#areas-screen {
  position: relative;
  width: 100%; min-height: 100vh;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 140px clamp(1.5rem, 5vw, 5rem) clamp(110px, 14vh, 150px);
  scroll-margin-top: 110px;
}
.areas-head {
  flex: 0 0 auto;
  max-width: 1500px;
  width: 100%;
  margin: 0 auto clamp(1.8rem, 3.5vh, 2.8rem);
}
.areas-head .section-title {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: var(--fs-2xl);
  line-height: 1.1;
  letter-spacing: 0.02em;
  color: var(--color-gold);
  text-align: center;
}
.areas-head .section-title .title-navy {
  color: var(--color-navy);
}

#areas-grid {
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: minmax(160px, auto);
  gap: clamp(16px, 1.8vw, 24px);
  width: 100%;
  max-width: 1500px;
  margin: 0 auto;
}

.bento-card {
  position: relative;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(26,39,86,0.08);
  border-radius: 14px;
  padding: 2.4rem 1.7rem 2.8rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(26,39,86,0.06);
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}
.bento-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-gold), var(--color-navy));
  opacity: 0;
  transition: opacity 0.3s ease;
}
.bento-card:hover {
  border-color: var(--color-gold);
  box-shadow: 0 24px 54px rgba(26,39,86,0.20);
  transform: translateY(-6px);
}
.bento-card:hover::before { opacity: 1; }

.bento-card.feat { grid-row: span 2; }
.bento-card.wide { grid-column: span 2; }

.bc-icon {
  width: 78px; height: 78px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--color-navy);
  background: rgba(26,39,86,0.07);
  margin-bottom: 1.4rem;
  transition: transform 0.3s ease, background 0.3s ease;
}
.bento-card:nth-child(odd) .bc-icon {
  color: var(--color-gold);
  background: rgba(184,149,42,0.12);
}
.bento-card:hover .bc-icon { transform: scale(1.08); }
.bc-icon svg { width: 36px; height: 36px; }

.bc-title {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  color: var(--color-navy);
  font-size: var(--fs-lg);
  line-height: 1.2;
  margin-bottom: 1rem;
}
.bento-card.feat .bc-title { font-size: calc(var(--fs-lg) + 0.2rem); }
.bento-card:nth-child(even) .bc-title { color: var(--color-gold); }

.bc-badge {
  position: absolute;
  top: 1.1rem; right: 1.1rem;
  width: 32px; height: 32px;
  background: var(--color-gold);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(184,149,42,0.4);
}
.bc-badge svg { width: 16px; height: 16px; }

.bc-desc {
  font-family: var(--font-body);
  font-style: italic;
  font-size: var(--fs-base);
  line-height: 1.8;
  color: rgba(26,39,86,0.6);
  flex: 1;
  text-align: justify;
}

.bc-tags {
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin: 0;
  padding: 0;
  flex: 1;
  width: 100%;
  text-align: left;
}
.bc-tags li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.01em;
  color: rgba(26,39,86,0.7);
  line-height: 1.4;
}
.bc-tags li::before {
  content: '';
  flex-shrink: 0;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--color-gold);
  margin-top: 6px;
}
.bento-card:hover .bc-tags li::before {
  background: var(--color-navy);
}

.bc-arrow {
  position: absolute;
  right: 1.4rem; bottom: 1.3rem;
  width: 24px; height: 24px;
  color: var(--color-gold);
  transition: transform 0.3s ease;
}
.bc-arrow svg { width: 100%; height: 100%; }
.bento-card:hover .bc-arrow { transform: translate(4px, -4px) scale(1.1); }

/* ══════════════════════════════════════════════════════════
   CONTACTO
   ══════════════════════════════════════════════════════════ */
#contacto-screen {
  position: relative;
  width: 100%; min-height: 100vh;
  background: #ffffff;
  display: flex; align-items: center;
  padding-top: calc(var(--nav-h, 90px) + clamp(1.5rem, 3vh, 2.5rem));
  padding-bottom: clamp(15px, 3vh, 30px);
  scroll-margin-top: 100px;
}
#contacto-screen .section-title {
  margin-bottom: 1rem;
}
.contact-subtitle {
  text-align: center;
  max-width: 500px;
  margin: 0 auto clamp(2.5rem, 5vh, 4rem);
  font-family: var(--font-body);
  font-style: italic;
  font-size: var(--fs-base);
  color: var(--color-text-muted);
}
.contact-grid {
  display: grid; grid-template-columns: 0.9fr 1.3fr;
  gap: 4rem; align-items: start;
  max-width: 1500px;
  margin: 0 auto;
}

.contact-info {
  display: flex; flex-direction: column; gap: 2rem;
}
.contact-item {
  display: flex; align-items: flex-start; gap: 1rem;
}
.contact-icon {
  flex-shrink: 0;
  width: 42px; height: 42px;
  background: var(--color-navy);
  border-radius: 10px;
  color: var(--color-gold);
  display: flex; align-items: center; justify-content: center;
}
.contact-icon svg { width: 20px; height: 20px; }
.contact-item > div {
  display: flex; flex-direction: column; gap: 4px;
}
.contact-lbl {
  font-size: var(--fs-sm); letter-spacing: 0.02em;
  color: var(--color-gold); font-family: var(--font-sans);
  font-weight: 600;
}
.contact-val {
  font-size: var(--fs-sm); color: var(--color-text-muted);
  line-height: 1.9; font-family: var(--font-body);
}

.contact-socials {
  display: flex; gap: 0.8rem;
  margin-top: 0.5rem;
}
.social-icon {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(26,39,86,0.2);
  color: var(--color-navy);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
.social-icon svg { width: 17px; height: 17px; }
.social-icon:hover {
  background: var(--color-navy);
  color: var(--color-gold);
  border-color: var(--color-navy);
}

.contact-form {
  display: flex; flex-direction: column; gap: 1.3rem;
  background: var(--color-navy);
  border-radius: 16px;
  padding: 2.6rem 2.4rem;
  position: relative;
  overflow: hidden;
}
.contact-form::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-gold), transparent 70%);
}
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field label {
  font-size: var(--fs-sm); letter-spacing: 0.02em;
  color: var(--color-gold); font-family: var(--font-sans);
  font-weight: 600;
}
.form-field input,
.form-field textarea {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  padding: 0.7rem 0.9rem;
  font-family: var(--font-body);
  font-size: var(--fs-sm); color: #ffffff;
  outline: none; resize: none;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.form-field input::placeholder,
.form-field textarea::placeholder { color: rgba(255,255,255,0.35); }
.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--color-gold);
  background: rgba(255,255,255,0.1);
}
.form-btn {
  align-self: flex-start;
  background: var(--color-gold);
  border: 1px solid var(--color-gold);
  font-family: var(--font-sans); font-size: var(--fs-2xs);
  letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--color-navy); font-weight: 600;
  padding: 0.85rem 2.4rem; border-radius: 8px;
  cursor: pointer; margin-top: 0.3rem;
  transition: background 0.4s, color 0.4s, transform 0.3s;
}
.form-btn:hover {
  background: transparent;
  color: var(--color-gold);
  transform: translateY(-2px);
}
#form-status { color: rgba(255,255,255,0.7); }

/* ══════════════════════════════════════════════════════════
   ELEMENTOS COMPARTIDOS
   ══════════════════════════════════════════════════════════ */
.panel-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1.5rem 3rem;
  width: 100%;
}
.section-label {
  font-size: var(--fs-2xs); letter-spacing: 0.42em; text-transform: uppercase;
  color: var(--color-gold); margin-bottom: 2rem;
  display: flex; align-items: center; gap: 1rem;
  font-family: var(--font-sans);
}
.section-label::after {
  content: ''; flex: 1; height: 1px;
  background: rgba(26,39,86,0.15);
}
.section-title {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: var(--fs-2xl);
  color: var(--color-navy);
  line-height: 1.1; letter-spacing: 0.02em;
  text-align: center; margin-bottom: 1.5rem;
}
.section-title em { font-style: italic; color: var(--color-gold); }

.section-divider {
  width: 80%;
  max-width: 1100px;
  height: 2px;
  margin: 0 auto;
  background: linear-gradient(90deg,
    transparent 0%,
    var(--color-gold) 20%,
    var(--color-gold) 80%,
    transparent 100%);
}
/* ══════════════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════════════ */
#site-footer {
  position: relative;
  z-index: 6;
  margin-top: auto;
  background: var(--color-navy);
  border-top: 1px solid rgba(184,149,42,0.25);
}
.footer-main {
  max-width: 1500px;
  margin: 0 auto;
  padding: clamp(3rem, 6vh, 4.5rem) clamp(1.5rem, 5vw, 3rem) clamp(2.5rem, 5vh, 3.5rem);
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: clamp(2rem, 4vw, 3rem);
  align-items: start;
}
.footer-heading {
  font-family: var(--font-sans);
  font-size: var(--fs-2xs);
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 1.2rem;
}
.footer-text {
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  line-height: 1.8;
  color: rgba(232,230,224,0.55);
  margin-bottom: 0.8rem;
}
.footer-link {
  display: block;
  font-family: var(--font-sans);
  font-size: var(--fs-sm);
  color: rgba(232,230,224,0.55);
  text-decoration: none;
  margin-bottom: 0.7rem;
  transition: color 0.3s ease;
  width: fit-content;
}
.footer-link:hover { color: var(--color-gold); }
.footer-socials { display: flex; gap: 0.7rem; }
.footer-socials .social-icon {
  border-color: rgba(232,230,224,0.2);
  color: rgba(232,230,224,0.7);
}
.footer-socials .social-icon:hover {
  background: var(--color-gold);
  color: var(--color-navy);
  border-color: var(--color-gold);
}
.footer-legal {
  border-top: 1px solid rgba(232,230,224,0.12);
  padding: 1.3rem clamp(1.5rem, 5vw, 3rem);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 0.6rem;
  max-width: 1500px;
  margin: 0 auto;
}
.footer-legal span {
  font-family: var(--font-sans);
  font-size: var(--fs-2xs);
  letter-spacing: 0.04em;
  color: rgba(232,230,224,0.45);
}
.footer-brand {
  display: flex;
  align-items: center;
  align-self: stretch;
}
.footer-logo {
  height:300px;
  width: 350px;
  opacity: 0.95;
  margin-top: -1.5rem;
}
/* Botón flotante de WhatsApp */
.whatsapp-float {
  position: fixed;
  right: clamp(1.2rem, 3vw, 2rem);
  bottom: clamp(1.2rem, 3vw, 2rem);
  z-index: 300;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: #25D366;
  color: #ffffff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.whatsapp-float svg { width: 30px; height: 30px; }
.whatsapp-float:hover {
  transform: scale(1.08);
  box-shadow: 0 12px 32px rgba(0,0,0,0.32);
}

@media (max-width: 760px) {
  .footer-main { grid-template-columns: 1fr 1fr; }
  .footer-legal { flex-direction: column; text-align: center; }
}
@media (max-width: 480px) {
  .footer-main { grid-template-columns: 1fr; }
  .whatsapp-float { width: 52px; height: 52px; right: 1rem; bottom: 1rem; }
  .whatsapp-float svg { width: 26px; height: 26px; }
}
/* ══════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════ */
@media (max-width: 1000px) {
    #hero-screen {
    flex-direction: column;
    justify-content: center;
    text-align: center;
    height: 100dvh;
    min-height: 100dvh;
    gap: 0.8rem;
    padding-top: clamp(140px, 22vh, 180px);
    padding-bottom: clamp(50px, 6vh, 70px);
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
  .nosotros-pillars { grid-template-columns: 1fr; }
  #hero-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 90%;
    gap: 0.9rem;
  }
  #hero-title {
    text-align: center;
    max-width: 100%;
    font-size: clamp(1.9rem, 6.5vw, 2.6rem);
  }
  #hero-bottom { align-items: center; max-width: 100%; }
  .hero-text {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    font-size: var(--fs-base);
    line-height: 1.55;
  }
#hero-vignette {
  background: linear-gradient(to bottom,
    rgba(255,255,255,0.96) 0%,
    rgba(255,255,255,0.96) 22%,
    rgba(255,255,255,0.55) 34%,
    rgba(26,39,86,0.55) 44%,
    rgba(26,39,86,0.88) 55%,
    rgba(26,39,86,0.96) 100%);
  -webkit-mask-image: none;
  mask-image: none;
}
}
@media (max-width: 900px) {
  #areas-screen {
    justify-content: flex-start;
    padding: 90px 1.3rem 2rem;
  }
  #areas-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: none;
    grid-auto-rows: minmax(150px, auto);
  }
  .bento-card.feat { grid-column: 1 / 3; grid-row: auto; }
  .bento-card.tall { grid-column: auto; grid-row: auto; }
  .bento-card.wide { grid-column: 1 / 3; grid-row: auto; }
}

@media (max-width: 768px) {
  #nav-center { display: none; }
  #hero-screen { padding-left: 1.5rem; padding-right: 1.5rem; justify-content: center; flex-direction: column; gap: 2rem; }
  #hero-content { align-items: center; text-align: center; max-width: 100%; order: 1; }
  #hero-logo {
    position: static; transform: none;
    width: clamp(160px, 45vw, 260px);
    margin: 0 auto; order: 2;
  }
  .hero-text { text-align: center; margin-left: auto; margin-right: auto; }
  .nosotros-cols {
    grid-template-columns: 1fr;
  }
  .nosotros-cols::before {
    display: none;
  }
  .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
  .panel-inner { padding: 4rem 1.5rem; }
  #nosotros-screen,
  #areas-screen,
  #contacto-screen { scroll-margin-top: 100px; }
}

@media (max-width: 560px) {
  #areas-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: minmax(130px, auto);
  }
  .bento-card.feat,
  .bento-card.tall,
  .bento-card.wide { grid-column: 1 / 2; grid-row: auto; }
}