/* ============================================
   ON POINT Health and Fitness — Main Styles
   ============================================ */

/* --- Variables --- */
:root {
  --color-purpura: #715c87;
  --color-verde: #88955e;
  --color-lavanda: #b3a8c0;
  --color-purpura-dark: #1a1528;
  --color-bg-dark: #111111;
  --color-bg-dark-0: rgba(17,17,17,0);
  --color-bg-darker: #0A0A0A;
  --color-bg-footer: #0d0a12;
  --color-card: #161616;
  --color-border: #222222;
  --color-text: #FFFFFF;
  --color-text-muted: rgba(255,255,255,0.4);
  --color-text-subtle: rgba(255,255,255,0.6);
  --font-main: 'Montserrat', sans-serif;
  --radius: 8px;
  --radius-lg: 12px;
  --radius-pill: 20px;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { font-family: var(--font-main); background: var(--color-bg-dark); color: var(--color-text); line-height: 1.5; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; }

/* --- Header --- */
.header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 56px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background .3s, box-shadow .3s;
  pointer-events: none;
}
.header > * {
  pointer-events: auto;
}
.header--solid {
  position: fixed;
  top: 0;
  background: rgba(17,17,17,0.95);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.06);
}
.header__logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.header__logo img { height: 56px; width: auto; }
.header__logo-text {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #fff;
}
.header__logo-sub {
  font-size: 9px;
  letter-spacing: 1px;
  color: var(--color-purpura);
}
.header__nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
.header__nav a {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,0.8);
  transition: color .2s;
}
.header__nav a:hover { color: var(--color-verde); }
.header__nav a.btn--primary:hover { color: #fff; background: var(--color-purpura); }
.header__burger {
  display: none;
  background: none;
  border: none;
  width: 32px;
  height: 24px;
  position: relative;
  cursor: pointer;
  z-index: 201;
}
.header__burger span {
  display: block;
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
.header__burger span:nth-child(1) { top: 0; }
.header__burger span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.header__burger span:nth-child(3) { bottom: 0; }
.header__burger.active span:nth-child(1) { top: 50%; transform: translateY(-50%) rotate(45deg); }
.header__burger.active span:nth-child(2) { opacity: 0; }
.header__burger.active span:nth-child(3) { bottom: auto; top: 50%; transform: translateY(-50%) rotate(-45deg); }

.mobile-menu {
  display: none;
}

.header__nav-link {
  transition: opacity .3s;
}
.header--solid .header__nav-link {
  opacity: 1;
  pointer-events: auto;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  border-radius: var(--radius);
  transition: transform .15s, opacity .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary {
  background: var(--color-verde);
  color: #fff;
  padding: 10px 24px;
  font-size: 13px;
}
.btn--primary-lg {
  background: var(--color-verde);
  color: #fff;
  padding: 16px 32px;
  font-size: 16px;
}
.btn--outline {
  background: transparent;
  color: #fff;
  padding: 16px 32px;
  font-size: 16px;
  border: 1.5px solid var(--color-lavanda);
}
.btn--gradient {
  background: linear-gradient(to right, var(--color-verde), var(--color-purpura));
  color: #fff;
  padding: 14px 32px;
  font-size: 14px;
}

/* --- Hero --- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  max-height: 1000px;
  display: flex;
  display: flex;
  flex-direction: column;
  background: url('/assets/images/hero-main-v2.webp') center center / cover no-repeat;
  overflow: hidden;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(10,10,10,0.4) 0%, rgba(10,10,10,0.3) 20%, rgba(10,10,10,0.6) 40%, rgba(10,10,10,0.85) 55%, rgba(10,10,10,1) 70%);
  pointer-events: none;
}
.hero__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  max-width: 900px;
  padding: 0 80px;
  margin-top: auto;
  margin-bottom: 0;
  width: 100%;
}
.hero__eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 4px;
  color: var(--color-verde);
  text-transform: uppercase;
}
.hero__title {
  font-size: 64px;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -2px;
}
.hero__title em {
  font-style: normal;
  color: var(--color-verde);
}
.hero__subtitle {
  font-size: 18px;
  color: rgba(255,255,255,0.55);
  line-height: 1.7;
  max-width: 550px;
}
.hero__scroll-cta {
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  color: rgba(255,255,255,0.4);
  margin: 30px auto 40px;
  align-self: center;
  transition: color .2s;
}
.hero__scroll-cta:hover { color: var(--color-verde); }
.hero__scroll-cta i { font-size: 18px; }


/* --- Section shared --- */
.section { padding: 80px 80px; }
.section--dark { background: var(--color-bg-darker); }
.section--purpura { background: var(--color-purpura-dark); }
.section__tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3px;
  color: var(--color-verde);
  margin-bottom: 12px;
}
.section__accent {
  width: 60px;
  height: 3px;
  border-radius: 2px;
  background: var(--color-purpura);
  margin: 16px 0;
}
.section__accent--lavanda { background: var(--color-lavanda); }
.section__title {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1.15;
}
.section__subtitle {
  font-size: 15px;
  color: rgba(255,255,255,0.4);
  line-height: 1.6;
  max-width: 550px;
}

/* --- Services Grid --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 48px;
}
.service-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 320px;
  transition: border-color .2s, transform .2s;
  overflow: hidden;
}
.service-card__img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}
.service-card > div { padding: 28px 28px 0; }
.service-card > a { margin: 0 28px 28px; }
.service-card:hover { border-color: var(--color-verde); transform: translateY(-2px); }
.service-card--purple { border-color: rgba(113,92,135,0.2); }
.service-card--purple:hover { border-color: var(--color-purpura); }
.service-card__icon {
  width: 48px; height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 16px;
}
.service-card__icon--green { background: rgba(136,149,94,0.13); color: var(--color-verde); }
.service-card__icon--purple { background: rgba(113,92,135,0.13); color: var(--color-lavanda); }
.service-card__title { font-size: 18px; font-weight: 700; margin-bottom: 12px; line-height: 1.3; }
.service-card__desc { font-size: 13px; color: rgba(255,255,255,0.4); line-height: 1.5; }
.service-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-verde);
  margin-top: auto;
  padding-top: 16px;
  transition: gap .2s;
}
.service-card__link:hover { gap: 10px; }
.service-card__link--purple { color: var(--color-lavanda); }

/* --- Nosotros --- */
.nosotros {
  display: flex;
  height: 600px;
  overflow: hidden;
}
.nosotros__image {
  width: 50%;
  position: relative;
}
.nosotros__image img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.nosotros__image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, transparent 0%, #111 95%);
}
.nosotros__image-tint {
  position: absolute;
  inset: 0;
  background: linear-gradient(to left, transparent 30%, rgba(113,92,135,0.13) 100%);
}
.nosotros__content {
  width: 50%;
  padding: 64px 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 40px;
}
.nosotros__block { display: flex; flex-direction: column; gap: 12px; }
.nosotros__block h4 { font-size: 14px; font-weight: 600; color: var(--color-lavanda); }
.nosotros__block p { font-size: 15px; color: rgba(255,255,255,0.6); line-height: 1.7; }

/* --- Valores --- */
.valores-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}
.valor-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 400px;
}
.valor-card--featured {
  background: rgba(113,92,135,0.09);
  border-color: rgba(113,92,135,0.27);
}
.valor-card--green { background: rgba(136,149,94,0.05); }
.valor-card__num {
  font-size: 48px;
  font-weight: 700;
  color: rgba(113,92,135,0.2);
  margin-bottom: 20px;
}
.valor-card--green .valor-card__num { color: rgba(136,149,94,0.2); }
.valor-card--featured .valor-card__num { color: rgba(179,168,192,0.27); }
.valor-card__title { font-size: 24px; font-weight: 700; line-height: 1.2; margin-bottom: 16px; }
.valor-card__desc { font-size: 14px; color: rgba(255,255,255,0.4); line-height: 1.6; }
.valor-card__icon { font-size: 28px; color: rgba(179,168,192,0.33); margin-top: auto; padding-top: 24px; }
.valor-card--green .valor-card__icon { color: rgba(136,149,94,0.33); }

/* --- FAQs --- */
.faqs {
  display: flex;
  gap: 80px;
}
.faqs__left { width: 400px; flex-shrink: 0; display: flex; flex-direction: column; gap: 16px; }
.faqs__left h2 { font-size: 32px; font-weight: 700; letter-spacing: -1px; line-height: 1.2; }
.faqs__left p { font-size: 14px; color: rgba(255,255,255,0.33); line-height: 1.5; }
.faqs__right { flex: 1; }
.faq-item {
  border-bottom: 1px solid rgba(113,92,135,0.27);
  overflow: hidden;
}
.faq-item__question {
  width: 100%;
  background: none;
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  font-family: var(--font-main);
}
.faq-item__question i {
  color: rgba(255,255,255,0.27);
  transition: transform .3s;
  font-size: 18px;
}
.faq-item.open .faq-item__question i { transform: rotate(45deg); }
.faq-item__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s ease, padding .3s;
}
.faq-item.open .faq-item__answer { max-height: 200px; padding-bottom: 24px; }
.faq-item__answer p {
  font-size: 14px;
  color: rgba(255,255,255,0.5);
  line-height: 1.6;
}

/* --- Contacto --- */
.contacto {
  display: flex;
  gap: 60px;
}
.contacto__left { flex: 1; display: flex; flex-direction: column; gap: 24px; justify-content: center; }
.contacto__left h2 { font-size: 40px; font-weight: 700; letter-spacing: -1px; line-height: 1.15; }
.contacto__left p { font-size: 15px; color: rgba(255,255,255,0.4); line-height: 1.6; max-width: 420px; }
.contacto__info { display: flex; flex-direction: column; gap: 12px; }
.contacto__info-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: rgba(255,255,255,0.53);
}
.contacto__info-item i { color: var(--color-verde); font-size: 16px; }
.contacto__form {
  flex: 1;
  background: var(--color-card);
  border: 1px solid rgba(113,92,135,0.2);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.form-row { display: flex; gap: 16px; }
.form-group { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 12px; font-weight: 500; color: rgba(255,255,255,0.53); }
.form-group input,
.form-group textarea {
  background: #1E1E1E;
  border: 1px solid #2A2A2A;
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: 13px;
  font-family: var(--font-main);
  color: #fff;
  outline: none;
  transition: border-color .2s;
}
.form-group input:focus,
.form-group textarea:focus { border-color: var(--color-purpura); }
.form-group textarea { resize: vertical; min-height: 100px; }
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(255,255,255,0.2); }
.form-privacy {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: rgba(255,255,255,0.4);
}
.form-privacy input[type="checkbox"] {
  width: 18px; height: 18px;
  accent-color: var(--color-lavanda);
  cursor: pointer;
}
.form-privacy a { color: var(--color-lavanda); text-decoration: underline; }

/* --- Footer --- */
.footer {
  background: var(--color-bg-footer);
  padding: 60px 80px;
}
.footer__top {
  display: flex;
  justify-content: space-between;
  margin-bottom: 40px;
}
.footer__brand { max-width: 300px; }
.footer__brand-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.footer__brand-logo img { height: 32px; }
.footer__brand-logo span { font-size: 16px; font-weight: 700; letter-spacing: 2px; }
.footer__brand p { font-size: 12px; color: rgba(255,255,255,0.27); line-height: 1.6; }
.footer__col h4 { font-size: 12px; font-weight: 600; color: rgba(255,255,255,0.53); margin-bottom: 12px; }
.footer__col a {
  display: block;
  font-size: 12px;
  color: rgba(255,255,255,0.27);
  margin-bottom: 8px;
  transition: color .2s;
}
.footer__col a:hover { color: var(--color-verde); }
.footer__deco {
  display: flex;
  gap: 8px;
  position: absolute;
  top: 20px;
  right: 80px;
}
.footer__deco span {
  width: 6px; height: 6px;
  border-radius: 50%;
}
.footer__divider {
  height: 1px;
  background: rgba(113,92,135,0.2);
  margin-bottom: 24px;
}
.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer__copy { font-size: 11px; color: rgba(255,255,255,0.2); }
.footer__social { display: flex; gap: 16px; }
.footer__social a { color: rgba(255,255,255,0.27); font-size: 18px; transition: color .2s; }
.footer__social a:hover { color: var(--color-lavanda); }

/* --- Privacy Modal --- */
.privacy-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0,0,0,0.8);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  justify-content: center;
  align-items: center;
  padding: 40px;
}
.privacy-modal.open { display: flex; }
.privacy-modal__content {
  background: var(--color-bg-dark);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  max-width: 800px;
  max-height: 80vh;
  overflow-y: auto;
  padding: 48px;
  position: relative;
}
.privacy-modal__close {
  position: absolute;
  top: 16px; right: 16px;
  background: none;
  color: rgba(255,255,255,0.4);
  font-size: 24px;
}
.privacy-modal__content h2 { font-size: 24px; font-weight: 700; margin-bottom: 24px; }
.privacy-modal__content p,
.privacy-modal__content li { font-size: 14px; color: rgba(255,255,255,0.6); line-height: 1.7; margin-bottom: 12px; }
.privacy-modal__content h3 { font-size: 16px; font-weight: 600; margin: 20px 0 8px; color: var(--color-lavanda); }

/* --- Scroll-to-top --- */
.scroll-top {
  position: fixed;
  bottom: 32px; right: 32px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--color-purpura);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s, transform .3s;
  z-index: 90;
}
.scroll-top.visible { opacity: 1; pointer-events: auto; }
.scroll-top:hover { transform: translateY(-2px); }

/* --- Responsive --- */

/* Tablet landscape / small desktop */
@media (max-width: 1200px) {
  .section { padding: 64px 48px; }
  .header { padding: 0 48px; }
  .footer { padding: 48px 48px; }
  .footer__deco { right: 48px; }
  .nosotros__content { padding: 48px 40px; }
}

/* Tablet portrait */
@media (max-width: 1024px) {
  /* Hero tablet */
  .hero { min-height: 500px; }
  .hero__title { font-size: 40px; }
  .hero__subtitle { font-size: 16px; }

  /* Header */
  .header { padding: 0 32px; top: 0; }

  /* Sections */
  .section { padding: 56px 32px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .valores-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }

  /* Nosotros */
  .nosotros { flex-direction: column; height: auto; }
  .nosotros__image { width: 100%; height: 350px; }
  .nosotros__image::after { background: linear-gradient(to bottom, transparent 0%, #111 95%); }
  .nosotros__content { width: 100%; padding: 40px 32px; }

  /* FAQs */
  .faqs { flex-direction: column; gap: 32px; }
  .faqs__left { width: 100%; }

  /* Contacto */
  .contacto { flex-direction: column; gap: 40px; }

  /* Footer */
  .footer { padding: 40px 32px; }
  .footer__top { flex-wrap: wrap; gap: 32px; }
  .footer__brand { max-width: 100%; width: 100%; margin-bottom: 8px; }
  .footer__deco { right: 32px; }
}

/* Mobile */
@media (max-width: 768px) {
  /* Hero mobile */
  .hero__title { font-size: 32px; }
  .hero__subtitle { font-size: 14px; }
  .hero__content { gap: 16px; padding: 0 24px; margin-top: auto; margin-bottom: 0; }
  .hero__scroll-cta { margin: 30px auto 32px; }
  /* Header mobile */
  .header { padding: 0 24px; height: 64px; }
  .header__logo img { height: 44px; }
  .header__nav { display: none; }
  .header__burger { display: block; }
  .btn--primary { padding: 8px 16px; font-size: 12px; }

  /* Mobile menu panel */
  .mobile-menu {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(10,10,10,0.97);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .35s, visibility .35s;
  }
  .mobile-menu.open {
    opacity: 1;
    visibility: visible;
  }
  .mobile-menu__nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    gap: 36px;
  }
  .mobile-menu__link {
    font-size: 24px;
    font-weight: 600;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    letter-spacing: 1px;
    transition: color .2s;
    transform: translateY(20px);
    opacity: 0;
    transition: color .2s, transform .4s, opacity .4s;
  }
  .mobile-menu.open .mobile-menu__link {
    transform: translateY(0);
    opacity: 1;
  }
  .mobile-menu.open .mobile-menu__link:nth-child(1) { transition-delay: .05s; }
  .mobile-menu.open .mobile-menu__link:nth-child(2) { transition-delay: .1s; }
  .mobile-menu.open .mobile-menu__link:nth-child(3) { transition-delay: .15s; }
  .mobile-menu.open .mobile-menu__link:nth-child(4) { transition-delay: .2s; }
  .mobile-menu.open .mobile-menu__link:nth-child(5) { transition-delay: .25s; }
  .mobile-menu__link:hover,
  .mobile-menu__link:active {
    color: var(--color-verde);
  }

  /* Sections */
  .section { padding: 48px 24px; }
  .section__title { font-size: 28px; }
  .section__subtitle { font-size: 13px; }
  .services-grid { grid-template-columns: 1fr; gap: 12px; }
  .service-card { min-height: 0; padding: 24px 20px; }
  .service-card__title { font-size: 18px; }

  /* Valores */
  .valores-grid { grid-template-columns: 1fr; gap: 12px; }
  .valor-card { min-height: 0; padding: 28px 24px; }
  .valor-card__num { font-size: 36px; }
  .valor-card__title { font-size: 20px; }

  /* Nosotros */
  .nosotros__image { height: 280px; }
  .nosotros__content { padding: 32px 24px; gap: 28px; }

  /* FAQs */
  .faqs__left h2 { font-size: 24px; }
  .faq-item__question { font-size: 14px; }

  /* Contacto */
  .contacto__left h2 { font-size: 28px; }
  .contacto__form { padding: 28px 20px; }
  .form-row { flex-direction: column; }

  /* Footer */
  .footer { padding: 32px 24px; }
  .footer__top { flex-direction: column; gap: 24px; }
  .footer__deco { display: none; }
  .footer__bottom { flex-direction: column; gap: 12px; text-align: center; }

  /* Modal */
  .privacy-modal { padding: 16px; }
  .privacy-modal__content { padding: 28px 20px; }
}

/* Mobile small */
@media (max-width: 400px) {
  .hero__title { font-size: 26px; }
  .hero__subtitle { font-size: 13px; }

  .header { padding: 0 16px; }

  .section { padding: 40px 16px; }
  .section__title { font-size: 24px; }

  .nosotros__content { padding: 24px 16px; }
  .contacto__form { padding: 20px 16px; }
  .footer { padding: 24px 16px; }
}
