/* 
========================================
GLOBAL DESIGN SYSTEM (AWWWARDS MODE - REFINED)
========================================
*/
:root {
  /* PALETA CROMÁTICA REFINADA */
  --color-bg: #fafafa; /* Fondo general más suave que blanco puro */
  --color-surface: #ffffff; /* Tarjetas y secciones blancas */
  --color-text-primary: #1a1a1a;
  --color-text-secondary: #555555;

  --color-accent-1: #f9a825; /* Naranja Vibrante */
  --color-accent-1-hover: #f57f17;
  --color-accent-2: #00bcd4; /* Turquesa */
  --color-accent-2-dark: #0097a7;
  --color-support: #ffc107; /* Mostaza */

  /* TIPOGRAFÍA */
  --font-heading: "Montserrat", sans-serif;
  --font-body: "Open Sans", sans-serif;

  /* ESPACIADO DE LUJO */
  --spacing-xs: 10px;
  --spacing-sm: 20px;
  --spacing-md: 40px;
  --spacing-lg: 80px;
  --spacing-xl: 120px;

  --container-width: 1280px;

  /* BORDES & FORMAS */
  --border-radius-sm: 8px;
  --border-radius-md: 16px;
  --border-radius-lg: 24px;
  --border-radius-pill: 50px;

  /* SOMBRAS & PROFUNDIDAD */
  --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.02);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 25px 50px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.12);

  /* EFECTOS */
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-blur: blur(12px);
  --transition-fast: all 0.2s ease;
  --transition-smooth: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

/* RESET & BASE */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  color: var(--color-text-secondary);
  background-color: var(--color-bg);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  color: var(--color-text-primary);
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

h1 {
  font-weight: 800;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
}
h2 {
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 3rem);
}
h3 {
  font-weight: 600;
  font-size: clamp(1.5rem, 3vw, 2rem);
}

p {
  margin-bottom: 1.5rem;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-fast);
}

/* UTILITIES */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section-padding {
  padding: var(--spacing-xl) 0;
}
.section-padding-sm {
  padding: var(--spacing-lg) 0;
}

.text-center {
  text-align: center;
}
.text-right {
  text-align: right;
}

.grid {
  display: grid;
  gap: var(--spacing-md);
}
.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}
.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.bg-white {
  background-color: var(--color-surface);
}
.bg-light {
  background-color: #f4f4f4;
}

/* COMPONENTS */

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 40px;
  background-color: var(--color-accent-1);
  color: var(--color-text-primary);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: var(--border-radius-pill);
  border: none;
  cursor: pointer;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0%;
  height: 100%;
  background-color: var(--color-accent-2);
  transition: var(--transition-smooth);
  z-index: -1;
}

.btn:hover {
  color: white;
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.btn:hover::before {
  width: 100%;
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--color-text-primary);
  color: var(--color-text-primary);
}

.btn-outline:hover {
  background: var(--color-text-primary);
  color: white;
}

/* Cards */
.card {
  background: var(--color-surface);
  border-radius: var(--border-radius-md);
  padding: var(--spacing-md);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
  border: 1px solid rgba(0, 0, 0, 0.03);
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
}

/* HEADER */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  padding: 20px 0;
  transition: var(--transition-smooth);
}

.nav-links {
  display: flex;
  gap: 40px;
  list-style: none;
}

.nav-links a {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--color-text-primary);
}

.nav-links a:hover {
  color: var(--color-accent-2);
}

.user-actions {
  display: flex;
  align-items: center;
}

.user-actions svg {
  width: 24px;
  height: 24px;
  margin-left: 24px;
  cursor: pointer;
  transition: var(--transition-fast);
  stroke: var(--color-text-primary);
  stroke-width: 2;
  fill: none;
}

.user-actions svg:hover {
  stroke: var(--color-accent-1);
  transform: scale(1.1);
}

/* HERO SECTION */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("https://images.unsplash.com/photo-1531206715517-5c0ba140b2b8?auto=format&fit=crop&q=80")
    center/cover no-repeat;
  z-index: -2;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(255, 255, 255, 0.7) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  z-index: -1;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 650px;
  animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* PRODUCT CARDS */
.product-card {
  background: var(--color-surface);
  border-radius: var(--border-radius-md);
  overflow: hidden;
  transition: var(--transition-smooth);
  position: relative;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.product-img-wrapper {
  position: relative;
  padding-top: 120%; /* Aspect Ratio Portrait */
  overflow: hidden;
  background: #f0f0f0;
}

.product-img-wrapper img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.product-card:hover .product-img-wrapper img {
  transform: scale(1.05);
}

.product-info {
  padding: 25px;
  text-align: center;
}

.product-price {
  color: var(--color-accent-1);
  font-weight: 700;
  font-size: 1.1rem;
  margin-top: 8px;
}

/* FOOTER */
footer {
  background-color: #111;
  color: white;
  padding-top: var(--spacing-xl);
  padding-bottom: var(--spacing-md);
}

.footer-col h4 {
  color: white;
  margin-bottom: 30px;
}
.footer-col a {
  color: #aaa;
  transition: var(--transition-fast);
}
.footer-col a:hover {
  color: var(--color-accent-1);
  padding-left: 5px;
}

/* SEPARATORS */
.template-separator {
  background: #222;
  color: #fff;
  padding: 20px;
  text-align: center;
  font-family: monospace;
  font-size: 1.2rem;
  margin: 0;
  border-bottom: 1px solid #444;
}
