/* ========================================
   VARIABLES Y RESET
======================================== */
:root {
  --primary-color: #fca311;
  --primary-dark: #f59e0b;
  --secondary-color: #000000;
  --text-light: #ffffff;
  --text-dark: #1a1a1a;
  --text-gray: #6b7280;
  --bg-light: #ffffff;
  --bg-gray: #f9fafb;
  --border-color: #e5e7eb;
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --border-radius: 8px;
  --transition: all 0.3s ease;
  --header-height: 70px;
  --max-width: 1200px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background: var(--bg-light);
}

/* ========================================
   TIPOGRAFÍA
======================================== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 1rem;
}

h1 {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 2rem;
}

h2 {
  font-size: 1.875rem;
  margin-bottom: 1.5rem;
}

h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

p {
  font-size: 1.125rem;
  line-height: 1.75;
  margin-bottom: 1.25rem;
  color: var(--text-gray);
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

/* ========================================
   HEADER
======================================== */
.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  height: var(--header-height);
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 1000;
  transition: var(--transition);
}

.site-header.scrolled {
  background: rgba(0, 0, 0, 0.98);
  box-shadow: var(--shadow-md);
}

.header-container {
  max-width: var(--max-width);
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
}

.header-logo img {
  height: 45px;
  width: auto;
  transition: var(--transition);
}

.header-logo img:hover {
  transform: scale(1.05);
}

.site-nav {
  display: flex;
  align-items: center;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  color: var(--text-light);
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.nav-links a:hover {
  background: rgba(252, 163, 17, 0.1);
  color: var(--primary-color);
  text-decoration: none;
  transform: translateY(-2px);
}

/* ========================================
   MENÚ HAMBURGUESA
======================================== */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: var(--border-radius);
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: var(--text-light);
  border-radius: 2px;
  transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* ========================================
   MAIN CONTENT
======================================== */
.site-content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: calc(var(--header-height) + 2rem) 1.5rem 2rem;
  min-height: calc(100vh - var(--header-height));
}

/* ========================================
   BANNERS
======================================== */
.banner {
  width: 100%;
  margin: 2rem auto;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  text-align: center;
}

.banner img {
  width: 100%;
  height: auto;
  max-height: 400px;
  object-fit: cover;
  transition: var(--transition);
}

.banner:hover img {
  transform: scale(1.02);
}

/* ========================================
   ARTÍCULOS
======================================== */
.main-article {
  background: var(--bg-light);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
  padding: 2.5rem;
  margin-bottom: 2rem;
  border: 1px solid var(--border-color);
  transition: var(--transition);
  position: relative;
}

.main-article::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(to bottom, var(--primary-color), var(--primary-dark));
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

.main-article:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.featured-image {
  margin: 2rem 0;
  text-align: center;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.featured-image img {
  width: 100%;
  height: auto;
  max-height: 500px;
  object-fit: cover;
  transition: var(--transition);
}

.featured-image:hover img {
  transform: scale(1.05);
}

.article-content {
  margin-top: 2rem;
}

.article-content h2 {
  color: var(--text-dark);
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.article-content h3 {
  color: var(--text-dark);
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.article-content ul, .article-content ol {
  margin: 1rem 0;
  padding-left: 2rem;
}

.article-content li {
  margin-bottom: 0.5rem;
}

/* ========================================
   CARRUSELES
======================================== */
.carousel-container {
  background: linear-gradient(135deg, var(--bg-light), var(--bg-gray));
  border-radius: var(--border-radius);
  padding: 2rem;
  margin: 2rem auto;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
}

.carousel-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
}

.carousel-title {
  text-align: center;
  margin-bottom: 2rem;
  color: var(--text-dark);
  font-size: 1.75rem;
  font-weight: 700;
}

.carousel-wrapper {
  position: relative;
  padding: 0 3rem;
}

.carousel {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 1rem 0;
}

.carousel::-webkit-scrollbar {
  display: none;
}

.carousel-item {
  flex: 0 0 280px;
  background: var(--bg-light);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  border: 1px solid var(--border-color);
  text-align: center;
}

.carousel-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
  border-color: var(--primary-color);
}

.carousel-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--border-radius);
  margin-bottom: 1rem;
  transition: var(--transition);
}

.carousel-item:hover img {
  transform: scale(1.05);
}

.carousel-item h3 {
  font-size: 1rem;
  margin-bottom: 1rem;
  color: var(--text-dark);
  line-height: 1.4;
}

.price {
  font-weight: 700;
  color: var(--primary-color);
  font-size: 1.1rem;
  margin: 0.5rem 0;
}

.carousel-btn {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: var(--text-light);
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.9rem;
  width: 100%;
}

.carousel-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
}

.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.7);
  color: var(--text-light);
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  cursor: pointer;
  font-size: 1.5rem;
  transition: var(--transition);
  z-index: 10;
}

.carousel-nav:hover {
  background: var(--primary-color);
  transform: translateY(-50%) scale(1.1);
}

.carousel-nav.prev {
  left: 0;
}

.carousel-nav.next {
  right: 0;
}

/* ========================================
   SECCIONES
======================================== */
.section-container {
  background: var(--bg-light);
  border-radius: var(--border-radius);
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.section-container:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.section-title {
  color: var(--primary-color);
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
  border-radius: 2px;
}

/* ========================================
   LISTAS DE DOS COLUMNAS
======================================== */
.two-columns {
  columns: 2;
  column-gap: 2rem;
  list-style: none;
}

.two-columns li {
  margin-bottom: 0.75rem;
  break-inside: avoid;
  padding: 0.5rem;
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.two-columns li:hover {
  background: var(--bg-gray);
  transform: translateX(5px);
}

.two-columns a {
  font-weight: 500;
  color: var(--text-dark);
  display: block;
  padding: 0.25rem 0;
}

.two-columns a:hover {
  color: var(--primary-color);
  text-decoration: none;
}

/* ========================================
   FOOTER
======================================== */
.site-footer {
  background: linear-gradient(135deg, var(--secondary-color), #1a1a1a);
  color: var(--text-light);
  padding: 3rem 1.5rem 2rem;
  margin-top: 4rem;
  position: relative;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
}

.footer-content {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section li {
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: rgba(255, 255, 255, 0.8);
  transition: var(--transition);
}

.footer-section a:hover {
  color: var(--primary-color);
  text-decoration: none;
}

.footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
  margin-bottom: 0.5rem;
  color: rgba(255, 255, 255, 0.7);
}

/* ========================================
   RESPONSIVE DESIGN
======================================== */
@media (max-width: 768px) {
  :root {
    --header-height: 60px;
  }
  
  .site-content {
    padding: calc(var(--header-height) + 1rem) 1rem 1rem;
  }
  
  .header-container {
    padding: 0 1rem;
  }
  
  .hamburger {
    display: flex;
  }
  
  .nav-links {
    position: fixed;
    top: var(--header-height);
    right: -100%;
    width: 280px;
    height: calc(100vh - var(--header-height));
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 2rem 1rem;
    gap: 1rem;
    transition: var(--transition);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .nav-links.nav-active {
    right: 0;
  }
  
  .nav-links a {
    width: 100%;
    padding: 1rem;
    border-radius: var(--border-radius);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .main-article {
    padding: 1.5rem;
  }
  
  .carousel-wrapper {
    padding: 0 1rem;
  }
  
  .carousel-item {
    flex: 0 0 220px;
  }
  
  .carousel-nav {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
  
  .two-columns {
    columns: 1;
  }
  
  .banner img {
    max-height: 250px;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  .carousel-title {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .carousel-item {
    flex: 0 0 200px;
    padding: 1rem;
  }
  
  .carousel-wrapper {
    padding: 0 0.5rem;
  }
  
  .section-container {
    padding: 1.5rem;
  }
  
  .main-article {
    padding: 1rem;
  }
  
  .banner img {
    max-height: 200px;
  }
  
  h1 {
    font-size: 1.75rem;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* ========================================
   UTILIDADES
======================================== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.loading {
  opacity: 0;
  transform: translateY(20px);
}

.loaded {
  opacity: 1;
  transform: translateY(0);
  transition: all 0.6s ease;
}

/* ========================================
   ANIMACIONES
======================================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeInUp 0.6s ease-out;
}

/* ========================================
   FOCUS Y ACCESIBILIDAD
======================================== */
*:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

button:focus,
a:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* ========================================
   PRINT STYLES
======================================== */
@media print {
  .site-header,
  .carousel-container,
  .banner,
  .site-footer {
    display: none;
  }
  
  .site-content {
    padding: 0;
    max-width: none;
  }
  
  .main-article {
    box-shadow: none;
    border: 1px solid #ccc;
  }
}