/* Variables CSS para personalización fácil */
:root {
  /* Colores principales */
  --color-primario: #26baa5;
  --color-secundario: #375F7A;
  --color-primario-claro: #37cbb5;
  --color-secundario-claro: #4a7795;
  
  /* Gradientes */
  --gradiente-principal: linear-gradient(135deg, var(--color-primario) 0%, var(--color-primario-claro) 100%);
  --gradiente-secundario: linear-gradient(135deg, var(--color-secundario) 0%, var(--color-secundario-claro) 100%);
  --gradiente-fondo: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  
  /* Sombras */
  --sombra-suave: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --sombra-media: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --sombra-fuerte: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  
  /* Transiciones */
  --transicion-rapida: all 0.2s ease-in-out;
  --transicion-normal: all 0.3s ease-in-out;
  --transicion-lenta: all 0.5s ease-in-out;
}

/* Reset y estilos base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  background: var(--gradiente-fondo);
  min-height: 100vh;
  color: #374151;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Loading Screen */
.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradiente-principal);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease-out;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(255, 255, 255, 0.2);
  border-left-color: var(--color-secundario);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Header */
.header {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 4rem 1.5rem;
}

.header-background {
  position: absolute;
  inset: 0;
  opacity: 0.1;
  background: var(--gradiente-principal);
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.1'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.header-content {
  position: relative;
  z-index: 10;
}

.logo-container {
  margin-bottom: 1.5rem;
}

.logo-circle {
  width: 15rem;
  height: 15rem;
  margin: 0 auto 1rem;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: var(--sombra-media);
  border: 4px solid white;
  background-color: #fff;
}

.logo-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.main-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  background: var(--gradiente-principal);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.main-subtitle {
  font-size: 1.25rem;
  color: #6b7280;
  max-width: 32rem;
  margin: 0 auto 2rem;
  line-height: 1.6;
}

.header-decoration {
  width: 5rem;
  height: 0.25rem;
  background: var(--gradiente-secundario);
  border-radius: 0.125rem;
  margin: 0 auto;
}

/* Contact Section */
.contact-section {
  padding: 4rem 0;
  background: white;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 3rem;
  background: var(--gradiente-principal);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  max-width: 4rem;
  margin: 0 auto;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  background: #f9fafb;
  border-radius: 0.75rem;
  transition: var(--transicion-normal);
  box-shadow: var(--sombra-suave);
}

.contact-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--sombra-media);
}

.contact-icon {
  font-size: 1.5rem;
  color: var(--color-primario);
  background: var(--gradiente-principal);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.contact-details h3 {
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: #374151;
}

.contact-link {
  color: var(--color-primario);
  text-decoration: none;
  transition: var(--transicion-rapida);
}

.contact-link:hover {
  color: var(--color-primario-claro);
  text-decoration: underline;
}

.social-section {
  text-align: center;
}

.social-section h3 {
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: #374151;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  background: var(--gradiente-principal);
  color: white;
  border-radius: 50%;
  text-decoration: none;
  transition: var(--transicion-normal);
  box-shadow: var(--sombra-suave);
}

.social-link:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: var(--sombra-media);
}

.social-link i {
  font-size: 1.25rem;
}

/* Products Section */
.products-section {
  padding: 4rem 0;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.product-card {
  background: white;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: var(--sombra-suave);
  border: 1px solid #e5e7eb;
  transition: var(--transicion-normal);
  position: relative;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--sombra-fuerte);
}

.product-image-container {
  position: relative;
  overflow: hidden;
}

.product-image {
  width: 100%;
  height: 12rem;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.product-card:hover .product-image {
  transform: scale(1.05);
}

.product-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.2), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.product-card:hover .product-image-overlay {
  opacity: 1;
}

.product-content {
  padding: 1.5rem;
}

.product-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #374151;
}

.product-description {
  color: #6b7280;
  font-size: 0.875rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.product-price {
  font-size: 1.5rem;
  font-weight: 700;
  background: var(--gradiente-secundario);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.btn-primary {
  background: var(--gradiente-principal);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  border: none;
  font-weight: 500;
  transition: var(--transicion-normal);
  box-shadow: var(--sombra-suave);
  cursor: pointer;
  font-size: 0.875rem;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--sombra-media);
}



/* 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;
}

/* Media Queries - Responsive Design */
@media (min-width: 768px) {
  .main-title {
    font-size: 4rem;
  }
  
  .main-subtitle {
    font-size: 1.5rem;
  }
  
  .contact-grid {
    grid-template-columns: 1fr 1fr;
    max-width: none;
  }
  
  .contact-info {
    flex-direction: row;
    gap: 1rem;
  }
  
  /* .footer-grid {
    grid-template-columns: 1fr 2fr;
  } */
  
  /* .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  } */
}

@media (min-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Efectos especiales */
.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.7s ease;
  pointer-events: none;
}

.product-card:hover::before {
  left: 100%;
}