/* ===========================
   TECOLSOFT TIS SAS — main.css
   Variables, reset, tipografía, utilidades globales
   =========================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Space+Grotesk:wght@400;500;600;700;800&display=swap');

/* --- VARIABLES --- */
:root {
  --bg:        #070b14;
  --bg-2:      #0c1220;
  --accent:    #00d4ff;
  --accent-2:  #7c3aed;
  --accent-3:  #10b981;
  --text:      #f8fafc;
  --text-2:    #94a3b8;
  --text-3:    #64748b;
  --border:    rgba(255,255,255,0.07);
  --radius:    12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --nav-h:     72px;
  --transition: 0.22s ease;
  --font-body:    'Inter', sans-serif;
  --font-display: 'Space Grotesk', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

/* --- TIPOGRAFÍA --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
}

h1 { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.6rem); font-weight: 700; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); font-weight: 600; }
h4 { font-size: 1.1rem; font-weight: 600; }

p { color: var(--text-2); }

/* --- CONTENEDOR --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* --- SECCIONES --- */
.section {
  padding: 5rem 0;
  background: var(--bg);
}

.section--alt {
  padding: 5rem 0;
  background: var(--bg-2);
}

.section__header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3.5rem;
}

.section__header p {
  margin-top: 1rem;
  font-size: 1.05rem;
}

/* --- GRADIENTES DE TEXTO --- */
.text-gradient {
  background: linear-gradient(135deg, #00d4ff, #7c3aed);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-purple {
  background: linear-gradient(135deg, #7c3aed, #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-green {
  background: linear-gradient(135deg, #10b981, #00d4ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- BADGES --- */
.badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 4px 14px;
  border-radius: 20px;
}

.badge--outline {
  background: rgba(0,212,255,0.06);
  color: var(--accent);
  border: 1px solid rgba(0,212,255,0.2);
}

.badge--cyan {
  background: rgba(0,212,255,0.1);
  color: var(--accent);
  border: 1px solid rgba(0,212,255,0.2);
}

.badge--purple {
  background: rgba(124,58,237,0.1);
  color: #a78bfa;
  border: 1px solid rgba(124,58,237,0.2);
}

.badge--green {
  background: rgba(16,185,129,0.1);
  color: #10b981;
  border: 1px solid rgba(16,185,129,0.2);
}

.badge--glow {
  background: rgba(0,212,255,0.1);
  color: var(--accent);
  border: 1px solid rgba(0,212,255,0.25);
  box-shadow: 0 0 12px rgba(0,212,255,0.15);
}

/* --- GRID LAYOUT HELPERS --- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

/* --- SPLIT LAYOUT --- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.split--reverse .split__text { order: 2; }
.split--reverse .split__visual { order: 1; }

/* --- FEATURE ITEMS --- */
.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}

.feature-item:last-child { border-bottom: none; }

.feature-item__icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-item__icon--cyan  { background: rgba(0,212,255,0.1); color: #00d4ff; }
.feature-item__icon--purple{ background: rgba(124,58,237,0.1); color: #a78bfa; }
.feature-item__icon--green { background: rgba(16,185,129,0.1); color: #10b981; }

.feature-item__content h4 { font-size: 0.95rem; font-weight: 600; margin-bottom: 0.2rem; }
.feature-item__content p  { font-size: 0.875rem; color: var(--text-3); margin: 0; }

/* --- METRIC BADGES (sobre imágenes) --- */
.metric-badge {
  position: absolute;
  background: rgba(7,11,20,0.9);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem 1.1rem;
  backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.metric-badge__value {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}

.metric-badge__label {
  font-size: 0.72rem;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* --- RESULT CARDS --- */
.result-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 2.5rem 0;
}

.result-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
}

.result-card__value {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.result-card__label {
  font-size: 0.875rem;
  color: var(--text-2);
}

/* --- PROCESS STEPS --- */
.process-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  position: relative;
}

.process-step {
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  position: relative;
}

.process-step__num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(0,212,255,0.15), rgba(124,58,237,0.15));
  border: 1px solid rgba(0,212,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--accent);
}

.process-step h4 { margin-bottom: 0.5rem; font-size: 1rem; }
.process-step p  { font-size: 0.875rem; color: var(--text-3); margin: 0; }

/* --- TECH PILLS --- */
.tech-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.tech-pill {
  padding: 0.4rem 1rem;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-2);
  transition: border-color var(--transition), color var(--transition);
}

.tech-pill:hover {
  border-color: rgba(0,212,255,0.3);
  color: var(--accent);
}

/* --- CASE STUDY CARD --- */
.case-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  position: relative;
}

.case-card__quote {
  font-size: 1.05rem;
  color: var(--text);
  font-style: italic;
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.case-card__metric {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(0,212,255,0.07);
  border: 1px solid rgba(0,212,255,0.15);
  border-radius: var(--radius);
  padding: 0.75rem 1.25rem;
}

.case-card__metric-value {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--accent);
}

.case-card__metric-label { font-size: 0.85rem; color: var(--text-2); }

.case-card__disclaimer {
  margin-top: 1rem;
  font-size: 0.78rem;
  color: var(--text-3);
}

/* --- FAQ ACCORDION --- */
.faq-list { display: flex; flex-direction: column; gap: 1rem; }

.faq-list details {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-list summary {
  padding: 1.25rem 1.5rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
  color: var(--text);
  transition: color var(--transition);
}

.faq-list summary:hover { color: var(--accent); }

.faq-list summary::after {
  content: '+';
  font-size: 1.3rem;
  font-weight: 300;
  color: var(--accent);
  transition: transform var(--transition);
}

.faq-list details[open] summary::after { transform: rotate(45deg); }

.faq-list details p {
  padding: 0 1.5rem 1.25rem;
  font-size: 0.925rem;
  color: var(--text-2);
}

/* --- CTA SECTION FINAL --- */
.section-cta {
  padding: 6rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: var(--bg);
}

.section-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 70% at 50% 50%, rgba(0,212,255,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.section-cta h2 { margin-bottom: 1rem; }
.section-cta p  { max-width: 560px; margin: 0 auto 2.5rem; font-size: 1.05rem; }

.cta-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.cta-note {
  margin-top: 1.25rem;
  font-size: 0.82rem;
  color: var(--text-3);
}

/* --- LANDING PAGE HERO --- */
.lp-hero {
  padding: calc(var(--nav-h, 72px) + 3rem) 0 4rem;
  position: relative;
  overflow: hidden;
  background: var(--bg);
}

.lp-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 60% at 20% 40%, rgba(0,212,255,0.06) 0%, transparent 60%),
    radial-gradient(ellipse 40% 50% at 80% 60%, rgba(124,58,237,0.06) 0%, transparent 60%);
  pointer-events: none;
}

.lp-hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.lp-hero--centered .container {
  grid-template-columns: 1fr;
  text-align: center;
  max-width: 800px;
}

.lp-hero--centered .cta-actions { justify-content: center; }

.lp-hero .badge { margin-bottom: 1.25rem; }
.lp-hero h1 { margin-bottom: 1.25rem; }
.lp-hero .hero-sub {
  font-size: 1.1rem;
  color: var(--text-2);
  margin-bottom: 2rem;
  max-width: 520px;
}

/* --- SECCIÓN WHY --- */
.why-items { display: flex; flex-direction: column; gap: 1.5rem; }

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

.why-item__icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: var(--radius-sm);
  background: rgba(0,212,255,0.08);
  border: 1px solid rgba(0,212,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

.why-item h4 { font-size: 1rem; margin-bottom: 0.25rem; }
.why-item p  { font-size: 0.875rem; color: var(--text-3); margin: 0; }

/* --- NÚMERO DECORATIVO --- */
.num-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
}

.num-card__number {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 0.75rem;
}

.num-card h4 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.num-card p  { font-size: 0.875rem; color: var(--text-3); margin: 0; }

/* --- UTILIDADES --- */
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

/* --- RESPONSIVE BASE --- */
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: 2.5rem; }
  .split--reverse .split__text { order: 1; }
  .split--reverse .split__visual { order: 2; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .result-cards { grid-template-columns: repeat(2, 1fr); }
  .process-steps { grid-template-columns: 1fr; }
  .lp-hero .container { grid-template-columns: 1fr; gap: 2.5rem; }
}

@media (max-width: 600px) {
  .section, .section--alt { padding: 3.5rem 0; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .result-cards { grid-template-columns: 1fr; }
  h1 { font-size: clamp(1.6rem, 6vw, 2.4rem); }
  h2 { font-size: clamp(1.4rem, 5vw, 2rem); }
  .lp-hero { padding: calc(var(--nav-h) + 2rem) 0 3rem; }
}
