:root {
  --azul: #000080;
  --azul-oscuro: #000066;
  --negro: #111111;
  --gris-texto: #555;
  --gris-suave: #f4f6f9;
  --blanco: #ffffff;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Montserrat', sans-serif;
  color: var(--negro);
  background: var(--blanco);
  line-height: 1.7;
}

.container {
  max-width: 1100px;
  margin: auto;
  padding: 0 2rem;
}

.hero {
  background: linear-gradient(135deg, var(--azul), var(--azul-oscuro));
  color: var(--blanco);
  text-align: center;
  padding: 9rem 2rem;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.logo-top {
  width: 120px;
  margin-bottom: 2rem;
  opacity: 0.85;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: -1px;
}

.hero p {
  max-width: 650px;
  margin: 1.5rem auto;
  font-weight: 300;
  opacity: 0.9;
}

.btn-principal {
  display: inline-block;
  margin-top: 2rem;
  padding: 1rem 2.5rem;
  background: var(--blanco);
  color: var(--azul);
  border-radius: 100px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-principal:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}

.btn-secundario {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.8rem 2rem;
  background: var(--azul);
  color: var(--blanco);
  border-radius: 100px;
  text-decoration: none;
  font-size: 0.85rem;
  transition: all 0.3s ease;
}

.btn-secundario:hover {
  background: var(--azul-oscuro);
  transform: translateY(-3px);
}

.intro {
  background: var(--gris-suave);
  padding: 6rem 0;
  text-align: center;
}

.intro h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.intro p {
  max-width: 750px;
  margin: auto;
  color: var(--gris-texto);
}

.section-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 3rem;
}

.edicion-actual {
  padding: 6rem 0;
}

.revista-destacada {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.revista-destacada img {
  width: 100%;
  max-width: 400px;
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.15);
  transition: transform 0.4s ease;
}

.revista-destacada img:hover {
  transform: scale(1.05);
}

.revista-info h3 {
  font-size: 1.6rem;
  margin-bottom: 1rem;
}

.revista-info p {
  color: var(--gris-texto);
  margin-bottom: 1rem;
}

/* Archivo - Carrusel */
.archivo {
  background: #fafafa;
  padding: 6rem 0;
}

.carrusel-wrapper {
  display: flex;
  align-items: center;
  gap: 1rem;
  position: relative;
}

.carrusel-container {
  flex: 1;
  overflow-x: hidden;
  border-radius: 20px;
}

.carrusel-track {
  display: flex;
  gap: 2rem;
  transition: transform 0.4s ease;
  will-change: transform;
}

.revista-card {
  flex: 0 0 calc((100% - (2 * 2rem)) / 3);
  min-width: 250px;
  background: var(--blanco);
  padding: 2rem 1.5rem;
  text-align: center;
  border-radius: 20px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}

.revista-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

.revista-card img {
  width: 100%;
  border-radius: 15px;
  margin-bottom: 0;
}

.revista-card h4 {
  margin-top: 1.2rem;
  font-size: 0.9rem;
  line-height: 1.4;
}

.small {
  font-size: 0.75rem;
}

.carrusel-btn {
  background: var(--azul);
  color: white;
  border: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s, opacity 0.3s;
  flex-shrink: 0;
}

.carrusel-btn:hover:not(:disabled) {
  background: var(--azul-oscuro);
}

.carrusel-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

footer {
  text-align: center;
  padding: 3.5rem 2rem;
  background: #f0f0f0;
}

.footer-inner {
  display: flex;
  justify-content: center;
}

.firma {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.85rem;
  color: #888;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.firma img {
  width: 110px;
  opacity: 0.85;
}

@media (max-width: 768px) {
  .revista-destacada {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero h1 {
    font-size: 2.2rem;
  }
  .revista-card {
    flex: 0 0 calc((100% - (1 * 2rem)) / 2);
  }
}

@media (max-width: 640px) {
  .revista-card {
    flex: 0 0 100%;
  }
}