/**
 * ============================================================================
 * ACUPOINT APP - ESTILO CROUTON MODERNO Y MINIMALISTA (styles.css)
 * ============================================================================
 */

:root {
  --bg-page: #fbfaf8;          /* Fondo crema cálido editorial */
  --bg-surface: #ffffff;
  --bg-subtle: #f3f1ec;

  --text-primary: #1c1917;    /* Texto casi negro suave */
  --text-secondary: #57534e;  /* Gris cálido */
  --text-muted: #8c8882;

  --accent-color: #2563eb;    /* Azul AcuPoint */
  --star-color: #f59e0b;      /* Estrellas doradas */

  --border-light: #eae7e1;
  --border-divider: #e4e0d7;

  /* Sombras limpias sin bordes oscuros artificiales */
  --shadow-phone: 0 20px 45px -10px rgba(0, 0, 0, 0.12), 0 0 1px rgba(0, 0, 0, 0.08);
  --shadow-front: 0 30px 60px -15px rgba(0, 0, 0, 0.2), 0 0 1px rgba(0, 0, 0, 0.1);
  --shadow-card: 0 4px 20px -2px rgba(28, 25, 23, 0.05);

  --font-base: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* === RESET Y BASE === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-base);
  background-color: var(--bg-page);
  color: var(--text-primary);
  line-height: 1.6;
}

.container {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
}

.container-narrow {
  width: 90%;
  max-width: 800px;
  margin: 0 auto;
}

.text-center {
  text-align: center;
}

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

/* === NAVBAR CROUTON: SIN RAYA, LOGO CIRCULAR, ENLACES DISCRETOS === */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(251, 250, 248, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: none;
  padding: 20px 0 12px;
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%; /* Esfera limpia sin recuadros negros */
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.brand-name {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-link {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-link:hover {
  color: var(--text-primary);
}

.lang-select {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-light);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  outline: none;
  transition: all 0.2s;
}

.lang-select:hover {
  background: #fff;
  border-color: #cbd5e1;
}

/* === HERO: GRID DE 2 COLUMNAS (TEXTO + 2 TELÉFONOS SUPERPUESTOS) === */
.hero {
  padding: 60px 0 90px;
}

.hero-grid-crouton {
  display: grid;
  grid-template-columns: 1fr;
  gap: 50px;
  align-items: center;
}

@media (min-width: 920px) {
  .hero-grid-crouton {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 60px;
  }
}

.hero-tag {
  display: inline-block;
  background-color: #f5f4ef;
  color: var(--text-secondary);
  padding: 6px 16px;
  border-radius: 30px;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 22px;
  border: 1px solid var(--border-light);
}

.hero-title {
  font-size: 2.7rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1px;
  color: var(--text-primary);
  margin-bottom: 20px;
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 3.4rem;
  }
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 34px;
  max-width: 580px;
}

.hero-cta-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.btn-playstore-crouton {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background-color: #000000;
  color: #ffffff;
  padding: 13px 26px;
  border-radius: 14px;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.25);
}

.btn-playstore-crouton:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -5px rgba(0, 0, 0, 0.35);
}

.btn-playstore-copy {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.btn-playstore-copy .sub {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #a8a29e;
}

.btn-playstore-copy .main {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
}

.badge-ios-subtle {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* === EFECTO DE DOS TELÉFONOS SUPERPUESTOS === */
.hero-mockup-overlap {
  position: relative;
  width: 100%;
  max-width: 440px;
  height: 520px;
  margin: 0 auto;
}

.clean-phone-img {
  width: 100%;
  height: auto;
  display: block;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  filter: none !important;
}

/* Pantalla trasera */
.mockup-back {
  position: absolute;
  top: 10px;
  left: 0;
  width: 62%;
  z-index: 1;
  box-shadow: none !important;
  border: none !important;
  background: transparent !important;
  transform: rotate(-3deg);
  transition: transform 0.3s ease;
}

/* Pantalla frontal */
.mockup-front {
  position: absolute;
  top: 40px;
  right: 0;
  width: 72%;
  z-index: 2;
  box-shadow: none !important;
  border: none !important;
  background: transparent !important;
  transform: rotate(2deg);
  transition: transform 0.3s ease;
}

.hero-mockup-overlap:hover .mockup-back {
  transform: rotate(-5deg) translateY(-8px);
}

.hero-mockup-overlap:hover .mockup-front {
  transform: rotate(0deg) translateY(-8px);
}

/* === BARRA DE IMPACTO / SOCIAL PROOF === */
.stats-section {
  padding: 40px 0;
  border-top: 1px solid var(--border-divider);
  border-bottom: 1px solid var(--border-divider);
  background-color: #fff;
}

.stats-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  align-items: center;
  gap: 20px;
}

.stat-unit {
  text-align: center;
  padding: 10px;
}

.stat-num {
  display: block;
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}

.stat-text {
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 500;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background-color: var(--border-divider);
  display: none;
}

@media (min-width: 768px) {
  .stat-divider { display: block; }
}

/* === FEATURES (CARRUSEL HORIZONTAL LIMPIO) === */
.gallery-section {
  padding: 90px 0;
  background-color: var(--bg-subtle);
  border-bottom: 1px solid var(--border-divider);
}

.eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent-color);
  display: inline-block;
  margin-bottom: 10px;
}

.section-title {
  font-size: 2.3rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 45px;
}

.gallery-slider {
  display: flex;
  gap: 26px;
  overflow-x: auto;
  padding: 10px 0 35px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.gallery-slider::-webkit-scrollbar {
  height: 6px;
}

.gallery-slider::-webkit-scrollbar-thumb {
  background: #d6d3d1;
  border-radius: 3px;
}

.gallery-item {
  flex: 0 0 280px;
  scroll-snap-align: center;
  background: var(--bg-surface);
  border-radius: 24px;
  padding: 18px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-card);
  text-align: left;
}

.slider-clean-img {
  width: 100%;
  border-radius: 20px;
  margin-bottom: 16px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.gallery-item h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.caption-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* === REVIEWS CARRUSEL SLIDER === */
.reviews-section {
  padding: 90px 0 100px;
}

.section-head {
  margin-bottom: 45px;
}

.reviews-slider {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  padding: 10px 0 35px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.reviews-slider::-webkit-scrollbar {
  height: 6px;
}

.reviews-slider::-webkit-scrollbar-thumb {
  background: #d6d3d1;
  border-radius: 3px;
}

.review-box {
  flex: 0 0 320px;
  scroll-snap-align: center;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: 22px;
  padding: 28px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.stars {
  color: var(--star-color);
  font-size: 1.15rem;
  margin-bottom: 14px;
}

.quote {
  font-size: 1.05rem;
  font-style: italic;
  color: var(--text-primary);
  line-height: 1.6;
  margin-bottom: 22px;
}

.reviewer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-light);
  padding-top: 14px;
  font-size: 0.85rem;
}

.reviewer strong {
  color: var(--text-primary);
}

.reviewer span {
  color: var(--text-muted);
}

/* === CTA INFERIOR === */
.bottom-cta {
  padding: 85px 0 95px;
  background-color: var(--bg-subtle);
  border-top: 1px solid var(--border-divider);
}

.bottom-cta h2 {
  font-size: 2.3rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}

.bottom-cta p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 30px;
}

.bottom-btn-center {
  display: flex;
  justify-content: center;
}

/* === FOOTER SUTIL === */
.footer {
  padding: 35px 0;
  background: var(--bg-page);
  border-top: 1px solid var(--border-divider);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

@media (min-width: 768px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.legal-disc {
  font-size: 0.78rem;
  margin-top: 4px;
  color: #a8a29e;
}

.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--text-primary);
}

/* =====================================================================
   RESPONSIVE DESIGN PARA MÓVILES (EVITA TRASLAPE DEL HEADER)
   ===================================================================== */
@media (max-width: 640px) {
  /* Apila el logo y los menús en vertical en lugar de horizontal */
  .nav-inner {
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 6px 0;
  }

  /* Centra los enlaces y el selector debajo de la marca */
  .nav-menu {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    width: 100%;
  }

  /* Ajusta los tamaños de texto para pantallas pequeñas */
  .brand-name {
    font-size: 1.25rem;
  }

  .nav-link {
    font-size: 0.9rem;
  }

  .lang-select {
    padding: 5px 10px;
    font-size: 0.8rem;
  }
}

/* =====================================================================
   PÁGINAS LEGALES (PRIVACY POLICY & TERMS AND CONDITIONS)
   ===================================================================== */
.legal-page-section {
  padding: 60px 0 90px;
}

.legal-header {
  margin-bottom: 40px;
  border-bottom: 1px solid var(--border-divider);
  padding-bottom: 24px;
}

.legal-title {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.8px;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.legal-updated {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.legal-body {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.8;
}

.legal-body p {
  margin-bottom: 20px;
}

.legal-body h2 {
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 40px 0 16px;
  letter-spacing: -0.4px;
}

.legal-body ul {
  margin: 0 0 24px 24px;
}

.legal-body li {
  margin-bottom: 8px;
}

.legal-body a {
  color: var(--accent-color);
  text-decoration: underline;
}

.legal-body a:hover {
  color: #1d4ed8;
}