:root {
  --paper: #fbf8f2;
  --cream: #f2eadf;
  --linen: #e8ddce;
  --taupe: #746659;
  --deep: #263f3d;
  --deep-2: #19312f;
  --gold: #b89a63;
  --olive: #8a9275;
  --ink: #26231f;
  --muted: #6f6a63;
  --white: #ffffff;
  --shadow: 0 24px 70px rgba(38, 35, 31, 0.12);
  --radius: 8px;
  --header-height: 82px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Inter", Arial, sans-serif;
  line-height: 1.6;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

.container {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  width: 100%;
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(20px, 5vw, 64px);
  background: rgba(251, 248, 242, 0.88);
  border-bottom: 1px solid rgba(116, 102, 89, 0.14);
  backdrop-filter: blur(16px);
  transition: box-shadow 0.25s ease, background 0.25s ease;
}

.site-header.is-scrolled {
  background: rgba(251, 248, 242, 0.96);
  box-shadow: 0 10px 30px rgba(38, 35, 31, 0.08);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 210px;
  font-weight: 700;
  color: var(--deep);
}

.brand img {
  width: 138px;
  height: auto;
}

.brand span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--taupe);
  font-size: 0.92rem;
  font-weight: 600;
}

.main-nav a {
  transition: color 0.2s ease;
}

.main-nav a:hover {
  color: var(--deep);
}

.nav-cta,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.whatsapp-icon {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
  fill: currentColor;
}

.nav-cta,
.btn-primary {
  background: var(--deep);
  color: var(--white);
  box-shadow: 0 14px 28px rgba(38, 63, 61, 0.18);
}

.btn-primary:hover,
.nav-cta:hover {
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(38, 63, 61, 0.24);
}

.btn-secondary {
  border-color: rgba(38, 63, 61, 0.22);
  color: var(--deep);
  background: rgba(255, 255, 255, 0.58);
}

.btn-light {
  color: var(--deep);
  background: var(--paper);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(116, 102, 89, 0.2);
  border-radius: var(--radius);
  background: var(--white);
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: var(--deep);
}

.hero {
  position: relative;
  min-height: 100vh;
  padding: calc(var(--header-height) + 58px) 0 80px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(251, 248, 242, 0.98) 0%, rgba(251, 248, 242, 0.82) 48%, rgba(251, 248, 242, 0.36) 100%),
    url("frente.jpg") center/cover;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 470px);
  gap: clamp(36px, 6vw, 78px);
  align-items: center;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.08;
}

h1,
h2 {
  font-family: "Playfair Display", Georgia, serif;
  color: var(--deep-2);
}

h1 {
  max-width: 780px;
  font-size: clamp(2.55rem, 5vw, 5.2rem);
}

h2 {
  font-size: clamp(2rem, 3.5vw, 3.35rem);
}

h3 {
  color: var(--deep-2);
  font-size: 1.12rem;
}

.hero-text {
  max-width: 650px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(1.02rem, 1.5vw, 1.22rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.hero-media {
  position: relative;
  align-self: stretch;
  min-height: 620px;
}

.hero-media img {
  width: 100%;
  height: 100%;
  min-height: 620px;
  object-fit: cover;
  object-position: center top;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-card {
  position: absolute;
  right: -22px;
  bottom: 32px;
  width: min(280px, calc(100% - 32px));
  padding: 18px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(184, 154, 99, 0.28);
  border-radius: var(--radius);
  box-shadow: 0 18px 45px rgba(38, 35, 31, 0.14);
}

.hero-card strong,
.hero-card span {
  display: block;
}

.hero-card span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.92rem;
}

.section {
  padding: 100px 0;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 42px;
}

.centered {
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.feature-card,
.specialty-card,
.team-card,
.location-card,
.contact-card {
  border: 1px solid rgba(116, 102, 89, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 18px 46px rgba(38, 35, 31, 0.07);
}

.feature-card {
  min-height: 236px;
  padding: 24px;
}

.feature-card span {
  color: var(--gold);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.6rem;
  font-weight: 700;
}

.feature-card h3 {
  margin-top: 18px;
}

.feature-card p,
.specialty-card p,
.team-card p,
.purpose-content p,
.integrated-panel p,
.contact-card p,
.final-cta p,
.site-footer p {
  color: var(--muted);
}

.purpose {
  background: var(--cream);
}

.purpose-grid {
  display: grid;
  grid-template-columns: 0.92fr 1fr;
  gap: clamp(34px, 5vw, 72px);
  align-items: center;
}

.purpose-image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.purpose-content p {
  font-size: 1.05rem;
}

.specialty-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}

.specialty-card {
  overflow: hidden;
}

.specialty-card img {
  width: 100%;
  aspect-ratio: 1 / 0.82;
  object-fit: cover;
}

.specialty-card div {
  padding: 22px;
}

.team {
  background: linear-gradient(180deg, var(--paper) 0%, var(--linen) 100%);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
}

.team-card {
  display: grid;
  grid-template-columns: 0.9fr 1fr;
  overflow: hidden;
}

.team-card img {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
  object-position: center top;
}

.team-content {
  padding: clamp(24px, 3vw, 38px);
}

.badge {
  display: inline-flex;
  margin-bottom: 16px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(184, 154, 99, 0.16);
  color: var(--deep);
  font-size: 0.78rem;
  font-weight: 800;
}

.team-card h3 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.65rem, 2vw, 2.1rem);
}

.team-card strong {
  color: var(--deep);
}

.integrated {
  padding: 90px 0;
  background: var(--deep);
}

.integrated-panel {
  display: grid;
  grid-template-columns: 0.86fr 1fr;
  gap: clamp(26px, 5vw, 64px);
  align-items: center;
}

.integrated h2,
.integrated p {
  color: var(--white);
}

.integrated-panel > p {
  margin: 0;
  font-size: 1.15rem;
}

.structure-intro {
  max-width: 830px;
  margin-bottom: 40px;
}

.gallery {
  display: grid;
  grid-template-columns: 1.25fr 0.9fr;
  gap: 18px;
}

.gallery-item {
  position: relative;
  min-height: 300px;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.gallery-item.large {
  grid-row: span 2;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
}

.gallery-item figcaption {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  padding: 12px 14px;
  border-radius: var(--radius);
  background: rgba(251, 248, 242, 0.9);
  color: var(--deep);
  font-weight: 700;
}

.location {
  background: var(--cream);
}

.location-grid {
  display: grid;
  grid-template-columns: 0.82fr 1fr;
  gap: 24px;
  align-items: stretch;
}

.location-card,
.contact-card {
  padding: clamp(26px, 4vw, 44px);
}

.contact-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: fit-content;
  margin: 2px 0 22px;
  padding: 10px 14px;
  border-radius: var(--radius);
  background: rgba(38, 63, 61, 0.08);
  color: var(--deep);
  font-weight: 800;
}

address {
  margin: 24px 0;
  color: var(--muted);
  font-style: normal;
  font-size: 1.08rem;
}

form {
  display: grid;
  gap: 16px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--deep);
  font-size: 0.92rem;
  font-weight: 700;
}

input,
textarea {
  width: 100%;
  border: 1px solid rgba(116, 102, 89, 0.22);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  padding: 13px 14px;
  outline: none;
}

input:focus,
textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(184, 154, 99, 0.14);
}

.final-cta {
  padding: 68px 0;
  background: var(--deep-2);
  color: var(--white);
}

.final-cta-inner {
  display: grid;
  grid-template-columns: 82px 1fr auto;
  gap: 26px;
  align-items: center;
}

.final-cta img {
  width: 82px;
  height: 82px;
  object-fit: contain;
}

.final-cta h2 {
  color: var(--white);
  font-size: clamp(1.9rem, 3vw, 2.8rem);
}

.final-cta p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.78);
}

.site-footer {
  padding: 58px 0 24px;
  background: #151f1e;
  color: var(--white);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr 1fr;
  gap: 36px;
}

.site-footer img {
  width: 150px;
  margin-bottom: 18px;
  filter: brightness(1.12);
}

.site-footer h3 {
  margin-bottom: 16px;
  color: var(--white);
}

.site-footer a {
  display: block;
  margin-bottom: 9px;
  color: rgba(255, 255, 255, 0.72);
}

.site-footer p a {
  display: inline;
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  font-weight: 700;
}

.site-footer p {
  color: rgba(255, 255, 255, 0.7);
}

.footer-bottom {
  margin-top: 36px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-bottom p {
  margin: 0;
  font-size: 0.88rem;
}

.floating-whatsapp {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 80;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--deep);
  color: var(--white);
  box-shadow: 0 16px 34px rgba(25, 49, 47, 0.26);
  font-weight: 800;
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

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

@media (max-width: 1120px) {
  .main-nav {
    gap: 14px;
    font-size: 0.86rem;
  }

  .feature-grid,
  .specialty-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

  .team-card img {
    min-height: 420px;
  }
}

@media (max-width: 900px) {
  :root {
    --header-height: 72px;
  }

  .site-header {
    padding: 12px 20px;
  }

  .brand img {
    width: 122px;
  }

  .menu-toggle {
    display: block;
  }

  .main-nav {
    position: fixed;
    top: var(--header-height);
    left: 16px;
    right: 16px;
    display: grid;
    gap: 0;
    padding: 12px;
    background: rgba(251, 248, 242, 0.98);
    border: 1px solid rgba(116, 102, 89, 0.16);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .main-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .main-nav a {
    padding: 12px;
  }

  .nav-cta {
    margin-top: 8px;
  }

  .hero {
    min-height: auto;
    padding-bottom: 64px;
  }

  .hero-grid,
  .purpose-grid,
  .integrated-panel,
  .location-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-media,
  .hero-media img {
    min-height: 520px;
  }

  .hero-card {
    right: 16px;
  }

  .feature-grid,
  .specialty-grid,
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .gallery-item.large {
    grid-row: auto;
  }

  .final-cta-inner {
    grid-template-columns: 68px 1fr;
  }

  .final-cta .btn {
    grid-column: 1 / -1;
    width: fit-content;
  }
}

@media (max-width: 620px) {
  .container {
    width: min(100% - 28px, 1160px);
  }

  h1 {
    font-size: 2.42rem;
  }

  h2 {
    font-size: 2rem;
  }

  .section {
    padding: 72px 0;
  }

  .hero-bg {
    background:
      linear-gradient(180deg, rgba(251, 248, 242, 0.98) 0%, rgba(251, 248, 242, 0.86) 58%, rgba(251, 248, 242, 0.72) 100%),
      url("frente.jpg") center/cover;
  }

  .hero-actions,
  .btn {
    width: 100%;
  }

  .hero-media,
  .hero-media img {
    min-height: 430px;
  }

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

  .feature-card {
    min-height: auto;
  }

  .team-card img {
    min-height: 430px;
  }

  .final-cta-inner {
    grid-template-columns: 1fr;
  }

  .final-cta img {
    width: 74px;
    height: 74px;
  }

  .floating-whatsapp {
    right: 14px;
    bottom: 14px;
  }
}
