/* ========================================
   CSS - Agencia IA Website
   ======================================== */

:root {
  --primary: #29ABD4;
  --primary-dark: #1a8caa;
  --primary-light: #d0f3f9;
  --secondary: #64748b;
  --accent: #0ea5e9;
  --success: #16a34a;
  --warning: #d97706;
  --danger: #dc2626;

  --bg-dark: #0f172a;
  --bg-light: #f8fafc;
  --bg-white: #ffffff;

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --text-white: #ffffff;

  --border: #e2e8f0;
  --border-dark: #334155;
  --text-on-dark: #e2e8f0;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
  --shadow-xl: 0 16px 48px rgba(0,0,0,0.15);

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --container: 1140px;
  --container-narrow: 800px;
}

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

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

body {
  font-family: var(--font);
  color: var(--text-primary);
  background: var(--bg-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }
input, textarea, select { font-family: inherit; font-size: 1rem; }

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

/* ========================================
   HEADER
   ======================================== */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  height: 72px;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text-primary);
}

.nav {
  display: flex;
  gap: 32px;
}

.nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s;
}

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

.header-cta {
  padding: 10px 20px;
  font-size: 0.9rem;
}

.mobile-menu-btn {
  display: none;
  padding: 8px;
  color: var(--text-primary);
}

.mobile-nav {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
  padding: 24px;
  z-index: 99;
}

.mobile-nav.open {
  display: block;
}

.mobile-nav nav {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mobile-nav a {
  font-size: 1.1rem;
  font-weight: 500;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

.mobile-nav .mobile-cta {
  margin-top: 8px;
  text-align: center;
}

/* ========================================
   BUTTONS
   ======================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: all 0.2s;
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: var(--text-white);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: var(--bg-white);
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--bg-light);
  border-color: var(--text-muted);
}

.btn-lg {
  padding: 16px 32px;
  font-size: 1rem;
}

.btn-block {
  width: 100%;
}

/* ========================================
   HERO
   ======================================== */

.hero {
  padding: 160px 0 100px;
  background: linear-gradient(180deg, #f0f7ff 0%, var(--bg-white) 100%);
}

.hero-inner {
  max-width: 720px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.highlight {
  color: var(--primary);
  position: relative;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 600px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.hero-trust {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-trust span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.trust-logos {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.tech-badge {
  padding: 6px 12px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
}

/* ========================================
   SECTIONS
   ======================================== */

.section {
  padding: 80px 0;
}

.section-dark {
  background: var(--bg-dark);
  color: var(--text-white);
}

.section-dark .section-tag {
  background: rgba(255,255,255,0.1);
  color: var(--text-white);
}

.section-light {
  background: var(--bg-light);
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.section-tag {
  display: inline-block;
  padding: 6px 14px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.section-header h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.section-header p {
  font-size: 1.1rem;
  color: var(--text-secondary);
}

.section-dark .section-header p {
  color: var(--text-on-dark);
}

/* ========================================
   SERVICES
   ======================================== */

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.service-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all 0.3s;
}

.service-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.service-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.service-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.service-card > p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 20px;
  line-height: 1.6;
}

.service-features {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.service-features li {
  font-size: 0.9rem;
  color: var(--text-secondary);
  padding-left: 20px;
  position: relative;
}

.service-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: 600;
}

/* ========================================
   STEPS
   ======================================== */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
}

.step {
  display: flex;
  gap: 20px;
}

.step-number {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 700;
}

.step-content h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.step-content p {
  font-size: 0.95rem;
  color: var(--text-on-dark);
  line-height: 1.6;
}

/* ========================================
   PRICING
   ======================================== */

.pricing-intro {
  text-align: center;
  margin-bottom: 32px;
}

.pricing-intro p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
  margin-bottom: 48px;
}

.pricing-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  position: relative;
}

.pricing-card.pricing-featured {
  border: 2px solid var(--primary);
  box-shadow: var(--shadow-lg);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: white;
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
}

.pricing-header h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.pricing-header p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 24px;
}

.pricing-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 24px;
}

.price-from {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.price {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-primary);
}

.price-period {
  font-size: 1rem;
  color: var(--text-muted);
}

.pricing-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.pricing-features li {
  font-size: 0.95rem;
  color: var(--text-secondary);
  padding-left: 24px;
  position: relative;
}

.pricing-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: 600;
}

.pricing-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.pricing-extra {
  background: var(--bg-light);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
}

.pricing-extra h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--text-secondary);
}

.pricing-extra ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px 32px;
}

.pricing-extra li {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ========================================
   CALCULATOR
   ======================================== */

.calculator-section {
  background: var(--bg-light);
}

.calculator-section .section-header p {
  max-width: 480px;
  margin: 0 auto;
}

.calculator-card {
  max-width: 560px;
  margin: 0 auto;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-lg);
}

.calculator-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 32px;
}

.calc-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.calc-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.calc-group input {
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  transition: all 0.2s;
  width: 100%;
}

.calc-group input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(41, 171, 212, 0.15);
}

.calculator-result {
  text-align: center;
  padding: 32px 24px;
  background: var(--bg-light);
  border-radius: var(--radius-lg);
  margin-bottom: 24px;
}

.result-label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.result-value {
  font-size: 3rem;
  font-weight: 800;
  color: var(--danger);
  line-height: 1;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.result-sub {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.calculator-cta {
  text-align: center;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.calculator-cta strong {
  color: var(--primary);
  font-weight: 700;
}

.cta-section {
  padding: 80px 0;
}

.cta-box {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: var(--radius-xl);
  padding: 64px;
  text-align: center;
  color: white;
  box-shadow: var(--shadow-xl);
}

.cta-box h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.cta-box p {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 32px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* ========================================
   CONTACT
   ======================================== */

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.contact-info h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.contact-info > p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 32px;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-method {
  display: flex;
  gap: 16px;
  align-items: center;
}

.contact-method-icon {
  width: 48px;
  height: 48px;
  background: var(--primary-light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
}

.contact-method strong {
  display: block;
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 2px;
}

.contact-method span {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.contact-response-time {
  margin-top: 24px;
}

.response-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: #dcfce7;
  color: var(--success);
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 600;
}

.contact-form {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 1rem;
  transition: all 0.2s;
  background: var(--bg-white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(41, 171, 212, 0.15);
}

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

.form-status {
  margin-top: 16px;
  padding: 12px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  text-align: center;
  display: none;
}

.form-status.success {
  display: block;
  background: #dcfce7;
  color: var(--success);
}

.form-status.error {
  display: block;
  background: #fef2f2;
  color: var(--danger);
}

/* ========================================
   FOOTER
   ======================================== */

.footer {
  background: var(--bg-dark);
  color: var(--text-white);
  padding: 64px 0 32px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 64px;
  margin-bottom: 48px;
}

.footer-brand .logo {
  margin-bottom: 16px;
}

.footer-brand p {
  color: var(--text-on-dark);
  font-size: 0.95rem;
  max-width: 300px;
}

.footer-links {
  display: flex;
  gap: 64px;
}

.footer-col h4 {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-on-dark);
  margin-bottom: 16px;
  opacity: 0.7;
}

.footer-col a {
  display: block;
  font-size: 0.95rem;
  color: var(--text-on-dark);
  padding: 6px 0;
  transition: color 0.2s;
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  border-top: 1px solid var(--border-dark);
}

.footer-bottom p {
  font-size: 0.85rem;
  color: var(--text-on-dark);
  opacity: 0.6;
}

.footer-legal {
  display: flex;
  gap: 24px;
}

.footer-legal a {
  font-size: 0.85rem;
  color: var(--text-on-dark);
  opacity: 0.6;
  transition: color 0.2s, opacity 0.2s;
}

.footer-legal a:hover {
  color: var(--text-white);
  opacity: 1;
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 768px) {
  .nav { display: none; }
  .header-cta { display: none; }
  .mobile-menu-btn { display: block; }

  .hero {
    padding: 120px 0 60px;
    text-align: center;
  }

  .hero-inner { max-width: 100%; }
  .hero-badge { margin-bottom: 16px; }
  .hero h1 { font-size: 2rem; }
  .hero-subtitle { font-size: 1rem; }
  .hero-actions { justify-content: center; }
  .hero-trust { justify-content: center; }

  .section { padding: 60px 0; }
  .section-header { margin-bottom: 40px; }
  .section-header h2 { font-size: 1.75rem; }

  .services-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .cta-box { padding: 40px 24px; }

  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-links { flex-direction: column; gap: 32px; }

  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .calculator-inputs {
    grid-template-columns: 1fr;
  }

  .calculator-card {
    padding: 28px 20px;
  }

  .result-value {
    font-size: 2.4rem;
  }
}

/* ========================================
   ANIMATIONS
   ======================================== */

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}