/* ===========================================
   RESET FITNESS IBIZA - Mobile Landing
   Pixel-perfect from Figma (402x874 sections)
   =========================================== */

/* Fuentes locales */
@font-face {
  font-family: 'Core Sans C';
  src: url('Fonts/S-Core - CoreSansC-35Light.otf') format('opentype');
  font-weight: 300;
}
@font-face {
  font-family: 'Core Sans C';
  src: url('Fonts/S-Core - CoreSansC-65Bold.otf') format('opentype');
  font-weight: 700;
}
@font-face {
  font-family: 'Core Sans C';
  src: url('Fonts/S-Core - CoreSansC-85Heavy.otf') format('opentype');
  font-weight: 800;
}
@font-face {
  font-family: 'Core Sans C';
  src: url('Fonts/S-Core - CoreSansC-95Black.otf') format('opentype');
  font-weight: 900;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('Fonts/JetBrainsMono-Variable.ttf') format('truetype');
  font-weight: 100 900;
}

:root {
  --cyan: #04fff6;
  --black: #1e1e1e;
  --white: #ffffff;
  --cream: #fffcf6;
  --gray: #a5a5a5;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'JetBrains Mono', monospace;
  background: var(--black);
  max-width: 402px;
  margin: 0 auto;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }

/* ===========================================
   SECTION-HERO
   Figma: 402x874, bg image, logo at top-right
   =========================================== */
.section-hero {
  width: 402px;
  min-height: max(100dvh, 874px);
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url('assets/images/01_hero_bg.jpg') top right/cover no-repeat;
  z-index: 0;
}

/* Logo: Figma pos (243, 24) aprox - top right */
.hero-logo {
  position: absolute;
  top: clamp(40px, 8vh, 71px);
  left: 46px;
  z-index: 2;
}

/* Título hero: Core Sans C 96px cyan */
.hero-title {
  position: absolute;
  left: 46px;
  top: clamp(130px, 23vh, 203px);
  width: 320px;
  z-index: 2;
  font-family: 'Core Sans C', sans-serif;
  font-size: 96px;
  font-weight: 900;
  line-height: 0.78;
  color: var(--cyan);
  white-space: pre-wrap;
}

.hero-line {
  display: inline-block;
}

/* Espacio para el kettlebell entre B y D */
.dumbell-space {
  display: inline-block;
  width: 71px;
}

/* Kettlebell posicionado absolutamente */
.hero-dumbell {
  position: absolute;
  left: 109px;
  top: calc(clamp(130px, 23vh, 203px) + 417px);
  width: 71px;
  height: 104px;
  z-index: 3;
}

/* Texto body hero */
.hero-body {
  position: absolute;
  left: 183px;
  top: calc(clamp(130px, 23vh, 203px) + 295px);
  width: 159px;
  height: 57px;
  z-index: 2;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.04;
  color: var(--cream);
}

.hero-body strong {
  font-weight: 800;
}

/* Lineas decoración: pos (338, 600) */
.hero-lineas {
  position: absolute;
  left: 311px;
  top: calc(clamp(130px, 23vh, 203px) + 345px);
  width: 19px;
  height: 22px;
  z-index: 2;
}

/* ===========================================
   SECTION-01
   Figma: 402x874, white bg
   =========================================== */
.section-01 {
  width: 402px;
  min-height: max(100dvh, 874px);
  background: var(--white) url('assets/images/section_01_bg.jpg') top right/cover no-repeat;
  position: relative;
}

/* Logo: pos (45, 71) */
.s01-logo {
  position: absolute;
  left: 45px;
  top: clamp(24px, 5vh, 71px);
}

/* Content: pos (43, 200) */
.s01-content {
  position: absolute;
  left: 43px;
  top: clamp(80px, 14vh, 200px);
  width: 296px;
}

.s01-word {
  display: inline-block;
}

.s01-arrow {
  margin-bottom: 22px;
}

/* CUÁNTO LLEVAS... - Core Sans C 40px black */
.s01-question {
  font-family: 'Core Sans C', sans-serif;
  font-size: 40px;
  font-weight: 900;
  line-height: 0.87;
  color: var(--black);
  width: 296px;
  height: 284px;
  margin-bottom: 0;
}

/* OTRO MES... - JetBrains 11px w300 */
.s01-subtitle {
  position: absolute;
  top: 340px;
  left: 0;
  width: 200px;
  font-size: 13px;
  font-weight: 300;
  line-height: 1.04;
  color: var(--black);
}

/* YA SABES LO QUE VIENE - Core Sans C 32px cyan */
.s01-yasabes {
  position: absolute;
  top: 394px;
  left: 0;
  width: 278px;
  font-family: 'Core Sans C', sans-serif;
  font-size: 32px;
  font-weight: 900;
  line-height: 0.87;
  color: var(--cyan);
}

/* LA EXCUSA... - JetBrains 11px w700 cyan */
.s01-ciclo {
  position: absolute;
  top: 482px;
  left: 0;
  width: 159px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.04;
  color: var(--cyan);
}

/* Iconos derecha: pos (281, 705) */
.s01-icons-right {
  position: absolute;
  right: 40px;
  bottom: 132px;
}

/* CTA: alineado con textos (left 43px) */
.s01-cta {
  position: absolute;
  left: 43px;
  bottom: clamp(180px, 28vh, 250px);
  transform: scale(1.25);
  transform-origin: left bottom;
}

/* ===========================================
   BUTTON PRIMARY
   =========================================== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 160px;
  height: 27px;
  padding: 0 10px;
  background: var(--black);
  color: var(--cyan);
  font-family: 'Core Sans C', sans-serif;
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.btn-primary:hover {
  filter: brightness(1.2);
}

/* Botón invertido: fondo cyan, texto negro */
.btn-primary.btn-inverted {
  background: var(--cyan);
  color: var(--black);
}

.btn-icon {
  width: 11px;
  height: 11px;
}

.cta-note {
  font-size: 8px;
  font-weight: 100;
  line-height: 1;
  letter-spacing: -0.4px;
  color: black;
  margin-top: 9px;
  max-width: 188px;
  text-align: left;
}

/* ===========================================
   SECTION-02
   Figma: 402x874, cyan bg, FLEXBOX layout
   =========================================== */
.section-02 {
  width: 402px;
  min-height: max(100dvh, 874px);
  background: var(--cyan);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 25px;
  padding: clamp(35px, 7vh, 60px) 0 clamp(50px, 9vh, 80px) 0;
  position: relative;
  z-index: 1;
  box-shadow: 0 -15px 0 0 var(--cyan);
}

/* Cabecera - bloque centrado */
.s02-cabecera {
  width: 220px;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.s02-title-row {
  display: flex;
  gap: 21px;
  align-items: center;
  height: 87px;
}

.s02-isotipo {
  width: 63px;
  height: 77px;
  flex-shrink: 0;
}

/* THE RESET METHOD - Core Sans C 32px */
.s02-title {
  width: 145px;
  height: 87px;
  font-family: 'Core Sans C', sans-serif;
  font-size: 32px;
  font-weight: 300;
  line-height: 0.87;
  color: var(--black);
}

.s02-title strong {
  font-weight: 900;
}

.s02-desc-row {
  display: flex;
  gap: 6px;
  align-items: center;
}

/* Descripción - JetBrains Light 10px */
.s02-desc {
  width: 151px;
  font-size: 10px;
  font-weight: 300;
  line-height: 1.04;
  color: var(--black);
}

.s02-desc strong {
  font-weight: 700;
}

/* Iconos cabecera */
.s02-icons {
  display: flex;
  align-items: center;
}

.s02-lineas {
  width: 28px;
  height: 31px;
}

.s02-circle {
  width: 44px;
  height: 44px;
}

/* Bloque fases */
.s02-fases {
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: center;
  justify-content: center;
}

.fase {
  display: flex;
  flex-direction: column;
  gap: 3px;
  text-align: center;
  width: 270px;
  overflow: visible;
}

/* SEMANAS - JetBrains ExtraBold 12px */
.fase-week {
  display: block;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.04;
  color: black;
}

/* RESET, REBUILD... - Core Sans C Heavy 48px cream */
.fc {
  display: inline-block;
}

.fase-name {
  font-family: 'Core Sans C', sans-serif;
  font-size: 48px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -1.92px;
  color: var(--cream);
  margin-bottom: -8px;
}

/* UPGRADE - 56px dark */
.fase-upgrade {
  font-size: 56px;
  letter-spacing: -2.24px;
  color: var(--black);
}

/* Descripción fase - JetBrains ExtraLight 10px */
.fase-desc {
  font-size: 10px;
  font-weight: 200;
  line-height: 1.04;
  color: black;
}

.s02-cta {
  margin-top: 25px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: scale(1.25);
  transform-origin: center bottom;
}

.section-02 .cta-note {
  color: #000;
  text-align: center;
}

/* ===========================================
   SECTION-CONTACTO
   Figma: 402x874, cyan bg
   =========================================== */
.section-contacto {
  width: 402px;
  min-height: max(100dvh, 874px);
  background: url('assets/images/contact_bg.jpg') top center/cover no-repeat;
}

/* Garantía: alineado a la derecha */
.garantia {
  padding-top: clamp(150px, 29vh, 256px);
  text-align: right;
  padding-left: 24px;
  padding-right: 24px;
}

/* LA GARANTIA - JetBrains ExtraBold 24px */
.garantia-title {
  font-size: 24px;
  font-weight: 800;
  color: var(--black);
  margin-bottom: 8px;
}

/* Texto garantía - JetBrains Medium 9px */
.garantia-text {
  font-size: 9px;
  font-weight: 500;
  line-height: 1;
  color: var(--black);
  margin-bottom: 16px;
}

.garantia-badge {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.badge-arrow {
  width: 18px;
  height: 13px;
}

.badge-label {
  font-size: 8px;
  color: var(--black);
}

.badge-lines {
  width: 15px;
  height: 17px;
}

/* Form header - rectángulo cyan */
.form-header {
  width: 402px;
  height: 79px;
  background: var(--cyan);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 17px 44px;
  margin-top: 25px;
}

/* UNETE A LA FAMILIA RESET - Core Sans C Heavy 24px */
.form-title {
  font-family: 'Core Sans C', sans-serif;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.96px;
  color: var(--black);
  white-space: nowrap;
}

/* Subtítulo - JetBrains Light 12px */
.form-subtitle {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 300;
  letter-spacing: -0.48px;
  color: var(--black);
  white-space: nowrap;
}

/* Form */
.form {
  padding: 20px 44px;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.field {
  width: 309px;
}

.field label {
  display: block;
  font-size: 10px;
  font-weight: 500;
  color: var(--black);
  margin-bottom: 2px;
}

.field input,
.field select {
  width: 309px;
  height: 22px;
  border: 1px solid var(--cyan);
  background: var(--white);
  padding: 0 13px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--gray);
}

.field select {
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%2304FFF6' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-color: var(--white);
  padding-right: 30px;
  cursor: pointer;
  border-radius: 0;
}

.field input:focus,
.field select:focus {
  outline: none;
  color: var(--black);
}

.form-cta {
  margin-top: 15px;
  margin-left: 71px;
  transform: scale(1.25);
  transform-origin: left top;
}

.form-privacy {
  font-size: 8px;
  color: #000;
  margin-top: 8px;
  max-width: 188px;
}

/* ===========================================
   FOOTER
   =========================================== */
.footer {
  width: 402px;
  height: 80px;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-icons {
  display: flex;
  align-items: flex-end;
  gap: 15px;
}

/* Wrapper para pesa + círculo */
.footer-kb-wrapper {
  position: relative;
  width: 36px;
  height: 53px;
  margin-right: 15px;
}

.footer-kb {
  position: relative;
  width: 36px;
  height: 53px;
  z-index: 2;
}

.footer-circle {
  position: absolute;
  bottom: 0;
  right: -25px;
  width: 33px;
  height: 33px;
  background: var(--cyan);
  border-radius: 50%;
  z-index: 1;
}

.footer-lines {
  width: 30px;
  height: 33px;
}

.footer-arrow {
  width: 46px;
  height: 33px;
}

/* ===========================================
   RESPONSIVE
   =========================================== */
@media (max-width: 402px) {
  body,
  .section-hero,
  .section-01,
  .section-02,
  .section-contacto,
  .footer {
    width: 100%;
  }
}
