/* ═══════════════════════════════════════════════════════════════
   ATTENCIONA — DESIGN SYSTEM v2.0
   Importar en el <head> de TODAS las páginas:
   <link rel="stylesheet" href="/attenciona-system.css">
   ═══════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

/* ── TOKENS ───────────────────────────────────────────────── */
:root {
  /* Colores corporativos */
  --att-50:  #e6fdf8;
  --att-100: #b3f5e8;
  --att-200: #66ebd2;
  --att-300: #1adfc0;
  --att-400: #0EA5E9;   /* PRIMARIO CORPORATIVO */
  --att-500: #09B89D;
  --att-600: #07A08A;
  --att-700: #058572;
  --att-800: #036959;
  --att-900: #024d41;

  /* Semánticos */
  --color-primary:     #0EA5E9;
  --color-primary-dark: #0284c7;
  --color-primary-light: var(--att-200);
  --color-primary-glow: rgba(14, 165, 233, 0.18);
  --color-primary-glow-strong: rgba(14, 165, 233, 0.35);

  /* Superficie */
  --surface-bg:        #f8fafc;
  --surface-1:         #ffffff;
  --surface-2:         #f1f5f9;
  --surface-3:         #e2e8f0;
  --surface-4:         #cbd5e1;
  --surface-border:    #e2e8f0;
  --surface-border-hover: #0EA5E9;

  /* Texto */
  --text-primary:   #0f172a;
  --text-secondary: #374151;
  --text-muted:     #64748b;
  --text-inverse:   #ffffff;

  /* Sistema */
  --color-success: #10B981;
  --color-warning: #f59e0b;
  --color-error:   #ef4444;

  /* Tipografía */
  --font-display: 'Plus Jakarta Sans', sans-serif;
  --font-body:    'Plus Jakarta Sans', sans-serif;

  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.25rem;
  --text-2xl:  1.5rem;
  --text-3xl:  1.875rem;
  --text-4xl:  2.25rem;
  --text-5xl:  3rem;
  --text-6xl:  3.75rem;
  --text-7xl:  4.5rem;

  /* Espaciado */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Radios */
  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:   12px;
  --radius-xl:   16px;
  --radius-2xl:  24px;
  --radius-full: 9999px;

  /* Sombras */
  --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);
  --shadow-glow: 0 0 24px rgba(13, 207, 177, 0.25);
  --shadow-glow-strong: 0 0 48px rgba(13, 207, 177, 0.4);

  /* Transiciones */
  --transition-fast:   150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base:   250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow:   400ms cubic-bezier(0.4, 0, 0.2, 1);

  /* Layout */
  --container-max: 1200px;
  --container-sm:  640px;
  --container-md:  768px;
  --container-lg:  1024px;
}

/* ── RESET ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--surface-bg);
  min-height: 100vh;
}

img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
ul, ol { list-style: none; }

/* ── TIPOGRAFÍA ───────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

h1 { font-size: clamp(var(--text-4xl), 6vw, var(--text-7xl)); font-weight: 800; }
h2 { font-size: clamp(var(--text-3xl), 4vw, var(--text-5xl)); }
h3 { font-size: clamp(var(--text-2xl), 3vw, var(--text-4xl)); }
h4 { font-size: var(--text-2xl); }
h5 { font-size: var(--text-xl); }
h6 { font-size: var(--text-lg); }

.display {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.lead {
  font-size: var(--text-xl);
  font-weight: 300;
  line-height: 1.7;
  color: var(--text-secondary);
}

.label {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-primary);
}

.text-gradient {
  background: linear-gradient(135deg, var(--att-300) 0%, var(--att-400) 50%, var(--att-200) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── LAYOUT ───────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-6);
}
@media (min-width: 768px) { .container { padding-inline: var(--space-8); } }
@media (min-width: 1024px) { .container { padding-inline: var(--space-12); } }

.section {
  padding-block: clamp(var(--space-16), 8vw, var(--space-32));
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin-inline: auto;
  margin-bottom: var(--space-16);
}

.section-header .label { margin-bottom: var(--space-4); }
.section-header h2 { margin-bottom: var(--space-4); }
.section-header p { color: var(--text-secondary); font-size: var(--text-lg); }

/* Grids */
.grid { display: grid; gap: var(--space-6); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

/* Flex utils */
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-2 { gap: var(--space-2); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }
.gap-8 { gap: var(--space-8); }

/* ── BOTONES ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  border: 1px solid transparent;
  border-radius: var(--radius-lg);
  padding: 0.75rem 1.5rem;
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: white;
  opacity: 0;
  transition: opacity var(--transition-fast);
}
.btn:hover::after { opacity: 0.05; }
.btn:active::after { opacity: 0.12; }

/* Primary */
.btn-primary {
  background: var(--color-primary);
  color: var(--text-inverse);
  border-color: var(--color-primary);
  box-shadow: 0 0 20px rgba(13, 207, 177, 0.3);
  font-weight: 600;
}
.btn-primary:hover {
  background: var(--att-500);
  box-shadow: 0 0 32px rgba(13, 207, 177, 0.5);
  transform: translateY(-1px);
}

/* Secondary */
.btn-secondary {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--surface-border-hover);
}
.btn-secondary:hover {
  border-color: var(--color-primary);
  background: var(--color-primary-glow);
}

/* Ghost */
.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border-color: transparent;
}
.btn-ghost:hover { color: var(--text-primary); background: var(--surface-2); }

/* Tamaños */
.btn-sm { font-size: var(--text-xs); padding: 0.5rem 1rem; border-radius: var(--radius-md); }
.btn-lg { font-size: var(--text-base); padding: 1rem 2rem; border-radius: var(--radius-xl); }
.btn-xl { font-size: var(--text-lg); padding: 1.125rem 2.5rem; border-radius: var(--radius-xl); }

/* ── TARJETAS ─────────────────────────────────────────────── */
.card {
  background: var(--surface-2);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  position: relative;
  overflow: hidden;
  transition: all var(--transition-base);
}

.card:hover {
  border-color: var(--surface-border-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
  opacity: 0;
  transition: opacity var(--transition-base);
}
.card:hover::before { opacity: 1; }

/* Card feature */
.card-feature {
  background: var(--surface-1);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
}

/* Card glow (destacado) */
.card-glow {
  background: linear-gradient(135deg, var(--surface-2), var(--surface-3));
  border: 1px solid var(--surface-border-hover);
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-glow);
}

/* ── ICONOS 3D ────────────────────────────────────────────── */
/* Contenedor de icono 3D */
.icon3d {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.icon3d-sm  { width: 32px;  height: 32px; }
.icon3d-md  { width: 48px;  height: 48px; }
.icon3d-lg  { width: 64px;  height: 64px; }
.icon3d-xl  { width: 80px;  height: 80px; }
.icon3d-2xl { width: 96px;  height: 96px; }

/* Wrapper flotante para iconos destacados */
.icon3d-float {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  background: var(--color-primary-glow);
  border: 1px solid var(--surface-border-hover);
  border-radius: var(--radius-xl);
  margin-bottom: var(--space-5);
  transition: all var(--transition-base);
}
.card:hover .icon3d-float,
.card-feature:hover .icon3d-float {
  background: var(--color-primary-glow-strong);
  box-shadow: var(--shadow-glow);
  transform: scale(1.08);
}

/* ── NAV ──────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding-block: var(--space-4);
  background: rgba(6, 11, 15, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--surface-border);
  transition: all var(--transition-base);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-8);
}

.nav-logo {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.03em;
}
.nav-logo span { color: var(--color-primary); }

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  list-style: none;
}

.nav-links a {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}
.nav-links a:hover { color: var(--text-primary); }

.nav-cta { display: flex; align-items: center; gap: var(--space-3); }

/* ── HERO ─────────────────────────────────────────────────── */
.hero {
  padding-top: calc(80px + var(--space-20));
  padding-bottom: var(--space-24);
  position: relative;
  overflow: hidden;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary);
  background: var(--color-primary-glow);
  border: 1px solid var(--surface-border-hover);
  border-radius: var(--radius-full);
  padding: var(--space-2) var(--space-4);
  margin-bottom: var(--space-8);
}

.hero-badge-dot {
  width: 6px; height: 6px;
  background: var(--color-primary);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

/* ── FORMS ────────────────────────────────────────────────── */
.input {
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  padding: 0.75rem 1rem;
  font-size: var(--text-sm);
  color: var(--text-primary);
  transition: all var(--transition-fast);
  outline: none;
}

.input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-glow);
}

.input::placeholder { color: var(--text-muted); }

.input-group { display: flex; flex-direction: column; gap: var(--space-2); }
.input-label { font-size: var(--text-sm); font-weight: 500; color: var(--text-secondary); }

/* ── BADGE / CHIPS ────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--text-xs);
  font-weight: 600;
  padding: 0.25rem 0.625rem;
  border-radius: var(--radius-full);
}

.badge-primary {
  background: var(--color-primary-glow);
  color: var(--color-primary);
  border: 1px solid rgba(13, 207, 177, 0.2);
}

.badge-surface {
  background: var(--surface-3);
  color: var(--text-secondary);
  border: 1px solid var(--surface-border);
}

/* ── PRICING ──────────────────────────────────────────────── */
.pricing-card {
  background: var(--surface-2);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
  transition: all var(--transition-base);
}

.pricing-card.featured {
  background: var(--surface-3);
  border-color: var(--color-primary);
  box-shadow: var(--shadow-glow);
  position: relative;
}

.pricing-amount {
  font-family: var(--font-display);
  font-size: var(--text-5xl);
  font-weight: 800;
  line-height: 1;
  color: var(--text-primary);
}
.pricing-amount sup { font-size: var(--text-xl); vertical-align: super; }
.pricing-amount span { font-size: var(--text-lg); font-weight: 400; color: var(--text-secondary); }

/* ── DIVIDER ──────────────────────────────────────────────── */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--surface-border-hover), transparent);
  margin-block: var(--space-8);
}

/* ── UTILIDADES ───────────────────────────────────────────── */
.text-primary  { color: var(--text-primary) !important; }
.text-secondary{ color: var(--text-secondary) !important; }
.text-muted    { color: var(--text-muted) !important; }
.text-accent   { color: var(--color-primary) !important; }

.text-center { text-align: center; }
.text-left   { text-align: left; }
.text-right  { text-align: right; }

.mb-4  { margin-bottom: var(--space-4); }
.mb-6  { margin-bottom: var(--space-6); }
.mb-8  { margin-bottom: var(--space-8); }
.mb-12 { margin-bottom: var(--space-12); }
.mt-4  { margin-top: var(--space-4); }
.mt-8  { margin-top: var(--space-8); }
.mx-auto { margin-inline: auto; }

.max-w-sm  { max-width: 360px; }
.max-w-md  { max-width: 480px; }
.max-w-lg  { max-width: 640px; }
.max-w-xl  { max-width: 768px; }
.max-w-2xl { max-width: 1024px; }

.rounded-full { border-radius: var(--radius-full); }
.overflow-hidden { overflow: hidden; }
.relative { position: relative; }
.w-full { width: 100%; }

/* Glow de fondo (decorativo) */
.bg-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(13, 207, 177, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

/* ── ANIMACIONES ──────────────────────────────────────────── */
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.6; transform: scale(0.85); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes glow-pulse {
  0%, 100% { box-shadow: 0 0 20px rgba(13, 207, 177, 0.2); }
  50%       { box-shadow: 0 0 40px rgba(13, 207, 177, 0.5); }
}

.animate-float   { animation: float 4s ease-in-out infinite; }
.animate-pulse-glow { animation: glow-pulse 3s ease-in-out infinite; }
.animate-fade-up { animation: fadeUp 0.6s ease forwards; }

/* Delays */
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .hero { padding-top: calc(72px + var(--space-12)); }
}

@media (max-width: 480px) {
  .btn-xl { font-size: var(--text-base); padding: 0.875rem 1.75rem; }
  .card { padding: var(--space-6); }
}
