/**
 * Front-page.css - Estilos para la página de inicio
 * 
 * Contiene todos los estilos específicos para la página principal del sitio
 */

/* Sección Hero con video de fondo */
.hero-section {
  position: relative;
  padding: 120px 0 80px;
  overflow: hidden;
  border-radius: 0 0 30px 30px;
  box-shadow: 0 5px 20px rgba(61, 90, 254, 0.1);
}

.hero-video-section {
  padding: 160px 0 120px; /* Más espacio para mejor visualización del vídeo */
  background-color: transparent; /* Quitamos el fondo para ver el video */
  min-height: 85vh; /* Altura mínima para asegurar espacio visual */
  display: flex;
  align-items: center;
  position: relative;
  z-index: 1;
}

.video-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: -2;
}

.background-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translateX(-50%) translateY(-50%);
  object-fit: cover;
  z-index: -1;
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(61, 90, 254, 0.8) 0%, rgba(26, 70, 175, 0.85) 100%);
  z-index: -1;
  opacity: 0.85;
}

.hero-video-section::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 60px;
  background: linear-gradient(to top, #fff, transparent);
  z-index: -1;
}

.hero-section::before {
  content: none; /* Eliminamos el patrón de fondo para no interferir con el video */
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}

.hero-text {
  flex: 1;
  max-width: 600px;
  padding-right: 40px;
  animation: fadeInLeft 1s ease-out;
}

/* En el hero con video, cambiamos los colores del texto para mejor contraste */
.hero-video-section .hero-title {
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  color: #1a46af;
  margin-bottom: 20px;
  line-height: 1.2;
  letter-spacing: -0.5px;
}

.hero-video-section .hero-title span {
  color: #f8faff;
  position: relative;
}

.hero-title span {
  color: #4a7dfa;
  position: relative;
}

.hero-title span::after {
  content: "";
  position: absolute;
  bottom: 5px;
  left: 0;
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.3);
  z-index: -1;
  border-radius: 4px;
}

.hero-video-section .hero-description {
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.2);
}

.hero-description {
  font-size: 1.2rem;
  line-height: 1.6;
  color: #4a5568;
  margin-bottom: 30px;
}

/* Ajustamos los botones para el hero con video */
.hero-video-section .btn-primary {
  background: #ffffff;
  color: #1a46af;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.hero-video-section .btn-primary:hover {
  background: #f8faff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.hero-video-section .btn-secondary {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.6);
}

.hero-video-section .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.3);
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 20px;
}

.btn-primary {
  padding: 12px 28px;
  background: linear-gradient(135deg, #4a7dfa 0%, #1a46af 100%);
  color: #fff;
  font-weight: 600;
  border-radius: 30px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(26, 70, 175, 0.25);
  display: inline-flex;
  align-items: center;
  font-size: 1rem;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(26, 70, 175, 0.35);
}

.btn-primary i {
  margin-left: 8px;
  transition: transform 0.3s ease;
}

.btn-primary:hover i {
  transform: translateX(4px);
}

.btn-secondary {
  padding: 12px 28px;
  background: rgba(74, 125, 250, 0.1);
  color: #1a46af;
  font-weight: 600;
  border-radius: 30px;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(74, 125, 250, 0.3);
  font-size: 1rem;
}

.btn-secondary:hover {
  background: rgba(74, 125, 250, 0.2);
  transform: translateY(-3px);
}

.btn-secondary i {
  margin-left: 8px;
  transition: transform 0.3s ease;
}

.btn-secondary:hover i {
  transform: translateX(4px);
}

/* Ajustamos la imagen hero para que tenga sombra más fuerte sobre el video */
.hero-video-section .hero-image {
  position: relative;
  z-index: 3;
}

.hero-video-section .hero-image img {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  border: 4px solid rgba(255, 255, 255, 0.8);
}

.hero-image {
  flex: 1;
  max-width: 500px;
  position: relative;
  animation: fadeInRight 1s ease-out;
}

.hero-image img {
  width: 100%;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(61, 90, 254, 0.2);
  transition: all 0.5s ease;
}

.hero-image:hover img {
  transform: translateY(-10px);
  box-shadow: 0 30px 50px rgba(61, 90, 254, 0.3);
}

.hero-badge {
  position: absolute;
  top: -20px;
  right: -20px;
  background: #fff;
  color: #1a46af;
  padding: 10px 20px;
  border-radius: 30px;
  font-weight: 700;
  box-shadow: 0 5px 15px rgba(61, 90, 254, 0.2);
  display: flex;
  align-items: center;
  gap: 8px;
  animation: pulse 2s infinite;
}

.hero-badge i {
  color: #4a7dfa;
}

/* Sección de características */
.features-section {
  padding: 80px 0;
  background-color: #fff;
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
}

.section-title h2 {
  font-size: 2.5rem;
  color: #1a46af;
  margin-bottom: 15px;
  font-weight: 700;
}

.section-title p {
  color: #4a5568;
  max-width: 700px;
  margin: 0 auto;
  font-size: 1.1rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.feature-card {
  background: #fff;
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 5px 20px rgba(61, 90, 254, 0.08);
  transition: all 0.3s ease;
  border: 1px solid rgba(74, 125, 250, 0.1);
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(61, 90, 254, 0.15);
  border-color: rgba(74, 125, 250, 0.3);
}

.feature-icon {
  width: 70px;
  height: 70px;
  background: rgba(74, 125, 250, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: #4a7dfa;
  font-size: 28px;
  transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
  background: linear-gradient(135deg, #4a7dfa 0%, #1a46af 100%);
  color: #fff;
  transform: scale(1.1);
}

.feature-title {
  font-size: 1.3rem;
  color: #1a46af;
  margin-bottom: 15px;
  font-weight: 700;
}

.feature-description {
  color: #4a5568;
  line-height: 1.6;
}

/* Sección de productos destacados */
.products-section {
  padding: 80px 0;
  background: linear-gradient(135deg, #f8faff 0%, #e6f0ff 100%);
  border-radius: 30px;
  margin: 0 20px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 25px;
  margin-top: 40px;
}

.product-card {
  background: #fff;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(61, 90, 254, 0.1);
  transition: all 0.3s ease;
  position: relative;
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(61, 90, 254, 0.2);
}

.product-image {
  height: 220px;
  width: 100%;
  aspect-ratio: 1/1;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f6f8ff;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 16px;
  transition: transform 0.5s cubic-bezier(.4,0,.2,1), box-shadow 0.3s cubic-bezier(.4,0,.2,1);
  box-shadow: 0 4px 16px rgba(61, 90, 254, 0.08);
}

.product-card:hover .product-image img {
  transform: scale(1.08);
  box-shadow: 0 10px 30px rgba(61, 90, 254, 0.18);
}

.product-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #4a7dfa;
  color: #fff;
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.product-info {
  padding: 20px;
}

.product-category {
  color: #4a7dfa;
  font-size: 0.9rem;
  margin-bottom: 5px;
  display: block;
}

.product-title {
  font-size: 1.2rem;
  color: #1a46af;
  margin-bottom: 10px;
  font-weight: 700;
  line-height: 1.4;
}

.product-price {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 15px;
}

.price {
  font-size: 1.3rem;
  font-weight: 700;
  color: #1a46af;
}

.old-price {
  text-decoration: line-through;
  color: #a0aec0;
  margin-left: 8px;
  font-size: 0.9rem;
}

.woocommerce-notices-wrapper {
  display: none !important;
}

.product-card {
  position: relative;
  overflow: hidden;
}

.cart-buttons {
  margin-top: 12px;
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
}

.add_to_cart_button {
  background: linear-gradient(135deg, #4a7dfa 0%, #1a46af 100%) !important;
  color: #fff !important;
  padding: 12px 24px !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  border: none !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  box-shadow: 0 2px 8px rgba(74, 125, 250, 0.15) !important;
  text-transform: none !important;
  font-size: 15px !important;
  line-height: 1.4 !important;
  cursor: pointer !important;
  position: relative !important;
  overflow: hidden !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  max-width: 200px !important;
}

.add_to_cart_button:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 12px rgba(74, 125, 250, 0.2) !important;
  background: linear-gradient(135deg, #5a87fa 0%, #2a56bf 100%) !important;
}

.add_to_cart_button:active {
  transform: translateY(0) !important;
  box-shadow: 0 2px 4px rgba(74, 125, 250, 0.1) !important;
}

/* Estado de carga */
.add_to_cart_button.loading {
  opacity: 0.8 !important;
  cursor: wait !important;
}

.add_to_cart_button.loading::after {
  content: "" !important;
  position: absolute !important;
  width: 20px !important;
  height: 20px !important;
  border: 2px solid rgba(255, 255, 255, 0.3) !important;
  border-radius: 50% !important;
  border-top-color: #fff !important;
  animation: spin 0.8s linear infinite !important;
  margin-left: 8px !important;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Efecto ripple al hacer clic */
.add_to_cart_button::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s ease-out, height 0.6s ease-out;
}

.add_to_cart_button:active::before {
  width: 200%;
  height: 200%;
}

/* Ocultar botón Ver carrito */
.added_to_cart {
  display: none !important;
}

/* Responsive */
@media (max-width: 768px) {
  .add_to_cart_button {
    padding: 10px 20px !important;
    font-size: 14px !important;
    max-width: none !important;
  }
}

/* Bot flotante de confirmación */
.cart-bot-confirm {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translate(-50%, 40px);
  right: auto;
  background: linear-gradient(135deg, #4a7dfa 0%, #1a46af 100%);
  color: #fff;
  border-radius: 18px;
  box-shadow: 0 8px 32px rgba(61, 90, 254, 0.18);
  padding: 18px 32px;
  font-size: 1.1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 14px;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
}
.cart-bot-confirm.show {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}
.cart-bot-confirm i {
  font-size: 1.6rem;
  color: #fff;
}
@media (max-width: 600px) {
  .cart-bot-confirm {
    left: 50%;
    right: auto;
    bottom: 10px;
    padding: 14px 10px;
    font-size: 1rem;
    transform: translate(-50%, 40px);
  }
  .cart-bot-confirm.show {
    transform: translate(-50%, 0);
  }
}

/* Sección de testimonios */
.testimonials-section {
  padding: 80px 0;
  background-color: #fff;
}

.testimonials-slider {
  margin-top: 40px;
  padding: 20px 0;
}

.testimonial-card {
  background: #fff;
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 5px 20px rgba(61, 90, 254, 0.08);
  border: 1px solid rgba(74, 125, 250, 0.1);
  margin: 10px;
  transition: all 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(61, 90, 254, 0.15);
}

.testimonial-rating {
  color: #ffc107;
  font-size: 20px;
  margin-bottom: 15px;
}

.testimonial-content {
  color: #4a5568;
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 20px;
}

.testimonial-author {
  display: flex;
  align-items: center;
}

.author-image {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  overflow: hidden;
  margin-right: 15px;
}

.author-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-info h4 {
  color: #1a46af;
  margin: 0 0 5px;
  font-weight: 600;
}

.author-info p {
  color: #718096;
  margin: 0;
  font-size: 0.9rem;
}

/* Sección de llamada a la acción */
.cta-section {
  padding: 80px 0;
  background: linear-gradient(135deg, #1a46af 0%, #4a7dfa 100%);
  color: #fff;
  border-radius: 30px;
  margin: 20px;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../images/pattern.svg');
  background-size: cover;
  opacity: 0.1;
  z-index: 1;
}

.cta-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.cta-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.cta-description {
  font-size: 1.2rem;
  margin-bottom: 30px;
  opacity: 0.9;
}

.cta-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-white {
  padding: 12px 28px;
  background: #fff;
  color: #1a46af;
  font-weight: 600;
  border-radius: 30px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  display: inline-flex;
  align-items: center;
  font-size: 1rem;
}

.btn-white i {
  margin-left: 10px;
}

.btn-white:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.btn-outline {
  padding: 12px 28px;
  background: transparent;
  color: #fff;
  font-weight: 600;
  border-radius: 30px;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  border: 2px solid rgba(255, 255, 255, 0.5);
  font-size: 1rem;
}

.btn-outline i {
  margin-left: 10px;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-3px);
  border-color: #fff;
}

/* Animaciones */
@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Estilos responsivos */
@media (max-width: 991px) {
  .hero-section {
    padding: 80px 0 60px;
  }
  
  .hero-content {
    flex-direction: column;
    text-align: center;
  }
  
  .hero-text {
    padding-right: 0;
    margin-bottom: 40px;
    max-width: 100%;
  }
  
  .hero-buttons {
    justify-content: center;
  }
  
  .hero-title {
    font-size: 2.8rem;
  }
  
  .hero-image {
    max-width: 100%;
  }
  
  .features-grid,
  .products-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 767px) {
  .hero-title {
    font-size: 2.2rem;
  }
  
  .hero-description {
    font-size: 1rem;
  }
  
  .section-title h2 {
    font-size: 2rem;
  }
  
  .cta-title {
    font-size: 2rem;
  }
  
  .cta-description {
    font-size: 1rem;
  }
  
  .products-section,
  .cta-section {
    margin: 0;
    border-radius: 0;
  }
} 