/*
Theme Name: XReformer
Description: Tema personalizado para XReformer - Equipamiento de Pilates. Convertido desde Next.js manteniendo el diseño original.
Author: Carolina
Version: 1.0
Text Domain: xreformer
*/

/* Reset y base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --font-inter: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-oswald: 'Oswald', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --color-bg: #FAFAFA;
  --color-fg: #0A0A0A;
  --color-muted: #6B7280;
  --color-accent: #000000;
}

body {
  font-family: var(--font-inter);
  background-color: var(--color-bg);
  color: var(--color-fg);
  line-height: 1.6;
  font-feature-settings: "rlig" 1, "calt" 1;
}

a {
  text-decoration: none;
  text-underline-offset: 4px;
  color: inherit;
}

a:hover {
  text-decoration: underline;
}

/* Header Styles */
.site-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: white;
  position: relative;
  z-index: 1000;
}

.site-header .container {
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
  padding: 2.5rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.site-logo img {
  height: 100px;
  width: auto;
  max-width: 600px;
  object-fit: contain;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  transition: transform 0.3s ease;
}

.site-logo:hover img {
  transform: scale(1.05);
}

.main-navigation {
  display: flex;
  gap: 2rem;
  font-size: 0.875rem;
  color: rgba(0, 0, 0, 0.8);
  font-weight: 500;
}

.main-navigation a:hover {
  color: #000;
}

/* Hero Styles */
.hero-section {
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  width: 100vw;
}

.hero-image {
  height: 68vh;
  min-height: 460px;
  width: 100vw;
  background-size: cover;
  background-position: center;
  position: relative;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.2);
  z-index: 10;
}

.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
}

.hero-text {
  text-align: center;
  padding: 0 1.5rem;
  max-width: 56rem;
}

.hero-title {
  font-family: var(--font-oswald);
  font-size: 2.5rem;
  font-weight: bold;
  color: white;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.hero-subtitle {
  margin-top: 2rem;
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 300;
}

.hero-buttons {
  margin-top: 2rem;
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-direction: row;
  flex-wrap: wrap;
}

.hero-button {
  padding: 0.75rem 2rem;
  font-size: 1.125rem;
  font-weight: 500;
  transition: all 0.2s ease;
  text-decoration: none !important;
}

.hero-button.primary {
  background: white;
  color: black;
}

.hero-button.primary:hover {
  background: #f3f4f6;
}

.hero-button.secondary {
  border: 2px solid white;
  color: white;
}

.hero-button.secondary:hover {
  background: white;
  color: black;
}

/* Main Content */
.main-content {
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
  padding: 0 1rem;
}

/* Categories Section */
.categories-section {
  padding: 6rem 0;
}

.categories-title {
  font-family: var(--font-oswald);
  font-size: 3rem;
  font-weight: bold;
  margin-bottom: 4rem;
  text-align: center;
}

.categories-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

.category-card {
  display: block;
  overflow: hidden;
  background: white;
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  text-decoration: none !important;
}

.category-card:hover {
  box-shadow: 0 25px 25px rgba(0, 0, 0, 0.15);
  transform: translateY(-0.5rem);
}

.category-image {
  position: relative;
  aspect-ratio: 1;
  background: #f9fafb;
  overflow: hidden;
}

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

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

.category-info {
  padding: 2rem;
  background: black;
}

.category-name {
  color: white;
  font-size: 1.25rem;
  font-weight: 500;
  text-align: center;
}

/* Footer */
.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: black;
}

.site-footer .container {
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
  padding: 2.5rem 1rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
}

/* Responsive */
@media (min-width: 640px) {
  .hero-buttons {
    flex-direction: row;
  }
  
  .hero-title {
    font-size: 4.5rem;
  }
}

@media (min-width: 768px) {
  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .hero-title {
    font-size: 6rem;
  }
}

@media (min-width: 1024px) {
  .categories-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .hero-title {
    font-size: 8rem;
  }
}

/* Botones de solicitar información */
.request-info-btn,
.request-info-btn-single {
  background: #000 !important;
  color: white !important;
  padding: 12px 24px;
  text-decoration: none;
  border-radius: 4px;
  display: inline-block;
  font-weight: 500;
  transition: all 0.3s ease;
}

.request-info-btn:hover,
.request-info-btn-single:hover {
  background: #333 !important;
  transform: translateY(-2px);
}

/* Páginas generales */
.page-content {
  max-width: 1280px;
  margin: 0 auto;
  padding: 4rem 1rem;
}

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

.page-title {
  font-family: var(--font-oswald);
  font-size: 3rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

.page-content-text {
  font-size: 1.125rem;
  line-height: 1.8;
  max-width: 800px;
  margin: 0 auto;
}

/* Category placeholder styles */
.category-placeholder {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}

.category-placeholder span {
  font-size: 3rem;
  font-weight: bold;
  color: white;
  text-transform: uppercase;
}

.no-categories {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem;
  background: #f9fafb;
  border-radius: 12px;
  border: 2px dashed #d1d5db;
}

.no-categories p {
  margin-bottom: 1rem;
  color: #6b7280;
}

.btn-primary {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: #6366f1;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 500;
  transition: background 0.2s;
}

.btn-primary:hover {
  background: #4f46e5;
  color: white;
}

/* Página de contacto */
.contact-page {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

.page-header-section {
  text-align: center;
  padding: 4rem 0 2rem;
}

.page-main-title {
  font-family: var(--font-oswald);
  font-size: 3rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

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

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin: 3rem 0;
}

.contact-info h2,
.contact-form-section h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 2rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 2rem;
}

.contact-icon {
  width: 3rem;
  height: 3rem;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.contact-details h3 {
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.contact-details a {
  color: var(--color-muted);
  transition: color 0.2s ease;
}

.contact-details a:hover {
  color: var(--color-fg);
}

.whatsapp-box {
  background: #dcfce7;
  padding: 1.5rem;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.whatsapp-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #16a34a;
  color: white;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none !important;
  transition: background 0.2s ease;
}

.whatsapp-btn:hover {
  background: #15803d;
}

.form-container {
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.product-request-info {
  background: #fef3c7;
  padding: 1rem;
  border-radius: 6px;
  margin-bottom: 1.5rem;
  border: 1px solid #f59e0b;
}

.additional-info {
  background: rgba(0, 0, 0, 0.02);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  margin: 4rem auto;
  max-width: 800px;
}

.additional-info h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.additional-info p {
  color: var(--color-muted);
  margin-bottom: 1.5rem;
}

.additional-buttons {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-secondary {
  padding: 0.75rem 1.5rem;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 6px;
  text-decoration: none !important;
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  background: rgba(0, 0, 0, 0.05);
}

.btn-primary {
  padding: 0.75rem 1.5rem;
  background: black;
  color: white;
  border-radius: 6px;
  text-decoration: none !important;
  transition: all 0.2s ease;
}

.btn-primary:hover {
  background: #333;
}

@media (min-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .additional-buttons {
    flex-direction: row;
  }
}