/* ==========================================================================
   VARIABLES Y CONFIGURACIÓN INICIAL (Custom Properties)
   ========================================================================== */
:root {
  /* Paleta Slate e Índigo */
  --primary: #4f46e5;
  --primary-hover: #4338ca;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-600: #475569;
  --slate-300: #cbd5e1;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;

  /* Fuentes y Bordes */
  --font-main: "Segoe UI", system-ui, -apple-system, sans-serif;
  --radius: 12px;
  --transition: all 0.3s ease;
  --shadow:
    0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-md:
    0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background-color: var(--slate-50);
  color: var(--slate-800);
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* ==========================================================================
   SERVICES SECTION (Integrada y Optimizada para Desarrollo Web)
   ========================================================================== */
.services-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 6rem 2rem;
}

.section-title {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title h2 {
  font-size: 2.5rem;
  color: var(--slate-900);
  margin-bottom: 1rem;
  font-weight: 800;
}

.section-title p {
  color: var(--slate-600);
  font-size: 1.1rem;
}

/* Grid profesional */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

/* Tarjeta con efecto de elevación premium */
.card {
  background-color: white;
  padding: 2.5rem 2rem;
  border-radius: 16px;
  border: 1px solid var(--slate-100);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow:
    0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
  border-color: rgba(79, 70, 229, 0.3);
}

/* Icono con animación de rotación */
.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background-color: rgba(79, 70, 229, 0.1);
  color: var(--primary);
  border-radius: 12px;
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
}

.card:hover .card-icon {
  background-color: var(--primary);
  color: white;
  transform: scale(1.1) rotate(5deg);
}

.card h3 {
  font-size: 1.4rem;
  color: var(--slate-900);
  margin-bottom: 1rem;
}

.card p {
  color: var(--slate-600);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

/* Enlace "Saber más" integrado */
.card-link {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: gap 0.3s ease;
}

.card:hover .card-link {
  gap: 0.8rem;
}

/* ==========================================================================
   ABOUT SECTION (Uso de Grid con Imágenes y Contenido)
   ========================================================================== */
.about-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 6rem 2rem;
}
.about-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 4rem;
  align-items: center;
}
.image-placeholder {
  background-color: var(--slate-100);
  height: 350px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: var(--slate-300);
  border: 2px dashed var(--slate-300);
}
.badge {
  color: var(--primary);
  background-color: rgba(79, 70, 229, 0.1);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}
.about-content h2 {
  font-size: 2.25rem;
  color: var(--slate-900);
  margin: 1rem 0;
}
.about-features {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.about-features i {
  color: var(--primary);
  margin-right: 0.5rem;
}

/* ==========================================================================
   TESTIMONIALS SECTION (Uso de Grid para Testimonios)
   ========================================================================== */
.testimonials-section {
  background-color: white;
  padding: 6rem 2rem;
}
.testimonials-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}
.testimonial-card {
  background-color: var(--slate-50);
  padding: 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--slate-100);
}
.stars {
  color: #f59e0b; /* Color dorado para las estrellas */
  margin-bottom: 1rem;
  font-size: 0.9rem;
}
.testimonial-card p {
  color: var(--slate-600);
  font-style: italic;
  margin-bottom: 1.5rem;
}
.client-info strong {
  display: block;
  color: var(--slate-900);
}
.client-info span {
  font-size: 0.85rem;
  color: var(--slate-600);
}
/* ==========================================================================
   FOOTER
   ========================================================================== */
.main-footer {
  background-color: var(--slate-900);
  color: var(--slate-300);
  text-align: center;
  padding: 3rem 2rem;
  font-size: 0.9rem;
  border-top: 1px solid var(--slate-800);
}

/* Responsive para pantallas muy pequeñas */
@media (max-width: 768px) {
  .nav-menu {
    display: none; /* Para producción ideal usar un menú hamburguesa con JS */
  }
  .hero-content h1 {
    font-size: 2.25rem;
  }
}

/* ==========================================================================
   TECH STACK SECTION (Uso de Flexbox para Iconos)
   ========================================================================== */
.tech-stack {
  padding: 5rem 2rem;
  background-color: #4f46e508; /* Un fondo gris muy suave (slate-50) */
  text-align: center;
  border-top: 1px solid var(--slate-100);
}

.tech-subtitle {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary); /* Tu color índigo */
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 3rem;
}

.tech-icons-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 3.5rem; /* Espaciado generoso entre iconos */
}

.tech-icons-container i {
  color: var(--slate-400); /* Color neutro inicial */
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  cursor: default;
}

/* Ajuste opcional si sientes que el escalado es muy brusco con fa-4x */
.tech-icons-container i:hover {
  color: var(--primary);
  transform: translateY(-8px) scale(1.05); /* Escala más sutil */
}

/* ==========================================================================
   PROCESS SECTION (Uso de Grid para Pasos del Proceso)
   ========================================================================== */
.process-section {
    padding: 5rem 2rem;
    background-color: white;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.process-card {
    padding: 2rem;
    border-left: 3px solid var(--primary); /* Línea de acento a la izquierda */
    background: #f8fafc;
    transition: transform 0.3s ease;
}

.process-card:hover {
    transform: translateY(-5px);
}

.step-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    opacity: 0.3;
    margin-bottom: 1rem;
}

.process-card h3 {
    margin-bottom: 1rem;
    color: var(--slate-900);
}

/* ==========================================================================
   VALUE PROPOSITION SECTION
   ========================================================================== */
.value-proposition {
    padding: 8rem 2rem;
    background-color: white;
    text-align: left;
}

.content-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.value-proposition h2 {
    font-size: 2.5rem;
    line-height: 1.2;
    color: var(--slate-900);
    margin-bottom: 1.5rem;
}

.value-proposition p {
    font-size: 1.25rem;
    color: var(--slate-600);
    margin-bottom: 3rem;
    line-height: 1.7;
}

.features-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.1rem;
    color: var(--slate-800);
}

.feature-item i {
    color: var(--primary); /* Tu color índigo */
}

.cta-section .btn-primary {
    background-color: var(--primary);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s ease, background 0.3s ease;
    display: inline-block;
}

.cta-section .btn-primary:hover {
    transform: translateY(-3px);
    background-color: #4338ca; /* Un tono un poco más oscuro al pasar el mouse */
}
