/* ============================================================
   MAIN CSS - Scene Locations Theme
   Base styles, variables, resets, typography, and utilities.
   ============================================================ */

/* ============================================================
   FONTS
   ============================================================ */
@font-face {
  font-family: 'Saira';
  src: url('../fonts/saira/Saira-VariableFont_wdth,wght.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Saira';
  src: url('../fonts/saira/Saira-Italic-VariableFont_wdth,wght.ttf') format('truetype');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

/* ---- CSS Variables ---- */
:root {
  /* Colors */
  --sl-color-primary: #4C50FF;
  --sl-color-secondary: #111A30;
  --sl-color-accent: #182546;
  --sl-color-text: #94A3B8;
  --sl-color-border: #020617;
  --sl-color-hover: #213260;

  /* Additional Colors */
  --sl-color-white: #fff;
  --sl-color-black: #000;
  --sl-color-overlay: rgba(0, 0, 0, 0.5);
  --sl-color-shadow: rgba(0, 0, 0, 0.1);

  /* Typography */
  --sl-font-family: "Saira", Sans-serif;
  --sl-font-weight-normal: 400;
  --sl-font-weight-medium: 500;
  --sl-font-weight-bold: 600;

  /* Font Sizes */
  --sl-font-size-xs: 12px;
  --sl-font-size-sm: 14px;
  --sl-font-size-base: 16px;
  --sl-font-size-lg: 18px;
  --sl-font-size-xl: 24px;

  /* Spacing */
  --sl-spacing-xs: 4px;
  --sl-spacing-sm: 8px;
  --sl-spacing-md: 16px;
  --sl-spacing-lg: 20px;
  --sl-spacing-xl: 32px;

  /* Border Radius */
  --sl-radius-sm: 4px;
  --sl-radius-md: 8px;
  --sl-radius-lg: 12px;
  --sl-radius-circle: 50%;

  /* Transitions */
  --sl-transition-fast: 0.2s ease;
  --sl-transition-normal: 0.3s ease;
  --sl-transition-slow: 0.4s ease;

  /* Shadows */
  --sl-shadow-sm: 0 2px 4px var(--sl-color-shadow);
  --sl-shadow-md: 0 4px 8px rgba(0, 0, 0, 0.15);
  --sl-shadow-lg: 0 5px 10px var(--sl-color-shadow);

  /* Layout Sizes */
  --sl-scrollbar-width: 8px;
  --sl-sidebar-width: 270px;
  --sl-sidebar-collapsed: 80px;
  --sl-header-height: 56px;
}


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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  background-color: var(--sl-color-border) !important;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--sl-font-family);
  font-weight: var(--sl-font-weight-normal);
  font-size: var(--sl-font-size-base);
  line-height: 1.6;
  color: var(--sl-color-text);
  background-color: var(--sl-color-border) !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.site-wrapper {
  background-color: var(--sl-color-border) !important;
}


/* ---- Scrollbar ---- */
::-webkit-scrollbar {
  width: var(--sl-scrollbar-width);
  height: var(--sl-scrollbar-width);
}

::-webkit-scrollbar-thumb {
  background: var(--sl-color-accent);
  border-radius: var(--sl-radius-sm);
}

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


/* ---- Text Selection ---- */
::selection,
::-moz-selection {
  background-color: var(--sl-color-primary);
  color: var(--sl-color-white);
}


/* ---- Typography ---- */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--sl-font-family);
  font-weight: var(--sl-font-weight-normal);
  color: var(--sl-color-white);
  margin-top: 0;
  line-height: 1.3;
}

h1 {
  font-size: 2rem;
}

h2 {
  font-size: 1.5rem;
}

h3 {
  font-size: 1.25rem;
}

h4 {
  font-size: 1rem;
}

h5 {
  font-size: 0.875rem;
}

h6 {
  font-size: 0.75rem;
}

p {
  margin-top: 0;
  margin-bottom: 1rem;
  color: var(--sl-color-text);
}

a {
  color: var(--sl-color-primary);
  text-decoration: none;
  transition: color var(--sl-transition-fast);
}

a:hover {
  color: var(--sl-color-white);
}

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

ul,
ol {
  padding-left: 1.25rem;
}

button {
  font-family: var(--sl-font-family);
  cursor: pointer;
}


/* ---- Popup Overlay (Global) ---- */
.popup-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.popup-overlay.activo {
  opacity: 1;
  visibility: visible;
}

.popup-contenido {
  background: var(--sl-color-border);
  padding: 48px 32px;
  border-radius: 8px;
  max-width: 800px;
  width: 80%;
  position: relative;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.popup-overlay.activo .popup-contenido {
  opacity: 1;
  transform: translateY(0);
}

.cerrar-popup {
  position: absolute;
  top: 0;
  right: 0;
  background-color: transparent !important;
  border: none;
  font-size: 22px !important;
  cursor: pointer;
}


/* ---- Spinner / Loaders ---- */
.spinner {
  border: 5px solid var(--sl-color-secondary);
  border-left-color: white;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  animation: spin 1s linear infinite;
  margin: 0 auto;
}

.spinner {
  display: none;
}

.spinner-wrapper {
  display: none;
  text-align: center;
  padding: 20px;
}

.spinner-wrapper .spinner {
  display: block;
}

.scroll-loader {
  text-align: center;
  display: none;
}

.scroll-loader p {
  color: var(--sl-color-text);
  font-size: 14px;
  letter-spacing: 0.5px;
  margin-top: 5px;
}


/* ---- Keyframe Animations ---- */
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

@keyframes spinmapa {
  to {
    transform: rotate(360deg);
  }
}

@keyframes pinBounce {

  0%,
  100% {
    transform: translateY(0) scale(1);
  }

  50% {
    transform: translateY(-15px) scale(1.2);
  }
}

@keyframes favoriteClick {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.2);
  }
}

@keyframes heartBeat {
  0% {
    transform: scale(1);
  }

  25% {
    transform: scale(1.3);
  }

  50% {
    transform: scale(1.1);
  }

  75% {
    transform: scale(1.25);
  }

  100% {
    transform: scale(1);
  }
}

@keyframes progressBar {
  0% {
    width: 0%;
  }

  50% {
    width: 70%;
  }

  100% {
    width: 100%;
  }
}


/* ---- Layout: Site Wrapper ---- */
.site-wrapper {
  min-height: 100vh;
}

/* Main content */
.main-content {
  width: 100%;
  min-height: 100vh;
  padding: 16px 16px 16px 112px;
  /* collapsed sidebar 80 + margin 16 + gap 16 */
}

/* Content layout: two-column (main + ad panel) */
.content-layout {
  display: flex;
  flex-direction: row;
  gap: 20px;
  width: 100%;
  min-height: calc(100vh - 32px);
}

.content-primary {
  flex: 1;
  min-width: 0;
}

.content-secondary {
  width: 160px;
  flex-shrink: 0;
}

/* Footer */
.site-footer {
  padding: 16px 16px 16px 110px;
  margin-top: 40px;
}

.footer-container {
  background: var(--sl-color-secondary);
  border: none;
  border-radius: var(--sl-radius-md);
  padding: 12px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-logo {
  width: 20px;
  height: 20px;
  fill: var(--sl-color-text);
  display: block;
  opacity: 0.8;
  transition: opacity var(--sl-transition-fast);
}

.footer-logo:hover {
  opacity: 1;
}

.footer-info {
  font-size: 13px;
  color: var(--sl-color-text);
  font-weight: 300;
  opacity: 0.8;
}

.footer-info a {
  color: var(--sl-color-text);
  text-decoration: none;
  font-weight: 400;
}

.footer-info a:hover {
  color: var(--sl-color-white);
}

.footer-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 24px;
}

.footer-menu a {
  color: var(--sl-color-text);
  font-size: 13px;
  text-decoration: none;
  font-weight: 400;
  transition: color var(--sl-transition-fast);
  opacity: 0.8;
}

.footer-menu a:hover {
  color: var(--sl-color-white);
  opacity: 1;
}

@media (max-width: 1024px) {
  .footer-container {
    flex-direction: column;
    gap: 16px;
    padding: 24px 16px;
    text-align: center;
  }

  .footer-left {
    flex-direction: column;
    gap: 8px;
  }

  .footer-menu {
    flex-direction: column;
    gap: 2px;
    /* Reduced mobile gap */
  }
}

/* Responsive layout: tablets and mobile */
@media (max-width: 1024px) {
  .main-content {
    padding: 88px 16px 16px 16px;
    /* top (sidebar mobile 56 + margin 13 + gap ~19) right bottom left */
  }


  .content-layout {
    flex-direction: column;
  }

  .content-secondary {
    width: 100%;
  }

  .site-footer {
    padding: 16px;
  }

}


/* ---- Utility Classes ---- */
.hidden {
  display: none !important;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.text-center {
  text-align: center;
}

.text-white {
  color: var(--sl-color-white);
}

.text-primary {
  color: var(--sl-color-primary);
}

.text-muted {
  color: var(--sl-color-text);
}

.flex {
  display: flex;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.gap-sm {
  gap: var(--sl-spacing-sm);
}

.gap-md {
  gap: var(--sl-spacing-md);
}

.mt-auto {
  margin-top: auto;
}

/* ============================================================
   PAGES
   Independent Page Headers and Content blocks
   ============================================================ */
.page-header {
  background: radial-gradient(ellipse 80% 80% at 50% 0%, #202866, transparent 70%), #020617; 
  padding: 120px 30px;
  display: flex; 
  justify-content: center; 
  align-items: center; 
  flex-direction: column;
  border-radius: 5px;
  gap: 20px 20px;
}

.page-title-short {
  font-size: 15px; 
  font-weight: 300; 
  text-transform: uppercase; 
  letter-spacing: 2px; 
  color: #4c50ff;
  margin: 0px;
}

.page-title {
  text-align: center;
  margin: 0px;
}

.page-description {
  max-width: 50%; 
  text-align: center;
  margin: 0px;
}

@media (max-width: 600px) {
  .page-header {
    padding: 60px 30px;
  }
  .page-title {
    font-size: 24px;
    line-height: 1.1em;
  }
  .page-description {
    max-width: 100%; 
  }
}