/* =========================================================
   COACHEART · Landing Cohorte Fundacional Mallorca
   Paleta oficial de marca (hex provistos por el cliente) +
   tipografías reales de marca (Montserrat + Quentin).
   ========================================================= */

@font-face {
  font-family: "Montserrat";
  src: url("../fonts/Montserrat-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("../fonts/Montserrat-Black.ttf") format("truetype");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Quentin";
  src: url("../fonts/Quentin.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy-900: #001E5A; /* navy de fondo, muestreado de los flyers */
  --navy-800: #0A2864; /* variante intermedia para degradés */
  --navy-700: #0C4980; /* azul marino oficial de marca */
  --turquoise: #1ED2DC; /* turquesa vivo, muestreado de los flyers */
  --turquoise-dark: #17B0B8;
  --teal-soft: #86CBD2; /* celeste oficial de marca */
  --white: #ffffff;
  --offwhite: #f5f7fb;
  --ink: #12183a;
  --ink-soft: #4b5573;
  --border: #e2e6f0;

  --font-heading: "Montserrat", "Segoe UI", sans-serif;
  --font-body: "Montserrat", "Segoe UI", sans-serif;
  --font-script: "Quentin", "Segoe UI", cursive;

  --radius: 14px;
  --max-width: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 0.6em;
}

p { margin: 0 0 1em; }

a { color: inherit; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.container--narrow {
  max-width: 760px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 600;
  text-decoration: none;
  border-radius: 999px;
  padding: 12px 24px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn--primary {
  background: var(--turquoise);
  color: var(--navy-900);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(47, 220, 224, 0.35); }
.btn--ghost {
  background: transparent;
  border-color: var(--white);
  color: var(--white);
}
.btn--ghost:hover { background: rgba(255,255,255,0.1); }
.btn--lg { padding: 16px 32px; font-size: 1.05rem; }
.btn--nav { padding: 10px 20px; font-size: 0.9rem; }
.btn--on-dark { border-color: var(--turquoise); color: var(--turquoise); }
.btn--on-dark:hover { background: rgba(47, 220, 224, 0.1); }
.btn--whatsapp {
  background: #25d366;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.btn--whatsapp:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(37, 211, 102, 0.35); }

/* ---------- WhatsApp floating button ---------- */
.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 200;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
  transition: transform 0.15s ease;
}
.whatsapp-float:hover { transform: scale(1.08); }

/* ---------- Consent checkbox ---------- */
.consent-label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.75);
  cursor: pointer;
  width: 100%;
}
.consent-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin-top: 3px;
  flex: 0 0 auto;
}
.consent-label span { flex: 1; min-width: 0; }
.consent-label a { color: var(--turquoise); text-decoration: underline; }
.consent-label--form { color: rgba(255,255,255,0.75); text-align: left; }

.cta-divider {
  color: rgba(255,255,255,0.6);
  font-size: 0.88rem;
  margin: 26px 0 6px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy-900);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo__mark {
  width: 34px; height: 34px;
  flex-shrink: 0;
  display: block;
}
.logo__text {
  font-family: var(--font-heading);
  font-weight: 800;
  letter-spacing: 0.06em;
  font-size: 1.05rem;
  color: var(--white);
  line-height: 1.1;
  display: flex;
  flex-direction: column;
}
.logo__tagline {
  font-family: var(--font-body);
  font-weight: 400;
  letter-spacing: 0.02em;
  font-size: 0.62rem;
  color: var(--turquoise);
  text-transform: none;
}
.nav {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}
.nav a {
  color: var(--white);
  text-decoration: none;
  font-size: 0.92rem;
  opacity: 0.85;
}
.nav a:hover { opacity: 1; color: var(--turquoise); }

/* ---------- Hero ---------- */
.hero {
  background:
    linear-gradient(180deg, rgba(0,30,90,0.88), rgba(0,30,90,0.94) 55%, var(--navy-900) 100%),
    url("../img/hero-mallorca.jpg") center 25% / cover no-repeat;
  color: var(--white);
  padding: 90px 0 70px;
  text-align: center;
}
.eyebrow {
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.8rem;
  color: var(--turquoise);
  margin-bottom: 10px;
  text-align: center;
}
.eyebrow--dark { color: var(--turquoise-dark); }
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  color: var(--white);
}
.accent { color: var(--turquoise); }
.hero__sub {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--turquoise);
}
.hero__lead {
  max-width: 640px;
  margin: 0 auto 28px;
  color: rgba(255,255,255,0.85);
  font-size: 1.05rem;
}
.hero__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 34px;
}
.hero__meta {
  list-style: none;
  display: flex;
  gap: 0;
  justify-content: center;
  align-items: stretch;
  flex-wrap: wrap;
  padding: 0;
  margin: 0;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.92);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 999px;
  backdrop-filter: blur(4px);
}
.hero__meta li {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 14px 24px;
  border-right: 1px solid rgba(255,255,255,0.16);
  font-weight: 500;
  letter-spacing: 0.01em;
}
.hero__meta li:last-child { border-right: none; }
.hero__meta svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--turquoise);
}
@media (max-width: 720px) {
  .hero__meta {
    flex-direction: column;
    border-radius: 18px;
    width: 100%;
  }
  .hero__meta li {
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.16);
    justify-content: center;
    text-align: left;
  }
  .hero__meta li:last-child { border-bottom: none; }
}

/* ---------- Sections generic ---------- */
.section {
  padding: 76px 0;
}
.section--alt { background: var(--offwhite); }
.section h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--navy-900);
  text-align: center;
}

.section--invite {
  background: var(--navy-900);
  color: var(--white);
  text-align: center;
  padding: 60px 0;
}
.statement {
  font-family: var(--font-heading);
  font-size: clamp(1.3rem, 3vw, 1.9rem);
  font-weight: 600;
  color: var(--white);
  margin: 0;
}

.section-image {
  width: 100%;
  max-height: 380px;
  object-fit: cover;
  border-radius: var(--radius);
  margin: 10px 0 26px;
}
.signature {
  font-family: var(--font-script);
  font-size: 1.5rem;
  color: var(--navy-700);
}

.fine-print {
  font-size: 0.85rem;
  color: var(--ink-soft);
}
.fine-print--light { color: rgba(255,255,255,0.7); }
.fine-print--spaced { margin-top: 26px; }

.open-school-box {
  margin-top: 24px;
  padding: 22px 24px;
  background: var(--white);
  border: 1px solid var(--turquoise-dark);
  border-radius: var(--radius);
}
.open-school-box__title {
  font-family: var(--font-heading);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--navy-900);
  margin: 0 0 8px;
  font-size: 1.05rem;
}
.open-school-box__text {
  margin: 0;
  color: var(--ink-soft);
}

/* ---------- Cards ---------- */
.cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 22px;
  margin-top: 30px;
}
.cards--3 .card { flex: 1 1 240px; max-width: 340px; }
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
}
.card h3 { font-size: 1.1rem; color: var(--navy-900); }
.cards--dark .card {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.14);
}
.cards--dark .card h3 { color: var(--white); }
.cards--dark .card p { color: rgba(255,255,255,0.8); }

.cards--badge .card { text-align: center; }
.card__badge {
  width: 84px;
  height: 84px;
  object-fit: contain;
  margin: 0 auto 16px;
  display: block;
}
.card__badge--icf {
  /* Mismo alto de caja que los otros dos badges (antes era más grande y
     desalineaba el título de esta tarjeta respecto a las otras dos). */
  width: 84px;
  height: 84px;
}
.card__badge--dark {
  width: 84px;
  height: 84px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--navy-900);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  overflow: hidden;
}
.card__badge--dark img { width: 100%; height: 100%; object-fit: contain; }
.card__badge--pending {
  border-radius: 50%;
  background: var(--offwhite);
  border: 2px dashed var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  color: var(--ink-soft);
  text-align: center;
  padding: 6px;
}

/* ---------- Check lists ---------- */
.check-list, .check-grid {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
}
.check-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}
.check-grid li { flex: 1 1 240px; max-width: 340px; margin-bottom: 0; }
.check-list li, .check-grid li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 12px;
}
.check-list li::before, .check-grid li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--turquoise-dark);
  font-weight: 700;
}
.check-grid--big li {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--navy-900);
}

/* ---------- Metavision section ---------- */
.section--metavision {
  background: linear-gradient(180deg, var(--navy-900), var(--navy-800));
  color: var(--white);
}
.section--metavision h2 { color: var(--white); }
.lead-light { color: rgba(255,255,255,0.85); max-width: 720px; }

.metavision-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  margin: 30px 0 10px;
}
.mv-step {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius);
  padding: 20px;
}
.mv-step__num {
  font-family: var(--font-heading);
  color: var(--turquoise);
  font-weight: 800;
  font-size: 0.9rem;
}
.mv-step h3 { color: var(--white); margin: 6px 0 4px; font-size: 1.05rem; }
.mv-step p { color: rgba(255,255,255,0.75); margin: 0; font-size: 0.92rem; }
.mv-practice-image {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  object-position: center 25%;
  border-radius: var(--radius);
  margin: 34px 0 8px;
}
.mv-practice-caption {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 30px;
}
.mv-flow {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--turquoise);
  margin-bottom: 10px;
}
.photo-mosaic {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 24px 0 10px;
}
.photo-mosaic img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: var(--radius);
}
.photo-mosaic--4 { grid-template-columns: repeat(4, 1fr); }
.photo-mosaic--4 img { height: 170px; }
@media (max-width: 640px) {
  .photo-mosaic { grid-template-columns: 1fr; }
  .photo-mosaic img { height: 200px; }
  .photo-mosaic--4 { grid-template-columns: repeat(2, 1fr); }
  .photo-mosaic--4 img { height: 150px; }
}
.cta-inline {
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid rgba(255,255,255,0.14);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.cta-inline p { margin: 0; color: var(--white); font-weight: 600; }

/* ---------- Timeline ---------- */
.timeline {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}
.timeline__item {
  border-left: 3px solid var(--turquoise);
  padding-left: 16px;
  flex: 1 1 200px;
  max-width: 260px;
}
.timeline__date {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--navy-900);
  display: block;
  margin-bottom: 4px;
}
.timeline__item p { margin: 0; color: var(--ink-soft); }

/* ---------- Table ---------- */
.table-wrap { overflow-x: auto; margin-top: 30px; }
.competencias-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}
.competencias-table th, .competencias-table td {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  font-size: 0.92rem;
}
.competencias-table th {
  font-family: var(--font-heading);
  background: var(--navy-900);
  color: var(--white);
}
.competencias-table tr:nth-child(even) { background: var(--offwhite); }

/* ---------- Test de Metavisión ---------- */
.section--test {
  background: var(--navy-900);
  color: var(--white);
}
.section--test h2 { color: var(--white); }

.mv-form { margin-top: 30px; }
.mv-step[hidden] { display: none; }
.mv-step { scroll-margin-top: 110px; }

.btn--pulse { animation: mv-pulse 1.4s ease-in-out infinite; }
@keyframes mv-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(47, 220, 224, 0.55); }
  50% { box-shadow: 0 0 0 10px rgba(47, 220, 224, 0); }
}

.mv-progress {
  max-width: 460px;
  margin: 28px auto 0;
}
.mv-progress__bar {
  height: 6px;
  border-radius: 999px;
  background: rgba(255,255,255,0.14);
  overflow: hidden;
}
.mv-progress__fill {
  height: 100%;
  width: 0%;
  background: var(--turquoise);
  border-radius: 999px;
  transition: width 0.3s ease;
}
.mv-progress__label {
  text-align: center;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.7);
  margin: 10px 0 0;
}

.mv-step-error {
  color: #ff8a8a;
  font-size: 0.88rem;
  text-align: center;
  margin: 16px 0 0;
}

.mv-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
}
.mv-nav .btn--primary { margin-left: auto; }

.mv-form__contact {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin-bottom: 30px;
  display: grid;
  gap: 10px;
}
.mv-form__contact-intro {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--white);
  margin: 0 0 4px;
  text-align: center;
}
.mv-form__contact label {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.8);
}
.mv-form__contact input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.04);
  color: var(--white);
  font-family: var(--font-body);
}

.mv-question {
  border: none;
  padding: 8px 0;
  margin: 0;
}
.mv-question legend {
  font-family: var(--font-heading);
  font-weight: 600;
  padding: 0;
  margin-bottom: 14px;
  color: var(--white);
}
.mv-question label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
  color: rgba(255,255,255,0.88);
}
.mv-question label:hover { background: rgba(255,255,255,0.06); }
.mv-question input { margin-top: 4px; }

.mv-result {
  margin-top: 40px;
  background: rgba(47, 220, 224, 0.1);
  border: 1px solid var(--turquoise);
  border-radius: var(--radius);
  padding: 30px;
}
.mv-result h3 { color: var(--turquoise); font-size: 1.6rem; }
.mv-result__quote {
  font-family: var(--font-script);
  font-size: 1.4rem;
  color: var(--turquoise);
}
.mv-result__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin: 20px 0;
}
.mv-result__grid strong { color: var(--turquoise); font-family: var(--font-heading); }
.mv-result__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* ---------- Pricing ---------- */
.pricing {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}
.price-card { flex: 1 1 220px; max-width: 280px; }
.price-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 24px;
  text-align: center;
}
.price-card--featured {
  border: 2px solid var(--turquoise-dark);
  transform: scale(1.03);
}
.price-card__label {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 6px;
}
.price-card__amount {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--navy-900);
  margin-bottom: 6px;
}
.price-card__deadline { color: var(--ink-soft); margin: 0; font-size: 0.9rem; }

/* ---------- Team ---------- */
.team-photo {
  width: 100%;
  max-height: 460px;
  object-fit: cover;
  object-position: center 5%;
  border-radius: var(--radius);
  margin: 30px 0 6px;
}
.team-photo-caption {
  font-size: 0.82rem;
  color: var(--ink-soft);
  text-align: center;
  margin-bottom: 10px;
}
.team {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  margin-top: 30px;
}
.team-member { flex: 1 1 240px; max-width: 260px; }
.team-member__photo {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 14px;
  border: 2px solid var(--turquoise-dark);
}
.team-member__photo--pending {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  margin-bottom: 14px;
  background: var(--offwhite);
  border: 2px dashed var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.68rem;
  color: var(--ink-soft);
  text-align: center;
  padding: 6px;
}
.team-member h3 { color: var(--navy-900); margin-bottom: 2px; }
.team-member__role {
  font-size: 0.85rem;
  color: var(--turquoise-dark);
  font-weight: 600;
  margin-bottom: 10px;
}

.staff-heading {
  margin-top: 50px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
  color: var(--navy-900);
}
.staff-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 24px;
}
.staff-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  flex: 1 1 calc(50% - 10px);
  max-width: calc(50% - 10px);
}
.staff-card__photo {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  float: left;
  margin-right: 14px;
  border: 2px solid var(--turquoise-dark);
}
.staff-card h4 {
  font-family: var(--font-heading);
  color: var(--navy-900);
  margin: 8px 0 10px;
}
.staff-card p {
  font-style: italic;
  color: var(--ink-soft);
  clear: both;
  margin: 0;
  font-size: 0.92rem;
}
@media (max-width: 640px) {
  .staff-card { flex-basis: 100%; max-width: 100%; }
}

/* ---------- FAQ ---------- */
.faq-list { margin-top: 30px; display: grid; gap: 12px; }
.faq-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
}
.faq-item summary {
  font-family: var(--font-heading);
  font-weight: 600;
  cursor: pointer;
  color: var(--navy-900);
}
.faq-item p { margin-top: 12px; color: var(--ink-soft); }

/* ---------- CTA final ---------- */
.section--cta {
  background: radial-gradient(circle at 50% 0%, var(--navy-700), var(--navy-900) 70%);
  color: var(--white);
  text-align: center;
}
.section--cta h2 { color: var(--white); }
.cta-form {
  display: grid;
  gap: 12px;
  max-width: 420px;
  margin: 30px auto 20px;
}
.cta-form input {
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.06);
  color: var(--white);
  font-family: var(--font-body);
}
.cta-form input::placeholder { color: rgba(255,255,255,0.55); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-900);
  color: rgba(255,255,255,0.7);
  padding: 30px 0;
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
}
.logo__text--footer { color: var(--white); }

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
  .nav { display: none; }
  .header__inner { justify-content: space-between; }
  .price-card--featured { transform: none; }
}
