/* ==================== ESTILOS BASE ==================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  transition: background-color 0.3s ease, color 0.3s ease;
}

html {
  scroll-behavior: smooth;
}

/* ==================== MODOS ==================== */
body.dark {
  --bg-primary: #0a0a0a;
  --bg-secondary: #111111;
  --bg-card: #1a1a1a;
  --bg-header: rgba(10, 10, 10, 0.95);
  --text-primary: #ffffff;
  --text-secondary: #cccccc;
  --text-muted: #888888;
  --border: #2a2a2a;
  --accent: #bfff00;
}

body.light {
  --bg-primary: #1a1a1a;
  --bg-secondary: #252525;
  --bg-card: #2a2a2a;
  --bg-header: rgba(30, 30, 30, 0.95);
  --text-primary: #eaeaea;
  --text-secondary: #b0b0b0;
  --text-muted: #888888;
  --border: #3a3a3a;
  --accent: #bfff00;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
}

/* ==================== BANNER SUPERIOR ==================== */
.top-banner {
  background-color: var(--accent);
  color: #000;
  overflow: hidden;
  height: 30px;
  display: flex;
  align-items: center;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
}

.top-banner p {
  white-space: nowrap;
  display: inline-block;
  font-weight: bold;
  font-size: 14px;
  animation: scroll-left 20s linear infinite;
  margin: 0;
}

@keyframes scroll-left {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

/* ==================== HEADER ==================== */
header {
  position: fixed;
  top: 30px;
  width: 100%;
  background: var(--bg-header);
  backdrop-filter: blur(10px);
  padding: 1rem 2rem;
  z-index: 1000;
  border-bottom: 1px solid var(--border);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

header h1 {
  font-family: 'UnifrakturCook', cursive;
  font-size: 1.5rem;
  margin: 0;
  color: var(--text-primary);
}

.header-controls {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.lang-switch {
  display: flex;
  gap: 0.2rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 30px;
  padding: 0.2rem;
}

.lang-btn {
  background: transparent;
  border: none;
  padding: 0.3rem 0.8rem;
  border-radius: 30px;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all 0.2s;
}

.lang-btn.active {
  background: var(--accent);
  color: #000;
}

.theme-toggle {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0.3rem 0.7rem;
  border-radius: 30px;
  transition: all 0.2s;
}

.theme-toggle:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* ==================== HERO ==================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  background-image: url('sp.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-blend-mode: overlay;
  background-color: rgba(0, 0, 0, 0.6);
  position: relative;
  padding-top: 80px;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.7) 100%);
  pointer-events: none;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.hero-title {
  font-family: 'UnifrakturCook', cursive;
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--accent);
  text-shadow: 0 0 10px rgba(191, 255, 0, 0.3);
  animation: fadeInUp 0.8s ease forwards;
  opacity: 0;
  animation-delay: 0s;
}

.subtitle {
  font-size: 1.5rem;
  color: var(--accent);
  margin-bottom: 1rem;
  animation: fadeInUp 0.8s ease forwards;
  opacity: 0;
  animation-delay: 0.2s;
}

.tagline {
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.8s ease forwards;
  opacity: 0;
  animation-delay: 0.4s;
}

.hero-btn {
  display: inline-block;
  background: var(--accent);
  color: #000;
  padding: 0.9rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  transition: transform 0.3s, box-shadow 0.3s;
  margin-top: 0.5rem;
  animation: fadeInUp 0.8s ease forwards;
  opacity: 0;
  animation-delay: 0.6s;
}

.hero-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 20px rgba(191, 255, 0, 0.4);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==================== CONTENIDO PRINCIPAL ==================== */
.content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
}

section {
  margin-bottom: 80px;
}

section h2 {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 1rem;
  font-family: 'UnifrakturCook', cursive;
  color: var(--text-primary);
}

section > p {
  text-align: center;
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto 3rem;
}

/* ==================== EDICIONES GRID ==================== */
.ediciones-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.edicion-card {
  background: var(--bg-card);
  border-radius: 15px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform 0.3s, border-color 0.3s;
}

.edicion-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
}

.edicion-img {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, #1a1a2a, #0a0a1a);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: var(--accent);
}

.edicion-card h3 {
  font-size: 1.3rem;
  margin: 1rem 1rem 0.5rem;
  color: var(--accent);
}

.edicion-card p {
  margin: 0 1rem 1rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.5;
}

.edicion-meta {
  margin: 1rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* ==================== INFO GRID ==================== */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.info-card {
  background: var(--bg-card);
  border-radius: 15px;
  padding: 2rem;
  text-align: center;
  border: 1px solid var(--border);
  transition: transform 0.3s;
}

.info-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
}

.info-icon {
  width: 70px;
  height: 70px;
  background: rgba(191, 255, 0, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2rem;
}

.info-card h3 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: var(--accent);
}

.info-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ==================== GALERÍA ==================== */
.galeria-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.galeria-item {
  border-radius: 10px;
  border: 2px solid var(--border);
  transition: transform 0.3s, border-color 0.3s;
  height: 250px;
  background: linear-gradient(135deg, #1a1a2a, #0a0a1a);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: var(--accent);
}

.galeria-item:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
}

.galeria-note {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 1rem;
}

/* ==================== CONTACTO ==================== */
.contact-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 900px;
  margin: 2rem auto;
}

.contact-item {
  text-align: center;
  padding: 1.5rem;
  background: var(--bg-card);
  border-radius: 12px;
  border: 1px solid var(--border);
}

.contact-item h4 {
  color: var(--accent);
  font-size: 1.2rem;
  margin-bottom: 0.8rem;
}

.contact-item p {
  color: var(--text-secondary);
  line-height: 1.5;
}

/* FORMULARIO */
.contact-form-container {
  max-width: 600px;
  margin: 3rem auto 0;
}

.contact-form {
  background: var(--bg-card);
  padding: 2rem;
  border-radius: 15px;
  border: 1px solid var(--border);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.8rem;
  margin-bottom: 1rem;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.9rem;
  box-sizing: border-box;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.contact-form button {
  width: 100%;
  background: var(--accent);
  color: #000;
  border: none;
  padding: 0.8rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s;
}

.contact-form button:hover {
  background: #a0dd00;
}

.form-message {
  margin-top: 1rem;
  font-size: 0.8rem;
  text-align: center;
}

.form-message.success {
  color: var(--accent);
}

.form-message.error {
  color: #ff6b6b;
}

/* ==================== FOOTER ==================== */
footer {
  text-align: center;
  padding: 30px 20px;
  font-size: 0.8em;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
  .top-banner p {
    animation: scroll-left 15s linear infinite;
    font-size: 12px;
  }
  
  header {
    padding: 0.8rem 1rem;
    top: 30px;
  }
  
  .header-container {
    flex-direction: column;
    text-align: center;
  }
  
  header h1 {
    font-size: 1.2rem;
  }
  
  .hero {
    padding-top: 120px;
    min-height: 80vh;
  }
  
  .hero-title {
    font-size: 2.2rem;
  }
  
  .subtitle {
    font-size: 1.2rem;
  }
  
  .tagline {
    font-size: 1rem;
  }
  
  .hero-btn {
    padding: 0.7rem 1.5rem;
    font-size: 0.9rem;
  }
  
  section h2 {
    font-size: 1.8rem;
  }
  
  .content {
    padding: 40px 15px;
  }
  
  section {
    margin-bottom: 50px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.8rem;
  }
  
  .subtitle {
    font-size: 1rem;
  }
  
  .tagline {
    font-size: 0.9rem;
  }
  
  .edicion-card h3,
  .info-card h3 {
    font-size: 1.1rem;
  }
  
  .contact-form {
    padding: 1.5rem;
  }
}

/* ==================== SCROLLBAR ==================== */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #a0dd00;
}
