/* =============================================
   QLC — Que Le Compramos
   Warm, family-friendly · Mobile first
   Fonts: Fraunces (display) + DM Sans (body)
   ============================================= */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --cream:        #FAF7F2;
  --cream-dark:   #F0EBE1;
  --ink:          #1C1A17;
  --ink-mid:      #4A4640;
  --ink-light:    #8A847C;
  --green:        #2D6A4F;
  --green-light:  #52B788;
  --green-pale:   #D8F3DC;
  --warm-red:     #C1440E;
  --warm-red-pale:#FDEBD4;
  --white:        #FFFFFF;
  --wa-green:     #25D366;
  --wa-green-dark:#128C7E;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;

  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  20px;
  --radius-xl:  32px;

  --max-width: 720px;
  --gutter:    1.25rem;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* ---- CONTAINER ---- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---- TYPOGRAPHY ---- */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.15;
  color: var(--ink);
}

h1 { font-size: clamp(2.6rem, 8vw, 4rem); }
h2 { font-size: clamp(1.6rem, 5vw, 2.4rem); }
h3 { font-size: 1.1rem; font-weight: 600; font-family: var(--font-body); }

p { color: var(--ink-mid); }

em { font-style: italic; color: var(--green); }

a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-xl);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  border: 2px solid transparent;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}

.btn:hover { transform: translateY(-2px); text-decoration: none; }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--wa-green);
  color: var(--white);
  border-color: var(--wa-green);
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.35);
}
.btn-primary:hover {
  background: var(--wa-green-dark);
  border-color: var(--wa-green-dark);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--green);
  border-color: var(--green);
}
.btn-outline:hover {
  background: var(--green-pale);
  color: var(--green);
}

.btn-large {
  font-size: 1.1rem;
  padding: 1rem 2.25rem;
}

/* ---- SECTION LABELS ---- */
.section-label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 0.75rem;
}

.section-body {
  font-size: 1.05rem;
  line-height: 1.75;
  max-width: 58ch;
  margin-top: 1rem;
}

/* =============================================
   HEADER
   ============================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 247, 242, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--cream-dark);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.logo {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  text-decoration: none;
}

.logo-qlc {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.35rem;
  color: var(--green);
  letter-spacing: -0.02em;
}

.logo-full {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--ink-light);
  display: none;
}

@media (min-width: 480px) {
  .logo-full { display: inline; }
}

.header-nav {
  display: flex;
  gap: 1.25rem;
  align-items: center;
}

.header-nav a {
  font-size: 0.875rem;
  color: var(--ink-mid);
  font-weight: 400;
}

.header-nav a:hover { color: var(--green); text-decoration: none; }

/* =============================================
   HERO
   ============================================= */
.hero {
  position: relative;
  overflow: hidden;
  padding: 4rem 0 5rem;
  background: var(--cream);
}

.hero-inner {
  position: relative;
  z-index: 2;
}

.hero-eyebrow {
  font-size: 0.9rem;
  color: var(--ink-mid);
  margin-bottom: 1.25rem;
  font-weight: 400;
}

.hero-title {
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--ink-mid);
  line-height: 1.7;
  max-width: 44ch;
  margin-bottom: 2.25rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.hero-disclaimer {
  font-size: 0.8rem;
  color: var(--ink-light);
}

/* Floating emoji decorations */
.hero-decoration {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.floating-bubble {
  position: absolute;
  font-size: 2rem;
  opacity: 0.18;
  animation: float 6s ease-in-out infinite;
}

.b1 { top: 15%; right: 8%;  animation-delay: 0s;   font-size: 2.5rem; }
.b2 { top: 55%; right: 15%; animation-delay: 1.5s; font-size: 1.75rem; }
.b3 { top: 30%; right: 3%;  animation-delay: 3s;   font-size: 1.5rem; }
.b4 { top: 70%; right: 5%;  animation-delay: 4.5s; font-size: 2rem; }

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50%       { transform: translateY(-12px) rotate(5deg); }
}

/* =============================================
   TAGLINE BAR
   ============================================= */
.tagline-bar {
  background: var(--green);
  padding: 0.85rem 0;
  overflow: hidden;
}

.tagline-bar p {
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(255,255,255,0.8);
  letter-spacing: 0.04em;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* =============================================
   WHAT IS
   ============================================= */
.what-is {
  padding: 4rem 0;
  background: var(--white);
}

.what-is h2 {
  margin-bottom: 0;
}

.benefit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 2.5rem;
}

@media (max-width: 480px) {
  .benefit-grid { grid-template-columns: 1fr; }
}

.benefit-card {
  background: var(--cream);
  border-radius: var(--radius-md);
  padding: 1.25rem;
}

.benefit-icon {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
}

.benefit-card h3 {
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
  color: var(--ink);
}

.benefit-card p {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--ink-mid);
}

/* =============================================
   HOW IT WORKS
   ============================================= */
.how-it-works {
  padding: 4rem 0;
  background: var(--cream);
}

.how-it-works h2 {
  margin-bottom: 2.5rem;
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.step {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.step-number {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.15rem;
}

.step-content h3 {
  font-size: 1rem;
  margin-bottom: 0.35rem;
  color: var(--ink);
}

.step-content p {
  font-size: 0.9rem;
  color: var(--ink-mid);
  margin-bottom: 1rem;
}

/* Chat bubbles */
.chat-bubble {
  display: inline-block;
  max-width: 88%;
  padding: 0.6rem 0.9rem;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  line-height: 1.5;
  margin-bottom: 0.4rem;
  clear: both;
}

.chat-bubble.outgoing {
  background: var(--green);
  color: var(--white);
  border-bottom-right-radius: 4px;
  float: right;
  clear: both;
}

.chat-bubble.incoming {
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--cream-dark);
  border-bottom-left-radius: 4px;
  float: left;
  clear: both;
}

.chat-bubble.incoming em {
  font-style: italic;
  color: var(--ink-mid);
}

.step-content::after { content: ''; display: table; clear: both; }

.cta-inline {
  margin-top: 2.5rem;
  text-align: center;
}

/* =============================================
   PRIVACY
   ============================================= */
.privacy {
  padding: 4rem 0;
  background: var(--white);
}

.privacy h2 { margin-bottom: 0; }

.privacy-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 2rem;
}

.privacy-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.privacy-check {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  background: var(--green-pale);
  color: var(--green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  margin-top: 0.1rem;
}

.privacy-item strong {
  display: block;
  font-size: 0.95rem;
  color: var(--ink);
  margin-bottom: 0.2rem;
}

.privacy-item p {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--ink-mid);
}

.privacy-link {
  display: inline-block;
  margin-top: 1.75rem;
  font-size: 0.875rem;
  color: var(--green);
  font-weight: 500;
}

/* =============================================
   PRICING
   ============================================= */
.pricing {
  padding: 4rem 0;
  background: var(--cream);
}

.pricing h2 { margin-bottom: 2rem; }

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 520px) {
  .pricing-grid { grid-template-columns: 1fr; }
}

.pricing-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  border: 1.5px solid var(--cream-dark);
  display: flex;
  flex-direction: column;
  position: relative;
}

.pricing-card--featured {
  border-color: var(--green);
  box-shadow: 0 4px 24px rgba(45, 106, 79, 0.12);
}

.pricing-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--green);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.25rem 0.85rem;
  border-radius: var(--radius-xl);
  white-space: nowrap;
}

.pricing-tier {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-light);
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.pricing-price {
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.pricing-price span {
  font-size: 1rem;
  color: var(--ink-light);
  font-family: var(--font-body);
}

.pricing-annual {
  font-size: 0.8rem;
  color: var(--green);
  margin-bottom: 1.25rem;
  font-weight: 500;
}

.pricing-features {
  list-style: none;
  margin-bottom: 1.75rem;
  flex: 1;
}

.pricing-features li {
  font-size: 0.875rem;
  color: var(--ink-mid);
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--cream-dark);
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.pricing-features li::before {
  content: '·';
  color: var(--green);
  font-weight: 700;
  flex-shrink: 0;
}

.pricing-card .btn { width: 100%; justify-content: center; }

/* =============================================
   FINAL CTA
   ============================================= */
.final-cta {
  padding: 5rem 0;
  background: var(--green);
  text-align: center;
}

.final-cta h2 {
  color: var(--white);
  margin-bottom: 0.75rem;
}

.final-cta p {
  color: rgba(255,255,255,0.75);
  font-size: 1rem;
  margin-bottom: 2rem;
}

.final-cta .btn-primary {
  background: var(--white);
  color: var(--green);
  border-color: var(--white);
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.final-cta .btn-primary:hover {
  background: var(--cream);
  border-color: var(--cream);
  color: var(--green);
}

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
  background: var(--ink);
  padding: 2rem 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

.footer-logo {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.footer-logo .logo-qlc {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--green-light);
}

.footer-tagline {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
}

.footer-nav {
  display: flex;
  gap: 1.5rem;
}

.footer-nav a {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.55);
}

.footer-nav a:hover { color: var(--white); }

.footer-copy {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.3);
}

/* =============================================
   PAGE HERO (used in inner pages)
   ============================================= */
.page-hero {
  padding: 3rem 0 2.5rem;
  background: var(--white);
  border-bottom: 1px solid var(--cream-dark);
}

.page-hero h1 {
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  margin-bottom: 0.5rem;
}

.page-hero p {
  color: var(--ink-mid);
  font-size: 1rem;
}

/* =============================================
   INNER PAGE CONTENT
   ============================================= */
.page-content {
  padding: 3rem 0 5rem;
  background: var(--cream);
}

.prose {
  max-width: 62ch;
}

.prose h2 {
  font-size: 1.3rem;
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--ink);
  margin: 2.5rem 0 0.75rem;
  padding-top: 2rem;
  border-top: 1px solid var(--cream-dark);
}

.prose h2:first-child { margin-top: 0; padding-top: 0; border-top: none; }

.prose p {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--ink-mid);
  margin-bottom: 1rem;
}

.prose ul {
  margin: 0.75rem 0 1rem 1.25rem;
}

.prose ul li {
  font-size: 0.95rem;
  color: var(--ink-mid);
  line-height: 1.7;
  margin-bottom: 0.4rem;
}

.prose a { color: var(--green); font-weight: 500; }
.prose strong { color: var(--ink); font-weight: 600; }

/* =============================================
   CONTACT FORM
   ============================================= */
.contact-form {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  border: 1.5px solid var(--cream-dark);
  max-width: 520px;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--cream-dark);
  border-radius: var(--radius-sm);
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color 0.15s ease;
  appearance: none;
  -webkit-appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--green);
  background: var(--white);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-note {
  font-size: 0.8rem;
  color: var(--ink-light);
  margin-top: 0.35rem;
}

.form-success {
  display: none;
  background: var(--green-pale);
  border: 1.5px solid var(--green-light);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  text-align: center;
  color: var(--green);
  font-weight: 500;
  margin-top: 1rem;
}

/* =============================================
   RESPONSIVE ADJUSTMENTS
   ============================================= */
@media (max-width: 380px) {
  :root { --gutter: 1rem; }
  .header-nav { gap: 0.75rem; }
  .header-nav a { font-size: 0.8rem; }
}

@media (min-width: 640px) {
  .hero { padding: 5rem 0 6rem; }
  .what-is, .how-it-works, .privacy, .pricing { padding: 5rem 0; }
  .footer-inner { flex-direction: row; justify-content: space-between; text-align: left; }
}
