/* ===== RESET ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ===== VARIABLES ===== */
:root {
  --bg-main: #ffffff;
  --bg-section: #f8fafc;
  --text-main: #0f172a;
  --text-muted: #475569;
  --primary: #2563eb;
}

/* ===== BASE ===== */
body {
  font-family: 'Inter', system-ui, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== HEADER ===== */
.site-header {
  background: #ffffff;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 1px 8px rgba(0,0,0,0.05);
  animation: headerFade 0.6s ease-out forwards;
}

@keyframes headerFade {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px 48px;
}

.logo {
  height: 128px;
}

.header-title {
  font-weight: 600;
  font-size: 2rem;
  color: var(--text-muted);
}

/* ===== HERO ===== */
.hero {
  background-color: var(--bg-section);
  padding: 80px 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 48px;
}

/* Hero text animation */
.hero-content {
  opacity: 0;
  transform: translateY(16px);
  animation: heroTextFade 0.8s ease-out forwards;
}

@keyframes heroTextFade {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-content h1 {
  font-size: 2.4rem;
  line-height: 1.2;
  margin-bottom: 16px;
}

.hero-content p {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 28px;
}

/* CTA */
.btn-primary {
  display: inline-block;
  background-color: var(--primary);
  color: #ffffff;
  text-decoration: none;
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.25);
}

/* Hero image animation */
.hero-image img {
  width: 100%;
  max-width: 480px;
  height: auto;
  display: block;
  margin: 0 auto;
  opacity: 0;
  transform: scale(0.96);
  animation: heroImageFade 1s ease-out forwards;
  animation-delay: 0.15s;
}

@keyframes heroImageFade {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ===== PROCESO ===== */
.proceso {
  padding: 80px 0;
}

.proceso h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 32px;
}

.proceso-card {
  max-width: 600px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}

.proceso-card ol {
  list-style-position: inside;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.proceso-card li {
  font-size: 1.05rem;
}

/* ===== FOOTER ===== */
.site-footer {
  background: #ffffff;
  border-top: 1px solid #e5e7eb;
  padding: 24px 0;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero {
    padding: 64px 0;
  }

  .hero-content h1 {
    font-size: 2rem;
  }
}

/* ===== REDUCE MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

/* ===== SECCIONES GENERALES ===== */
section {
  padding: 80px 0;
}

section h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 48px;
}

/* ===== CARDS (Servicios y Beneficios) ===== */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.card {
  background: #ffffff;
  border-radius: 16px;
  padding: 32px 24px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.08);
}

.card img {
  width: 90px;
  height: auto;
  margin-bottom: 20px;
}

.card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

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

/* ===== FADE-IN ANIMATION ===== */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s ease forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .cards {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  section {
    padding: 64px 0;
  }

  section h2 {
    font-size: 1.8rem;
  }
}