:root {
  --bg: #f7f4ee;
  --surface: #ffffff;
  --surface-soft: #fbfaf7;
  --text: #24303d;
  --muted: #6b7280;
  --gold: #b9934c;
  --gold-dark: #8c6b2e;
  --teal: #2f7d7a;
  --teal-dark: #225b59;
  --green: #3b7a4c;
  --coral: #d28d78;
  --border: rgba(67, 53, 32, 0.12);
  --shadow: 0 18px 50px rgba(35, 44, 54, 0.08);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(185, 147, 76, 0.08), transparent 28%),
    radial-gradient(circle at top right, rgba(47, 125, 122, 0.08), transparent 24%),
    var(--bg);
}

a {
  color: var(--teal);
  text-decoration: none;
}

a:hover {
  color: var(--gold-dark);
}

.navbar {
  backdrop-filter: saturate(140%) blur(10px);
}

.navbar-fundacion {
  background: #f1ede2;
  padding-top: 0.45rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid rgba(67, 53, 32, 0.08);
}

.brand-logo {
  width: 64px;
  height: 64px;
  object-fit: contain;
  flex: 0 0 auto;
}

.brand-logo-footer {
  width: 44px;
  height: 44px;
}

.brand-text {
  font-size: 1rem;
  letter-spacing: 0.02em;
  color: var(--text);
}

.navbar-fundacion .brand-text,
.navbar-fundacion .nav-link {
  color: var(--text);
}

.navbar-fundacion .nav-link:hover,
.navbar-fundacion .nav-link:focus {
  color: var(--gold-dark);
}

.nav-link {
  color: var(--text);
  font-weight: 500;
}

.nav-link:hover,
.nav-link:focus {
  color: var(--gold-dark);
}

.hero-section {
  padding: 5rem 0 4.5rem;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(185, 147, 76, 0.15), transparent 28%),
    radial-gradient(circle at 85% 25%, rgba(47, 125, 122, 0.14), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0));
  pointer-events: none;
}

.hero-panel {
  position: relative;
  overflow: hidden;
  border-radius: 2rem;
  padding: clamp(1.25rem, 2vw, 2rem);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(255, 253, 248, 0.94)),
    radial-gradient(circle at top left, rgba(185, 147, 76, 0.16), transparent 30%),
    radial-gradient(circle at bottom right, rgba(47, 125, 122, 0.12), transparent 28%);
  border: 1px solid rgba(255, 255, 255, 0.78);
  box-shadow: 0 28px 70px rgba(35, 44, 54, 0.08);
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: auto -10% -24% auto;
  width: 18rem;
  height: 18rem;
  border-radius: 50%;
  background: rgba(47, 125, 122, 0.06);
  pointer-events: none;
}

.hero-carousel {
  position: relative;
}

.hero-slide {
  min-height: clamp(34rem, 62vw, 41rem);
  padding: clamp(0.5rem, 1vw, 0.75rem) 0.25rem 1.25rem;
}

.hero-indicators {
  position: absolute;
  z-index: 3;
  right: 1rem;
  bottom: 1rem;
  left: auto;
  margin: 0;
  gap: 0.45rem;
}

.hero-indicators [data-bs-target] {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 999px;
  background: rgba(35, 44, 54, 0.18);
  border: 0;
}

.hero-indicators .active {
  width: 2rem;
  background: var(--teal);
}

.hero-control {
  width: 3rem;
  height: 3rem;
  top: auto;
  bottom: 0rem;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(35, 44, 54, 0.12);
  opacity: 1;
  border: 1px solid rgba(67, 53, 32, 0.08);
}

.hero-control:hover {
  background: #fff;
}

.hero-control-prev {
  right: 9rem;
  left: auto;
}

.hero-control-next {
  right: 6rem;
  left: auto;
}

.hero-control .carousel-control-prev-icon,
.hero-control .carousel-control-next-icon {
  filter: invert(25%) sepia(13%) saturate(1024%) hue-rotate(128deg) brightness(81%) contrast(89%);
}

.eyebrow,
.section-kicker,
.doc-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(47, 125, 122, 0.09);
  color: var(--teal-dark);
  border: 1px solid rgba(47, 125, 122, 0.12);
}

.section-pad {
  padding: 4rem 0;
}

.section-alt {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.9));
  border-top: 1px solid rgba(67, 53, 32, 0.05);
  border-bottom: 1px solid rgba(67, 53, 32, 0.05);
}

.section-heading {
  max-width: 760px;
}

.section-title {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 800;
  margin: 1rem 0 0.75rem;
}

.section-subtitle {
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 0;
}

.hero-card,
.info-card,
.doc-card {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--border);
  border-radius: 1.35rem;
  box-shadow: var(--shadow);
  padding: 1.5rem;
  height: 100%;
}

.hero-card-badge {
  display: inline-flex;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(185, 147, 76, 0.12);
  color: var(--gold-dark);
  font-weight: 700;
  font-size: 0.85rem;
}

.hero-title {
  letter-spacing: -0.03em;
}

.hero-copy {
  max-width: 54rem;
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.hero-pills span {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(67, 53, 32, 0.1);
  color: var(--teal-dark);
  font-weight: 600;
  font-size: 0.92rem;
}

.hero-mosaic {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  grid-template-rows: 11rem 11rem 8rem;
  gap: 0.85rem;
  min-height: 31rem;
}

.hero-mosaic-primary {
  margin-top: 0.5rem;
}

.hero-mosaic-secondary {
  margin-top: 0.5rem;
}

.hero-frame,
.about-visual {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  margin: 0;
  background: #f2efe8;
}

.hero-frame {
  min-height: 100%;
}

.hero-frame-main {
  grid-row: 1 / span 3;
  grid-column: 1;
  border-radius: 1.5rem;
}

.hero-frame-top {
  grid-column: 2;
  grid-row: 1;
}

.hero-frame-bottom {
  grid-column: 2;
  grid-row: 2;
}

.hero-frame-strip {
  grid-column: 1 / -1;
  grid-row: 3;
}

.hero-float {
  position: absolute;
  left: 1.2rem;
  bottom: 1.2rem;
  max-width: 22rem;
  padding: 1rem 1.1rem;
  border-radius: 1.15rem;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(67, 53, 32, 0.1);
  box-shadow: 0 18px 35px rgba(35, 44, 54, 0.12);
  backdrop-filter: blur(8px);
}

.img-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.media-tile::after,
.about-visual::after,
.gallery-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 20, 26, 0.05), rgba(15, 20, 26, 0.18));
  pointer-events: none;
}

.about-visual {
  min-height: 180px;
}

.btn-brand {
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  border: none;
  color: #fff;
  box-shadow: 0 12px 24px rgba(47, 125, 122, 0.24);
}

.btn-brand:hover,
.btn-brand:focus {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #fff;
}

.btn-outline-brand {
  border: 1px solid rgba(47, 125, 122, 0.32);
  color: var(--teal-dark);
  background: rgba(255, 255, 255, 0.55);
}

.btn-outline-brand:hover,
.btn-outline-brand:focus {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
}

.info-card {
  position: relative;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.info-card:hover,
.doc-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 55px rgba(35, 44, 54, 0.1);
}

.info-icon {
  width: 3rem;
  height: 3rem;
  display: grid;
  place-items: center;
  border-radius: 0.95rem;
  background: rgba(185, 147, 76, 0.13);
  color: var(--gold-dark);
  font-weight: 800;
  margin-bottom: 1rem;
}

.gallery-card {
  position: relative;
  min-height: 250px;
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.55);
  margin: 0;
}

.gallery-card::after {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 1rem;
}

.gallery-card figcaption {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  color: #fff;
  font-weight: 700;
  text-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.gallery-1 {
  background:
    radial-gradient(circle at 25% 20%, rgba(255, 255, 255, 0.35), transparent 18%),
    linear-gradient(135deg, #2f7d7a, #d6b26f);
}

.gallery-2 {
  background:
    radial-gradient(circle at 70% 20%, rgba(255, 255, 255, 0.35), transparent 18%),
    linear-gradient(135deg, #b9934c, #f0d8b7);
}

.gallery-3 {
  background:
    radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.35), transparent 18%),
    linear-gradient(135deg, #3b7a4c, #b4d7a3);
}

.gallery-4 {
  background:
    radial-gradient(circle at 65% 18%, rgba(255, 255, 255, 0.35), transparent 18%),
    linear-gradient(135deg, #d28d78, #f0c6b9);
}

.gallery-5 {
  background:
    radial-gradient(circle at 32% 30%, rgba(255, 255, 255, 0.35), transparent 18%),
    linear-gradient(135deg, #7b6a56, #d9c8a5);
}

.gallery-6 {
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.35), transparent 18%),
    linear-gradient(135deg, #225b59, #79b8af);
}

.gallery-7 {
  background:
    radial-gradient(circle at 28% 18%, rgba(255, 255, 255, 0.35), transparent 18%),
    linear-gradient(135deg, #8c6b2e, #f0d8b7);
}

.doc-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.footer {
  padding: 3rem 0 2rem;
  background: rgba(255, 255, 255, 0.66);
  border-top: 1px solid rgba(67, 53, 32, 0.06);
}

.footer-list li + li {
  margin-top: 0.45rem;
}

.footer-link {
  color: var(--text);
  font-weight: 600;
}

.footer-link:hover {
  color: var(--gold-dark);
}

.social-icon {
  width: 2.8rem;
  height: 2.8rem;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid rgba(67, 53, 32, 0.12);
  background: rgba(255, 255, 255, 0.8);
  color: var(--teal-dark);
  box-shadow: 0 8px 20px rgba(35, 44, 54, 0.06);
  transition: transform 160ms ease, color 160ms ease, border-color 160ms ease, background 160ms ease;
}

.social-icon svg {
  width: 1.25rem;
  height: 1.25rem;
  display: block;
}

.social-icon:hover,
.social-icon:focus {
  color: var(--gold-dark);
  border-color: rgba(185, 147, 76, 0.25);
  background: #fff;
  transform: translateY(-1px);
}

@media (max-width: 991.98px) {
  .hero-section {
    padding-top: 4.25rem;
  }

  .hero-slide {
    min-height: auto;
  }

  .hero-mosaic {
    min-height: 27rem;
  }

  .hero-indicators,
  .hero-control {
    position: static;
  }

  .hero-indicators {
    justify-content: center;
    margin-top: 1rem;
  }

  .hero-control {
    display: inline-flex;
    margin-top: 0.85rem;
  }
}

@media (max-width: 767.98px) {
  .brand-text {
    font-size: 0.95rem;
  }

  .navbar-fundacion {
    padding-top: 0.35rem;
    padding-bottom: 0.35rem;
  }

  .brand-logo {
    width: 56px;
    height: 56px;
  }

  .hero-panel {
    border-radius: 1.5rem;
  }

  .hero-control {
    bottom: 0.75rem;
    width: 2.7rem;
    height: 2.7rem;
  }

  .hero-control-prev {
    right: 3.6rem;
    left: auto;
  }

  .hero-control-next {
    right: 0.75rem;
    left: auto;
  }

  .hero-mosaic {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(4, minmax(160px, 180px));
    min-height: auto;
  }

  .hero-frame-main,
  .hero-frame-top,
  .hero-frame-bottom,
  .hero-frame-strip {
    grid-column: auto;
    grid-row: auto;
  }

  .hero-float {
    position: relative;
    left: auto;
    bottom: auto;
    max-width: none;
    margin-top: 0.85rem;
  }

  .hero-indicators {
    margin-top: 0.85rem;
  }

  .section-pad {
    padding: 3.25rem 0;
  }
}
