/* Paleta estilo guía de ciudad: claro, limpio, acentos azules y naranjas */
:root {
  --bg: #f5f6fa;
  --bg-alt: #ffffff;
  --accent: #0f72e5;    /* azul principal turismo */
  --accent-2: #ff8a3d;  /* naranja cálido para llamados */
  --accent-3: #00b894;  /* verde para etiquetas / success */
  --text: #1f2933;
  --muted: #6b7280;
  --border: #e2e8f0;
  --radius-lg: 18px;
  --shadow-soft: 0 14px 30px rgba(15, 23, 42, 0.12);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 6vw;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  border-radius: 999px;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.25);
  background: #fff;
}

.site-title h1 {
  margin: 0;
  font-size: 1.2rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-title p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.main-nav a {
  font-size: 0.85rem;
  color: var(--muted);
  text-decoration: none;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  transition: background 0.15s, color 0.15s, transform 0.1s;
}

.main-nav a:hover {
  background: rgba(15, 114, 229, 0.06);
  color: var(--accent);
  transform: translateY(-1px);
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.7fr);
  gap: 2.5rem;
  padding: 3rem 7vw 2rem;
  align-items: center;
}

.hero-text h2 {
  font-size: clamp(2.2rem, 3vw, 2.8rem);
  margin: 0 0 0.8rem;
}

.hero-text p {
  margin: 0 0 1rem;
  color: var(--muted);
  max-width: 34rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.25rem 0 0.75rem;
}

.hero-note {
  font-size: 0.8rem;
  color: var(--muted);
}

.hero-art img {
  width: 100%;
  max-height: 360px;
  object-fit: cover;
  border-radius: 26px;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border);
}

/* Buttons */
.btn {
  border: none;
  cursor: pointer;
  padding: 0.7rem 1.3rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: transform 0.1s ease, box-shadow 0.1s ease, background 0.15s ease, color 0.15s;
}

.btn.primary {
  background: linear-gradient(135deg, var(--accent), #4f9df0);
  color: #ffffff;
  box-shadow: 0 12px 22px rgba(15, 118, 229, 0.35);
}

.btn.ghost {
  background: #ffffff;
  color: var(--accent);
  border: 1px solid rgba(15, 114, 229, 0.28);
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.18);
}

/* Sections */
.section,
.map-section {
  padding: 2.4rem 7vw;
}

.section.alt,
.map-section {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-header h3 {
  margin: 0 0 0.4rem;
  font-size: 1.5rem;
}

.section-header p {
  margin: 0;
  color: var(--muted);
  max-width: 32rem;
}

/* Map */
.map-grid {
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) minmax(0, 1.8fr);
  gap: 1.8rem;
  margin-top: 1.6rem;
}

.map-embed iframe {
  width: 100%;
  min-height: 280px;
  border-radius: 20px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

.map-destinations {
  background: #ffffff;
  border-radius: 20px;
  padding: 1.1rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border);
}

/* Cards / lists */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.4rem;
  margin-top: 1.6rem;
}

.card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 1.1rem 1.15rem 1rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}

.card-badge {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  background: rgba(15, 114, 229, 0.08);
  border-radius: 999px;
  padding: 0.15rem 0.7rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.card h4 {
  margin: 1.5 0 0.35rem;
  font-size: 1.05rem;
}

.card p {
  margin: 0 0 0.4rem;
  font-size: 0.86rem;
  color: var(--muted);
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.35rem;
  font-size: 0.78rem;
}

.chip {
  padding: 0.18rem 0.6rem;
  border-radius: 999px;
  background: #f1f5f9;
  color: #374151;
}

/* Filters */
.filters {
  margin-top: 1.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  font-size: 0.86rem;
}

.filters label {
  color: var(--muted);
}

.filters select {
  background: #ffffff;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.35rem 0.9rem;
  font-size: 0.85rem;
}

/* Lists */
.list {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.list-item {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 0.9rem 1.1rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

.list-item-header {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: baseline;
}

.list-item-header h4 {
  margin: 0;
  font-size: 1rem;
}

.list-item-header span {
  font-size: 0.8rem;
  color: var(--muted);
}

.list-item p {
  margin: 0.35rem 0 0.3rem;
  font-size: 0.86rem;
  color: var(--muted);
}

/* Comics */
.comic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.1rem;
  margin-top: 1.5rem;
}

.comic-thumb {
  cursor: pointer;
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border);
  background: #111827;
}

.comic-thumb img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.comic-thumb:hover img {
  transform: scale(1.05);
}

.comic-thumb-label {
  position: absolute;
  inset: auto 0 0 0;
  padding: 0.45rem 0.6rem;
  font-size: 0.77rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
  color: #f9fafb;
}

/* Modal */
.comic-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 50;
}

.comic-modal[aria-hidden="false"] {
  display: flex;
}

.comic-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.8);
}

.comic-modal-content {
  position: relative;
  max-width: min(960px, 96vw);
  max-height: 92vh;
  z-index: 51;
  background: #ffffff;
  border-radius: 24px;
  padding: 0.75rem;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.35);
  display: flex;
  flex-direction: column;
}

.comic-modal img {
  max-width: 100%;
  max-height: 72vh;
  object-fit: contain;
  border-radius: 18px;
}

.comic-modal-close {
  position: absolute;
  top: 0.3rem;
  right: 0.7rem;
  background: transparent;
  border: none;
  color: #111827;
  font-size: 1.8rem;
  cursor: pointer;
}

.comic-modal-caption {
  margin-top: 0.45rem;
  font-size: 0.85rem;
  color: var(--muted);
}

/* Timeline */
.timeline {
  margin-top: 1.5rem;
  border-left: 2px dashed rgba(148, 163, 184, 0.8);
  padding-left: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.timeline-item {
  position: relative;
  padding-left: 0.4rem;
}

.timeline-dot {
  position: absolute;
  left: -1.18rem;
  top: 0.25rem;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 0 3px rgba(255, 138, 61, 0.3);
}

.timeline-item h4 {
  margin: 0;
  font-size: 0.95rem;
}

.timeline-item span {
  font-size: 0.8rem;
  color: var(--muted);
}

.timeline-item p {
  margin: 0.25rem 0 0.2rem;
  font-size: 0.86rem;
}

/* Footer */
.site-footer {
  padding: 2.3rem 7vw 1.6rem;
  background: #0f172a;
  color: #e5e7eb;
  margin-top: 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1.6rem;
  margin-bottom: 1.4rem;
  font-size: 0.86rem;
}

.site-footer h4 {
  margin: 0 0 0.4rem;
}

.site-footer p {
  margin: 0.15rem 0;
  color: #cbd5f5;
}

.site-footer a {
  color: #93c5fd;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

.copyright {
  margin: 0;
  font-size: 0.78rem;
  color: #9ca3af;
  text-align: center;
}

/* Responsive */
@media (max-width: 880px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    padding-top: 2.2rem;
  }

  .hero-art {
    order: -1;
  }

  .hero-art img {
    max-height: 260px;
  }

  .site-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }

  .main-nav {
    justify-content: flex-start;
    overflow-x: auto;
  }

  .map-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 540px) {
  .section,
  .map-section,
  .hero {
    padding-inline: 5vw;
  }

  .hero {
    gap: 1.6rem;
  }

  .main-nav a {
    font-size: 0.8rem;
  }
}
