*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  color: var(--navy);
  background: var(--ice);
  line-height: 1.5;
}

button {
  font-family: inherit;
  cursor: pointer;
}

svg {
  width: 21px;
  height: 21px;
  flex-shrink: 0;
}

.site {
  max-width: var(--site-max);
  padding: 0 28px 60px;
  margin: 0 auto;
}

/* —— Hero —— */
.hero {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: var(--gap);
  row-gap: 0;
  align-items: stretch;
  min-height: 0;
  padding: 24px 0 0;
  isolation: isolate;
}

.hero .brand {
  grid-column: 1;
  grid-row: 1;
}

.brand {
  display: flex;
  align-items: center;
  position: relative;
  z-index: 2;
  gap: 11px;
  width: max-content;
}

.brand img {
  height: 52px;
  width: 52px;
  object-fit: contain;
}

[data-page-id="1"] .brand-mark {
  display: block;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  line-height: 0;
}

[data-page-id="1"] .brand-mark img {
  width: 112%;
  height: 112%;
  margin: -6%;
  object-fit: cover;
  display: block;
}

.brand span {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand strong {
  font-size: 21px;
  color: var(--blue);
  font-weight: 800;
}

.brand small {
  font-size: 14px;
  color: var(--blue);
  letter-spacing: -0.5px;
}

.brand::after {
  content: "";
  width: min(330px, 28vw);
  height: 1px;
  background: var(--blue);
  opacity: 0.55;
  position: absolute;
  left: 100%;
  margin-left: 16px;
}

.hero-copy {
  display: contents;
}

[data-page-id="1"] .hero-copy {
  display: contents;
}

[data-page-id="1"] .hero h1 {
  grid-column: 1;
  grid-row: 2;
  margin-top: 18px;
  max-width: none;
  position: relative;
  z-index: 2;
  min-width: 0;
  padding-right: 12px;
}

[data-page-id="1"] .hero-copy > p {
  grid-column: 1;
  grid-row: 3;
  position: relative;
  z-index: 2;
  padding-right: 12px;
}

[data-page-id="1"] .hero .hint {
  grid-column: 1;
  grid-row: 4;
  position: relative;
  z-index: 2;
  justify-self: start;
}

.hero h1 {
  margin: 0;
  font-size: clamp(29px, 3.5vw, 42px);
  line-height: 1.09;
  letter-spacing: -1.5px;
  font-weight: 800;
}

.hero h1 .gold {
  color: var(--yellow);
  text-shadow: 1px 1px 0 var(--blue);
}

.hero h1 .emphasis {
  color: var(--blue);
  border-bottom: 5px solid var(--yellow);
}

.brand-text {
  color: var(--blue);
  font-weight: 800;
}

.hero-copy > p {
  font-size: 15px;
  line-height: 1.45;
  color: var(--text-muted);
  margin: 14px 0 10px;
  max-width: 36em;
}

.hint {
  background: var(--hint-bg);
  border-radius: 100px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 18px;
  font-size: 12px;
  color: var(--blue);
  font-weight: 600;
}

.hint svg {
  width: 18px;
  height: 18px;
}

.building {
  grid-column: 2;
  grid-row: 1 / span 2;
  justify-self: stretch;
  align-self: end;
  width: 100%;
  min-width: 0;
}

@media (min-width: 721px) {
  [data-page-id="1"] .hero {
    align-items: start;
    padding-bottom: 6px;
  }

  /* Tope: fila del logo. Base: fila del botón hint. Sin altura fija 340px. */
  [data-page-id="1"] .hero .hero-media.building {
    grid-row: 1 / 5;
    grid-column: 2;
    align-self: stretch;
    justify-self: stretch;
    width: 100%;
    margin: 0;
    padding: 0;
    transform: none;
    height: 100%;
    min-height: 0 !important;
    max-height: none;
  }

  [data-page-id="1"] .hero .hero-media.building img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 58% 22%;
  }
}

.photo-area img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* —— Tarjetas de beneficios —— */
.benefits {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: var(--gap);
  row-gap: var(--gap);
  margin-top: 4px;
  align-items: stretch;
}

/* P1: quinta card a ancho completo — contenido izquierda, foto derecha */
@media (min-width: 721px) {
  [data-page-id="1"] .benefits #benefit-5 {
    grid-column: 1 / -1;
    width: 100%;
    max-width: none;
    justify-self: stretch;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 42%);
    grid-template-rows: auto;
    align-content: stretch;
    align-items: stretch;
    column-gap: 16px;
  }

  [data-page-id="1"] .benefits #benefit-5 .card-text {
    grid-column: 1;
    grid-row: 1;
    margin-top: 0;
    min-width: 0;
  }

  [data-page-id="1"] .benefits #benefit-5 .photo-area {
    grid-column: 2;
    grid-row: 1;
    height: auto;
    min-height: var(--photo-h);
    align-self: stretch;
  }
}

/* —— Cierre P1: mismo lenguaje que el hero (sin card) —— */
[data-page-id="1"] .closing-banner {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: var(--gap);
  row-gap: 0;
  align-items: stretch;
  margin-top: 28px;
  padding: 0;
  isolation: isolate;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
}

[data-page-id="1"] .closing-banner__copy {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
  position: relative;
  z-index: 2;
  padding: 0 12px 0 0;
  align-self: center;
}

[data-page-id="1"] .closing-banner__copy h2 {
  margin: 0 0 10px;
  font-size: clamp(26px, 3.1vw, 38px);
  line-height: 1.09;
  letter-spacing: -1.1px;
  font-weight: 800;
  color: #082c61;
}

[data-page-id="1"] .closing-banner__highlight {
  color: #075c9e;
  border-bottom: 5px solid #ffd127;
}

[data-page-id="1"] .closing-banner__copy > p {
  margin: 0 0 14px;
  font-size: 15px;
  line-height: 1.45;
  color: var(--text-body);
  max-width: 36em;
}

[data-page-id="1"] .closing-banner__benefits {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  align-items: stretch;
  max-width: 100%;
}

[data-page-id="1"] .closing-banner__benefit {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  gap: 5px;
  min-width: 0;
  padding: 4px 2px 0;
  font-size: 10px;
  line-height: 1.22;
  font-weight: 650;
  color: #082c61;
  background: transparent;
  border: none;
  border-radius: 0;
}

[data-page-id="1"] .closing-banner__benefit-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #eaf5fb;
  color: #075c9e;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

[data-page-id="1"] .closing-banner__benefit-icon svg {
  width: 19px;
  height: 19px;
}

[data-page-id="1"] .closing-banner__media {
  grid-column: 2;
  grid-row: 1;
  justify-self: stretch;
  align-self: end;
  width: 100%;
  min-width: 0;
}

[data-page-id="1"] .closing-banner .hero-media {
  height: min(240px, 26vw);
  min-height: 190px;
  width: 100%;
  background: var(--ice);
}

[data-page-id="1"] .closing-banner .hero-media img {
  object-position: 60% center;
}

.benefit {
  background: var(--white);
  padding: var(--card-pad);
  border-radius: var(--round);
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto auto auto auto;
  align-content: start;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition), box-shadow var(--transition);
}

.benefit:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(8, 44, 97, 0.1);
}

.benefit--navigable {
  cursor: pointer;
}

.photo-area {
  height: var(--photo-h);
  position: relative;
  border-radius: 13px;
  overflow: hidden;
  background: #d3eaf8;
  flex-shrink: 0;
}

.card-content {
  padding: 0 2px 0;
  display: contents;
}

.card-text {
  margin-top: var(--space-img-title);
  min-width: 0;
}

.card-text h2 {
  font-size: 21px;
  letter-spacing: -0.65px;
  line-height: 1.22;
  margin: 0 0 var(--space-title-desc);
  font-weight: 800;
}

.card-text p {
  font-size: 14px;
  line-height: 1.45;
  color: var(--text-body);
  margin: 0 0 var(--space-desc-tiles);
}

.tile-grid {
  display: grid;
  gap: var(--tile-gap);
  margin: 0 0 var(--space-tiles-btn);
  align-items: stretch;
  grid-auto-rows: 1fr;
}

.tile {
  border: 1px solid var(--border-soft);
  background: var(--tile-bg);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-width: 0;
  height: 100%;
  transition: border-color var(--transition), background-color var(--transition);
}

.benefit .tile .tile-icon {
  color: var(--blue) !important;
  background-color: #e1f1fc !important;
}

.tile-icon {
  display: grid;
  place-items: center;
  border-radius: 11px;
  flex-shrink: 0;
}

.tile-icon svg {
  width: 23px;
  height: 23px;
}

.tile-label {
  font-size: 11px;
  line-height: 1.25;
  color: var(--navy);
  font-weight: 650;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
  max-width: 100%;
  width: 100%;
  min-height: calc(1.25em * 2);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 4px;
}

/* Cuatro recuadros en una fila (diseño aprobado) */
.benefit .tile-grid.tile-grid-four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.benefit .tile-grid-four > .tile {
  gap: 6px;
  padding: 10px 6px 9px;
  min-height: var(--tile-min-h);
  position: relative;
}

.benefit .tile-grid-four .tile-icon {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
}

.benefit .tile-grid-four .tile-icon svg {
  width: 21px;
  height: 21px;
}

.sim-four .tile {
  padding: 12px 6px 9px;
}

.sim-four .tile .tile-chip,
.sim-four .tile .cpm-label {
  position: absolute;
  top: 5px;
  right: 4px;
  border-radius: 99px;
  padding: 2px 4px;
  font-size: 7px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.sim-four .tile .tile-chip--diplomado {
  background: var(--blue);
  color: var(--white);
}

.sim-four .tile .cpm-label,
.sim-four .tile .tile-chip--cpm {
  background: var(--yellow);
  color: var(--navy);
}

.outlined {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--white);
  color: var(--blue);
  border: 1.5px solid var(--blue);
  border-radius: 8px;
  padding: 10px 14px;
  min-height: var(--btn-min-h);
  font-size: 13px;
  font-weight: 600;
  width: 100%;
  margin-top: 0;
  transition: background-color var(--transition), color var(--transition), transform var(--transition);
  text-decoration: none;
  box-sizing: border-box;
}

.outlined .btn-hand {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}

.outlined:hover,
.outlined:focus-visible {
  background: var(--blue);
  color: var(--white);
  transform: translateY(-1px);
}

.change-photo {
  display: none;
  position: absolute;
  bottom: 9px;
  right: 9px;
  color: var(--navy);
  background: var(--white);
  border: 1px solid #d5eaf6;
  padding: 8px 10px;
  border-radius: 7px;
  font-size: 11px;
  font-weight: 700;
}

/* —— Responsive —— */
@media (max-width: 960px) {
  .brand::after {
    width: 100px;
  }

  .site {
    padding: 0 18px 50px;
  }

  .hero {
    padding: 20px 0 0;
  }
}

@media (max-width: 720px) {
  .hero {
    min-height: auto;
    padding: 20px 0 0;
    grid-template-columns: 1fr;
    column-gap: 0;
  }

  [data-page-id="1"] .hero h1 {
    margin-top: 28px;
    padding-right: 0;
  }

  [data-page-id="1"] .hero-copy > p {
    padding-right: 0;
  }

  [data-page-id="1"] .hero .hero-media.building {
    grid-column: 1;
    grid-row: auto;
  }

  .brand::after {
    display: none;
  }

  .benefits {
    grid-template-columns: 1fr;
    column-gap: var(--gap);
    row-gap: var(--gap);
    margin-top: 18px;
  }

  [data-page-id="1"] .benefits #benefit-5 {
    width: 100%;
    max-width: none;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto auto auto;
    column-gap: 0;
  }

  [data-page-id="1"] .benefits #benefit-5 .photo-area {
    grid-column: 1;
    grid-row: auto;
    height: var(--photo-h);
    align-self: auto;
  }

  [data-page-id="1"] .benefits #benefit-5 .card-text {
    grid-column: 1;
    grid-row: auto;
    margin-top: var(--space-img-title);
  }

  [data-page-id="1"] .closing-banner {
    grid-template-columns: 1fr;
    column-gap: 0;
    row-gap: 22px;
    margin-top: 22px;
  }

  [data-page-id="1"] .closing-banner__copy {
    grid-column: 1;
    grid-row: 1;
    padding: 0;
    align-self: auto;
  }

  [data-page-id="1"] .closing-banner__copy h2 {
    font-size: clamp(22px, 5.5vw, 30px);
    margin-bottom: 10px;
  }

  [data-page-id="1"] .closing-banner__copy > p {
    margin-bottom: 16px;
    font-size: 14px;
  }

  [data-page-id="1"] .closing-banner__benefits {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 10px;
  }

  [data-page-id="1"] .closing-banner__media {
    grid-column: 1;
    grid-row: 2;
    align-self: auto;
  }

  [data-page-id="1"] .closing-banner .hero-media {
    display: block !important;
    height: min(220px, 56vw);
    min-height: 180px;
  }

  [data-page-id="1"] .closing-banner .hero-media img {
    object-position: center 35%;
  }

  .benefit {
    display: grid;
    grid-template-rows: auto auto auto auto;
  }

  .card-text h2 {
    font-size: 20px;
  }

  .tile-label {
    min-height: calc(1.25em * 2);
  }
}

@media (max-width: 520px) {
  [data-page-id="1"] .site {
    padding-left: 16px;
    padding-right: 16px;
  }

  [data-page-id="1"] .closing-banner__copy {
    padding-left: 0;
    padding-right: 0;
  }

  .benefit .tile-grid.tile-grid-four {
    gap: 4px;
  }

  .benefit .tile-grid-four > .tile {
    min-height: 80px;
    padding: 8px 4px 7px;
    gap: 5px;
  }

  .benefit .tile-grid-four .tile-label {
    font-size: 10px;
    min-height: calc(1.25em * 2);
  }

  .sim-four .tile .cpm-label {
    font-size: 7px;
    top: 5px;
    right: 2px;
  }
}
