/* ===== Fuentes ===== */
@font-face {
  font-family: 'CreatoDisplay';
  src: url('../Fonts/CreatoDisplay-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'CreatoDisplay';
  src: url('../Fonts/CreatoDisplay-Medium.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'CreatoDisplay';
  src: url('../Fonts/CreatoDisplay-Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'CreatoDisplay';
  src: url('../Fonts/CreatoDisplay-ExtraBold.otf') format('opentype');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Bluesty';
  src: url('../Fonts/Bluesty.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'TheSeasons';
  src: url('../Fonts/the-seasons.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ===== Variables ===== */
:root {
  --navy-text: #1a1a39;
  --navy-1: #163b55;
  --navy-2: #082f4a;
  --teal: #12ded1;
  --gold-deep: #aa8161;
  --gold-light: #eccdaa;
  --marble-bg: #f1efe9;
  --border-grey: #bab4a8;
  --placeholder-grey: #948e82;
  --content-width: 1280px;
  --content-width-wide: 1280px;
}

.rooftop-page * { box-sizing: border-box; }

.rooftop-page { scroll-behavior: smooth; }

.rooftop-page {
  margin: 0;
  font-family: 'CreatoDisplay', sans-serif;
  background: var(--marble-bg);
  color: var(--navy-text);
  -webkit-font-smoothing: antialiased;
}

.rooftop-page img { max-width: 100%; display: block; }

.rooftop-page.page {
  position: relative;
  overflow: hidden;
}

.rooftop-page .content-col {
  position: relative;
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 6%;
}

.rooftop-page .content-col-wide {
  position: relative;
  max-width: var(--content-width-wide);
  margin: 0 auto;
  padding: 0 6%;
}

/* ===== Ola superior ===== */
.rooftop-page .top-wave {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: clamp(26px, 2.4vw, 44px);
  object-fit: cover;
  object-position: center bottom;
  z-index: 3;
}

/* ===== Hero navy ===== */
.rooftop-page .hero-navy {
  position: relative;
  background: var(--navy-1);
  padding-top: clamp(20px, 3vw, 40px);
}

.rooftop-page .hero-copy {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  padding: clamp(34px, 6vw, 64px) 6% 8px;
}

.rooftop-page .brand-title {
  margin: 0;
  font-family: 'TheSeasons', serif;
  text-transform: uppercase;
  color: var(--teal);
  font-size: clamp(42px, 5.2vw, 88px);
  line-height: 1.08;
  letter-spacing: 0.01em;
}

.rooftop-page .brand-sub {
  margin: 14px 0 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 9px;
  font-weight: 400;
  letter-spacing: 0.02em;
}

.rooftop-page .brand-sub .by {
  font-size: clamp(17px, 1.6vw, 25px);
  font-weight: 300;
  margin-top: 0.35em;
}

.rooftop-page .brand-logo {
  height: clamp(42px, 4.4vw, 68px);
  width: auto;
}

.rooftop-page .tagline {
  margin: clamp(24px, 4vw, 40px) 0 clamp(20px, 3.5vw, 32px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
}

.rooftop-page .tagline img {
  width: 15%;
  max-width: 96px;
  flex: none;
}

.rooftop-page .tagline-text {
  margin: 0;
}

.rooftop-page .tagline-caps {
  display: inline-block;
  color: var(--navy-text);
  font-size: clamp(18px, 1.8vw, 26px);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.rooftop-page .tagline-script {
  display: inline-block;
  margin-top: 6px;
  font-family: 'Bluesty', cursive;
  color: var(--teal);
  font-size: clamp(32px, 3.4vw, 54px);
  font-weight: 400;
}

.rooftop-page .hero-photo-wrap {
  position: relative;
  margin-top: clamp(18px, 3vw, 30px);
}

.rooftop-page .hero-photo {
  width: 100%;
  display: block;
}

.rooftop-page .hero-photo-wrap::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 42%;
  background: linear-gradient(to bottom,
    var(--navy-1) 0%,
    rgba(22, 59, 85, 0.94) 20%,
    rgba(22, 59, 85, 0.74) 40%,
    rgba(22, 59, 85, 0.42) 62%,
    rgba(22, 59, 85, 0.14) 82%,
    rgba(22, 59, 85, 0) 100%);
  pointer-events: none;
}

.rooftop-page .hero-photo-wrap::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 26%;
  background: linear-gradient(to bottom,
    rgba(241, 239, 233, 0) 0%,
    rgba(241, 239, 233, 0.55) 45%,
    var(--marble-bg) 85%,
    var(--marble-bg) 100%);
  pointer-events: none;
}

/* ===== Contenido sobre marmol ===== */
.rooftop-page .marble-section {
  background: var(--marble-bg);
  padding: 8px 0 56px;
}

.rooftop-page .intro-copy {
  text-align: center;
  margin: 0 auto 36px;
  max-width: 620px;
  font-size: clamp(16px, 1.8vw, 26px);
  font-weight: 400;
  line-height: 1.5;
  color: var(--navy-text);
}

/* ===== Precios ===== */
.rooftop-page .price-block {
  position: relative;
  text-align: center;
  padding-top: 30px;
}

.rooftop-page .ribbon {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 92%;
  max-width: 760px;
  aspect-ratio: 1198 / 81;
  min-height: 40px;
  margin: 0 auto;
}

.rooftop-page .ribbon img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.rooftop-page .ribbon span {
  position: relative;
  z-index: 1;
  color: #fff;
  font-size: clamp(16px, 1.6vw, 24px);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

.rooftop-page .price-line {
  margin: 20px 0 0;
  font-family: 'CreatoDisplay', sans-serif;
  color: var(--navy-text);
}

.rooftop-page .price-line .cifra-num {
  font-family: 'CreatoDisplay', sans-serif;
  font-size: clamp(34px, 4.4vw, 64px);
  font-weight: 800;
}

.rooftop-page .price-line .cifra-word {
  font-family: 'CreatoDisplay', sans-serif;
  font-size: clamp(34px, 4.4vw, 64px);
  font-weight: 400;
}

.rooftop-page .price-line .desde {
  font-family: 'Bluesty', cursive;
  font-weight: 400;
  font-size: clamp(22px, 2.4vw, 34px);
  margin-right: 6px;
  vertical-align: middle;
}

.rooftop-page .price-line .currency {
  font-family: 'CreatoDisplay', sans-serif;
  font-weight: 700;
  font-size: clamp(22px, 2.4vw, 34px);
  vertical-align: middle;
}

.rooftop-page .divider {
  display: block;
  width: clamp(90px, 8vw, 160px);
  margin: 40px auto;
}

.rooftop-page .beneficios-img {
  width: 100%;
  max-width: 900px;
  margin: 0 auto 32px;
  border-radius: 16px;
}

/* ===== Registro ===== */
.rooftop-page .register-title {
  text-align: center;
  padding: 0 6% 4px;
}

.rooftop-page .register-title h2 {
  margin: 0;
  font-family: 'CreatoDisplay', sans-serif;
  font-size: clamp(22px, 2.6vw, 38px);
  font-weight: 700;
  color: var(--navy-text);
}

.rooftop-page .register-title p {
  margin: 10px 0 0;
  font-size: clamp(22px, 2.2vw, 32px);
  font-weight: 400;
  line-height: 1.35;
  color: var(--navy-text);
}

/* ===== Formulario ===== */
.rooftop-page .form-wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: 40px 0 0;
}

.rooftop-page form { margin: 0; }

.rooftop-page .rf-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.rooftop-page .field {
  border: 1.4px solid var(--border-grey);
  border-radius: 999px;
  background: rgba(255,255,255,0.5);
  padding: 18px 26px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.rooftop-page .field.full { grid-column: 1 / -1; }

.rooftop-page .field input,
.rooftop-page .field select {
  border: none;
  background: transparent;
  outline: none;
  width: 100%;
  font-family: 'CreatoDisplay', sans-serif;
  font-size: 15px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--navy-text);
}

.rooftop-page .field input::placeholder { color: var(--placeholder-grey); }

.rooftop-page .field .rf-code {
  flex: 0 0 92px;
  padding-right: 4px !important;
  text-transform: none;
}

/* ===== Estado de error (validacion JS) ===== */
.rooftop-page .field.rf-invalid {
  box-shadow: 0 0 0 2px #e0554f;
}

.rooftop-page .field.rf-invalid input,
.rooftop-page .field.rf-invalid select,
.rooftop-page .field.rf-invalid textarea {
  color: #e0554f;
}

.rooftop-page .field.rf-invalid input::placeholder,
.rooftop-page .field.rf-invalid textarea::placeholder {
  color: #e0554f;
}

.rooftop-page .consent-row.rf-invalid {
  animation: rf-shake 0.38s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

.rooftop-page .consent-row.rf-invalid input[type="checkbox"] {
  outline: 2px solid #e0554f;
  outline-offset: 2px;
}

@keyframes rf-shake {
  10%, 90%      { transform: translateX(-2px); }
  20%, 80%      { transform: translateX(3px); }
  30%, 50%, 70% { transform: translateX(-4px); }
  40%, 60%      { transform: translateX(4px); }
}

.rooftop-page textarea.field {
  border-radius: 26px;
  width: 100%;
  min-height: 160px;
  resize: vertical;
  align-items: flex-start;
  padding-top: 18px;
}

.rooftop-page textarea.field::placeholder {
  font-family: 'CreatoDisplay', sans-serif;
  font-size: 15px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--placeholder-grey);
}

.rooftop-page .consent-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 18px 0;
  font-size: 16px;
  color: var(--navy-text);
}

.rooftop-page .consent-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  accent-color: var(--navy-text);
  flex: none;
}

.rooftop-page .campo-honeypot { display: none !important; visibility: hidden !important; }

.rooftop-page .cf-turnstile { margin: 18px 0; }

.rooftop-page .otp-panel { padding-top: 12px; }

.rooftop-page .rf-form-error,
.rooftop-page .rf-form-success {
  display: none;
  margin: 10px 0 0;
  padding: 12px 20px;
  border-radius: 14px;
  font-size: 14px;
}

.rooftop-page .rf-form-error {
  background: rgba(200, 40, 40, 0.08);
  color: #a32b2b;
}

.rooftop-page .rf-form-success {
  background: rgba(18, 222, 209, 0.12);
  color: var(--navy-text);
  font-weight: 500;
}

.rooftop-page .rf-form-error.visible,
.rooftop-page .rf-form-success.visible { display: block; }

.rooftop-page .submit-btn.is-loading { opacity: 0.65; cursor: wait; }

.rooftop-page .submit-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 22px 24px;
  margin: 26px 0 8px;
  border: 1.6px solid var(--navy-text);
  border-radius: 999px;
  background: transparent;
  color: var(--navy-text);
  font-family: 'TheSeasons', serif;
  font-size: clamp(22px, 2.2vw, 30px);
  font-weight: 400;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease;
}

.rooftop-page .submit-btn:hover {
  background: var(--navy-text);
  color: #fff;
}

.rooftop-page .submit-btn .btn-icon {
  flex: none;
  width: auto;
  height: 28px;
}

/* ===== CTA navy ===== */
.rooftop-page .cta-navy {
  position: relative;
  display: block;
  background-color: #a9c1cd;
  background-image: url('../imagenes/rooftop/SVG/azul-123.svg?v=2');
  background-size: 100% 100%;
  background-position: center;
  background-repeat: no-repeat;
  padding: clamp(48px, 8vw, 76px) 6%;
  text-align: center;
}

.rooftop-page .cta-navy p {
  position: relative;
  z-index: 1;
  font-family: 'TheSeasons', serif;
  color: #fff;
  font-size: clamp(19px, 3.2vw, 54px);
  line-height: 1.4;
  font-weight: 400;
  max-width: 980px;
  margin: 0 auto;
}

/* ===== Detalle blanco ===== */
.rooftop-page .detail-white {
  background: #fff;
  padding: clamp(52px, 9vw, 84px) 0 clamp(40px, 8vw, 72px);
}

.rooftop-page .detail-copy {
  text-align: center;
  margin: 0 auto 34px;
  max-width: 720px;
  font-size: clamp(15.5px, 2.2vw, 30px);
  line-height: 1.55;
  font-weight: 400;
  color: var(--navy-text);
}

.rooftop-page .axo-img {
  width: 100%;
  max-width: 900px;
  margin: 24px auto 6px;
}

.rooftop-page .axo-galeria {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 24px auto 6px;
}

.rooftop-page .axo-galeria .swiper-galeria {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
}

.rooftop-page .axo-galeria .swiper-slide {
  height: clamp(220px, 32vw, 420px);
}

.rooftop-page .axo-galeria .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
}

.rooftop-page .axo-galeria .swiper-button-prev,
.rooftop-page .axo-galeria .swiper-button-next {
  top: 50%;
  margin-top: -20px;
  width: 40px;
  height: 40px;
  border: 1.4px solid var(--navy-text);
  border-radius: 50%;
  background: #fff;
  color: var(--navy-text);
  z-index: 5;
  transition: background 0.25s ease, color 0.25s ease;
}

.rooftop-page .axo-galeria .swiper-button-prev { left: -52px; right: auto; }
.rooftop-page .axo-galeria .swiper-button-next { right: -52px; left: auto; }

.rooftop-page .axo-galeria .swiper-button-prev:hover,
.rooftop-page .axo-galeria .swiper-button-next:hover {
  background: var(--navy-text);
  color: #fff;
}

@media (max-width: 1040px) {
  .rooftop-page .axo-galeria .swiper-button-prev { left: 16px; }
  .rooftop-page .axo-galeria .swiper-button-next { right: 16px; }
  .rooftop-page .axo-galeria .swiper-button-prev,
  .rooftop-page .axo-galeria .swiper-button-next {
    border-color: rgba(255,255,255,0.85);
    background: rgba(26, 26, 57, 0.55);
    color: #fff;
  }
  .rooftop-page .axo-galeria .swiper-button-prev:hover,
  .rooftop-page .axo-galeria .swiper-button-next:hover {
    background: rgba(26, 26, 57, 0.85);
  }
}

.rooftop-page .axo-galeria .swiper-button-prev:after,
.rooftop-page .axo-galeria .swiper-button-next:after {
  font-size: 16px;
  font-weight: 700;
}

.rooftop-page .axo-galeria .swiper-button-disabled {
  opacity: 0.35;
}

.rooftop-page .section-title {
  text-align: center;
  margin: 32px 0 26px;
  font-family: 'TheSeasons', serif;
  font-weight: 400;
  color: var(--navy-text);
  font-size: clamp(27px, 3.2vw, 52px);
  line-height: 1.25;
}

/* ===== Planos ===== */
.rooftop-page .plano-completo {
  width: 100%;
  max-width: 820px;
  margin: clamp(40px, 6vw, 64px) auto 0;
}

/* ===== Footer navy ===== */
.rooftop-page .footer-navy {
  position: relative;
  background: #fff;
  padding-top: clamp(16px, 3vw, 32px);
}

.rooftop-page .pre-allies-line {
  width: 100%;
  display: block;
}

.rooftop-page .allies-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-end;
  gap: clamp(36px, 5vw, 80px);
  padding: clamp(40px, 6vw, 72px) 6% clamp(24px, 4vw, 44px);
  max-width: 1160px;
  margin: 0 auto;
}

.rooftop-page .ally {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.rooftop-page .ally-label {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8a8a8a;
}

.rooftop-page .ally img {
  height: clamp(32px, 2.8vw, 46px);
  width: auto;
}

.rooftop-page .footer-wave {
  display: block;
  width: 100%;
  height: clamp(40px, 7vw, 70px);
}

.rooftop-page .footer-wave path { fill: var(--navy-2); }

.rooftop-page .footer-contact {
  background: var(--navy-2);
  text-align: center;
  color: #eaf3f6;
  padding: 0 6% clamp(36px, 7vw, 60px);
  margin-top: -1px;
}

.rooftop-page .footer-line {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 12px;
  margin: 0 0 20px;
  font-size: clamp(14.5px, 1.8vw, 24px);
  font-weight: 400;
  line-height: 1.4;
}

.rooftop-page .footer-line .ico {
  width: 26px;
  height: 26px;
  flex: none;
  margin-top: 2px;
  color: var(--teal);
}

.rooftop-page .footer-url {
  margin: 28px 0 0;
  font-size: clamp(26px, 2.6vw, 40px);
  font-weight: 500;
}

.rooftop-page .footer-legal {
  margin: 32px auto 0;
  max-width: 900px;
  font-size: 12px;
  line-height: 1.5;
  color: rgba(234, 243, 246, 0.55);
}

/* ===== Responsive ===== */
@media (max-width: 600px) {
  .rooftop-page .allies-strip {
    display: grid;
    grid-template-columns: 1fr 1fr;
    justify-items: center;
    align-items: center;
    row-gap: 32px;
    column-gap: 16px;
  }

  .rooftop-page .ally img { height: 28px; }
}

@media (max-width: 480px) {
  .rooftop-page .brand-title { font-size: 34px; }

  .rooftop-page .tagline { gap: 10px; }

  .rooftop-page .tagline img { width: 13%; }

  .rooftop-page .rf-row { grid-template-columns: 1fr; }

  .rooftop-page .field input {
    font-size: 12px;
    letter-spacing: 0.02em;
  }

  .rooftop-page .footer-line {
    text-align: left;
  }

  .rooftop-page .plano-completo { max-width: 100%; }
}
