/* ═══════════════════════════════════════════════════════════════════
   ComprimirPro — styles.css
   Stack: CSS Custom Properties + Flexbox + Grid — sin frameworks
═══════════════════════════════════════════════════════════════════ */

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

:root {
  --clr-brand:      #4F46E5;   /* indigo-600 */
  --clr-brand-dark: #3730A3;
  --clr-brand-lite: #EEF2FF;
  --clr-accent:     #10B981;   /* emerald-500 */
  --clr-accent-dk:  #059669;
  --clr-warn:       #F59E0B;
  --clr-bg:         #F8FAFC;
  --clr-surface:    #FFFFFF;
  --clr-border:     #E2E8F0;
  --clr-text:       #1E293B;
  --clr-muted:      #64748B;
  --clr-light:      #F1F5F9;
  --radius-sm:      6px;
  --radius-md:      12px;
  --radius-lg:      20px;
  --shadow-sm:      0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md:      0 4px 16px rgba(0,0,0,.10);
  --shadow-lg:      0 10px 40px rgba(0,0,0,.12);
  --font-sans:      'Segoe UI', system-ui, -apple-system, sans-serif;
  --max-w:          1140px;
  --transition:     .2s ease;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-sans);
  background: var(--clr-bg);
  color: var(--clr-text);
  line-height: 1.6;
}

img { max-width: 100%; display: block; }
a  { color: var(--clr-brand); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--clr-brand-dark); }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
}

.hidden { display: none !important; }

/* ── BUTTONS ───────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-weight: 600;
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}
.btn-sm  { font-size: .85rem; padding: 8px 16px; }
.btn-md  { font-size: .95rem; padding: 12px 22px; }
.btn-lg  { font-size: 1.05rem; padding: 14px 28px; }
.btn-xl  { font-size: 1.15rem; padding: 16px 36px; border-radius: var(--radius-lg); }

.btn-primary {
  background: var(--clr-brand);
  color: #fff;
  border-color: var(--clr-brand);
}
.btn-primary:hover {
  background: var(--clr-brand-dark);
  border-color: var(--clr-brand-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(79,70,229,.35);
  color: #fff;
}

.btn-success {
  background: var(--clr-accent);
  color: #fff;
  border-color: var(--clr-accent);
}
.btn-success:hover {
  background: var(--clr-accent-dk);
  border-color: var(--clr-accent-dk);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(16,185,129,.35);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--clr-muted);
  border-color: var(--clr-border);
}
.btn-outline:hover {
  background: var(--clr-light);
  color: var(--clr-text);
}

.btn-white {
  background: #fff;
  color: var(--clr-brand);
  border-color: #fff;
}
.btn-white:hover {
  background: var(--clr-brand-lite);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,.15);
}

/* ── NAVIGATION ────────────────────────────────────────────────────── */
.nav-bar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--clr-border);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--clr-brand);
  text-decoration: none;
  flex-shrink: 0;
}
.logo-icon { font-size: 1.4rem; }

.nav-links {
  display: flex;
  gap: 24px;
  flex: 1;
}
.nav-links a {
  color: var(--clr-muted);
  font-size: .9rem;
  font-weight: 500;
}
.nav-links a:hover { color: var(--clr-brand); }

/* ── LANGUAGE SWITCHER ─────────────────────────────────────────────── */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .82rem;
  font-weight: 700;
}
.lang-active {
  color: var(--clr-brand);
  background: var(--clr-brand-lite);
  padding: 3px 9px;
  border-radius: 99px;
  border: 1.5px solid #c7d2fe;
}
.lang-sep  { color: var(--clr-border); }
.lang-option {
  color: var(--clr-muted);
  padding: 3px 9px;
  border-radius: 99px;
  border: 1.5px solid transparent;
  transition: all var(--transition);
}
.lang-option:hover {
  color: var(--clr-brand);
  border-color: #c7d2fe;
  background: var(--clr-brand-lite);
}

/* ── HERO ──────────────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, #f0f4ff 0%, #faf5ff 50%, #f0fdf4 100%);
  padding: 72px 0 56px;
  text-align: center;
  border-bottom: 1px solid var(--clr-border);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--clr-brand-lite);
  color: var(--clr-brand);
  font-size: .8rem;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 99px;
  margin-bottom: 24px;
  border: 1px solid #c7d2fe;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 900;
  line-height: 1.15;
  color: var(--clr-text);
  margin-bottom: 20px;
}

.highlight {
  background: linear-gradient(135deg, var(--clr-brand), #7C3AED);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--clr-muted);
  max-width: 600px;
  margin: 0 auto 36px;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-top: 40px;
}
.stat { text-align: center; }
.stat-num {
  display: block;
  font-size: 2rem;
  font-weight: 900;
  color: var(--clr-brand);
}
.stat-lbl {
  font-size: .8rem;
  color: var(--clr-muted);
  font-weight: 500;
}

/* ── TOOL SECTION ──────────────────────────────────────────────────── */
.tool-section {
  padding: 48px 0 64px;
}

.upload-zone {
  border: 2.5px dashed var(--clr-brand);
  border-radius: var(--radius-lg);
  background: var(--clr-brand-lite);
  padding: 64px 32px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
}
.upload-zone:hover,
.upload-zone.drag-over {
  background: #e0e7ff;
  border-color: var(--clr-brand-dark);
  transform: scale(1.005);
  box-shadow: var(--shadow-md);
}

.upload-icon { font-size: 3.5rem; margin-bottom: 16px; }
.upload-title { font-size: 1.3rem; font-weight: 700; margin-bottom: 8px; }
.upload-sub   { color: var(--clr-muted); margin-bottom: 8px; }
.upload-formats {
  font-size: .8rem;
  color: var(--clr-muted);
  margin-bottom: 24px;
}

/* ── SETTINGS BAR ──────────────────────────────────────────────────── */
.settings-bar {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: flex-end;
}

.setting-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 180px;
}
.setting-group label {
  font-size: .85rem;
  font-weight: 600;
  color: var(--clr-muted);
  text-transform: uppercase;
  letter-spacing: .05em;
}

.slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 99px;
  background: linear-gradient(to right, var(--clr-brand) 0%, var(--clr-brand) var(--slider-pct, 70%), #e2e8f0 var(--slider-pct, 70%), #e2e8f0 100%);
  outline: none;
  cursor: pointer;
}
.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--clr-brand);
  box-shadow: 0 2px 6px rgba(79,70,229,.4);
  border: 2px solid #fff;
  cursor: pointer;
}
.quality-hints {
  display: flex;
  justify-content: space-between;
  font-size: .72rem;
  color: var(--clr-muted);
}

.format-pills { display: flex; gap: 8px; flex-wrap: wrap; }
.pill {
  padding: 6px 14px;
  border: 1.5px solid var(--clr-border);
  border-radius: 99px;
  background: var(--clr-surface);
  font-size: .82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  color: var(--clr-muted);
}
.pill:hover  { border-color: var(--clr-brand); color: var(--clr-brand); }
.pill.active { background: var(--clr-brand); border-color: var(--clr-brand); color: #fff; }

.resize-inputs {
  display: flex;
  align-items: center;
  gap: 8px;
}
.input-sm {
  width: 110px;
  padding: 8px 12px;
  border: 1.5px solid var(--clr-border);
  border-radius: var(--radius-sm);
  font-size: .9rem;
  font-family: var(--font-sans);
  transition: border-color var(--transition);
}
.input-sm:focus {
  outline: none;
  border-color: var(--clr-brand);
  box-shadow: 0 0 0 3px rgba(79,70,229,.12);
}

/* ── PROGRESS ──────────────────────────────────────────────────────── */
.progress-wrap {
  margin-top: 24px;
  text-align: center;
}
.progress-bar-outer {
  height: 8px;
  background: var(--clr-border);
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 12px;
}
.progress-bar-inner {
  height: 100%;
  background: linear-gradient(90deg, var(--clr-brand), var(--clr-accent));
  border-radius: 99px;
  width: 0;
  transition: width .3s ease;
}
#progressText { color: var(--clr-muted); font-size: .9rem; }

/* ── RESULTS GRID ──────────────────────────────────────────────────── */
.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 32px;
}

.result-card {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.result-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.result-preview {
  position: relative;
  width: 100%;
  height: 180px;
  overflow: hidden;
  background: var(--clr-light);
}
.result-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.result-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--clr-accent);
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 99px;
}

.result-info {
  padding: 16px;
}
.result-name {
  font-weight: 600;
  font-size: .9rem;
  margin-bottom: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.result-sizes {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .82rem;
  color: var(--clr-muted);
  margin-bottom: 14px;
}
.size-original { text-decoration: line-through; }
.size-arrow    { color: var(--clr-accent); font-weight: 700; }
.size-new      { color: var(--clr-accent); font-weight: 700; }

.result-bar-wrap {
  background: var(--clr-light);
  border-radius: 99px;
  height: 6px;
  margin-bottom: 14px;
  overflow: hidden;
}
.result-bar-fill {
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--clr-accent), #34D399);
}

.result-actions {
  display: flex;
  gap: 8px;
}
.btn-download {
  flex: 1;
  justify-content: center;
  font-size: .85rem;
  padding: 9px 0;
}

/* ── DOWNLOAD ALL ──────────────────────────────────────────────────── */
.download-all-wrap {
  margin-top: 40px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.savings-banner {
  background: linear-gradient(135deg, var(--clr-accent), #059669);
  color: #fff;
  padding: 14px 32px;
  border-radius: var(--radius-md);
  font-size: 1.1rem;
  font-weight: 700;
}

/* ── AD SLOT ───────────────────────────────────────────────────────── */
.ad-slot {
  padding: 32px 20px;
  display: flex;
  justify-content: center;
}
.ad-placeholder {
  width: 100%;
  max-width: 728px;
  height: 90px;
  background: var(--clr-light);
  border: 2px dashed var(--clr-border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--clr-muted);
  font-size: .8rem;
}

/* ── SECTION TITLES ────────────────────────────────────────────────── */
.section-title {
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  font-weight: 800;
  text-align: center;
  margin-bottom: 12px;
}
.section-sub {
  text-align: center;
  color: var(--clr-muted);
  margin-bottom: 48px;
  font-size: 1.05rem;
}

/* ── FEATURES ──────────────────────────────────────────────────────── */
.features { padding: 80px 0; background: var(--clr-surface); }

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.feature-card {
  padding: 28px;
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  background: var(--clr-bg);
  transition: all var(--transition);
}
.feature-card:hover {
  border-color: var(--clr-brand);
  background: var(--clr-brand-lite);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.feature-icon { font-size: 2.2rem; margin-bottom: 14px; }
.feature-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.feature-card p  { font-size: .9rem; color: var(--clr-muted); line-height: 1.6; }

/* ── HOW IT WORKS ──────────────────────────────────────────────────── */
.how-it-works {
  padding: 80px 0;
  background: linear-gradient(135deg, #f0f4ff, #faf5ff);
}

.steps-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 48px;
}

.step {
  text-align: center;
  max-width: 220px;
}
.step-num {
  width: 56px; height: 56px;
  background: var(--clr-brand);
  color: #fff;
  font-size: 1.4rem;
  font-weight: 900;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  box-shadow: 0 6px 20px rgba(79,70,229,.35);
}
.step h3  { font-size: 1.05rem; margin-bottom: 8px; }
.step p   { font-size: .88rem; color: var(--clr-muted); }
.step-arrow { font-size: 2rem; color: var(--clr-brand); flex-shrink: 0; }

/* ── USE CASES ─────────────────────────────────────────────────────── */
.use-cases { padding: 80px 0; background: var(--clr-surface); }

.use-cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}

.use-card {
  padding: 24px;
  border-radius: var(--radius-md);
  background: var(--clr-bg);
  border: 1px solid var(--clr-border);
  transition: all var(--transition);
}
.use-card:hover {
  border-color: var(--clr-accent);
  background: #f0fdf4;
  transform: translateY(-2px);
}
.use-icon { font-size: 1.8rem; margin-bottom: 12px; display: block; }
.use-card h4 { font-size: .95rem; margin-bottom: 6px; }
.use-card p  { font-size: .84rem; color: var(--clr-muted); }

/* ── TESTIMONIALS ──────────────────────────────────────────────────── */
.testimonials { padding: 80px 0; background: linear-gradient(135deg, #f0f4ff, #faf5ff); }

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.testimonial-card {
  background: var(--clr-surface);
  padding: 28px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--clr-border);
}
.stars { color: var(--clr-warn); font-size: 1.1rem; margin-bottom: 14px; }
.testimonial-card p { font-size: .9rem; color: var(--clr-muted); margin-bottom: 20px; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--clr-brand);
  color: #fff;
  font-weight: 700;
  font-size: .85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.testimonial-author strong { display: block; font-size: .9rem; }
.testimonial-author span  { font-size: .78rem; color: var(--clr-muted); }

/* ── FAQ ───────────────────────────────────────────────────────────── */
.faq { padding: 80px 0; background: var(--clr-surface); }

.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  background: var(--clr-bg);
  overflow: hidden;
  transition: border-color var(--transition);
}
.faq-item[open] { border-color: var(--clr-brand); }

.faq-item summary {
  padding: 18px 24px;
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.faq-item summary::after {
  content: '+';
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--clr-brand);
  flex-shrink: 0;
  transition: transform var(--transition);
}
.faq-item[open] summary::after { transform: rotate(45deg); }

.faq-item p {
  padding: 0 24px 18px;
  font-size: .9rem;
  color: var(--clr-muted);
  line-height: 1.7;
}

/* ── SEO CONTENT ───────────────────────────────────────────────────── */
.seo-content {
  padding: 64px 0;
  background: var(--clr-bg);
}
.seo-content h2 { font-size: 1.5rem; font-weight: 800; margin-bottom: 16px; }
.seo-content p  { color: var(--clr-muted); line-height: 1.8; margin-bottom: 16px; }
.seo-content ul { padding-left: 24px; color: var(--clr-muted); }
.seo-content li { margin-bottom: 8px; line-height: 1.7; }

/* ── CTA FINAL ─────────────────────────────────────────────────────── */
.cta-final {
  background: linear-gradient(135deg, var(--clr-brand), #7C3AED);
  padding: 80px 0;
  text-align: center;
  color: #fff;
}
.cta-final h2 { font-size: 2.25rem; font-weight: 900; margin-bottom: 12px; }
.cta-final p  { font-size: 1.1rem; margin-bottom: 32px; opacity: .85; }

/* ── FOOTER ────────────────────────────────────────────────────────── */
.footer {
  background: var(--clr-text);
  color: #94a3b8;
  padding: 56px 0 0;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
  padding-bottom: 48px;
}

.footer-brand {
  flex: 1;
  min-width: 220px;
}
.footer-brand .logo { margin-bottom: 12px; }
.footer-brand .logo-text { color: #fff; }
.footer-brand p { font-size: .88rem; line-height: 1.7; }

.footer-links {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
}
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 140px;
}
.footer-col h4 {
  color: #fff;
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 4px;
}
.footer-col a { font-size: .85rem; color: #94a3b8; }
.footer-col a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid #334155;
  padding: 20px;
  text-align: center;
  font-size: .82rem;
}

/* ── RESPONSIVE ────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hero { padding: 48px 0 40px; }
  .hero-stats { gap: 24px; }
  .steps-row { gap: 16px; }
  .step-arrow { display: none; }
  .settings-bar { flex-direction: column; gap: 20px; }
  .footer-inner { flex-direction: column; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 1.75rem; }
  .upload-zone { padding: 40px 20px; }
  .hero-stats { flex-direction: column; gap: 16px; }
}
