/* =====================================================
   PLATFORM HOME - Estilos para la página principal de la plataforma SaaS
   ===================================================== */

/* Variables CSS personalizadas - Otra Instancia */
:root {
  --primary-gradient: linear-gradient(135deg, #8B9A7A 0%, #6B7B5A 100%);
  --secondary-gradient: linear-gradient(135deg, #C4956C 0%, #B8845C 100%);
  --accent-gradient: linear-gradient(135deg, #A8B59B 0%, #8B9A7A 100%);
  
  --primary-color: #8B9A7A;
  --secondary-color: #6B7B5A;
  --accent-color: #C4956C;
  --success-color: #7A8B6B;
  --warning-color: #D4B896;
  
  --text-primary: #4A453C;
  --text-secondary: #6B7B5A;
  --text-light: #8B9A7A;
  
  --bg-light: #F5F2E8;
  --bg-white: #FEFDFB;
  --bg-dark: #4A453C;
  
  --shadow-sm: 0 1px 2px 0 rgb(74 69 60 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(74 69 60 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(74 69 60 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(74 69 60 / 0.1);
  
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-full: 9999px;
}

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

.hero-section {
  background: var(--primary-gradient);
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
  background-size: 50px 50px;
  animation: moveGrid 20s linear infinite;
}

@keyframes moveGrid {
  0% { transform: translate(0, 0); }
  100% { transform: translate(50px, 50px); }
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
}

.hero-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  padding: 0.5rem 1.5rem;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  background: linear-gradient(to right, #ffffff, #F5F2E8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  font-weight: 400;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto 3rem;
  line-height: 1.6;
}

/* =====================================================
   SEARCH SECTION
   ===================================================== */

.search-section {
  background: white;
  border-radius: var(--radius-xl);
  padding: 3rem;
  margin: -3rem auto 3rem;
  position: relative;
  z-index: 10;
  box-shadow: var(--shadow-xl);
  max-width: 800px;
}

.search-container {
  position: relative;
}

.search-input {
  width: 100%;
  padding: 1.25rem 4rem 1.25rem 1.5rem;
  font-size: 1.125rem;
  border: 2px solid #E8E2D5;
  border-radius: var(--radius-lg);
  transition: all 0.3s ease;
  background: var(--bg-light);
}

.search-input:focus {
  outline: none;
  border-color: var(--primary-color);
  background: white;
  box-shadow: 0 0 0 4px rgba(139, 154, 122, 0.1);
}

.search-button {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  background: var(--primary-gradient);
  border: none;
  border-radius: var(--radius-md);
  padding: 0.75rem 1.5rem;
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.search-button:hover {
  transform: translateY(-50%) scale(1.05);
  box-shadow: var(--shadow-lg);
}

.search-results {
  background: white;
  border: 1px solid #E8E2D5;
  border-radius: var(--radius-lg);
  margin-top: 1rem;
  box-shadow: var(--shadow-xl);
  max-height: 400px;
  overflow-y: auto;
  display: none;
}

.search-result-item {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid #F5F2E8;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.search-result-item:hover {
  background: var(--bg-light);
  padding-left: 2rem;
}

.search-result-item:last-child {
  border-bottom: none;
}

.result-info h6 {
  margin: 0;
  color: var(--text-primary);
  font-weight: 600;
}

.result-info small {
  color: var(--primary-color);
}

.result-price {
  font-weight: 700;
  color: var(--success-color);
  font-size: 1.125rem;
}

/* =====================================================
   STORES SECTION
   ===================================================== */

.stores-section {
  padding: 4rem 0;
  background: var(--bg-light);
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

.store-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 2rem;
  height: 100%;
  transition: all 0.3s ease;
  border: 1px solid transparent;
  text-decoration: none;
  color: inherit;
  display: block;
}

.store-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-color);
  text-decoration: none;
  color: inherit;
}

.store-logo-container {
  width: 100px;
  height: 100px;
  margin: 0 auto 1.5rem;
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
}

.store-logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.store-card h5 {
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.store-card p {
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.store-badge {
  display: inline-block;
  background: var(--primary-gradient);
  color: white;
  padding: 0.375rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
}

/* =====================================================
   FEATURES SECTION
   ===================================================== */

.features-section {
  padding: 5rem 0;
  background: white;
  position: relative;
}

.features-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--primary-color), transparent);
}

.feature-card {
  text-align: center;
  padding: 2rem;
  height: 100%;
  position: relative;
}

.feature-icon-container {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background: var(--primary-gradient);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: all 0.3s ease;
}

.feature-card:hover .feature-icon-container {
  transform: rotate(-5deg) scale(1.1);
}

.feature-icon {
  font-size: 2rem;
  color: white;
}

.feature-card h4 {
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.feature-card p {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* =====================================================
   CTA SECTION
   ===================================================== */

.cta-section {
  padding: 5rem 0;
  background: var(--bg-light);
}

.cta-container {
  background: var(--primary-gradient);
  border-radius: var(--radius-xl);
  padding: 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-container::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 2px, transparent 2px);
  background-size: 40px 40px;
  animation: moveGrid 15s linear infinite;
}

.cta-content {
  position: relative;
  z-index: 2;
}

.cta-title {
  color: white;
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.cta-text {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.25rem;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

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

.btn-primary-custom {
  background: white;
  color: var(--primary-color);
  padding: 1rem 2.5rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.btn-primary-custom:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
  color: var(--primary-color);
  text-decoration: none;
}

.btn-secondary-custom {
  background: transparent;
  color: white;
  padding: 1rem 2.5rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  border: 2px solid white;
  cursor: pointer;
  font-size: 1rem;
}

.btn-secondary-custom:hover {
  background: white;
  color: var(--primary-color);
  transform: translateY(-2px);
  text-decoration: none;
}

/* =====================================================
   UTILITIES
   ===================================================== */

.text-gradient {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hover-lift {
  transition: transform 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-5px);
}

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

@media (max-width: 768px) {
  .hero-section {
    padding: 3rem 0;
  }
  
  .search-section {
    margin: -2rem 1rem 2rem;
    padding: 2rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .cta-container {
    padding: 3rem 2rem;
  }
  
  .cta-title {
    font-size: 2rem;
  }
}

@media (max-width: 576px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .search-input {
    font-size: 1rem;
    padding: 1rem 3.5rem 1rem 1rem;
  }
  
  .search-button {
    padding: 0.5rem 1rem;
  }
  
  .btn-primary-custom,
  .btn-secondary-custom {
    padding: 0.75rem 2rem;
    font-size: 0.875rem;
  }
}