/* Paleta clara y profesional con acentos coloridos */
:root{
  --brand: #6f42c1;          /* Violeta profesional */
  --brand-2: #00bcd4;        /* Cian vibrante */
  --brand-3: #ff6f61;        /* Coral elegante */
  --brand-soft: #f3ecff;     /* Fondo suave */
  --text: #212529;
  --gray-100: #f8f9fa;
  --gray-200: #e9ecef;
}

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

body{ 
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
}

/* ============ NAVBAR ============ */
.navbar {
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.navbar-brand {
  font-size: 1.5rem;
  letter-spacing: -0.5px;
  transition: all 0.3s ease;
}

.navbar-brand:hover {
  transform: translateY(-2px);
}

.logo-text {
  background: linear-gradient(135deg, var(--brand), var(--brand-2), var(--brand-3));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradient-shift 3s ease infinite;
  background-size: 200% 200%;
}

@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.nav-link-custom {
  position: relative;
  font-weight: 500;
  color: var(--text);
  transition: all 0.3s ease;
  padding: 0.5rem 1rem !important;
}

.nav-link-custom:hover {
  color: var(--brand);
}

.nav-link-custom::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  transition: width 0.3s ease;
}

.nav-link-custom:hover::after,
.nav-link-custom.active::after {
  width: 80%;
}

/* ============ MARCA Y BOTONES ============ */
.brand-gradient{
  background: linear-gradient(90deg, var(--brand), var(--brand-2), var(--brand-3));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.btn-brand{
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  border: 0;
  color: #fff;
  box-shadow: 0 4px 15px rgba(111,66,193,.3);
  font-weight: 600;
  padding: 0.6rem 1.5rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-brand::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.5s ease;
}

.btn-brand:hover::before {
  left: 100%;
}

.btn-brand:hover{
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(111,66,193,.4);
  color: #fff;
}

.btn-brand:active {
  transform: translateY(0);
}

.btn-outline-brand{
  border: 2px solid var(--brand);
  color: var(--brand);
  font-weight: 600;
  padding: 0.5rem 1.5rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  background: transparent;
}

.btn-outline-brand:hover{
  background: var(--brand);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(111,66,193,.3);
}

.text-bg-brand-soft{
  background-color: var(--brand-soft) !important;
  color: var(--brand);
}

.bg-brand-soft{
  background-color: var(--brand-soft);
}

.text-brand {
  color: var(--brand);
}

.link-brand{
  color: var(--brand);
  transition: all 0.3s ease;
}

.link-brand:hover{
  color: var(--brand-2);
  transform: translateX(3px);
}

/* ============ HERO / CARRUSEL ============ */
.hero .hero-slide{
  position: relative;
  min-height: 70vh;
  background-position: center;
  background-size: cover;
  display: flex;
  align-items: center;
}

.hero .overlay{
  position: absolute; 
  inset: 0;
  background: linear-gradient(135deg, rgba(111,66,193,.6), rgba(0,188,212,.4));
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-color: rgba(111,66,193,.8);
  border-radius: 50%;
  padding: 2rem;
}

/* ============ SECCIONES ============ */
.section-header {
  margin-bottom: 3rem;
}

.section-header .badge {
  font-size: 0.85rem;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: 600;
}

/* ============ CARDS DE PRODUCTOS ============ */
.card{
  border-radius: 16px;
  border: none;
  transition: all 0.3s ease;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0,0,0,.15) !important;
}

.card-img-top{
  aspect-ratio: 4/5;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.card:hover .card-img-top {
  transform: scale(1.05);
}

.product-card-featured {
  position: relative;
}

.product-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: white;
  padding: 0.4rem 0.9rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  z-index: 1;
  box-shadow: 0 4px 10px rgba(0,0,0,.2);
}

/* ============ ABOUT SECTION ============ */
.about-image-wrapper {
  position: relative;
}

.about-decoration {
  position: absolute;
  top: -20px;
  right: -20px;
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, var(--brand-2), var(--brand-3));
  border-radius: 50%;
  opacity: 0.2;
  z-index: -1;
}

.feature-box {
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid var(--gray-200);
}

.feature-box:hover {
  background: var(--brand-soft) !important;
  transform: translateY(-5px);
  border-color: var(--brand);
}

/* ============ FOOTER ============ */
.footer-modern {
  background: linear-gradient(to bottom, #ffffff, var(--gray-100));
}

.footer-links {
  margin: 0;
  padding: 0;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  display: inline-block;
}

.footer-links a:hover {
  color: var(--brand);
  transform: translateX(5px);
}

.footer-contact {
  margin: 0;
  padding: 0;
}

.footer-contact li {
  display: flex;
  align-items: start;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 1.2rem;
}

.social-link:hover {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: white;
  transform: translateY(-5px) rotate(5deg);
  box-shadow: 0 5px 15px rgba(111,66,193,.3);
}

/* ============ UTILIDADES ============ */
.rounded-4 { 
  border-radius: 1rem !important; 
}

.shadow-sm { 
  box-shadow: 0 .125rem .5rem rgba(0,0,0,.08) !important; 
}

.shadow-lg {
  box-shadow: 0 1rem 3rem rgba(0,0,0,.175) !important;
}

/* ============ ANIMACIONES ============ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 768px) {
  .hero .hero-slide {
    min-height: 50vh;
  }
  
  .navbar-brand {
    font-size: 1.3rem;
  }
  
  .display-4 {
    font-size: 2rem;
  }
  
  .display-6 {
    font-size: 1.5rem;
  }
}

/* ============ BENEFICIOS ============ */
.benefit-card {
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.benefit-card:hover {
  transform: translateY(-10px);
  border-color: var(--brand);
  box-shadow: 0 15px 35px rgba(111,66,193,.2) !important;
}

.benefit-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--brand-soft), #fff);
  border-radius: 50%;
  color: var(--brand);
  transition: all 0.3s ease;
}

.benefit-card:hover .benefit-icon {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: white;
  transform: scale(1.1) rotate(5deg);
}

/* ============ TESTIMONIOS ============ */
.testimonial-card {
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  border-color: var(--brand-soft);
  box-shadow: 0 10px 30px rgba(0,0,0,.1);
}

.testimonial-text {
  font-style: italic;
  color: var(--text);
  line-height: 1.7;
}

.stars i {
  font-size: 0.9rem;
}

/* ============ NEWSLETTER ============ */
.newsletter-section {
  background: linear-gradient(135deg, var(--brand), var(--brand-2), var(--brand-3));
  position: relative;
  overflow: hidden;
}

.newsletter-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  animation: float 8s ease-in-out infinite;
}

.newsletter-section::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -5%;
  width: 400px;
  height: 400px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
  animation: float 10s ease-in-out infinite reverse;
}

.newsletter-form .form-control {
  border: none;
  padding: 1rem 1.5rem;
  border-radius: 50px 0 0 50px;
}

.newsletter-form .btn {
  border-radius: 0 50px 50px 0;
  transition: all 0.3s ease;
}

.newsletter-form .btn:hover {
  transform: scale(1.05);
  box-shadow: 0 5px 20px rgba(0,0,0,.2);
}

/* ============ SCROLL TO TOP BUTTON ============ */
.scroll-top-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(111,66,193,.3);
}

.scroll-top-btn.show {
  opacity: 1;
  visibility: visible;
}

.scroll-top-btn:hover {
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 6px 25px rgba(111,66,193,.5);
}

/* ============ PRELOADER ============ */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: white;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease;
}

.preloader-content {
  text-align: center;
}

.spinner {
  width: 60px;
  height: 60px;
  margin: 0 auto;
  border: 4px solid var(--brand-soft);
  border-top: 4px solid var(--brand);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ============ CAROUSEL INDICATORS ============ */
.carousel-indicators button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255,255,255,0.5);
  border: 2px solid white;
  transition: all 0.3s ease;
}

.carousel-indicators button.active {
  background-color: white;
  transform: scale(1.3);
}

.carousel-indicators button:hover {
  background-color: rgba(255,255,255,0.8);
}

