/* =====================================================================
   Vitae HOME — profissional + 100% responsivo
   ===================================================================== */

:root {
  --h-purple:      #7C3AED;
  --h-purple-dk:   #5B21B6;
  --h-purple-deep: #1a0a2e;
  --h-purple-soft: #f8f5ff;
  --h-text:        #1a0a2e;
  --h-text-soft:   #4a4a4a;
  --h-bg-soft:     #fafafa;
  --h-border:      #ececec;
  --h-radius:      10px;
  --h-radius-lg:   16px;
  --h-shadow:      0 4px 18px rgba(0,0,0,.06);
  --h-shadow-lg:   0 12px 36px rgba(0,0,0,.12);
}

/* Full-width reset */
.vitae-home,
.vitae-home .vitae-home__content,
.vitae-home .entry-content {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
}
.page-template-page-home #secondary,
.page-template-page-home .storefront-breadcrumb,
.page-template-page-home .entry-header,
.page-template-page-home .page-title,
.page-template-page-home .woocommerce-breadcrumb {
  display: none !important;
}
.page-template-page-home #primary { width: 100% !important; float: none !important; }
.page-template-page-home #content,
.page-template-page-home .site-main,
.page-template-page-home .content-area {
  padding: 0 !important;
  margin: 0 !important;
  max-width: none !important;
}

/* ==================== Hero ==================== */
.h-hero {
  background: linear-gradient(180deg, var(--h-purple-soft) 0%, #fff 100%);
  padding: clamp(40px, 7vw, 80px) 20px;
}
.h-hero__grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(28px, 5vw, 56px);
  align-items: center;
}
@media (min-width: 880px) {
  .h-hero__grid { grid-template-columns: 1.05fr 1fr; }
}
.h-hero__eyebrow {
  display: inline-block;
  background: #fff;
  color: var(--h-purple-dk);
  font-weight: 800;
  letter-spacing: 2px;
  font-size: 11px;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(124,58,237,.2);
  margin-bottom: 16px;
}
.h-hero h1 {
  font-size: clamp(30px, 5.5vw, 56px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1px;
  color: var(--h-text);
  margin: 0 0 16px;
}
.h-hero h1 span { color: var(--h-purple); }
.h-hero p {
  font-size: clamp(15px, 1.8vw, 18px);
  color: var(--h-text-soft);
  line-height: 1.6;
  margin: 0 0 24px;
  max-width: 520px;
}
.h-hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0 12px;
}
.h-btn {
  display: inline-block;
  background: var(--h-purple);
  color: #fff !important;
  font-weight: 700;
  font-size: clamp(15px, 1.6vw, 17px);
  text-decoration: none;
  padding: 16px 28px;
  border-radius: var(--h-radius);
  border: 0;
  transition: background .2s, transform .1s;
  box-shadow: 0 2px 0 var(--h-purple-dk);
}
.h-btn:hover  { background: var(--h-purple-dk); }
.h-btn:active { transform: translateY(2px); box-shadow: none; }
.h-btn--ghost {
  background: transparent;
  color: var(--h-purple) !important;
  box-shadow: inset 0 0 0 2px var(--h-purple);
}
.h-btn--ghost:hover { background: var(--h-purple-soft); }
.h-hero__signals {
  display: flex; flex-wrap: wrap; gap: 16px 22px;
  margin-top: 18px;
  font-size: 13px;
  color: var(--h-text-soft);
}
.h-hero__signals span { display: inline-flex; align-items: center; gap: 6px; }
.h-hero__image {
  position: relative;
  border-radius: var(--h-radius-lg);
  overflow: hidden;
  box-shadow: var(--h-shadow-lg);
}
.h-hero__image img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16/10;
  object-fit: cover;
}
.h-hero__badge {
  position: absolute;
  bottom: 16px; left: 16px;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(8px);
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--h-text);
  box-shadow: var(--h-shadow);
  display: flex;
  align-items: center;
  gap: 8px;
}
.h-hero__badge .num { color: var(--h-purple); font-size: 18px; }

/* ==================== Categorías ==================== */
.h-cats {
  padding: clamp(48px, 7vw, 80px) 20px;
}
.h-cats__inner { max-width: 1280px; margin: 0 auto; }
.h-section__head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto clamp(32px, 5vw, 48px);
}
.h-section__head h2 {
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 800;
  margin: 0 0 12px;
  color: var(--h-text);
  letter-spacing: -0.5px;
}
.h-section__head p {
  font-size: clamp(15px, 1.8vw, 17px);
  color: var(--h-text-soft);
  margin: 0;
  line-height: 1.55;
}
.h-cats__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
@media (min-width: 720px)  { .h-cats__grid { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
@media (min-width: 1100px) { .h-cats__grid { grid-template-columns: repeat(6, 1fr); } }
.h-cat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: #fff;
  border: 1px solid var(--h-border);
  border-radius: var(--h-radius-lg);
  padding: 28px 16px;
  text-decoration: none;
  color: var(--h-text);
  transition: transform .2s, box-shadow .2s, border-color .2s;
  aspect-ratio: 1;
}
.h-cat:hover {
  transform: translateY(-4px);
  box-shadow: var(--h-shadow);
  border-color: var(--h-purple);
}
.h-cat__icon {
  font-size: 38px;
  margin-bottom: 10px;
  line-height: 1;
}
.h-cat__name {
  font-size: clamp(13px, 1.6vw, 15px);
  font-weight: 700;
  line-height: 1.25;
}

/* ==================== Producto destaque ==================== */
.h-featured {
  background: var(--h-purple-soft);
  padding: clamp(48px, 7vw, 80px) 20px;
}
.h-featured__inner {
  max-width: 1100px;
  margin: 0 auto;
  background: #fff;
  border-radius: var(--h-radius-lg);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr;
  box-shadow: var(--h-shadow-lg);
}
@media (min-width: 760px) {
  .h-featured__inner { grid-template-columns: 1fr 1.1fr; }
}
.h-featured__media {
  background: linear-gradient(135deg, #f4eeff 0%, #ffffff 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  min-height: 280px;
}
.h-featured__media img { max-width: 80%; height: auto; border-radius: 8px; }
.h-featured__body {
  padding: clamp(28px, 4vw, 44px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.h-featured__tag {
  display: inline-block;
  background: #ffe066;
  color: var(--h-purple-deep);
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 1.5px;
  padding: 6px 10px;
  border-radius: 6px;
  margin-bottom: 14px;
  align-self: flex-start;
}
.h-featured__body h3 {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 12px;
  color: var(--h-text);
}
.h-featured__body p {
  font-size: 15px;
  color: var(--h-text-soft);
  line-height: 1.6;
  margin: 0 0 22px;
}
.h-featured__price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0 0 22px;
}
.h-featured__price .old  { text-decoration: line-through; color: #999; font-size: 15px; }
.h-featured__price .now  { font-size: 28px; font-weight: 800; color: var(--h-purple); }
.h-featured__price .save { background: var(--h-purple); color: #fff; font-size: 12px; font-weight: 800; padding: 4px 8px; border-radius: 4px; margin-left: 4px; }

/* ==================== Brand story ==================== */
.h-story {
  padding: clamp(48px, 7vw, 80px) 20px;
}
.h-story__inner {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(28px, 5vw, 56px);
  align-items: center;
}
@media (min-width: 880px) {
  .h-story__inner { grid-template-columns: 1fr 1fr; }
}
.h-story__image img {
  width: 100%;
  height: auto;
  border-radius: var(--h-radius-lg);
  display: block;
  box-shadow: var(--h-shadow);
}
.h-story__body h2 {
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.5px;
  margin: 0 0 16px;
  color: var(--h-text);
}
.h-story__body p {
  font-size: clamp(15px, 1.8vw, 17px);
  color: var(--h-text-soft);
  line-height: 1.65;
  margin: 0 0 16px;
}
.h-story__pillars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 22px;
}
.h-story__pillar {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 14px;
  color: var(--h-text);
  line-height: 1.4;
}
.h-story__pillar::before {
  content: '✓';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px; height: 22px;
  background: var(--h-purple);
  color: #fff;
  border-radius: 50%;
  font-weight: 800;
  font-size: 13px;
  flex: 0 0 22px;
}

/* ==================== Por qué Vitae (4 cards) ==================== */
.h-why {
  background: var(--h-bg-soft);
  padding: clamp(48px, 7vw, 80px) 20px;
}
.h-why__inner { max-width: 1180px; margin: 0 auto; }
.h-why__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 600px)  { .h-why__grid { grid-template-columns: 1fr 1fr; gap: 20px; } }
@media (min-width: 980px)  { .h-why__grid { grid-template-columns: repeat(4, 1fr); } }
.h-why__card {
  background: #fff;
  border-radius: var(--h-radius-lg);
  padding: 28px 22px;
  text-align: center;
  border: 1px solid var(--h-border);
  transition: transform .2s, box-shadow .2s;
}
.h-why__card:hover { transform: translateY(-3px); box-shadow: var(--h-shadow); }
.h-why__icon {
  width: 56px; height: 56px;
  background: var(--h-purple-soft);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin: 0 auto 14px;
}
.h-why__card h4 {
  font-size: 17px;
  font-weight: 800;
  margin: 0 0 8px;
  color: var(--h-text);
}
.h-why__card p {
  font-size: 14px;
  color: var(--h-text-soft);
  line-height: 1.55;
  margin: 0;
}

/* ==================== Testimonials ==================== */
.h-testi {
  padding: clamp(48px, 7vw, 80px) 20px;
}
.h-testi__inner { max-width: 1180px; margin: 0 auto; }
.h-testi__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
@media (min-width: 720px) { .h-testi__grid { grid-template-columns: repeat(3, 1fr); } }
.h-testi__card {
  background: #fff;
  border: 1px solid var(--h-border);
  border-radius: var(--h-radius-lg);
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
}
.h-testi__stars { color: #f5b800; font-size: 16px; letter-spacing: 2px; margin: 0 0 12px; }
.h-testi__text {
  font-size: 15px;
  line-height: 1.6;
  color: var(--h-text);
  margin: 0 0 18px;
  flex: 1;
}
.h-testi__author {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px;
  color: var(--h-text-soft);
  border-top: 1px solid var(--h-border);
  padding-top: 14px;
}
.h-testi__avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--h-purple);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}
.h-testi__author strong { color: var(--h-text); display: block; font-weight: 700; }

/* ==================== Final CTA ==================== */
.h-final {
  background: linear-gradient(135deg, var(--h-purple) 0%, var(--h-purple-dk) 100%);
  color: #fff;
  padding: clamp(48px, 7vw, 80px) 20px;
  text-align: center;
}
.h-final__inner { max-width: 760px; margin: 0 auto; }
.h-final h2 {
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 800;
  margin: 0 0 14px;
  color: #fff;
  letter-spacing: -0.3px;
}
.h-final p {
  font-size: clamp(15px, 1.8vw, 18px);
  margin: 0 0 28px;
  color: rgba(255,255,255,.92);
  line-height: 1.55;
}
.h-final__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.h-final .h-btn {
  background: #fff;
  color: var(--h-purple) !important;
  box-shadow: 0 2px 0 rgba(0,0,0,.15);
}
.h-final .h-btn:hover { background: #f3edff; }
.h-final .h-btn--ghost {
  background: transparent;
  color: #fff !important;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.6);
}
.h-final .h-btn--ghost:hover { background: rgba(255,255,255,.1); }
.h-final small {
  display: block;
  margin-top: 18px;
  opacity: .85;
  font-size: 13px;
}
