/* ==============================================
   Home — Diseño moderno y profesional
   ============================================== */

/* Variables específicas para home */
:root {
  --home-primary: #2563eb;
  --home-accent: #06b6d4;
  --home-success: #059669;
  --home-bg: #f8fafc;
  --home-text: #0f172a;
  --home-muted: #64748b;
  --home-border: #e2e8f0;
  --home-card: #ffffff;
  --home-shadow: 0 20px 40px rgba(15, 23, 42, .08);
  --home-radius: 16px;
  --gradient-primary: linear-gradient(135deg, var(--home-primary), var(--home-accent));
  --gradient-soft: linear-gradient(135deg, #eef2ff, #f0f9ff);
}

/* Reset y base */
.home-page {
  background: linear-gradient(180deg, #ffffff, var(--home-bg) 15%);
}

/* Hero section */
.hero {
  padding: clamp(48px, 8vw, 96px) 0 clamp(40px, 6vw, 80px);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 80%;
  height: 180%;
  background: var(--gradient-soft);
  transform: rotate(-12deg);
  z-index: -1;
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  filter: blur(40px);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(32px, 6vw, 64px);
  align-items: center;
}

@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

.hero-copy {
  position: relative;
}

.hero-copy h1 {
  font-size: clamp(2.4rem, 4vw + 1rem, 4rem);
  line-height: 1.1;
  margin: 0 0 24px;
  letter-spacing: -0.03em;
}

.accent {
  color: var(--home-primary);
  position: relative;
  white-space: nowrap;
}

.accent::after {
  content: "";
  position: absolute;
  left: -2%;
  bottom: 8%;
  width: 104%;
  height: 30%;
  background: var(--gradient-soft);
  z-index: -1;
  border-radius: 4px;
}

.hero-copy p {
  font-size: clamp(1.1rem, 1.2vw + 0.5rem, 1.25rem);
  line-height: 1.6;
  color: var(--home-muted);
  margin: 0 0 32px;
  max-width: 56ch;
}

.hero-photo {
  position: relative;
  border-radius: var(--home-radius);
  overflow: hidden;
  box-shadow: var(--home-shadow);
}

.hero-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom right,
      rgba(37, 99, 235, 0.1),
      rgba(6, 182, 212, 0.1));
  z-index: 1;
}

.hero-photo img {
  width: 100%;
  height: auto;
  display: block;
  transform: scale(1);
  transition: transform 0.6s ease;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.95rem;
  color: var(--home-muted);
}

.point {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(8px);
  border: 1px solid var(--home-border);
  border-radius: 999px;
}

.point-icon {
  color: var(--home-success);
}

/* Strip sections */
.strip {
  margin: 40px 0;
}

.strip-content {
  background: var(--gradient-soft);
  border: 1px solid #dbeafe;
  padding: 24px 32px;
  border-radius: var(--home-radius);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

@media (max-width: 640px) {
  .strip-content {
    flex-direction: column;
    text-align: center;
    padding: 24px;
  }
}

.strip p {
  margin: 0;
  font-size: 1.05rem;
}

.strip-btn {
  padding: 12px 24px;
  border-radius: 10px;
  font-weight: 600;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.strip-btn.white {
  background: var(--home-text);
  color: white;
}

.strip-btn.white:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.15);
}

.strip.soft .strip-content {
  background: white;
  border: 1px solid var(--home-border);
}

.strip.soft .strip-btn {
  background: var(--gradient-soft);
  color: var(--home-text);
  border: 1px solid var(--home-border);
}

/* Services section */
.home-services {
  padding: 40px 0 64px;
}

.section-head {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
}

.section-head h2 {
  font-size: clamp(1.8rem, 2vw + 1rem, 2.5rem);
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}

.section-head p {
  font-size: 1.1rem;
  color: var(--home-muted);
  margin: 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.service-card {
  background: var(--home-card);
  border: 1px solid var(--home-border);
  padding: 28px;
  border-radius: var(--home-radius);
  box-shadow: var(--home-shadow);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: all 0.3s ease;
}

.service-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--gradient-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 8px;
}

.service-card h3 {
  font-size: 1.25rem;
  margin: 0;
  color: var(--home-text);
}

.service-card p {
  color: var(--home-muted);
  line-height: 1.6;
  margin: 0;
}

.service-link {
  margin-top: auto;
  color: var(--home-primary);
  font-weight: 600;
  text-decoration: none;
  padding: 8px 0;
  transition: all 0.2s ease;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.12);
}

.service-card:hover .service-link {
  padding-left: 4px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero {
    padding-top: 32px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-btn {
    width: 100%;
    text-align: center;
  }

  .points {
    justify-content: center;
  }
}

/* Print styles */
@media print {
  .hero::before {
    display: none;
  }

  .hero-photo::before {
    display: none;
  }

  .service-card {
    break-inside: avoid;
    border: 1px solid #ddd;
    box-shadow: none;
  }
}

/* ==============================================
   Nuevas Secciones Landing Page
   ============================================== */

/* Process Section */
.process-section {
  padding: 80px 0;
  background: #ffffff;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 48px;
  position: relative;
}

.process-steps::before {
  content: "";
  position: absolute;
  top: 40px;
  left: 15%;
  right: 15%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--home-border) 20%, var(--home-border) 80%, transparent);
  z-index: 0;
}

.step-card {
  position: relative;
  z-index: 1;
  background: #ffffff;
  padding: 24px;
  text-align: center;
  transition: transform 0.3s ease;
}

.step-number {
  width: 80px;
  height: 80px;
  background: white;
  border: 2px solid var(--home-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 800;
  color: var(--home-primary);
  margin: 0 auto 24px;
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.1);
  position: relative;
}

.step-card:hover .step-number {
  border-color: var(--home-primary);
  transform: scale(1.1);
  transition: all 0.3s ease;
}

.step-card h3 {
  font-size: 1.25rem;
  margin: 0 0 12px;
  color: var(--home-text);
}

.step-card p {
  color: var(--home-muted);
  font-size: 1rem;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .process-steps {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .process-steps::before {
    display: none;
  }
}

/* Testimonials Section */
.testimonials-section {
  padding: 80px 0;
  background: var(--home-bg);
  position: relative;
  overflow: hidden;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.testimonial-card {
  background: white;
  padding: 32px;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.03);
  transition: transform 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.06);
}

.quote-icon {
  font-size: 2rem;
  color: var(--home-primary);
  opacity: 0.2;
  margin-bottom: 16px;
}

.testimonial-text {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--home-text);
  margin-bottom: 24px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e0f2fe, #eff6ff);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--home-primary);
}

.author-info strong {
  display: block;
  color: var(--home-text);
  font-size: 0.95rem;
}

.author-info span {
  font-size: 0.85rem;
  color: var(--home-muted);
}

/* CTA Final Premium */
.final-cta {
  padding: 100px 0;
  background: #0f172a;
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.final-cta::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 50% 0%, #1e293b 0%, #0f172a 70%);
  z-index: 0;
}

.final-cta .container {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin-bottom: 40px;
  line-height: 1.6;
}

.final-cta h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  margin-bottom: 24px;
  background: linear-gradient(135deg, #ffffff 0%, #94a3b8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.final-cta p {
  font-size: 1.25rem;
  color: #94a3b8;
  margin-bottom: 40px;
  line-height: 1.6;
}

.final-cta .btn {
  background: var(--home-primary);
  color: white;
  padding: 16px 32px;
  font-size: 1.1rem;
  border: none;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.2);
}

.final-cta .btn:hover {
  background: #1d4ed8;
  box-shadow: 0 0 0 8px rgba(37, 99, 235, 0.2);
  transform: translateY(-2px);
}