:root {
  --marino: #000033;
  --marino-medio: #000099;
  --cyan-marca: #06c0ee;
  --cyan-claro: #c0f3ff;
  --dorado: #c9a227;
  --dorado-hover: #b8921f;
  --dorado-claro: #f5ecd4;
  --wa-verde: #25d366;
  --wa-verde-hover: #1ebe57;
  --fondo: #eef4f9;
  --fondo-suave: #dbe3f4;
  --texto: #2c3e50;
  --texto-suave: #5a6c7a;
  --blanco: #ffffff;
  --radio: 14px;
  --shell-max: 32rem;
  --sticky-h: 3.75rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  background: var(--fondo);
  color: var(--texto);
  line-height: 1.55;
  overflow-x: hidden;
}

body.modal-open {
  overflow: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
}

.landing-shell {
  width: 100%;
  max-width: var(--shell-max);
  margin: 0 auto;
  padding: 0.85rem 1rem calc(5rem + env(safe-area-inset-bottom, 0px));
}

/* —— Brand header —— */
.landing-brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding-bottom: 0.55rem;
  margin-bottom: 0.75rem;
  border-bottom: 1.5px solid rgba(6, 192, 238, 0.35);
}

.landing-brand__logo {
  width: 2.5rem;
  height: 2.5rem;
  object-fit: contain;
  border-radius: 8px;
  background: var(--blanco);
  padding: 0.12rem;
  box-shadow: 0 2px 8px rgba(0, 0, 51, 0.08);
  flex-shrink: 0;
}

.landing-brand__name {
  font-size: clamp(0.98rem, 3.8vw, 1.15rem);
  font-weight: 800;
  color: var(--marino);
  letter-spacing: -0.02em;
  line-height: 1.12;
}

.landing-brand__name span {
  color: var(--cyan-marca);
}

.landing-brand__tagline {
  display: block;
  margin-top: 0.15rem;
  font-size: clamp(0.72rem, 2.8vw, 0.84rem);
  font-weight: 700;
  color: var(--marino-medio);
  line-height: 1.2;
}

/* —— Hero —— */
.landing-hero {
  padding-bottom: 0.25rem;
}

.landing-hero__title {
  font-size: clamp(1.28rem, 5.2vw, 1.55rem);
  font-weight: 800;
  color: var(--marino);
  line-height: 1.22;
  text-wrap: balance;
  margin-bottom: 0.55rem;
}

.landing-hero__subtitle {
  font-size: clamp(0.88rem, 3.4vw, 0.96rem);
  color: var(--texto-suave);
  line-height: 1.48;
  text-wrap: pretty;
  margin-bottom: 0.85rem;
}

.landing-hero__trust {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--marino-medio);
  margin-bottom: 0.85rem;
}

.landing-hero__trust-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--dorado);
  flex-shrink: 0;
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 48px;
  padding: 0.65rem 1.1rem;
  border-radius: 12px;
  border: none;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.18s, transform 0.12s, box-shadow 0.18s;
  -webkit-tap-highlight-color: transparent;
}

.btn:active {
  transform: scale(0.98);
}

.btn--primary {
  width: 100%;
  background: var(--wa-verde);
  color: #000000;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.65), 0 0 1px rgba(255, 255, 255, 0.4);
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.35);
}

.btn--primary:hover,
.btn--primary:focus-visible {
  background: var(--wa-verde-hover);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.42);
}

.btn--secondary {
  width: 100%;
  background: var(--blanco);
  color: var(--marino);
  border: 1.5px solid rgba(0, 0, 51, 0.12);
}

.btn--secondary:hover,
.btn--secondary:focus-visible {
  background: var(--dorado-claro);
  border-color: var(--dorado);
}

.btn__icon {
  width: 1.15rem;
  height: 1.15rem;
  flex-shrink: 0;
}

.btn--primary .btn__icon {
  fill: #000000;
  filter: drop-shadow(0 1px 1px rgba(255, 255, 255, 0.65));
  stroke: none;
}

/* —— Sections —— */
.landing-section {
  margin-top: 1.35rem;
}

.landing-section__title {
  font-size: clamp(1.05rem, 4vw, 1.18rem);
  font-weight: 800;
  color: var(--marino);
  line-height: 1.25;
  margin-bottom: 0.35rem;
  text-wrap: balance;
}

.landing-section__lead {
  font-size: 0.84rem;
  color: var(--texto-suave);
  line-height: 1.45;
  margin-bottom: 0.85rem;
  text-wrap: pretty;
}

.panel {
  background: var(--blanco);
  border-radius: var(--radio);
  padding: 1.05rem 1.1rem;
  box-shadow: 0 8px 28px rgba(0, 0, 51, 0.07);
  border: 1px solid rgba(6, 192, 238, 0.12);
}

/* —— Benefits —— */
.benefits-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.benefit-item {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
}

.benefit-item__icon {
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 10px;
  background: var(--dorado-claro);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--marino);
  line-height: 1;
}

.benefit-item__title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--marino);
  line-height: 1.25;
  margin-bottom: 0.15rem;
}

.benefit-item__text {
  font-size: 0.8rem;
  color: var(--texto-suave);
  line-height: 1.42;
}

/* —— Reviews carousel —— */
.reviews-block {
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(6, 192, 238, 0.18);
  text-align: left;
}

.reviews-block__label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--texto-suave);
  margin-bottom: 0.55rem;
}

.reviews-card {
  background: var(--fondo);
  border: 1px solid rgba(6, 192, 238, 0.2);
  border-radius: 10px;
  padding: 0.85rem 0.9rem;
  min-height: 7rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  transition: opacity 0.2s ease;
}

.reviews-block.is-changing .reviews-card {
  opacity: 0.55;
}

.reviews-stars {
  display: flex;
  gap: 0.12rem;
  justify-content: flex-start;
}

.reviews-star {
  font-size: 0.95rem;
  line-height: 1;
  color: #c5d4de;
}

.reviews-star.is-filled {
  color: var(--dorado);
}

.reviews-text {
  margin: 0;
  font-size: 0.78rem;
  font-style: italic;
  color: var(--texto);
  line-height: 1.42;
  text-wrap: pretty;
  flex: 1;
}

.reviews-author {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  font-style: normal;
  color: var(--marino-medio);
  text-align: right;
}

.reviews-progress {
  height: 2px;
  margin-top: 0.15rem;
  margin-bottom: 0.1rem;
  border-radius: 2px;
  background: rgba(6, 192, 238, 0.18);
  overflow: hidden;
}

.reviews-progress__fill {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 2px;
  background: var(--cyan-marca);
}

/* —— About —— */
.about-card {
  text-align: center;
}

.about-card__photo-wrap {
  width: clamp(5rem, 26vw, 6.5rem);
  height: clamp(5rem, 26vw, 6.5rem);
  margin: 0 auto 0.65rem;
  border-radius: 50%;
  border: 3px solid var(--cyan-marca);
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(6, 192, 238, 0.2);
}

.about-card__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-card__name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--marino);
  margin-bottom: 0.35rem;
}

.about-card__bio {
  font-size: 0.82rem;
  color: var(--texto-suave);
  line-height: 1.45;
  margin-bottom: 0.85rem;
  text-wrap: pretty;
}

/* —— Contact —— */
.contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.contact-list__item a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 48px;
  padding: 0.52rem 0.75rem;
  border-radius: 10px;
  text-decoration: none;
  transition: background 0.18s;
}

.contact-list__item a:hover,
.contact-list__item a:focus-visible {
  background: var(--cyan-claro);
}

.contact-list__item--wa a {
  color: #166534;
}

.contact-list__item--em a {
  color: var(--marino);
}

.contact-list__item--ph a {
  color: var(--marino-medio);
}

.contact-list__icon {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-list__item--wa .contact-list__icon {
  background: #dcfce7;
}

.contact-list__item--em .contact-list__icon {
  background: var(--cyan-claro);
}

.contact-list__item--ph .contact-list__icon {
  background: var(--dorado-claro);
}

.contact-list__icon svg {
  width: 1.1rem;
  height: 1.1rem;
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-list__item--wa .contact-list__icon svg {
  fill: #16a34a;
  stroke: none;
}

.contact-list__item--em .contact-list__icon svg {
  stroke: var(--marino);
}

.contact-list__item--ph .contact-list__icon svg {
  stroke: var(--marino-medio);
}

.contact-list__text {
  flex: 1;
  min-width: 0;
  text-align: left;
}

.contact-list__channel {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  opacity: 0.65;
  line-height: 1;
}

.contact-list__value {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1.3;
}

/* —— Footer —— */
.landing-footer {
  margin-top: 1.25rem;
  text-align: center;
  font-size: 0.72rem;
  color: var(--texto-suave);
  line-height: 1.4;
}

.landing-footer a {
  color: var(--marino-medio);
  font-weight: 600;
  text-decoration: none;
}

.landing-footer a:hover {
  text-decoration: underline;
}

/* —— Sticky bar —— */
.sticky-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  padding: 0.55rem 1rem calc(0.55rem + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid rgba(0, 0, 51, 0.08);
  box-shadow: 0 -4px 20px rgba(0, 0, 51, 0.08);
  transform: translateY(110%);
  transition: transform 0.28s ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.sticky-bar.is-visible {
  transform: translateY(0);
}

.sticky-bar__inner {
  max-width: var(--shell-max);
  margin: 0 auto;
}

.sticky-bar .btn--primary {
  font-size: 0.88rem;
  min-height: 44px;
  padding: 0.5rem 1rem;
}

/* —— Modal —— */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
}

.modal[hidden] {
  display: none;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 51, 0.55);
}

.modal__dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--shell-max);
  max-height: 88vh;
  overflow-y: auto;
  background: var(--blanco);
  border-radius: var(--radio) var(--radio) 0 0;
  padding: 1.15rem 1.15rem calc(1.25rem + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -8px 40px rgba(0, 0, 51, 0.18);
  animation: modalSlideUp 0.28s ease;
}

@keyframes modalSlideUp {
  from {
    transform: translateY(100%);
    opacity: 0.6;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.modal__title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--marino);
  line-height: 1.25;
}

.modal__close {
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  border: none;
  border-radius: 8px;
  background: var(--fondo);
  color: var(--marino);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

.modal__close:hover,
.modal__close:focus-visible {
  background: var(--cyan-claro);
}

.modal__body p {
  font-size: 0.84rem;
  color: var(--texto);
  line-height: 1.52;
  margin-bottom: 0.65rem;
}

.modal__body p:last-of-type {
  margin-bottom: 0.75rem;
}

.pilares-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.pilares-list li {
  font-size: 0.82rem;
  color: var(--texto-suave);
  padding-left: 1.1rem;
  position: relative;
  line-height: 1.4;
}

.pilares-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--dorado);
}

@media (min-width: 480px) {
  .modal {
    align-items: center;
    padding: 1rem;
  }

  .modal__dialog {
    border-radius: var(--radio);
    max-height: 85vh;
  }
}

@media (min-width: 768px) {
  .landing-shell {
    padding-top: 1.25rem;
  }
}
