﻿/* ============================================================
   MIG CONVERSACIÓN ESTRATÉGICA — main.css
   Base: variables, reset, tipografía, utilidades globales
   ============================================================ */

/* ---------- Variables light (default) ---------- */
:root {
  --color-primary:       #B21917;
  --color-primary-dark:  #8B1412;
  --color-primary-light: #D42320;

  --bg-primary:   #FFFFFF;
  --bg-secondary: #F5F5F5;
  --bg-card:      #FFFFFF;
  --bg-muted:     #F0F0F0;

  --text-primary:   #010101;
  --text-secondary: #4A4A4A;
  --text-muted:     #6F6E6E;

  --border-color:  #E5E5E5;
  --navbar-bg:     rgba(255, 255, 255, 0.95);
  --navbar-border: rgba(0, 0, 0, 0.08);

  --shadow-sm:  0 1px 3px rgba(0,0,0,0.08);
  --shadow-md:  0 4px 16px rgba(0,0,0,0.10);
  --shadow-lg:  0 8px 32px rgba(0,0,0,0.12);
  --shadow-red: 0 8px 24px rgba(178, 25, 23, 0.25);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --transition: 0.25s ease;
  --transition-slow: 0.4s ease;

  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --max-width: 1280px;
  --section-y: clamp(4rem, 8vw, 7rem);
  --container-x: clamp(1.25rem, 5vw, 3rem);
}

/* ---------- Variables dark mode ---------- */
.dark {
  --bg-primary:   #0E0E0E;
  --bg-secondary: #141414;
  --bg-card:      #181818;
  --bg-muted:     #202020;

  --text-primary:   #F5F0EB;
  --text-secondary: #C8C0B8;
  --text-muted:     #8A8178;

  --border-color:  rgba(255, 255, 255, 0.08);
  --navbar-bg:     rgba(14, 14, 14, 0.95);
  --navbar-border: rgba(255, 255, 255, 0.06);

  --shadow-sm:  0 1px 3px rgba(0,0,0,0.4);
  --shadow-md:  0 4px 16px rgba(0,0,0,0.5);
  --shadow-lg:  0 8px 32px rgba(0,0,0,0.6);
}

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

html {
  /* scroll-behavior: smooth eliminado — Lenis gestiona el smooth scroll */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-primary);
  background: var(--bg-primary);
  transition: background var(--transition-slow), color var(--transition-slow);
  overflow-x: hidden;
}

img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font: inherit; border: none; background: none; }
ul, ol { list-style: none; }

/* Prevent FOUC with Alpine.js */
[x-cloak] { display: none !important; }

/* ---------- Tipografía ---------- */
.text-hero    { font-size: clamp(2.4rem, 5.5vw, 4.2rem); font-weight: 800; line-height: 1.1; letter-spacing: -0.03em; }
.text-section { font-size: clamp(1.9rem, 3.5vw, 2.8rem); font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; }
.text-card    { font-size: clamp(1.15rem, 1.8vw, 1.35rem); font-weight: 600; line-height: 1.3; }
.text-body    { font-size: clamp(0.95rem, 1.2vw, 1.05rem); line-height: 1.7; color: var(--text-secondary); }
.text-small   { font-size: 0.85rem; color: var(--text-muted); }
.text-label   { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-primary); }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--container-x);
}

.section {
  padding-block: var(--section-y);
}

.section-white  { background: var(--bg-primary); }
.section-gray   { background: var(--bg-secondary); }
.section-dark   { background: #010101; color: #F5F0EB; }
.section-red    { background: var(--color-primary); color: #ffffff; }

/* ---------- Grid helpers ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.5rem; }

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ---------- Accessibility ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
  border-radius: 4px;
}

