:root {
  --brand-black: #111;
  --brand-white: #fff;
  --gray-100: #f7f7f7;
  --gray-300: #d9d9d9;
  --gray-700: #3B3B3B;
  --gray-800: #2F3030;
  --accent: #0d6efd;
  --teal: #38d1c7;
  --ink: #0f0f0f;
  --line: #e6e6e6;
  --bg: #4A4A4A;
  --panel: #353535;
  --txt: #ffffff;
  --muted: #c9c9c9;
  --max: 1440px;
}

html, body {
  scroll-behavior: smooth
}

body {
  font-family: 'Space Grotesk';
}

a {
  text-decoration: none
}

/* ===== HEADER ===== */
.site-header-mobile {
  z-index: 10;
  background: #fff;
}

.topbar-mobile {
  padding: 0.12rem 0;
  border-bottom: 0;
}

.topbar-mobile .logo-gam {
  height: 36px;
}

.topbar-mobile::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -108px;
  height: 108px;
  background: #ffffff;
  clip-path: polygon(0 0, 100% 0, 100% 20%, 0 4%);
  z-index: 3;
  pointer-events: none;
}

.brand .logo-gam {
  height: 35px;
}

.brand-mobile {
  font-weight: 700;
  letter-spacing: .02em;
}

.hdr-right-mobile {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: .25rem;
}

.lang-tabs-mobile {
  display: flex;
  gap: .5rem;
}

.lang-tabs-mobile a {
  font-size: .9rem;
  padding: 0.2rem 0.4rem;
  border: 1px solid transparent;
  color: #000;
  border-radius: 20%;
  font-weight: 300;
  width: 40px;
  height: 25px;
  text-align: center;
  text-transform: uppercase;
}

.lang-tabs-mobile a.active {
  background: #000;
  color: #fff;
  border: 1px solid #000;
}

.lang-tabs-mobile a:hover {
  background: #000;
  color: #fff;
  border: 1px solid #000;
}

.lang-tabs-mobile {
  transition: transform 0.3s ease, opacity 0.3s ease;
  max-height: 50px;
  overflow: hidden;
}

.lang-tabs-mobile.lang-tabs-mobile-hidden {
  max-height: 0;
  opacity: 0;
  margin: 0;
  padding-top: 0;
  padding-bottom: 0;
}

.hdr-icons-mobile {
  display: flex;
  gap: 1.2rem;
}

.hdr-icons-mobile a {
  color: #111;
  opacity: 1;
  font-size: 1.2rem;
  font-weight: 700;
}

.hdr-icons-mobile a:hover {
  opacity: 1;
}

.hdr-icons-mobile a i {
  font-size: 1.5rem;
}

/* ===== HERO (diagonal blanca fina->gruesa izquierda->derecha) ===== */
.hero-mobile {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #d9d9d9 0%, #3B3B3B 100%);
}

.hero-mobile .carousel {
  --bs-carousel-transition-duration: .9s;
}

.hero-mobile .carousel-item {
  height: 60vh;
  min-height: 400px;
  background: linear-gradient(135deg, #d9d9d9 0%, #3B3B3B 100%);
}

.hero-mobile .slide-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
}

.hero-mobile .embed-wrap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-mobile .embed-wrap,
.hero-mobile .embed-wrap {
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  position: absolute;
}

.hero-mobile .embed-wrap iframe,
.hero-mobile .embed-wrap video {
  width: 100vw;
  height: 56.25vw;
  min-height: 100vh;
  min-width: 177.77vh;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* Asegura que el texto rota con cada slide, no queda fijo */
.hero-mobile .carousel-caption {
  left: 15px;
  right: 15px;
  bottom: 15px;
  text-align: left;
  z-index: 4;
}

.caption-box {
  background: rgba(0, 0, 0, .42);
  padding: 1.1rem 1.25rem;
  border-radius: .5rem;
  backdrop-filter: saturate(140%) blur(2px);
}

.hero-mobile .carousel-control-prev,
.hero-mobile .carousel-control-next {
  width: 5.5rem;
}

/* ===== OBRAS ===== */
.obras-section-mobile {
  padding: 2.5rem 0;
}

.obras-filtros-mobile .link {
  font-weight: 700;
  font-size: 1.2rem;
  color: #111;
  margin-right: 1rem;
}

.obras-filtros-mobile .link:last-child {
  margin-right: 0;
}

.btn-calendario-mobile {
  background: #111;
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: .55rem 1.1rem;
  font-weight: 700;
  font-size: 1.35rem;
  border: 1px solid #000;
}

.btn-calendario-mobile:hover {
  background: #fff;
  color: #000;
  border: 1px solid #000;
}

.obra-mobile {
  position: relative;
  display: block;
  color: inherit;
  overflow: hidden;
  height: 100%;
  transition: 0.3s;
  transform: scale(1.0);
}

.obra-mobile:hover {
  z-index: 3;
  transform: scale(1.03);
}

.obra-img-mobile {
  background: #d9d9d9;
}

.c-blue-mobile {
  background: #2457ff;
}

.c-sky-mobile {
  background: #3fb0f3;
}

.c-yellow-mobile {
  background: #ffc55e;
}

.c-mint-mobile {
  background: #b8f5ea;
}

.c-coral-mobile {
  background: #ff8b8b;
}

.c-magenta-mobile {
  background: #ff4fe7;
}

.c-orange-mobile {
  background: #ff7a3a;
}

.c-red-mobile {
  background: #ff5252;
}

.obra-img-mobile {
  background-repeat: no-repeat;
  background-attachment: scroll;
  background-position: center center;
  background-size: cover;
  height: 200px;
}

.obra-content-mobile {
  position: relative;
  height: 200px;
}

.obra-title-mobile p {
  font-weight: 700;
  font-size: 1.3rem;
  font-family: 'Space Grotesk';
}

.obra-desc-mobile {
  color: #000;
  margin: 0 0 .6rem;
  font-weight: 300;
  font-family: 'Space Grotesk';
}

.obra-date-mobile p {
  font-weight: 700;
  margin: 0;
}

.obra-time-mobile p {
  font-weight: 300;
  margin: 0;
}

/* ===== ENTÉRATE ===== */
.enterate-wrap-mobile {
  margin: 2rem 0;
}

.enterate-head-mobile {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: .75rem;
}

.enterate-head-mobile p {
  font-weight: 700;
  margin: 0;
  font-family: 'Space Grotesk';
  font-size: 1.2rem;
}

.enterate-more-mobile {
  font-weight: 700;
  color: #111;
  font-family: 'Space Grotesk';
  font-size: 1.2rem;
}

.enterate-section-mobile a {
  display: block;
  text-decoration: none;
  color: #000;
  transition: 0.3s;
  transform: scale(1.0);
}

.enterate-section-mobile a:hover {
  z-index: 3;
  transform: scale(1.03);
}

.enterate-box-mobile {
  background: #e9e4d7;
  border: 1px solid #e9e4d7;
  border-radius: 0px;
  padding: 1.3rem;
}

.enterate-media-mobile {
  background-repeat: no-repeat;
  background-attachment: scroll;
  background-position: top center;
  background-size: cover;
  height: 250px;
  -webkit-filter: grayscale(100%);
  filter: grayscale(100%);
}

.enterate-kicker-mobile p {
  font-weight: 700;
  margin: 0 0 .5rem;
  font-family: 'Space Grotesk';
  font-size: 1.1rem;
}

.enterate-desc-mobile p {
  font-weight: 700;
  margin: 0;
  font-family: 'Space Grotesk';
  font-size: 1.1rem;
}

.enterate-meta-mobile p {
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #4a4a4a;
  margin: 0;
  font-family: 'Space Grotesk';
  font-size: 0.9rem;
}

/* ===== FOOTER ===== */

.gam-footer-mobile {
  background: var(--bg);
  color: var(--txt);
  padding: 30px 20px;
  position: relative;
  overflow: hidden;
  font-family: 'Space Grotesk';
  background-repeat: no-repeat;
  background-position: 0px 85px;
  background-size: contain;
}

/* Newsletter */
.gf-news-mobile {
  position: relative;
  min-height: 240px;
  height: 100%;
}

.gf-news-bg-mobile {
  background: var(--panel);
  transform: skewY(-10deg);
  transform-origin: top left;
  opacity: .99;
  box-shadow: 0 60px 120px rgba(0, 0, 0, .40)
}

.gf-news-inner-mobile {
  position: absolute;
}

.gf-news-inner-mobile p {
  margin: 0;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--txt);
}

.gf-news-sub-mobile p {
  margin: 0px;
  font-weight: 300;
  font-size: 1.2rem;
  color: var(--txt);
}

.gf-form-mobile {
  display: flex;
  align-items: center;
  gap: 16px
}

.gf-form-mobile input {
  flex: 1;
  max-width: 860px;
  height: 50px;
  border: none;
  border-radius: 999px;
  background: #fff;
  color: #111;
  padding: 0 28px;
  font-size: 19px;
  box-shadow: 0 16px 30px rgba(0, 0, 0, .30)
}

.gf-form-mobile input::placeholder {
  color: #8a8a8a
}

.gf-send-mobile {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, .06);
  display: grid;
  place-items: center;
  background: #fff;
  color: #111;
  box-shadow: 0 16px 30px rgba(0, 0, 0, .30);
  cursor: pointer;
  transition: transform .15s ease
}

.gf-form-mobile input {
  height: 50px;
  font-size: 1.05rem;
  background: #ffffff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .25);
}

.gf-send-mobile {
  width: 50px;
  height: 50px;
  background: #fff;
  color: #111;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .25);
}

.gf-send-mobile:hover {
  transform: translateY(-1px);
  opacity: 1;
}

.gob-chile-mobile img, .logo-media-mobile img {
  filter: invert(1);
}

.top-footer-mobile a {
  color: #fff;
  font-size: 0.8rem;
}

.top-footer-mobile a:hover {
  text-decoration: underline;
}

.logo-footer-mobile p {
  font-family: 'Space Grotesk';
  color: #fff;
  font-size: 0.7rem !important;
  font-weight: 300;
  margin-bottom: 0;
  line-height: 140%;
  text-transform: inherit !important;
}

.logo-footer-mobile img {
  filter: invert(1);
}

.gam-stgo-mobile p {
  font-weight: 300;
  margin-bottom: 0;
  font-size: 0.8rem;
}

.media-mobile p {
  font-weight: 300;
  margin-bottom: 0;
  font-size: 0.8rem;
}

.social-mobile ul {
  margin-bottom: 0;
  padding: 0;
}

.social-mobile ul li {
  display: inline-block;
}

.social-mobile ul li a {
  color: #000;
  background: #fff;
  border-radius: 50%;
  text-align: center;
  vertical-align: middle;
  font-weight: 300;
  display: inline-block;
  width: 25px;
  height: 25px;
  font-size: 1rem;
  padding: 2px;
  margin-left: 2px;
}

.social-mobile ul li a:hover {
  color: #fff;
  background: #000;
}

/* ===== MENU ===== */

.mega-panel {
  position: fixed;
  inset: 0;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  z-index: 3000;
  opacity: 0;
  transform: translateY(-8px);
  max-height: 0;
  overflow: scroll;
  display: none;
  transition: max-height .35s ease, opacity .35s ease, transform .35s ease;
}

.mega-panel.show {
  display: block;
  opacity: 1;
  transform: translateY(0);
  max-height: 100vh;
}

.mega-inner {
  padding: 0;
  height: auto;
  min-height: 100%;
  position: relative;
}

.menu-left {
  position: relative;
  font-weight: 300;
  font-family: 'Space Grotesk';
  font-size: 1.1rem;
}

.menu-logo {
  display: block;
  margin-bottom: 16px;
}

.menu-left h5 {
  font-weight: 700;
  margin: 0px;
  font-family: 'Space Grotesk';
  font-size: 1.4rem;
}

.menu-left ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.menu-left li {
  margin: 0 0 5px 0;
}

.menu-left a {
  color: var(--ink);
  text-decoration: none;
}

.menu-left a:hover {
  text-decoration: underline;
}

.color-line {
  height: 1px;
  width: 50%;
  margin: 18px 0 18px;
  background: #000;
  border-radius: 2px;
}

/* Derecha */
.menu-right {
  position: relative;
  font-weight: 300;
  font-family: 'Space Grotesk';
  font-size: 0.8rem;
}

.mega-col h5 {
  font-weight: 700;
  margin: 0px;
  font-family: 'Space Grotesk';
  font-size: 1.4rem;
}

.mega-col h5 a {
  font-weight: 700;
  font-size: 1.4rem;
  font-family: 'Space Grotesk';
}

.mega-col span {
  font-weight: 700;
  margin: 0px;
  font-family: 'Space Grotesk';
  font-size: 1.4rem;
}

.mega-col a {
  color: var(--ink);
  font-weight: 300;
  line-height: 100%;
  font-size: 1.1rem;
}

.mega-col a:hover {
  text-decoration: underline;
}

.mega-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mega-col li {
  margin: 0 0 5px 0;
}


/* Botón X */
.mega-close {
  position: absolute;
  top: 24px;
  right: 28px;
  background: transparent;
  border: 0;
  color: #111;
  font-size: 34px;
  line-height: 1;
  padding: 6px;
  cursor: pointer;
}

.menu-gam {
  position: absolute;
  top: 20px;
}

.mega-center {

}

.bg-gam {
  background-repeat: no-repeat;
  background-attachment: scroll;
  background-position: top center;
  background-size: cover;
  height: 100%;
}

.bg-01 {
  background-color: #64E2CD;
}

.bg-02 {
  background-color: #7ECDFF;
}

.collapse-toggle {
  width: 100%;
  background: transparent;
  border: 0;
  padding: 10px 0;
  margin: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font: inherit;
  text-align: left;
  cursor: pointer;
  font-size: 1.125rem;
  font-weight: 800;
}

.collapse-toggle+.color-line {
  margin-top: 10px;
}

.collapse-toggle .fa-solid {
  transition: transform .2s ease;
}

.collapse-toggle[aria-expanded="true"] .fa-chevron-right {
  transform: rotate(90deg);
}
