:root {
  --green-main: #2ecc71;
  --green-dark: #1e8449;
  --green-soft: #d9fbe6;
  --green-bg: #f1fff7;
  --white: #ffffff;
  --text-main: #13482b;
  --shadow-soft: 0 10px 18px rgba(0, 0, 0, 0.05);
}

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

body {
  margin: 0;
  font-family: "Poppins", sans-serif;
  background-color: var(--green-bg);
  color: var(--text-main);
  line-height: 1.6;
}

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

a {
  text-decoration: none;
  color: inherit;
}

h1, h2, h3 {
  margin-top: 0;
}

section {
  margin-bottom: 3rem;
}

/* ====== LAYOUT WRAPPERS ====== */
main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.5rem;
}

/* ====== HEADER ====== */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.5rem;
  background-color: var(--white);
  border-bottom: 2px solid var(--green-soft);
  position: sticky;
  top: 0;
  z-index: 10;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.brand-logo {
  display: block;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 1rem;
  margin: 0;
  padding: 0;
  align-items: center;
}

.main-nav a {
  font-size: 1rem;
  font-weight: 600;
  opacity: 0.92;
}

.main-nav a:hover {
  opacity: 1;
}

/* Active page highlight (safe when you reorder the nav) */
.main-nav a[aria-current="page"] {
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  background-color: var(--green-main);
  color: var(--white);
  box-shadow: 0 10px 16px rgba(46, 204, 113, 0.22);
  opacity: 1;
}

/* ====== BUTTONS ====== */
.btn {
  display: inline-block;
  padding: 0.75rem 1.45rem;
  border-radius: 999px;
  font-weight: 600;
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn.primary {
  background-color: var(--white);
  color: var(--green-dark);
  border-color: rgba(30, 132, 73, 0.15);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.12);
}

/* ====== INDEX HERO ====== */
.hero {
  border-radius: 1.25rem;
  padding: 3.2rem 2.5rem;
  margin: 1.5rem -3rem 3rem; /* ancho extra */
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(30, 132, 73, 0.12);

  background-image: url("../images/Boardimage.jpeg");
  background-size: cover;
  background-position: center;
}

.hero-inner {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.hero-copy {
  text-align: left;
}

.hero-title {
  font-size: 2.6rem;
  line-height: 1.05;
  margin: 0 0 1rem;
  color: #f7fbf3;
}

.hero-title span {
  display: block;
  font-weight: 700;
  opacity: 0.95;
}

.hero-subtitle {
  margin: 0 0 1.4rem;
  font-size: 1.05rem;
  max-width: 56ch;
  opacity: 0.92;
  color: #f7fbf3;
}

.hero-buttons {
  display: flex;
  justify-content: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

/* HERO badges (index only) */
.hero-badges {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.hero-badges .badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;

  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(217, 251, 230, 0.95);
  color: var(--green-dark);
  box-shadow: none;
  cursor: default;
}

.hero-badges .badge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--green-main);
  box-shadow: 0 0 0 3px rgba(46, 204, 113, 0.16);
}

/* ====== FEATURES (ALTERNATING ROWS) ====== */
.features h2 {
  text-align: center;
  color: var(--green-dark);
  margin-bottom: 1.5rem;
  font-size: xx-large;
}

.feature-rows {
  display: grid;
  gap: 1.2rem;
}

.feature-row {
  display: grid;
  gap: 1rem;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--green-soft);
  border-radius: 1rem;
  padding: 1.25rem;
  box-shadow: var(--shadow-soft);
}

.feature-text h3 {
  margin: 0 0 0.35rem;
  color: var(--green-dark);
}

.feature-text p {
  margin: 0;
  opacity: 0.95;
  max-width: 60ch;
}

.feature-media {
  display: flex;
  justify-content: center;
  align-items: center;
}

.feature-media img {
  width: min(240px, 100%);
  border-radius: 0.9rem;
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 10px 16px rgba(0,0,0,0.06);
}

/* ====== HIGHLIGHT SECTION ====== */
.highlight {
  background-color: var(--green-soft);
  border-radius: 1.1rem;
  padding: 1.9rem 1.5rem;
  display: grid;
  gap: 1.5rem;
  border: 1px solid rgba(30, 132, 73, 0.12);
}

.highlight-content h2 {
  color: var(--green-dark);
}

.highlight-visual {
  border-radius: 0.9rem;
  border: 2px dashed var(--green-dark);
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #c9f6da;
  overflow: hidden;
}

.highlight-visual img {
  width: 100%;
  height: 100%;
  max-height: 320px;
  object-fit: contain; /* no recorte raro */
  object-position: center;
  border-radius: 0.9rem;
}

/* ====== SIGNUP ====== */
.signup-section {
  text-align: center;
}

.signup-section h2 {
  color: var(--green-dark);
  margin-bottom: 0.4rem;
}

.signup-section p {
  margin: 0 auto;
  max-width: 65ch;
}

.signup-form {
  max-width: 420px;
  margin: 1.5rem auto 0;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  background: var(--white);
  border: 1px solid var(--green-soft);
  border-radius: 1rem;
  padding: 1.2rem;
  box-shadow: var(--shadow-soft);
}

.signup-form label {
  font-size: 0.9rem;
  font-weight: 600;
}

.signup-form input {
  padding: 0.7rem 0.8rem;
  border-radius: 0.65rem;
  border: 1px solid var(--green-soft);
  font-size: 0.95rem;
  outline: none;
}

.signup-form input:focus {
  border-color: rgba(46, 204, 113, 0.8);
  box-shadow: 0 0 0 4px rgba(46, 204, 113, 0.18);
}

.signup-form button {
  cursor: pointer;
}

/* ====== FOOTER ====== */
.site-footer {
  text-align: center;
  padding: 1.5rem 0 2rem;
  font-size: 0.9rem;
  color: var(--green-dark);
}

/* ====== RESPONSIVE ====== */
@media (min-width: 850px) {
  .feature-row {
    grid-template-columns: 1.2fr 0.8fr;
    padding: 1.4rem 1.5rem;
  }

  .feature-row.row-left .feature-media {
    order: -1;
  }

  .feature-row.row-right .feature-media {
    order: 2;
  }

  .highlight {
    grid-template-columns: 1.2fr 1fr;
    align-items: center;
  }
}

@media (max-width: 700px) {
  .main-nav ul {
    gap: 0.75rem;
  }

  .main-nav a {
    font-size: 0.95rem;
  }

  .hero {
    margin: 1.5rem 0 3rem; /* evita overflow en mobile */
    padding: 2.4rem 1.4rem;
  }

  .hero-title {
    font-size: 2.05rem;
  }
}

@media (max-width: 520px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
  }

  .main-nav ul {
    flex-wrap: wrap;
  }
}

/* =========================
   SHARED IMAGE HERO (About + Book)
========================= */
.section-hero {
  border-radius: 1.25rem;
  padding: 3.2rem 2.5rem;
  margin: 1.5rem -3rem 3rem;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(30, 132, 73, 0.12);

  background-size: cover;
  background-position: center;
}

/* Make hero background consistent height across pages */
.hero,
.section-hero {
  min-height: 460px;
  display: flex;
  align-items: center;
}

.section-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.32),
    rgba(0, 0, 0, 0.46)
  );
}

.section-hero-inner {
  position: relative;
  max-width: 820px;
  color: #f7fbf3;
}

.section-eyebrow {
  display: inline-block;
  margin: 0 0 0.75rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(6px);
  color: #f7fbf3;
}

.section-title {
  margin: 0 0 0.6rem;
  font-size: 2.6rem;
  line-height: 1.08;
}

.section-subtitle {
  margin: 0;
  font-size: 1.05rem;
  max-width: 60ch;
  opacity: 0.95;
}

/* Backgrounds for each hero */
.section-hero--about {
  background-image: url("../images/aboutus.jpeg");
}

.section-hero--book {
  background-image: url("../images/bookwithus1.jpg");
}

/* =========================
   Founders title block (NOT .section-title)
   Use HTML: <div class="founders-title">...</div>
========================= */
.founders-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.section-line {
  width: 48px;
  height: 4px;
  background-color: var(--green-main);
  border-radius: 999px;
}

.founders-title h3 {
  margin: 0 0 0.15rem;
  color: var(--green-dark);
}

.founders-title h5 {
  margin: 0;
  max-width: 720px;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
  color: rgba(15, 61, 46, 0.8);
}

/* =========================
   LEARNS PAGE — About content
========================= */
.about-shell {
  margin-top: 0;
}

.about-intro {
  max-width: 78ch;
  margin: 0 auto 1.75rem;
  text-align: left;
}

.about-kicker {
  display: inline-block;
  font-weight: 700;
  letter-spacing: 0.3px;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(217, 251, 230, 0.95);
  color: var(--green-dark);
  margin: 0 0 0.9rem;
}

.about-heading {
  margin: 0 0 0.75rem;
  font-size: 2.1rem;
  line-height: 1.12;
  color: var(--green-dark);
}

.about-lead {
  margin: 0;
  font-size: 1.05rem;
  opacity: 0.95;
}

.soft-divider {
  height: 1px;
  margin: 2.25rem 0;
  background: linear-gradient(90deg, transparent, rgba(30,132,73,0.28), transparent);
}

/* Bio sections */
.bio-grid {
  display: grid;
  gap: 1.5rem;
  align-items: center;
}

.bio-photo-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
}

.bio-photo {
  width: min(320px, 100%);
  height: 420px;
  border-radius: 999px;
  object-fit: cover;
  object-position: center top;

  border: 6px solid rgba(255,255,255,0.95);
  box-shadow:
    0 18px 34px rgba(0,0,0,0.14),
    0 0 0 10px rgba(46,204,113,0.16);
}

.bio-copy {
  background: rgba(255,255,255,0.88);
  border: 1px solid var(--green-soft);
  border-radius: 1.25rem;
  padding: 1.4rem;
  box-shadow: var(--shadow-soft);
}

.bio-kicker {
  margin: 0 0 0.35rem;
  font-weight: 700;
  color: var(--green-dark);
  opacity: 0.9;
}

.bio-name {
  margin: 0 0 0.2rem;
  color: var(--green-dark);
  font-size: 1.8rem;
}

.bio-role {
  margin: 0 0 1rem;
  font-weight: 600;
  opacity: 0.88;
}

.bio-text p {
  margin: 0 0 0.9rem;
  opacity: 0.95;
}

.bio-text p:last-child {
  margin-bottom: 0;
}

/* Alternate layout */
.bio-flip .bio-photo-wrap {
  order: 2;
}
.bio-flip .bio-copy {
  order: 1;
}

/* CTA */
.learn-cta {
  margin-top: 2.75rem;
}
.learn-cta-inner {
  background: rgba(255,255,255,0.95);
  border: 1px solid var(--green-soft);
  border-radius: 1.25rem;
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-soft);
}
.learn-cta-inner h2 {
  margin: 0 0 0.5rem;
  color: var(--green-dark);
}
.learn-cta-inner p {
  margin: 0 auto 1.2rem;
  max-width: 70ch;
  opacity: 0.92;
}

/* =========================
   HERO actions (About + Book)
========================= */
.learn-hero-actions,
.book-hero-actions {
  margin-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.book-ghost {
  background: rgba(255,255,255,0.16);
  color: #f7fbf3;
  border: 1px solid rgba(255,255,255,0.28);
  backdrop-filter: blur(6px);
}
.book-ghost:hover {
  box-shadow: 0 14px 28px rgba(0,0,0,0.18);
}

/* =========================
   Reveal animation helper
========================= */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================
   CTA Heartbeat (buttons)
========================= */
.btn.primary.btn-cta {
  background: var(--green-main) !important;
  color: var(--white) !important;
  border-color: rgba(255,255,255,0.18) !important;

  transform-origin: center;
  will-change: transform, box-shadow;
  box-shadow: 0 14px 26px rgba(46, 204, 113, 0.30);
}

@keyframes ctaHeartbeat {
  0% {
    transform: scale(1);
    box-shadow: 0 14px 26px rgba(46, 204, 113, 0.30);
  }
  35% {
    transform: scale(1.06);
    box-shadow: 0 22px 44px rgba(46, 204, 113, 0.45);
  }
  55% {
    transform: scale(1.02);
    box-shadow: 0 18px 34px rgba(46, 204, 113, 0.36);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 14px 26px rgba(46, 204, 113, 0.30);
  }
}

.btn.primary.btn-cta {
  animation: ctaHeartbeat 1.3s ease-in-out infinite;
}

.btn.primary.btn-cta:hover {
  transform: scale(1.08);
  box-shadow: 0 26px 52px rgba(46, 204, 113, 0.55);
}

@media (prefers-reduced-motion: reduce) {
  .btn.primary.btn-cta {
    animation: none;
  }
}

/* =========================
   BOOK WITH US — page styles
========================= */
.book-section {
  margin-top: 2.5rem;
}

.book-head {
  max-width: 78ch;
  margin: 0 auto 1.25rem;
  text-align: center;
}
.book-head h2 {
  color: var(--green-dark);
  margin-bottom: 0.35rem;
}
.book-head p {
  margin: 0.2rem auto 0;
  opacity: 0.92;
}

.book-grid {
  display: grid;
  gap: 1rem;
}

.book-card {
  background: rgba(255,255,255,0.95);
  border: 1px solid var(--green-soft);
  border-radius: 1.2rem;
  padding: 1.25rem 1.2rem 1.4rem;
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}

.book-card::before {
  content: "";
  position: absolute;
  inset: -2px;
  background: radial-gradient(circle at top left, rgba(46,204,113,0.16), transparent 55%);
  pointer-events: none;
}

.book-card-top {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 0.85rem;
  align-items: center;
  margin-bottom: 0.6rem;
}

.book-icon {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: rgba(217, 251, 230, 0.75);
  border: 1px solid rgba(30, 132, 73, 0.12);
  font-size: 1.45rem;
}

.book-card h3 {
  margin: 0;
  color: var(--green-dark);
}

.book-card p {
  margin: 0.45rem 0 0.85rem;
  opacity: 0.92;
}

.book-list {
  margin: 0;
  padding-left: 1.1rem;
  opacity: 0.92;
}
.book-list li {
  margin-bottom: 0.35rem;
}

/* Booking focus card */
.booking-hero {
  margin-top: 3rem;
}

.booking-focus-card {
  max-width: 620px;
  margin: 0 auto;
  padding: 2.6rem 2rem;

  background: rgba(255,255,255,0.96);
  border: 1px solid var(--green-soft);
  border-radius: 1.6rem;
  box-shadow: 0 22px 44px rgba(0,0,0,0.08);

  text-align: center;
}

.booking-icon-xl {
  font-size: 3.6rem;
  width: 92px;
  height: 92px;
  margin: 0 auto 0.85rem;

  display: grid;
  place-items: center;
  border-radius: 28px;

  background: rgba(217,251,230,0.9);
  border: 1px solid rgba(30,132,73,0.14);
  box-shadow: 0 12px 24px rgba(46,204,113,0.25);
}

.booking-focus-card h2 {
  margin: 0.3rem 0 0.6rem;
  color: var(--green-dark);
}

.booking-lead {
  max-width: 48ch;
  margin: 0 auto 1.2rem;
  opacity: 0.95;
}

.booking-provider h3 {
  margin: 0 0 0.2rem;
  color: var(--green-dark);
}

.booking-provider p {
  margin: 0;
  opacity: 0.9;
}

.booking-highlights {
  margin: 1.1rem 0 1.4rem;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.meta-pill {
  display: inline-flex;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: rgba(217, 251, 230, 0.85);
  border: 1px solid rgba(30, 132, 73, 0.14);
  color: var(--green-dark);
  font-weight: 700;
  font-size: 0.9rem;
}

.booking-cta {
  padding: 0.75rem 1.4rem;
  width: fit-content;
  margin: 0.2rem auto 0;
}

/* Book hero quick points */
.book-quick-points {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.book-quick-points .badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;

  padding: 0.45rem 0.75rem;
  border-radius: 999px;

  font-weight: 600;
  font-size: 0.95rem;

  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(217, 251, 230, 0.95);
  color: var(--green-dark);

  cursor: default;
  white-space: nowrap;
  backdrop-filter: blur(6px);
}

.book-quick-points .badge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--green-main);
  box-shadow: 0 0 0 3px rgba(46, 204, 113, 0.16);
}

.section-hero--book .book-quick-points .badge {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(217, 251, 230, 0.95);
}

/* =========================
   RESPONSIVE (Shared hero + About)
========================= */
@media (min-width: 900px) {
  .book-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .bio-grid {
    grid-template-columns: 0.95fr 1.05fr;
    gap: 2rem;
  }
}

@media (max-width: 700px) {
  .section-hero {
    margin: 1.5rem 0 3rem;
    padding: 2.4rem 1.4rem;
  }

  .section-title {
    font-size: 2.1rem;
  }
}

@media (max-width: 520px) {
  .bio-photo {
    height: 360px;
  }

  .bio-flip .bio-photo-wrap,
  .bio-flip .bio-copy {
    order: unset;
  }
}
