/* =========================
   RESET BÁSICO
========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

/* =========================
   VARIABLES DE COLOR
========================= */
:root {
  --bg-main: #0b0b0f;
  --bg-section: #141420;
  --text-main: #f2f2f7;
  --text-muted: #b6b6c8;
  --accent: #7b2cff;
  --accent-soft: rgba(123, 44, 255, 0.35);
}

/* =========================
   BODY GENERAL
========================= */
body {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
}

/* =========================
   HEADER Y NAVEGACIÓN
========================= */
header {
  background-color: rgba(11, 11, 15, 0.9);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 32px;
  padding: 18px;
}

nav a {
  text-decoration: none;
  color: var(--text-main);
  font-weight: 500;
  letter-spacing: 0.5px;
}

nav a:hover {
  color: var(--accent);
}

/* =========================
   CONTENIDO PRINCIPAL
========================= */
main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 20px;
}

section {
  margin-bottom: 64px;
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

h2 {
  font-size: 2rem;
  margin-bottom: 16px;
  color: var(--accent);
}

h3 {
  font-size: 1.4rem;
  margin-bottom: 12px;
}

p {
  color: var(--text-muted);
  max-width: 800px;
  margin-bottom: 20px;
}

/* =========================
   FIGURAS E IMÁGENES
========================= */
figure {
  margin: 32px 0;
}

figcaption {
  margin-top: 8px;
  font-size: 0.9rem;
  color: var(--text-muted);
  text-align: center;
}

/* =========================
   INDEX (PREGUNTA)
========================= */
form {
  max-width: 420px;
  margin-top: 32px;
}

input[type="text"] {
  width: 100%;
  padding: 14px;
  border-radius: 10px;
  border: 1px solid var(--accent);
  background-color: var(--bg-section);
  color: var(--text-main);
  margin-bottom: 16px;
}

button {
  padding: 12px 24px;
  border-radius: 10px;
  border: none;
  background-color: var(--accent);
  color: white;
  font-weight: 600;
  cursor: pointer;
}

button:hover {
  opacity: 0.9;
}

/* =========================
   SLIDESHOW SUPERIOR GALERÍA
========================= */
.top-slideshow-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 32px;
}

.top-slide {
  display: none;
}

.top-slide.is-active {
  display: block;
}

.top-arrow {
  background: none;
  color: var(--accent);
  font-size: 2.5rem;
  cursor: pointer;
}

/* =========================
   GALERÍA POR AÑOS
========================= */
.year-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.year-controls button {
  background: none;
  color: var(--accent);
  font-size: 2rem;
  cursor: pointer;
}

.year-slide {
  display: none;
}

.year-slide.is-active {
  display: block;
}

/* =========================
   VIAJES SLIDESHOW
========================= */
.travel-slideshow {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 24px;
}

.travel-slide {
  display: none;
}

.travel-slide.is-active {
  display: block;
}

.arrow {
  background: none;
  color: var(--accent);
  font-size: 2.5rem;
  cursor: pointer;
}

/* =========================
   MASCOTAS
========================= */
section img {
  border-radius: 16px;
}

/* =========================
   FOOTER OPCIONAL
========================= */
footer {
  text-align: center;
  padding: 32px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 768px) {
  nav ul {
    flex-direction: column;
    gap: 16px;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.6rem;
  }
}
/* Historia: hacer las fotos más pequeñas y consistentes */
main img {
  width: 100%;
  max-width: 650px;
  height: auto;
  margin: 18px auto;
  border-radius: 16px;
}

/* Centrar las figuras */
main figure {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* === HISTORIA: control total de tamaño de fotos === */
figure img,
section img {
  width: 100% !important;
  max-width: 600px !important;
  height: auto !important;
  display: block;
  margin: 24px auto;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
}
.story-image {
  width: 100%;
  max-width: 550px;
  height: auto;
  display: block;
  margin: 24px auto;
  border-radius: 16px;
}

