@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Inter:wght@300;400;500;600;700&family=Oswald:wght@400;600&display=swap');

:root {
  --primary: #1A1A2E; /* Azul oscuro */
  --secondary: #16213E; /* Azul marino */
  --accent-1: #F5A623; /* Dorado victoria */
  --accent-1-hover: #e0941d;
  --accent-2: #E94560; /* Rojo intenso CTA */
  --accent-2-hover: #cf3d55;
  --text-light: #FFFFFF;
  --text-gray: #A0A0B0;
  --success: #27AE60;
  --error: #E74C3C;
  --bg-darker: #0F0F1A;
  
  --font-display: 'Bebas Neue', cursive;
  --font-subhead: 'Oswald', sans-serif;
  --font-body: 'Inter', sans-serif;
}

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

body {
  background-color: var(--primary);
  color: var(--text-light);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  line-height: 1.2;
}

h1 {
  font-family: var(--font-display);
  font-size: clamp(48px, 8vw, 120px);
  text-transform: uppercase;
  letter-spacing: 2px;
}

h2 {
  font-family: var(--font-display);
  font-size: clamp(36px, 6vw, 64px);
  text-transform: uppercase;
  color: var(--accent-1);
}

h3 {
  font-family: var(--font-subhead);
  font-size: 28px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

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

a:hover {
  color: var(--text-light);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Animations */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

section {
  padding: 80px 0;
}

/* Navigation */
nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 20px 0;
  transition: background-color 0.4s ease, padding 0.4s ease;
}

nav.scrolled {
  background-color: rgba(26, 26, 46, 0.95);
  backdrop-filter: blur(10px);
  padding: 10px 0;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-container h2 {
  font-size: 32px;
  color: var(--text-light);
  margin: 0;
}

.logo-container h2 span {
  color: var(--accent-1);
}

.nav-links {
  display: flex;
  gap: 30px;
  list-style: none;
}

.nav-links li a {
  font-family: var(--font-subhead);
  font-size: 18px;
  color: var(--text-light);
  text-transform: uppercase;
  position: relative;
}

.nav-links li a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--accent-1);
  transition: width 0.3s ease;
}

.nav-links li a:hover::after {
  width: 100%;
}

.hamburger {
  display: none;
  cursor: pointer;
}

.bar {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px auto;
  transition: all 0.3s ease-in-out;
  background-color: var(--text-light);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 15px 30px;
  font-family: var(--font-subhead);
  font-size: 18px;
  text-transform: uppercase;
  font-weight: 600;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}

.btn-primary {
  background-color: var(--accent-1);
  color: var(--primary);
}

.btn-primary:hover {
  background-color: var(--accent-1-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(245, 166, 35, 0.3);
}

.btn-accent {
  background-color: var(--accent-2);
  color: var(--text-light);
}

.btn-accent:hover {
  background-color: var(--accent-2-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(233, 69, 96, 0.4);
}

.pulse-animation {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(233, 69, 96, 0.7); }
  70% { box-shadow: 0 0 0 15px rgba(233, 69, 96, 0); }
  100% { box-shadow: 0 0 0 0 rgba(233, 69, 96, 0); }
}

/* Dynamic Gallery (Hoja 2) */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.gallery-item {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: 8px;
  overflow: hidden;
  background-color: var(--bg-darker);
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease, opacity 0.4s ease;
  position: relative;
  z-index: 2;
}

.gallery-item .overlay-word {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-display);
  font-size: 4rem;
  color: var(--accent-1);
  text-transform: uppercase;
  text-shadow: 2px 2px 10px rgba(0,0,0,0.8);
  opacity: 0;
  z-index: 1;
  transition: opacity 0.4s ease;
  pointer-events: none;
  min-width: 100%;
  text-align: center;
}

.gallery-item:hover img {
  transform: scale(1.05);
  opacity: 0.3;
}

.gallery-item:hover .overlay-word {
  opacity: 1;
}

/* Skeleton Loading for Gallery */
.skeleton {
  background: linear-gradient(90deg, var(--bg-darker) 25%, var(--secondary) 50%, var(--bg-darker) 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Footer */
footer {
  background-color: var(--bg-darker);
  padding: 60px 0 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

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

.footer-col h3 {
  color: var(--text-light);
  margin-bottom: 20px;
}

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

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  color: var(--text-gray);
}

.footer-col ul li a:hover {
  color: var(--accent-1);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.05);
  color: var(--text-gray);
  font-size: 14px;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .hamburger {
    display: block;
    z-index: 101;
  }
  
  .hamburger.active .bar:nth-child(2) {
    opacity: 0;
  }
  
  .hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  
  .hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
  
  .nav-links {
    position: fixed;
    left: -100%;
    top: 0;
    flex-direction: column;
    background-color: var(--secondary);
    width: 100%;
    height: 100vh;
    justify-content: center;
    align-items: center;
    transition: 0.3s;
    box-shadow: 0 10px 27px rgba(0, 0, 0, 0.5);
    z-index: 100;
  }
  
  .nav-links.active {
    left: 0;
  }
  
  section {
    padding: 60px 0;
  }
}
