/*
Theme Name:   Astra Child — Intimidad Consciente
Description:  Landing profesional — Despertando Pasiones Ardientes (Hormozi CRO)
Author:       Intimidad Consciente
Template:     astra
Version:      3.0.0
*/

/* ═══════════════════════════════════════════
   CSS VARIABLES
═══════════════════════════════════════════ */
:root {
  --bg:         #080808;
  --bg-alt:     #0d0d0d;
  --bg-card:    #111111;
  --bg-card2:   #161616;
  --red:        #cc0000;
  --red-dark:   #990000;
  --red-glow:   rgba(204,0,0,0.25);
  --white:      #ffffff;
  --gray:       #999999;
  --gray-light: #cccccc;
  --font-display: 'Oswald', sans-serif;
  --font-serif:   'Playfair Display', serif;
  --font-body:    'Lato', sans-serif;
}

/* ═══════════════════════════════════════════
   GLOBAL
═══════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg) !important;
  color: var(--white) !important;
  font-family: var(--font-body) !important;
  font-size: 17px;
  line-height: 1.7;
  margin: 0 !important;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--red); color: #fff; }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #111; }
::-webkit-scrollbar-thumb { background: var(--red); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--red-dark); }

a { color: var(--red); text-decoration: none; transition: color .2s; }
a:hover { color: #ff3333; }
img { max-width: 100%; height: auto; display: block; }

/* ═══════════════════════════════════════════
   OCULTAR HEADER ASTRA en página inicio
═══════════════════════════════════════════ */
body.page-id-1370 .site-header,
body.page-id-1370 .ast-primary-header-bar,
body.page-id-1370 .ast-main-header-wrap,
body.page-id-1370 .main-header-bar,
body.page-id-1370 .main-header-bar-wrap {
  display: none !important;
}
body.page-id-1370 .ast-above-header-bar { display: none !important; }

/* Para otras páginas: header oscuro con acento rojo */
.site-header,
.ast-primary-header-bar,
.ast-main-header-wrap,
.main-header-bar,
.main-header-bar-wrap {
  background: rgba(8,8,8,0.97) !important;
  backdrop-filter: blur(16px) !important;
  border-bottom: 1px solid rgba(204,0,0,0.15) !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 9999 !important;
}
.ast-site-title, .ast-site-title a, .site-title, .site-title a {
  font-family: var(--font-serif) !important;
  font-size: 1.15em !important;
  color: var(--white) !important;
}
.ast-primary-menu > li > a, .main-navigation a {
  color: rgba(255,255,255,0.85) !important;
  font-family: var(--font-body) !important;
  font-size: 0.85em !important;
  transition: color .2s !important;
}
.ast-primary-menu > li > a:hover, .main-navigation a:hover { color: var(--red) !important; }

/* Botón del menú */
.ic-nav-cta {
  background: var(--red) !important; color: var(--white) !important;
  font-family: var(--font-display) !important; font-size: 0.78em !important;
  font-weight: 700 !important; letter-spacing: 1.5px !important; text-transform: uppercase !important;
  padding: 9px 22px !important; border-radius: 2px !important; margin-left: 12px !important;
  transition: background .2s !important; display: inline-flex !important; align-items: center !important;
  min-height: 44px !important; cursor: pointer !important;
}
.ic-nav-cta:hover { background: var(--red-dark) !important; color: var(--white) !important; }
.ic-nav-cta:focus-visible { outline: 3px solid var(--red) !important; outline-offset: 3px !important; }

/* Footer Astra */
.site-footer, .ast-footer-area, .ast-site-footer, footer.site-footer { display: none !important; }

/* Entry content cleanup */
.entry-content, .page-content, .ast-container, .wp-site-blocks, article.page {
  background: var(--bg) !important; padding: 0 !important; margin: 0 !important; max-width: 100% !important;
}
.ast-page-builder-template .entry-content { padding: 0 !important; }
.entry-header { display: none !important; }

/* ═══════════════════════════════════════════
   WOOCOMMERCE DARK THEME
═══════════════════════════════════════════ */
.woocommerce-page, .woocommerce { background: var(--bg) !important; color: var(--white) !important; }
.woocommerce form .form-row label { color: var(--gray) !important; font-size: 0.82em !important; }
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select {
  background: #1a1a1a !important; color: var(--white) !important;
  border: 1px solid #2a2a2a !important; border-radius: 2px !important; padding: 12px 16px !important;
  transition: border-color .2s !important;
}
.woocommerce form .form-row input.input-text:focus {
  border-color: var(--red) !important; outline: none !important;
  box-shadow: 0 0 0 3px rgba(204,0,0,0.12) !important;
}
.woocommerce a.button, .woocommerce button.button,
.woocommerce input.button, .woocommerce #respond input#submit,
.woocommerce #payment #place_order, .woocommerce-page #payment #place_order {
  background: var(--red) !important; color: var(--white) !important; border: none !important;
  border-radius: 2px !important; font-family: var(--font-display) !important; font-weight: 700 !important;
  text-transform: uppercase !important; letter-spacing: 2px !important;
  min-height: 52px !important; cursor: pointer !important;
  transition: background .2s, transform .15s !important; box-shadow: 0 4px 24px var(--red-glow) !important;
}
.woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce #payment #place_order:hover {
  background: var(--red-dark) !important; transform: translateY(-2px) !important;
}
.woocommerce-checkout #payment { background: #111 !important; border: 1px solid #222 !important; border-radius: 3px !important; }
.woocommerce table.shop_table { background: var(--bg-card) !important; border: 1px solid #222 !important; }
.woocommerce table.shop_table th, .woocommerce table.shop_table td { color: var(--white) !important; border-color: #222 !important; }

/* ═══════════════════════════════════════════
   FADE-IN SCROLL ANIMATION
═══════════════════════════════════════════ */
.fade-in {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .7s ease, transform .7s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }
.fade-in.delay-1 { transition-delay: .15s; }
.fade-in.delay-2 { transition-delay: .3s; }
.fade-in.delay-3 { transition-delay: .45s; }

@media (prefers-reduced-motion: reduce) {
  .fade-in { opacity: 1; transform: none; transition: none; }
}

/* ═══════════════════════════════════════════
   LANDING COMPONENTS
═══════════════════════════════════════════ */

/* Container */
.lp-wrap  { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.lp-wrap--sm { max-width: 720px; margin: 0 auto; padding: 0 20px; }
.lp-wrap--md { max-width: 860px; margin: 0 auto; padding: 0 20px; }

/* Red line decorator */
.red-line { width: 50px; height: 3px; background: var(--red); margin: 0 auto 24px; border-radius: 2px; }
.red-line-left { width: 50px; height: 3px; background: var(--red); margin: 0 0 24px; border-radius: 2px; }

/* Tag/Badge */
.tag {
  display: inline-block; background: var(--red); color: #fff;
  font-family: var(--font-display); font-size: 12px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase; padding: 6px 18px; margin-bottom: 20px;
}

/* Buttons — touch targets ≥ 54px, cursor-pointer, focus states */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--red); color: #fff;
  font-family: var(--font-display); font-size: 15px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase; padding: 20px 48px;
  border: none; cursor: pointer;
  transition: background .25s ease, transform .15s ease, box-shadow .25s ease;
  box-shadow: 0 6px 30px var(--red-glow);
  min-height: 58px; text-decoration: none; border-radius: 2px;
}
.btn:hover { background: var(--red-dark); transform: translateY(-2px); box-shadow: 0 12px 40px rgba(204,0,0,0.45); color: #fff; }
.btn:focus-visible { outline: 3px solid var(--red); outline-offset: 4px; }
.btn-lg { padding: 24px 64px; font-size: 17px; }
.btn-xl { padding: 26px 72px; font-size: 19px; }
.btn-full { width: 100%; display: flex; }

/* Trust row */
.trust-row {
  display: flex; flex-wrap: wrap; gap: 16px; margin-top: 16px;
  font-size: 13px; color: var(--gray);
}
.trust-item { display: flex; align-items: center; gap: 6px; }
.trust-item svg { color: var(--red); flex-shrink: 0; }

/* Section padding */
.lp-section { padding: 90px 20px; }
.lp-section--alt { background: var(--bg-alt); }

/* Problem / chapter cards — cursor-pointer, hover feedback */
.card-red-left {
  background: var(--bg-card); border-left: 3px solid var(--red); padding: 24px;
  border-radius: 2px; cursor: default;
  transition: background .2s ease, border-color .2s ease;
}
.card-red-left:hover { background: #181818; }

.card-red-top {
  background: var(--bg-card); border-top: 2px solid var(--red); padding: 28px;
  border-radius: 2px; cursor: default;
  transition: transform .25s ease, box-shadow .25s ease;
}
.card-red-top:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(204,0,0,0.12); }

/* Testimonial cards */
.card-testimonial {
  background: var(--bg-card); border-top: 2px solid var(--red); padding: 32px;
  border-radius: 2px; position: relative;
  transition: transform .25s ease;
}
.card-testimonial:hover { transform: translateY(-3px); }
.stars { color: var(--red); font-size: 18px; margin-bottom: 12px; display: flex; gap: 3px; }

/* FAQ accordion */
details.faq-item {
  background: var(--bg-card); margin-bottom: 2px; cursor: pointer;
}
details.faq-item summary {
  padding: 20px 24px; font-weight: 700; font-size: 15.5px; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  user-select: none; color: var(--white);
  transition: color .2s;
}
details.faq-item summary:hover { color: var(--red); }
details.faq-item summary:focus-visible { outline: 2px solid var(--red); outline-offset: -2px; }
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item .faq-icon { color: var(--red); font-size: 22px; font-weight: 300; flex-shrink: 0; transition: transform .25s; }
details.faq-item[open] .faq-icon { transform: rotate(45deg); }
details.faq-item .faq-answer {
  padding: 0 24px 20px; color: var(--gray); font-size: 15px; line-height: 1.75;
  border-top: 1px solid #1e1e1e; margin-top: 0;
}

/* Value stack rows */
.value-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 24px; background: var(--bg-card); border-left: 3px solid var(--red);
  margin-bottom: 2px; gap: 20px;
}
.value-row:hover { background: #181818; }

/* Author circle avatar */
.author-avatar {
  width: 220px; height: 220px; border-radius: 50%;
  border: 3px solid var(--red);
  box-shadow: 0 0 40px var(--red-glow);
  object-fit: cover; display: block; margin: 0 auto;
  background: #1a1a1a;
  overflow: hidden;
}
.author-avatar-placeholder {
  width: 220px; height: 220px; border-radius: 50%;
  border: 3px solid var(--red);
  box-shadow: 0 0 40px var(--red-glow);
  background: linear-gradient(135deg, #1a0000, #2a0000);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto;
  font-family: var(--font-display); font-size: 48px; font-weight: 700; color: var(--red);
}

/* Custom navigation (landing page only) */
.lp-nav {
  position: sticky; top: 0; z-index: 999;
  background: rgba(8,8,8,0.97); backdrop-filter: blur(10px);
  border-bottom: 1px solid #1a1a1a; padding: 0 20px;
}
.lp-nav__inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  height: 64px;
}
.lp-nav__logo {
  font-family: var(--font-serif); font-size: 18px; color: var(--white);
  text-decoration: none;
}
.lp-nav__logo span { color: var(--red); }

/* Announcement bar */
.lp-announce {
  background: var(--red); text-align: center; padding: 10px 20px;
  font-family: var(--font-display); font-size: 13px; letter-spacing: 1px; font-weight: 600;
  color: #fff; line-height: 1.5;
}
.lp-announce a { color: #fff; text-decoration: underline; }
.lp-announce a:hover { color: rgba(255,255,255,0.8); }

/* ═══════════════════════════════════════════
   RESPONSIVE — MOBILE FIRST
═══════════════════════════════════════════ */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr !important; }
  .hero-grid--img { order: -1; }
  .author-grid { grid-template-columns: 1fr !important; text-align: center !important; }
  .author-grid .red-line-left { margin: 0 auto 24px !important; }
  .red-line-left-mobile { margin-left: auto !important; margin-right: auto !important; }
  .lp-section { padding: 64px 20px !important; }
}

@media (max-width: 640px) {
  .lp-section { padding: 56px 16px !important; }
  .btn-lg, .btn-xl { padding: 18px 28px !important; font-size: 15px !important; width: 100% !important; }
  .btn { min-width: unset !important; }
  .lp-nav__logo { font-size: 15px; }
  .trust-row { justify-content: center !important; }
  .value-row { flex-direction: column; align-items: flex-start; gap: 8px; }
  .value-row .value-price { align-self: flex-end; }
  .faq-item summary { font-size: 14px; }
}

@media (min-width: 640px) {
  .mobile-only { display: none !important; }
}
@media (max-width: 639px) {
  .desktop-only { display: none !important; }
}
