/*
Theme Name: CetoVital
Theme URI: https://www.cetovital.com/
Author: CetoVital — Sofía Rodríguez
Author URI: https://www.cetovital.com/
Description: Tema personalizado para CetoVital. Landing page de plan keto personalizado, compatible con el editor de bloques Gutenberg.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cetovital
Tags: landing-page, full-site-editing, custom-colors, custom-fonts, e-commerce
*/

/* =============================================
   VARIABLES GLOBALES
   ============================================= */
:root {
  --green-deep:   #0D3B2E;
  --green-mid:    #1A5C43;
  --green-bright: #2D8A5E;
  --green-light:  #3DAA74;
  --cream:        #F5F0E8;
  --cream-warm:   #EDE7D9;
  --gold:         #C9A84C;
  --gold-light:   #E8C97B;
  --white:        #FAFAF8;
  --text-dark:    #1A1A14;
  --text-muted:   #5C5C4A;
  --text-light:   #8C8C72;
  --danger:       #C0392B;
  --radius:       16px;
  --radius-sm:    8px;
}

/* =============================================
   RESET & BASE
   ============================================= */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--white);
  color: var(--text-dark);
  line-height: 1.7;
  overflow-x: hidden;
}

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

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

/* =============================================
   TOPBAR
   ============================================= */
.topbar {
  background: var(--green-deep);
  color: var(--gold-light);
  text-align: center;
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .03em;
  position: sticky;
  top: 0;
  z-index: 100;
}
.topbar span { opacity: .7; margin: 0 8px; }
#countdown { color: #fff; font-weight: 700; }

/* =============================================
   NAVEGACIÓN
   ============================================= */
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 5vw;
  background: var(--white);
  border-bottom: 1px solid rgba(0,0,0,.06);
  position: sticky;
  top: 37px;
  z-index: 99;
}
.logo {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 900;
  color: var(--green-deep);
  text-decoration: none;
  letter-spacing: -.02em;
}
.logo em { color: var(--green-bright); font-style: normal; }
.nav-cta {
  background: var(--green-bright);
  color: #fff;
  padding: 9px 22px;
  border-radius: 50px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: all .2s;
}
.nav-cta:hover { background: var(--green-mid); transform: translateY(-1px); }

/* =============================================
   HERO
   ============================================= */
.hero {
  background: var(--green-deep);
  padding: 80px 5vw 0;
  overflow: hidden;
  position: relative;
}
.hero::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(45,138,94,.25) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 60px;
  align-items: end;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(201,168,76,.15);
  border: 1px solid rgba(201,168,76,.3);
  color: var(--gold-light);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .05em;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(36px, 5vw, 62px);
  font-weight: 900;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 20px;
}
.hero-title em {
  color: var(--gold-light);
  font-style: italic;
}
.hero-sub {
  font-size: 17px;
  color: rgba(255,255,255,.75);
  margin-bottom: 32px;
  max-width: 520px;
}
.hero-cta-group { display: flex; flex-direction: column; gap: 12px; }
.cta-main {
  display: inline-block;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  color: var(--green-deep);
  padding: 16px 36px;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  letter-spacing: -.01em;
  transition: all .2s;
  box-shadow: 0 8px 32px rgba(201,168,76,.35);
}
.cta-main:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(201,168,76,.5); }
.cta-sub {
  font-size: 13px;
  color: rgba(255,255,255,.5);
  padding: 0 4px;
}
.hero-trust {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 40px;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255,255,255,.6);
}
.trust-item strong { color: #fff; }

/* Hero image box */
.hero-image-box {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius) var(--radius) 0 0;
  padding: 32px 28px 0;
  position: relative;
  overflow: hidden;
}
.hero-card {
  background: rgba(255,255,255,.09);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin-bottom: 16px;
  color: #fff;
}
.hero-card-label { font-size: 11px; color: rgba(255,255,255,.5); margin-bottom: 6px; }
.hero-card-value { font-size: 22px; font-weight: 700; }
.hero-card-sub { font-size: 12px; color: rgba(255,255,255,.5); margin-top: 2px; }

/* Stars */
.stars { color: var(--gold); font-size: 16px; letter-spacing: 2px; }

/* =============================================
   SECCIONES GENERALES
   ============================================= */
section { padding: 80px 5vw; }

.section-inner { max-width: 1100px; margin: 0 auto; }

.section-tag {
  display: inline-block;
  background: rgba(45,138,94,.12);
  color: var(--green-bright);
  border: 1px solid rgba(45,138,94,.25);
  padding: 5px 14px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 900;
  color: var(--text-dark);
  line-height: 1.15;
  margin-bottom: 16px;
}
.section-title em { color: var(--green-bright); font-style: italic; }

.section-sub {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 600px;
  margin-bottom: 48px;
}

/* =============================================
   PAIN SECTION
   ============================================= */
.pain-bg { background: var(--cream); }
.pain-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.pain-card {
  background: var(--white);
  border: 1px solid rgba(0,0,0,.06);
  border-radius: var(--radius);
  padding: 24px;
  transition: all .3s;
}
.pain-card:hover { border-color: var(--green-bright); transform: translateY(-3px); box-shadow: 0 8px 32px rgba(0,0,0,.08); }
.pain-icon { font-size: 28px; margin-bottom: 12px; }
.pain-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 6px; color: var(--text-dark); }
.pain-card p { font-size: 14px; color: var(--text-muted); line-height: 1.5; }

/* =============================================
   INCLUDES
   ============================================= */
.includes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.include-card {
  border: 1px solid rgba(0,0,0,.07);
  border-radius: var(--radius);
  padding: 28px;
  transition: all .3s;
  position: relative;
  overflow: hidden;
}
.include-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--green-bright), var(--green-light));
  opacity: 0;
  transition: opacity .3s;
}
.include-card:hover::before { opacity: 1; }
.include-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,.1); }
.include-icon { font-size: 32px; margin-bottom: 16px; }
.include-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.include-card p { font-size: 14px; color: var(--text-muted); line-height: 1.5; }
.include-badge {
  display: inline-block;
  background: rgba(45,138,94,.1);
  color: var(--green-bright);
  padding: 3px 10px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 600;
  margin-top: 12px;
}

/* =============================================
   REVIEWS
   ============================================= */
.reviews-bg { background: var(--cream); }
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.review-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  border: 1px solid rgba(0,0,0,.06);
  transition: box-shadow .3s;
}
.review-card:hover { box-shadow: 0 8px 32px rgba(0,0,0,.1); }
.reviewer { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.reviewer-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green-bright), var(--green-light));
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; color: #fff; font-weight: 700;
  font-family: 'Playfair Display', serif;
  flex-shrink: 0;
}
.reviewer-info h4 { font-size: 14px; font-weight: 700; }
.reviewer-info span { font-size: 12px; color: var(--text-light); }
.review-text { font-size: 14px; color: var(--text-muted); line-height: 1.65; font-style: italic; }
.review-result {
  display: inline-block;
  background: rgba(45,138,94,.1);
  color: var(--green-bright);
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 700;
  margin-top: 16px;
}

/* =============================================
   FAQ
   ============================================= */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item {
  border: 1px solid rgba(0,0,0,.08);
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  overflow: hidden;
  background: var(--white);
  transition: border-color .2s;
}
.faq-item.open { border-color: var(--green-bright); }
.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 18px 20px;
  text-align: left;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-dark);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-family: inherit;
}
.faq-icon {
  font-size: 20px;
  color: var(--green-bright);
  flex-shrink: 0;
  transition: transform .2s;
  font-weight: 300;
}
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease, padding .35s;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  padding: 0 20px;
}
.faq-item.open .faq-answer { max-height: 400px; padding: 0 20px 18px; }

/* =============================================
   PRICING
   ============================================= */
.pricing-bg { background: var(--green-deep); }
.pricing-bg .section-title { color: #fff; }
.pricing-bg .section-sub { color: rgba(255,255,255,.65); }
.pricing-bg .section-tag {
  background: rgba(255,255,255,.1);
  color: var(--gold-light);
  border-color: rgba(255,255,255,.15);
}
.pricing-box { text-align: center; max-width: 620px; margin: 0 auto; }
.pricing-card {
  background: var(--white);
  border-radius: 24px;
  padding: 40px;
  position: relative;
  margin-top: 32px;
}
.savings-badge {
  display: inline-block;
  background: var(--danger);
  color: #fff;
  padding: 6px 18px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 16px;
}
.old-price {
  font-size: 15px;
  color: var(--text-light);
  text-decoration: line-through;
  margin-bottom: 8px;
}
.main-price {
  font-family: 'Playfair Display', serif;
  font-size: 64px;
  font-weight: 900;
  color: var(--green-deep);
  line-height: 1;
  margin-bottom: 4px;
}
.price-note {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 24px;
}
.pricing-features {
  list-style: none;
  text-align: left;
  margin-bottom: 28px;
}
.pricing-features li {
  padding: 10px 0;
  border-bottom: 1px solid rgba(0,0,0,.06);
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.pricing-features li::before {
  content: '✓';
  color: var(--green-bright);
  font-weight: 700;
  font-size: 16px;
  flex-shrink: 0;
}
.guarantee {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: rgba(45,138,94,.07);
  border: 1px solid rgba(45,138,94,.2);
  border-radius: var(--radius-sm);
  padding: 18px;
  margin-top: 20px;
  text-align: left;
}
.guarantee-icon { font-size: 28px; flex-shrink: 0; }
.guarantee p { font-size: 13px; color: var(--text-muted); line-height: 1.5; }

/* =============================================
   LEAD FORM
   ============================================= */
.lead-section { background: var(--cream); }
.lead-inner { text-align: center; max-width: 700px; margin: 0 auto; }
.lead-form {
  background: var(--white);
  border-radius: 20px;
  padding: 40px;
  margin-top: 32px;
  text-align: left;
  border: 1px solid rgba(0,0,0,.07);
  box-shadow: 0 8px 40px rgba(0,0,0,.06);
}
.lead-form h3 {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  margin-bottom: 8px;
  color: var(--text-dark);
}
.lead-form > p { font-size: 14px; color: var(--text-muted); margin-bottom: 24px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.form-group input,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid rgba(0,0,0,.12);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-family: inherit;
  background: var(--white);
  color: var(--text-dark);
  transition: border-color .2s;
  appearance: none;
}
.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--green-bright);
  box-shadow: 0 0 0 3px rgba(45,138,94,.12);
}
.submit-btn {
  width: 100%;
  background: linear-gradient(135deg, var(--green-bright), var(--green-light));
  color: #fff;
  border: none;
  padding: 16px;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: all .2s;
  margin-top: 8px;
}
.submit-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(45,138,94,.35); }
.privacy-note { font-size: 12px; color: var(--text-light); margin-top: 12px; text-align: center; }

/* =============================================
   FOOTER
   ============================================= */
footer {
  background: var(--green-deep);
  color: rgba(255,255,255,.6);
  padding: 48px 5vw;
  text-align: center;
  font-size: 13px;
  line-height: 1.8;
}
footer a { color: rgba(255,255,255,.5); text-decoration: underline; }
footer a:hover { color: #fff; }
.logo-footer {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  font-weight: 900;
  color: #fff;
  margin-bottom: 16px;
}

/* =============================================
   STICKY MOBILE CTA
   ============================================= */
.sticky-cta {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--green-deep);
  padding: 12px 20px;
  align-items: center;
  justify-content: space-between;
  z-index: 200;
  border-top: 1px solid rgba(255,255,255,.1);
}
.sticky-cta p { font-size: 13px; color: rgba(255,255,255,.7); }
.sticky-cta a {
  background: var(--gold);
  color: var(--green-deep);
  padding: 10px 20px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 700;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 768px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-image-box { display: none; }
  .form-row { grid-template-columns: 1fr; }
  .sticky-cta { display: flex; }
  nav { top: 36px; }
}

/* =============================================
   GUTENBERG / BLOQUE EDITOR
   ============================================= */
.wp-block-group { max-width: 1100px; margin-left: auto; margin-right: auto; }
.wp-block-image img { border-radius: var(--radius); }
.wp-block-button__link { border-radius: 50px !important; }

/* Alineaciones de WordPress */
.alignfull { width: 100vw; margin-left: calc(-50vw + 50%); }
.alignwide { max-width: 1200px; margin-left: auto; margin-right: auto; }
