/*
Theme Name: Tienda Fitness - Equipos Premium
Theme URI: https://tiendafitness.mx
Author: Tienda Fitness
Author URI: https://tiendafitness.mx
Description: Tema WordPress personalizado para Elementor Pro integrado con WooCommerce. Diseño moderno y dinámico para e-commerce de equipos de gimnasio.
Version: 1.0.0
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tienda-fitness
Domain Path: /languages
Requires at least: 5.9
Requires PHP: 7.4
Elementor: true
WC tested up to: 8.0
*/

/* ========================================
   TIENDA FITNESS - ESTILOS PRINCIPALES
   Diseño: Maximalismo Deportivo Dinámico
   ======================================== */

:root {
  /* Paleta de Colores */
  --primary-color: #0066FF;
  --primary-dark: #0052CC;
  --accent-color: #FF6B35;
  --accent-dark: #E55A24;
  --secondary-color: #00D4FF;
  --text-dark: #1A1A1A;
  --text-light: #666666;
  --background-light: #FFFFFF;
  --background-gray: #F5F5F5;
  --border-color: #E0E0E0;
  --success-color: #00C853;
  --warning-color: #FFA500;
  --danger-color: #FF3D00;

  /* Tipografía */
  --font-display: "Bebas Neue", "Arial Black", sans-serif;
  --font-heading: "Montserrat", sans-serif;
  --font-body: "Roboto", sans-serif;

  /* Espaciado */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-2xl: 4rem;

  /* Sombras */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.2);
  --shadow-xl: 0 12px 40px rgba(0, 0, 0, 0.25);

  /* Radio de bordes */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
}

/* ========================================
   RESET Y ESTILOS BASE
   ======================================== */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background-color: var(--background-light);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ========================================
   TIPOGRAFÍA
   ======================================== */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.5px;
  margin-bottom: var(--spacing-md);
}

h1 {
  font-size: clamp(2rem, 8vw, 4rem);
}

h2 {
  font-size: clamp(1.75rem, 6vw, 3rem);
}

h3 {
  font-size: clamp(1.5rem, 4vw, 2rem);
}

h4 {
  font-size: 1.25rem;
}

h5 {
  font-size: 1.1rem;
}

h6 {
  font-size: 1rem;
}

p {
  margin-bottom: var(--spacing-md);
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--primary-dark);
}

/* ========================================
   CONTENEDOR Y LAYOUT
   ======================================== */

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.container-fluid {
  width: 100%;
  padding: 0 var(--spacing-md);
}

/* ========================================
   HEADER Y NAVEGACIÓN
   ======================================== */

.site-header {
  background-color: var(--background-light);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.site-header-top {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: white;
  padding: var(--spacing-sm) 0;
  font-size: 0.875rem;
  font-weight: 600;
}

.site-header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--spacing-md) 0;
  gap: var(--spacing-lg);
}

.site-logo {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 700;
  font-size: 1.5rem;
}

.site-logo img {
  height: 50px;
  width: auto;
}

.site-logo:hover {
  color: var(--primary-color);
}

.site-nav {
  display: flex;
  gap: var(--spacing-lg);
  align-items: center;
}

.site-nav a {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: color 0.3s ease;
}

.site-nav a:hover {
  color: var(--accent-color);
}

/* ========================================
   FOOTER
   ======================================== */

.site-footer {
  background-color: var(--text-dark);
  color: white;
  padding: var(--spacing-2xl) 0 var(--spacing-lg);
  margin-top: var(--spacing-2xl);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-xl);
}

.footer-section h3 {
  color: white;
  margin-bottom: var(--spacing-md);
  font-size: 1.1rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: var(--spacing-sm);
}

.footer-section a {
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: var(--accent-color);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--spacing-lg);
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
}

/* ========================================
   BOTONES
   ======================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-xs);
  padding: var(--spacing-sm) var(--spacing-lg);
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-primary {
  background-color: var(--primary-color);
  color: white;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.btn-accent {
  background-color: var(--accent-color);
  color: white;
  box-shadow: var(--shadow-md);
}

.btn-accent:hover {
  background-color: var(--accent-dark);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

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

.btn-outline:hover {
  background-color: var(--primary-color);
  color: white;
}

/* ========================================
   TARJETAS
   ======================================== */

.card {
  background-color: var(--background-light);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
}

.card:hover {
  border-color: var(--primary-color);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.card-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.card:hover .card-image img {
  transform: scale(1.1);
}

.card-body {
  padding: var(--spacing-lg);
}

.card-title {
  font-family: var(--font-heading);
  font-weight: 600;
  margin-bottom: var(--spacing-sm);
}

.card-text {
  color: var(--text-light);
  font-size: 0.9rem;
}

/* ========================================
   PRODUCTOS WOOCOMMERCE
   ======================================== */

.woocommerce-loop-product__title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: var(--spacing-sm);
}

.woocommerce-loop-product__price {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--primary-color);
  font-weight: 700;
}

.woocommerce-loop-product__rating {
  margin-bottom: var(--spacing-sm);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: var(--spacing-lg);
}

.product-item {
  background-color: var(--background-light);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.3s ease;
}

.product-item:hover {
  border-color: var(--primary-color);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.product-image {
  width: 100%;
  height: 250px;
  overflow: hidden;
  background-color: var(--background-gray);
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.product-item:hover .product-image img {
  transform: scale(1.1);
}

.product-info {
  padding: var(--spacing-lg);
}

.product-category {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: var(--spacing-xs);
  font-weight: 600;
}

.product-title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: var(--spacing-sm);
  line-height: 1.4;
}

.product-price {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--primary-color);
  font-weight: 700;
  margin-bottom: var(--spacing-sm);
}

.product-rating {
  font-size: 0.875rem;
  margin-bottom: var(--spacing-md);
}

.product-actions {
  display: flex;
  gap: var(--spacing-sm);
}

.product-actions .btn {
  flex: 1;
  padding: var(--spacing-sm);
  font-size: 0.75rem;
}

/* ========================================
   FORMULARIOS
   ======================================== */

.form-group {
  margin-bottom: var(--spacing-md);
}

.form-label {
  display: block;
  margin-bottom: var(--spacing-xs);
  font-weight: 600;
  font-family: var(--font-heading);
  font-size: 0.875rem;
  text-transform: uppercase;
}

.form-control {
  width: 100%;
  padding: var(--spacing-sm);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1);
}

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

@media (max-width: 768px) {
  .site-header-main {
    flex-direction: column;
    gap: var(--spacing-md);
  }

  .site-nav {
    flex-direction: column;
    width: 100%;
    gap: var(--spacing-sm);
  }

  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 var(--spacing-sm);
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .btn {
    width: 100%;
  }
}
