:root {
  --blue: #162a8a;
  --blue-dark: #0b195d;
  --blue-deeper: #07113f;
  --blue-soft: #edf1ff;
  --gold: #c9a03c;
  --gold-dark: #a98125;
  --gold-soft: #fbf3dc;
  --white: #ffffff;
  --bg: #f7f8fc;
  --bg-soft: #f1f4fb;
  --text: #1d2433;
  --muted: #63708c;
  --border: #e4e8f2;
  --shadow-sm: 0 8px 20px rgba(11, 25, 93, 0.08);
  --shadow: 0 18px 40px rgba(11, 25, 93, 0.12);
  --shadow-lg: 0 24px 60px rgba(11, 25, 93, 0.18);
  --radius: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --container: 1180px;
  --transition: 0.28s ease;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
}

img {
  display: block;
  max-width: 100%;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  font: inherit;
  cursor: pointer;
}

iframe {
  display: block;
}

.container {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
}

/* TOPBAR */
.topbar {
  background: linear-gradient(90deg, var(--blue-deeper), var(--blue-dark));
  color: var(--white);
}

.topbar-inner {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-mini span {
  font-size: 0.92rem;
  font-weight: 600;
  opacity: 0.95;
}

/* LANGUAGE */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-btn {
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: transparent;
  color: var(--white);
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 700;
  transition: var(--transition);
}

.lang-btn:hover {
  background: rgba(255, 255, 255, 0.08);
}

.lang-btn.active {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--blue-dark);
}

/* NAVBAR */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo-block {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.logo-frame {
  width: 76px;
  height: 76px;
  border-radius: 22px;
  background: linear-gradient(180deg, #d8b45f, #ba902d);
  display: grid;
  place-items: center;
  padding: 10px;
  box-shadow: var(--shadow);
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid rgba(255, 255, 255, 0.65);
}

.logo-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.logo-texts h1 {
  margin: 0;
  color: var(--blue-dark);
  font-size: 1.22rem;
  line-height: 1.15;
}

.logo-texts p {
  margin: 6px 0 0;
  color: var(--gold-dark);
  font-weight: 700;
  font-size: 0.96rem;
}

.nav-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 22px;
}

.menu-toggle {
  display: none;
  width: 52px;
  height: 52px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--white);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  box-shadow: var(--shadow-sm);
}

.menu-toggle span {
  width: 22px;
  height: 2px;
  border-radius: 999px;
  background: var(--blue-dark);
  transition: transform var(--transition), opacity var(--transition);
}

.menu-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-links a {
  position: relative;
  color: var(--blue-dark);
  font-weight: 700;
  transition: var(--transition);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -7px;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: var(--transition);
}

.nav-links a:hover {
  color: var(--blue);
}

.nav-links a:hover::after {
  width: 100%;
}

/* HERO */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(201, 160, 60, 0.22), transparent 28%),
    radial-gradient(circle at left center, rgba(255, 255, 255, 0.08), transparent 20%),
    linear-gradient(135deg, rgba(7, 17, 63, 0.98), rgba(22, 42, 138, 0.94));
  color: var(--white);
  padding: 78px 0 86px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.03), transparent 35%),
    linear-gradient(0deg, rgba(0,0,0,0.08), transparent 30%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 36px;
  align-items: center;
}

.pill,
.section-mini {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.pill {
  background: rgba(255, 255, 255, 0.11);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--white);
}

.section-mini {
  background: var(--gold-soft);
  color: var(--gold-dark);
}

.hero-copy h2 {
  margin: 18px 0 14px;
  font-family: "Playfair Display", serif;
  font-size: clamp(2.2rem, 4vw, 4.3rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
}

.hero-copy p {
  margin: 0;
  max-width: 700px;
  font-size: 1.05rem;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.88);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 30px 0;
}

.btn {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border-radius: 14px;
  font-weight: 800;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--gold);
  color: var(--blue-dark);
  box-shadow: 0 10px 24px rgba(201, 160, 60, 0.24);
}

.btn-primary:hover {
  background: #d6ad49;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.14);
}

.highlight-card {
  max-width: 540px;
  padding: 18px 18px 16px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}

.highlight-card span {
  display: block;
  margin-bottom: 8px;
  color: #f3d99a;
  font-size: 0.9rem;
  font-weight: 700;
}

.highlight-card strong {
  display: block;
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.highlight-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.98rem;
  line-height: 1.65;
}

/* HERO PHOTOS */
.hero-visual {
  display: grid;
  gap: 16px;
}

.hero-photo,
.gallery-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  background-color: #dfe6f7;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

.hero-photo::before,
.gallery-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 17, 63, 0.08), rgba(7, 17, 63, 0.22));
  transition: var(--transition);
}

.hero-photo:hover::before,
.gallery-card:hover::before {
  background: linear-gradient(180deg, rgba(7, 17, 63, 0.04), rgba(7, 17, 63, 0.14));
}

.hero-photo span,
.gallery-card span {
  position: absolute;
  left: 16px;
  bottom: 16px;
  z-index: 1;
  margin: 0;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--blue-dark);
  font-size: 0.88rem;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}

.main-photo {
  min-height: 360px;
}

.hero-photo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.small-photo {
  min-height: 170px;
}

/* SECTIONS */
.section {
  padding: 80px 0;
}

.section-light {
  background: var(--white);
}

.section-gold {
  background: linear-gradient(180deg, #fffaf0 0%, #fff6df 100%);
}

.section-head {
  margin-bottom: 30px;
}

.section-head.center {
  text-align: center;
}

.section-head h2 {
  margin: 14px 0 10px;
  color: var(--blue-dark);
  font-size: clamp(1.9rem, 3vw, 2.85rem);
  line-height: 1.12;
}

.section-head p {
  margin: 0;
  max-width: 780px;
  color: var(--muted);
  line-height: 1.8;
}

/* INTRO CARDS */
.intro-section {
  position: relative;
  z-index: 2;
  margin-top: -30px;
}

.intro-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.intro-card,
.identity-card,
.value-card,
.schedule-day,
.accordion-item,
.contact-strip-inner {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.intro-card {
  padding: 24px;
  transition: transform var(--transition), box-shadow var(--transition);
}

.intro-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.intro-card h3 {
  margin: 0 0 10px;
  color: var(--blue-dark);
  font-size: 1.15rem;
}

.intro-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

/* TOOLBAR */
.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.toolbar + .toolbar {
  margin-top: 12px;
}

.toolbar-secondary {
  margin-bottom: 24px;
}

.filter-btn {
  border: none;
  padding: 12px 16px;
  border-radius: 999px;
  background: #edf1ff;
  color: var(--blue);
  font-weight: 800;
  transition: var(--transition);
}

.filter-btn:hover {
  background: #dfe7ff;
}

.filter-btn.active {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 10px 20px rgba(22, 42, 138, 0.18);
}

/* SCHEDULE */
.schedule-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.schedule-day {
  padding: 22px;
}

.schedule-day h3 {
  margin: 0 0 16px;
  color: var(--blue-dark);
  font-size: 1.24rem;
}

.activity-list {
  display: grid;
  gap: 12px;
}

.activity-item {
  padding: 14px;
  border-radius: 16px;
  background: linear-gradient(180deg, #fbfcff 0%, #f6f8ff 100%);
  border: 1px solid #edf1f7;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.activity-item:last-child {
  margin-bottom: 0;
}

.activity-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
  border-color: #dbe3f5;
}

.activity-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.activity-title {
  color: var(--text);
  font-weight: 800;
}

.activity-time {
  color: var(--gold-dark);
  font-weight: 800;
  white-space: nowrap;
}

.activity-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
}

.tag-blue {
  background: #eaf0ff;
  color: var(--blue);
}

.tag-gold {
  background: #fbf0cf;
  color: var(--gold-dark);
}

/* GALLERY */
.gallery-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 16px;
}

.gallery-card {
  position: relative;
  padding: 0;
  min-height: 220px;
  border: 1px solid var(--border);
  cursor: pointer;
}

.gallery-card.large {
  grid-row: span 2;
  min-height: 460px;
}

.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 28px;
  background: rgba(7, 17, 63, 0.88);
}

.gallery-lightbox.is-open {
  display: flex;
}

.lightbox-content {
  width: min(980px, 100%);
  display: grid;
  gap: 16px;
  justify-items: center;
}

.lightbox-content img {
  width: 100%;
  max-height: 76vh;
  object-fit: contain;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-lg);
}

.lightbox-caption {
  width: min(720px, 100%);
  text-align: center;
  color: var(--white);
}

.lightbox-caption strong {
  display: block;
  font-size: 1.15rem;
  margin-bottom: 6px;
}

.lightbox-caption p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
}

.lightbox-nav,
.lightbox-close {
  border: none;
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}

.lightbox-nav {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  font-size: 2rem;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  font-size: 2rem;
  line-height: 1;
}

body.lightbox-open {
  overflow: hidden;
}

/* LOCATION */
#ubicacion .container > div:last-child {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 20px;
}

.identity-card {
  padding: 24px;
}

.identity-card h3 {
  margin: 0 0 12px;
  color: var(--blue-dark);
  font-size: 1.18rem;
}

.identity-card p {
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.8;
}

.identity-card p:last-child {
  margin-bottom: 0;
}

/* MISSION / VALUES */
.identity-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-bottom: 18px;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.value-card {
  padding: 20px;
  transition: transform var(--transition), box-shadow var(--transition);
}

.value-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.value-card h4 {
  margin: 0 0 10px;
  color: var(--blue-dark);
  font-size: 1.08rem;
}

.value-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.72;
}

/* ACCORDION */
.accordion {
  display: grid;
  gap: 14px;
}

.accordion-item {
  overflow: hidden;
}

.accordion-header {
  width: 100%;
  padding: 20px 22px;
  border: none;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
  color: var(--blue-dark);
  font-size: 1rem;
  font-weight: 800;
}

.accordion-icon {
  color: var(--gold-dark);
  font-size: 1.3rem;
  transition: transform var(--transition);
}

.accordion-item.open .accordion-icon {
  transform: rotate(45deg);
}

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.accordion-content {
  padding: 0 22px 22px;
  color: var(--muted);
  line-height: 1.8;
}

/* CONTACT STRIP */
.contact-strip-inner {
  padding: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.contact-strip-inner h2 {
  margin: 10px 0;
  color: var(--blue-dark);
  font-size: clamp(1.7rem, 3vw, 2.4rem);
}

.contact-strip-inner p {
  margin: 0;
  max-width: 760px;
  color: var(--muted);
  line-height: 1.8;
}

/* FOOTER */
.footer {
  background: linear-gradient(135deg, var(--blue-deeper), var(--blue-dark));
  color: var(--white);
  padding: 28px 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.footer-inner h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.footer-inner p {
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
}

/* RESPONSIVE */
@media (max-width: 1100px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    max-width: 900px;
  }

  .hero-visual {
    max-width: 920px;
  }
}

@media (max-width: 980px) {
  .intro-cards,
  .schedule-grid,
  .identity-grid,
  .values-grid,
  .gallery-grid,
  .footer-inner,
  .contact-strip-inner,
  #ubicacion .container > div:last-child {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }

  .gallery-card.large {
    grid-row: auto;
    min-height: 280px;
  }

  .nav-inner {
    min-height: auto;
    padding: 16px 0;
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-links {
    width: 100%;
    gap: 16px;
    justify-content: space-between;
  }

  .main-photo {
    min-height: 300px;
  }

  .small-photo {
    min-height: 190px;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(var(--container), calc(100% - 22px));
  }

  .topbar-inner,
  .logo-block {
    flex-direction: column;
    align-items: flex-start;
  }

  .topbar-inner {
    padding: 12px 0;
  }

  .lang-switch {
    width: 100%;
    justify-content: flex-start;
  }

  .logo-texts h1 {
    font-size: 1.08rem;
  }

  .logo-texts p {
    font-size: 0.9rem;
  }

  .nav-inner {
    align-items: stretch;
  }

  .menu-toggle {
    display: inline-flex;
    align-self: flex-end;
    margin-top: -60px;
  }

  .nav-links {
    display: none;
    width: 100%;
    margin-top: 14px;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: linear-gradient(180deg, #ffffff 0%, #f7f9ff 100%);
    box-shadow: var(--shadow);
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .nav-links a {
    padding: 12px 14px;
    border-radius: 14px;
    background: var(--blue-soft);
  }

  .nav-links.is-open {
    display: grid;
  }

  .nav-links a::after {
    display: none;
  }

  .hero {
    padding: 58px 0 66px;
  }

  .section {
    padding: 60px 0;
  }

  .hero-copy h2 {
    font-size: 2.2rem;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .btn,
  .filter-btn {
    width: 100%;
  }

  .toolbar {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 6px;
    scrollbar-width: thin;
  }

  .filter-btn {
    flex: 0 0 auto;
  }

  .hero-photo-grid {
    grid-template-columns: 1fr;
  }

  .main-photo {
    min-height: 240px;
  }

  .small-photo,
  .gallery-card,
  .gallery-card.large {
    min-height: 200px;
  }

  .gallery-lightbox {
    padding: 18px 12px;
    gap: 10px;
  }

  .lightbox-content {
    gap: 12px;
  }

  .lightbox-content img {
    max-height: 62vh;
    border-radius: 18px;
  }

  .lightbox-nav {
    position: absolute;
    bottom: 24px;
    width: 48px;
    height: 48px;
    font-size: 1.7rem;
  }

  .lightbox-prev {
    left: 18px;
  }

  .lightbox-next {
    right: 18px;
  }

  .lightbox-close {
    top: 14px;
    right: 14px;
    width: 46px;
    height: 46px;
  }

  .activity-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .contact-strip-inner {
    padding: 22px;
  }

  .intro-card,
  .identity-card,
  .value-card,
  .schedule-day,
  .activity-item {
    padding: 20px;
  }

  .schedule-day {
    border-radius: 20px;
  }

  .accordion-header {
    padding: 18px;
  }

  .accordion-content {
    padding: 0 18px 18px;
  }

  .hero-photo span,
  .gallery-card span {
    left: 12px;
    right: 12px;
    bottom: 12px;
    width: auto;
    max-width: calc(100% - 24px);
    font-size: 0.82rem;
    white-space: normal;
  }
}
