/* 🎨 ConnectaFoodie – Estilos principales (versión mejorada) */

/* ===========================
   🎯 Variables y configuraciones base
=========================== */
:root {
  --background: #E6F0EF; /* Fondo suave y agradable */
  --foreground: 222.2 50% 10%;
  --primary: 262.1 83.3% 57.8%;
  --primary-foreground: 210 20% 98%;
  --border: 214.3 31.8% 85%;
  --muted-foreground: 215.4 16.3% 40%;
  --gradient-rainbow: linear-gradient(90deg, #FF0000, #FF7F00, #FFFF00, #00FF00, #0000FF, #4B0082, #9400D3);
  --shadow-warm: 0 4px 20px rgba(139, 92, 246, 0.15);
  --shadow-elegant: 0 10px 40px rgba(139, 92, 246, 0.25);
}

/* ===========================
   🔤 Reset y comportamiento base
=========================== */
html {
  scroll-behavior: smooth;
}

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

body {
  font-family: "Inter", system-ui, sans-serif;
  line-height: 1.6;
  color: hsl(var(--foreground));
  background-color: var(--background);
  transition: background-color 0.5s ease, color 0.5s ease;
}

/* ===========================
   🧱 Estructura general
=========================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

section {
  padding: 5rem 1rem;
}

/* ===========================
   🧭 Encabezado y navegación
=========================== */
.header {
  background-color: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
  padding: 1rem;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

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

.logo {
  font-size: 1.6rem;
  font-weight: 900;
  letter-spacing: -0.5px;
}

.logo .brand {
  color: hsl(var(--foreground));
}

.logo .highlight {
  color: hsl(var(--primary));
}

.nav {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav a {
  text-decoration: none;
  color: hsl(var(--foreground));
  font-weight: 500;
  transition: color 0.3s ease, transform 0.2s ease;
}

.nav a:hover {
  color: hsl(var(--primary));
  transform: scale(1.05);
}

/* ===========================
   🌈 Elementos visuales
=========================== */
.rainbow-line {
  height: 4px;
  background: var(--gradient-rainbow);
}

/* ===========================
   🦸 Hero principal
=========================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  text-align: center;
}

.hero-image {
  width: 320px;
  height: 320px;
  object-fit: contain;
  margin: 2rem auto;
}

/* ===========================
   ✨ Tipografía y textos
=========================== */
h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  text-align: center;
  margin-bottom: 1.5rem;
  color: hsl(var(--foreground));
}

h2 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 1.5rem;
}

h3 {
  font-size: 1.25rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 1rem;
}

p {
  font-size: 1.125rem;
  color: hsl(var(--foreground) / 0.8);
  text-align: center;
  max-width: 800px;
  margin: 0 auto 4rem;
}

/* ===========================
   🧩 Botones
=========================== */
.btn-group {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  padding: 1rem 2rem;
  border-radius: 0.5rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
}

.btn-primary {
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.btn-outline {
  border: 2px solid hsl(var(--primary));
  color: hsl(var(--primary));
  background-color: transparent;
}

.btn:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
}

/* ===========================
   📊 Grillas y tarjetas
=========================== */
.stats-grid,
.services-grid,
.target-grid,
.testimonials-grid {
  display: grid;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.stats-grid {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.services-grid,
.target-grid,
.testimonials-grid {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.stat-card,
.service-card,
.target-card,
.testimonial-card {
  padding: 2rem;
  border-radius: 1rem;
  background-color: rgba(255,255,255,0.85);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-warm);
  text-align: center;
  transition: all 0.3s ease;
}

.stat-card:hover,
.service-card:hover,
.target-card:hover,
.testimonial-card:hover {
  box-shadow: var(--shadow-elegant);
  transform: translateY(-4px);
}

.stat-number {
  font-size: 2rem;
  font-weight: bold;
  color: hsl(var(--primary));
}

/* ===========================
   ⚫ Footer
=========================== */
.footer {
  padding: 3rem 1rem;
  background-color: hsl(var(--foreground));
  color: hsl(var(--primary-foreground));
}

.footer-links a {
  color: hsl(var(--primary-foreground) / 0.8);
  text-decoration: none;
  display: block;
  margin-bottom: 0.5rem;
}

.footer-links a:hover {
  color: hsl(var(--primary));
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-btn {
  padding: 0.75rem;
  border-radius: 50%;
  background-color: rgba(255,255,255,0.1);
  color: hsl(var(--primary-foreground));
  text-decoration: none;
  transition: transform 0.3s ease;
}

.social-btn:hover {
  transform: scale(1.1);
  background-color: hsl(var(--primary));
}

/* ===========================
   🎯 Corrección para centrar botón en sección .cta
=========================== */
.cta .container {
  text-align: center;
  /* Opcional: agregar espacio vertical entre elementos */
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

/* ===========================
   📱 Responsive
=========================== */
@media (max-width: 768px) {
  .nav { display: none; }
  .btn { width: 100%; max-width: 300px; }
}
