/* ===== Fonts ===== */
@font-face {
  font-family: 'Artico';
  src: url('../assets/fonts/Artico-Light.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Artico';
  src: url('../assets/fonts/Artico-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Artico';
  src: url('../assets/fonts/Artico-Medium.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Artico Expanded';
  src: url('../assets/fonts/Artico-Expanded.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ===== Variables ===== */
:root {
  --azul: #00788E;
  --azul-oscuro: #03798F;
  --azul-victoria: #003A5C;
  --amarillo: #E0C300;
  --amarillo-alt: #DFC323;
  --gris: #53616E;
  --blanco: #FFFFFF;
  --font: 'Artico', 'Segoe UI', sans-serif;
  --max-width: 1440px;
  --content-width: 1200px;
  --side-pad: clamp(20px, 6vw, 120px);
  --radius: 15px;
}

/* ===== Reset ===== */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; width: 100%; }
body {
  font-family: var(--font);
  color: var(--azul);
  background: var(--blanco);
  line-height: 1.35;
  overflow-x: hidden;
  width: 100%;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { font-family: var(--font); cursor: pointer; border: none; background: none; }
ul { list-style: none; }
.container {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 var(--side-pad);
}
.section-title {
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 300;
  color: var(--azul);
  position: relative;
  padding-bottom: 18px;
  margin-bottom: 28px;
}
.section-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 90px;
  height: 3px;
  background: var(--amarillo);
}
.section-title--white { color: var(--blanco); }
.section-title--white::after { background: var(--blanco); }
.beneficios .section-title,
.ubicacion .section-title {
  display: inline-block;
}
.ubicacion .section-title {
  padding-bottom: 0px;
}
.ubicacion .section-title::after {
  width: 100%;
}
.beneficios .section-title::after {
  background: var(--amarillo);
  width: 100%;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 38px;
  border-radius: var(--radius);
  font-size: clamp(1.1rem, 1.6vw, 1.5rem);
  font-weight: 300;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,.15); }
.btn-azul { background: var(--azul); color: var(--blanco); }
.btn-azul:hover { background: var(--azul-oscuro); }
.btn-blanco { background: var(--blanco); color: var(--azul); }
.btn-pill { background: var(--azul); color: var(--blanco); border-radius: var(--radius); }

/* ===== Top utility bar ===== */
.topbar {
  background: var(--amarillo);
  color: var(--gris);
}
.topbar .container {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(28px, 6vw, 90px);
  padding-top: 12px;
  padding-bottom: 12px;
  font-size: 20px;
  max-width: 100%;
}
.topbar__item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--gris);
  font-weight: 400;
  min-width: 0;
}
.topbar__item img { width: 18px; height: auto; opacity: .85; }
.topbar__item--address {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

/* ===== Nav ===== */
.navbar {
  background: var(--azul);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0,0,0,.08);
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
  max-width: 100%;
}
.navbar__logo img { height: 54px; width: auto; }
.navbar__links {
  display: flex;
  align-items: center;
  gap: clamp(40px, 6vw, 100px);
}
.navbar__links a {
  color: var(--blanco);
  font-size: 20px;
  font-weight: 400;
  position: relative;
}
.navbar__links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 2px;
  background: var(--amarillo);
  transition: width .25s ease;
}
.navbar__links a:hover::after { width: 100%; }
.navbar__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
}
.navbar__toggle span { width: 26px; height: 2px; background: var(--blanco); }

/* ===== Hero ===== */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
  align-items: center;
  gap: 120px;
  padding: 56px var(--side-pad) 15px 0;
  max-width: var(--max-width);
}
.hero__carousel {
  position: relative;
  overflow: hidden;
  aspect-ratio: 812 / 825;
  background: #eee;
}
.hero__carousel .carousel__slide {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity .6s ease;
}
.hero__carousel .carousel__slide.is-active { opacity: 1; }
.hero__carousel .carousel__slide img { width: 100%; height: 100%; object-fit: cover; }
.hero__content h1 {
  font-size: 50px;
  font-weight: 300;
  color: var(--azul);
  margin-bottom: 28px;
}
.hero__content h1 strong {
  font-weight: 600;
}
.hero__badge {
  display: block;
  width: 90%;
  background: var(--azul);
  color: var(--blanco);
  padding: 6px 20px;
  border-radius: var(--radius);
  font-size: 35px;
  font-weight: 300;
  margin-bottom: 45px;
  box-sizing: border-box;
  white-space: nowrap;
  text-align: center;
}
.hero__content .btn {
  display: block;
  width: 90%;
  box-sizing: border-box;
  text-align: center;
  font-size: 35px;
  padding: 8px 20px;
}
.hero__content .btn-azul {
  background: var(--blanco);
  color: var(--azul);
  border: 2px solid var(--azul);
}
.hero__content .btn-azul:hover {
  background: var(--azul);
  color: var(--blanco);
}

/* generic dot/arrow carousel controls */
.carousel-dots {
  display: flex;
  gap: 8px;
  align-items: center;
  background: rgba(0,120,142,.9);
  padding: 8px 14px;
  border-radius: 25px;
  width: max-content;
}
.carousel-dots button {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--blanco);
  opacity: .7;
}
.carousel-dots button.is-active { background: var(--amarillo); opacity: 1; }
.carousel-arrow {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--azul);
  color: var(--blanco);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}
.carousel-arrow:hover { background: var(--azul-oscuro); }

/* ===== CTA venta section ===== */
.cta-venta {
  background: var(--blanco);
  padding: 40px var(--side-pad) 90px;
}
.cta-venta__wrap {
  max-width: var(--content-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(0,1fr);
  gap: 60px;
  align-items: center;
  border: 2px solid var(--azul);
  border-radius: var(--radius);
  padding: 40px;
  box-sizing: border-box;
}
.cta-venta__text { width: 470px; }
.cta-venta__text h2 {
  font-size: 45px;
  font-weight: 300;
  color: var(--azul);
  margin-bottom: 20px;
}
.cta-venta__text h2 strong {
  position: relative;
  display: inline-block;
}
.cta-venta__text h2 strong::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 3px;
  background: var(--amarillo);
}
.cta-venta__address {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 25px;
  font-weight: 300;
  margin: 22px 0 32px;
}
.cta-venta__address img { width: 28px; margin-top: 4px; flex-shrink: 0; }
.cta-venta__text .btn {
  display: flex;
  width: 100%;
  box-sizing: border-box;
  text-align: center;
  font-size: 35px;
  padding-top: 8px;
  padding-bottom: 8px;
}
.cta-venta__text .btn-azul {
  background: var(--blanco);
  color: var(--azul);
  border: 2px solid var(--azul);
}
.cta-venta__text .btn-azul:hover {
  background: var(--azul);
  color: var(--blanco);
}
.cta-venta__img {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,.12);
}

/* ===== Planos ===== */
.planos { padding: 10px var(--side-pad) 90px; }
.planos__wrap { max-width: var(--content-width); margin: 0 auto; }
.planos__intro { font-size: clamp(1.5rem, 2.5vw, 1.8rem); font-weight: 300; max-width: 520px; }
.planos__detail .section-title { font-size: 45px; }
.planos__detail .section-title::after { display: none; }
.planos__detail .section-title strong {
  position: relative;
  display: inline-block;
  font-weight: 500;
}
.planos__detail .section-title strong::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 3px;
  background: var(--amarillo);
}
.planos__grid {
  display: grid;
  grid-template-columns: minmax(0,570px) minmax(0,1fr);
  gap: 50px;
  margin-top: 40px;
  align-items: stretch;
}
.planos__gallery {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 700px;
  height: 100%;
}
.planos__stage {
  position: relative;
  width: 100%;
  height: calc(100% + 40px);
  flex-shrink: 0;
  border-radius: var(--radius);
  overflow: hidden;
}
.planos__stage img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .3s ease;
}
.planos__stage img.is-active { opacity: 1; }
.planos__stage img[data-plano="b"] { transform: rotate(180deg); }
.planos__tabs {
  display: flex;
  justify-content: center;
  gap: 22px;
}
.plano-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 68px; height: 68px;
  border-radius: 10px;
  background: transparent;
  border: none;
  color: var(--azul);
  font-size: 2.8rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background .2s ease, color .2s ease;
}
.plano-tab.is-active { background: var(--azul); color: var(--blanco); }

.planos__detail-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 500px;
  box-sizing: border-box;
  font-size: 3.4rem;
  font-weight: 600;
  color: var(--azul);
  padding: 14px 20px;
  border: 2px solid var(--azul);
  border-radius: var(--radius);
  margin-bottom: 20px;
}
.planos__specs {
  display: flex;
  width: 500px;
  box-sizing: border-box;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 30px;
}
.planos__specs span {
  flex: 1 1 auto;
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8px 30px;
  font-size: 30px;
  font-weight: 300;
}
.spec-azul { background: var(--azul); color: var(--blanco); }
.spec-amarillo { background: var(--amarillo); color: var(--azul); }

.planos__icons {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(0,1fr);
  gap: 20px 40px;
  width: 500px;
  box-sizing: border-box;
}
.planos__icons li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 28px;
  font-weight: 300;
}
.planos__icons-item--top { align-items: flex-start; }
.planos__icons img { width: 64px; height: 64px; flex-shrink: 0; }

/* ===== Beneficios ===== */
.beneficios {
  background: var(--azul);
  color: var(--blanco);
  padding: 60px var(--side-pad) 80px;
}
.beneficios__wrap { max-width: var(--content-width); margin: 0 auto; }
.beneficios__subtitle {
  font-size: clamp(1.1rem, 1.8vw, 1.4rem);
  font-weight: 300;
  margin-bottom: 30px;
}
.beneficios__carousel {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 1200/500;
  background: #05606f;
}
.beneficios__carousel .carousel__slide { position: absolute; inset: 0; opacity: 0; transition: opacity .6s ease; }
.beneficios__carousel .carousel__slide.is-active { opacity: 1; }
.beneficios__carousel .carousel__slide img { width: 100%; height: 100%; object-fit: cover; }
.beneficios__caption {
  position: absolute;
  left: 24px;
  bottom: 24px;
  background: var(--blanco);
  color: var(--azul);
  padding: 12px 26px;
  border-radius: var(--radius);
  font-weight: 400;
  font-size: 1.15rem;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.beneficios__controls {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 28px;
}

/* ===== Ubicacion ===== */
.ubicacion { padding: 80px var(--side-pad); }
.ubicacion__wrap { max-width: var(--content-width); margin: 0 auto; }
.ubicacion__map {
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 36px;
  box-shadow: 0 20px 50px rgba(0,0,0,.1);
}
.ubicacion__info {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-bottom: -40px;
}
.ubicacion__intro { font-size: 25px; font-weight: 400; margin: 0; margin-top: -70px; flex: 1; min-width: 220px; }
.ubicacion__address {
  position: relative;
  display: inline-block;
  background: var(--azul);
  color: var(--blanco);
  padding: 28px 30px 28px 70px;
  border-radius: 0;
  font-size: 25px;
  font-weight: 400;
  line-height: 1.5;
  text-align: left;
  max-width: 560px;
  width: 100%;
  box-sizing: border-box;
  border-bottom-right-radius: 90px;
}
.ubicacion__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  row-gap: 30px;
  column-gap: 4px;
  margin-bottom: 40px;
  max-width: 610px;
  margin-left: auto;
}
.poi {
  display: flex;
  align-items: center;
  gap: 16px;
}
.poi img { width: 46px; height: 46px; flex-shrink: 0; }
.poi span { font-size: 25px; font-weight: 400; }
.ubicacion__buttons { display: flex; gap: 20px; flex-wrap: wrap; margin-top: -70px; }
.map-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 2px solid var(--azul);
  border-radius: var(--radius);
  padding: 10px 24px;
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--azul);
  min-width: 212px;
  box-sizing: border-box;
  transition: background .2s ease, color .2s ease;
}
.map-btn img { width: 32px; height: 32px; }
.map-btn:hover { background: var(--azul); color: var(--blanco); }

/* ===== Contacto ===== */
.contacto-section { background: var(--blanco); padding: 90px var(--side-pad) 0; }
.contacto-wrap { position: relative; max-width: var(--content-width); margin: 0 auto; }
.contacto-accent {
  position: absolute;
  top: 115px;
  bottom: 230px;
  left: 50%;
  right: auto;
  width: 100vw;
  transform: translateX(-50%);
  background: var(--amarillo);
  z-index: 0;
}
.contacto {
  position: relative;
  z-index: 1;
  background: var(--azul);
  color: var(--blanco);
  padding: clamp(30px, 5vw, 70px);
  border-bottom-right-radius: 500px;
}
.contacto .section-title { display: inline-block; }
.contacto .section-title::after { background: var(--amarillo); width: 100%; }
.contacto__grid {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(0,1fr);
  gap: 24px 40px;
  margin-top: 30px;
}
.contacto__grid .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 2px; }
.field label { font-size: 25px; font-weight: 300; }
.field input, .field textarea {
  width: calc(100% - 80px);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--blanco);
  color: var(--blanco);
  font-family: var(--font);
  font-size: 1rem;
  padding: 2px 4px 8px;
  outline: none;
  transition: border-color .2s ease;
}
.field input::placeholder, .field textarea::placeholder { color: rgba(255,255,255,.55); }
.field textarea {
  resize: vertical;
  min-height: 96px;
  line-height: 32px;
  background-image: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 31px,
    var(--blanco) 31px,
    var(--blanco) 32px
  );
  background-size: 100% 32px;
  background-repeat: repeat-y;
}
.contacto__bottom {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 30px;
}
.contacto__recaptcha { flex-shrink: 0; }
.btn-outline-blanco { background: transparent; border: 2px solid var(--blanco); color: var(--blanco); }
.btn-outline-blanco:hover { background: var(--blanco); color: var(--azul); }

/* ===== Horarios / contacto-info strip ===== */
.info-strip {
  padding: 24px var(--side-pad) 70px;
}
.info-strip__wrap {
  max-width: var(--content-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(0,1fr);
  gap: 40px;
}
.info-strip h3 {
  font-size: 45px;
  font-weight: 300;
  color: var(--azul);
  padding-bottom: 0;
  margin-bottom: 16px;
  border-bottom: 3px solid var(--amarillo);
  display: inline-block;
}
.info-strip__contact { margin-top: 80px; }
.info-strip p, .info-strip .contact-line {
  font-size: 25px;
  font-weight: 400;
  color: var(--azul);
  line-height: 1.7;
}
.contact-line { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.contact-line img { width: 22px; height: 22px; }

/* ===== Footer ===== */
.footer {
  background: var(--azul-victoria);
  color: var(--blanco);
  padding: 46px var(--side-pad);
}
.footer__wrap {
  max-width: var(--content-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}
.footer__brand { display: flex; align-items: center; gap: 16px; justify-self: center; }
.footer__social { justify-self: start; }
.footer__brand img.cv-logo { height: 90px; width: auto; }
.footer__social { display: flex; gap: 16px; }
.footer__social img { width: 32px; height: 32px; opacity: .9; transition: opacity .2s ease; }
.footer__social a:hover img { opacity: 1; transform: translateY(-2px); }
.footer__copy { font-size: 20px; font-weight: 300; max-width: 340px; text-align: right; opacity: .9; justify-self: end; }
.footer__bold-link { color: #e02020; font-weight: 500; }

/* ===== Responsive ===== */
@media (max-width: 980px) {
  .hero { grid-template-columns: minmax(0,1fr); }
  .cta-venta__wrap { grid-template-columns: minmax(0,1fr); }
  .cta-venta__img { order: -1; }
  .planos__grid { grid-template-columns: minmax(0,1fr); }
  .info-strip__wrap { grid-template-columns: minmax(0,1fr); }
  .contacto__grid { grid-template-columns: minmax(0,1fr); }
  .footer__wrap { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .footer__copy { text-align: center; max-width: 100%; justify-self: center; }
}

@media (max-width: 560px) {
  .planos__icons { grid-template-columns: minmax(0,1fr); }
}

@media (max-width: 720px) {
  .navbar__links {
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: min(78vw, 320px);
    background: var(--azul);
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 40px;
    transform: translateX(100%);
    transition: transform .3s ease;
    box-shadow: -10px 0 30px rgba(0,0,0,.2);
  }
  .navbar__links.is-open { transform: translateX(0); }
  .navbar__toggle { display: flex; }
  .topbar .container { justify-content: center; text-align: center; }
  .topbar__item--address { position: static; transform: none; }
}
