/*
  Theme: Consejos de viaje económico local
  Design System: Brutalism
  Color Scheme: Monochrome
  Fonts: Inter (Headings), IBM Plex Sans (Body)
*/

/* ----------------------------------------------------------------
  1. CSS Variables & Root Styles
-----------------------------------------------------------------*/
:root {
  --black: #1a1a1a;
  --off-black: #222222;
  --grey-dark: #333333;
  --grey: #888888;
  --light-grey: #f0f0f0;
  --white: #ffffff;

  --font-heading: 'Inter', sans-serif;
  --font-body: 'IBM Plex Sans', sans-serif;
  
  --transition-fast: 0.2s ease-in-out;
  --transition-slow: 0.6s ease-out;

  --navbar-height: 52px; /* Default Bulma navbar height */
}

/* ----------------------------------------------------------------
  2. Global Styles & Resets
-----------------------------------------------------------------*/
html {
  scroll-behavior: smooth;
  background-color: var(--white);
}

body {
  font-family: var(--font-body);
  color: var(--black);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

section {
  padding: 4rem 1.5rem;
}

.section.has-background-dark {
    background-color: var(--black) !important;
}

/* ----------------------------------------------------------------
  3. Typography (Adaptive & Brutalist)
-----------------------------------------------------------------*/
h1, h2, h3, h4, h5, h6,
.title {
  font-family: var(--font-heading);
  font-weight: 900;
  color: var(--off-black);
  word-break: break-word;
}

.subtitle {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--grey-dark);
}

.title.is-1 {
  font-size: clamp(2.8rem, 5vw + 1rem, 5rem);
}

.title.is-2, .section-title {
  font-size: clamp(2.2rem, 4vw + 1rem, 3.5rem);
  margin-bottom: 2.5rem !important;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.title.is-4 {
  font-size: clamp(1.25rem, 2vw + 0.5rem, 1.75rem);
}

p {
  font-size: clamp(1rem, 1.5vw, 1.1rem);
}

/* ----------------------------------------------------------------
  4. Header & Navigation
-----------------------------------------------------------------*/
.navbar.is-fixed-top {
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--black);
}

.navbar-item, .navbar-link {
  font-family: var(--font-heading);
  font-weight: 700;
  transition: all var(--transition-fast);
  color: var(--black);
}

.navbar-item:hover, .navbar-link:hover {
  background-color: transparent !important;
  color: var(--grey) !important;
}

.navbar-burger span {
  background-color: var(--black);
  height: 2px;
  width: 20px;
  left: calc(50% - 10px);
}

/* ----------------------------------------------------------------
  5. Global Component Styles
-----------------------------------------------------------------*/
/* --- Buttons --- */
.button, button, input[type='submit'] {
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  border-radius: 0;
  border: 2px solid var(--black);
  transition: all var(--transition-fast);
  box-shadow: 4px 4px 0 var(--black);
  letter-spacing: 1px;
}

.button:hover, button:hover, input[type='submit']:hover {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--black);
}

.button:active, button:active, input[type='submit']:active {
  transform: translate(4px, 4px);
  box-shadow: none;
}

.button.is-dark {
  background-color: var(--black);
  color: var(--white);
}

.button.is-dark:hover {
  background-color: var(--white);
  color: var(--black);
}

.button.is-white.is-outlined {
  border-color: var(--white);
  color: var(--white);
  background-color: transparent;
  box-shadow: 4px 4px 0 var(--white);
}

.button.is-white.is-outlined:hover {
  background-color: var(--white);
  color: var(--black);
  box-shadow: 2px 2px 0 var(--white);
}

/* --- Cards --- */
.card {
  background-color: var(--white);
  border: 2px solid var(--black);
  border-radius: 0;
  box-shadow: none;
  height: 100%;
  display: flex;
  flex-direction: column;
  text-align: center;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 8px 8px 0 var(--black);
}

.card .card-image {
  border-bottom: 2px solid var(--black);
  padding: 0;
}

.card .card-image img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
  margin: 0 auto;
}

.card .card-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

/* --- Forms --- */
.input, .textarea {
  font-family: var(--font-body);
  border-radius: 0;
  border: 2px solid var(--black);
  box-shadow: none;
  transition: all var(--transition-fast);
  padding: 1.25rem 1rem;
}

.input:focus, .textarea:focus {
  border-color: var(--grey);
  box-shadow: none;
}

.label {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--black);
  text-align: left;
}

/* ----------------------------------------------------------------
  6. Section-Specific Styles
-----------------------------------------------------------------*/
/* --- Hero --- */
#hero {
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed; /* Simple parallax effect */
}

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

#hero .title, #hero .subtitle {
  color: var(--white);
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
}

/* --- Behind the Scenes (Progress Bars) --- */
.progress {
  border-radius: 0;
  height: 1.2rem;
  background-color: var(--white);
  border: 2px solid var(--black);
  padding: 4px;
}
.progress::-webkit-progress-bar {
  background-color: transparent;
}
.progress::-webkit-progress-value {
  background-color: var(--black);
}
.progress::-moz-progress-bar {
  background-color: var(--black);
}

/* --- Community / Testimonials --- */
#community .is-size-4 {
    font-size: clamp(1.2rem, 2.5vw, 1.5rem) !important;
    line-height: 1.5;
}

/* --- External Resources --- */
.resource-box {
  border: 2px solid var(--black);
  border-radius: 0;
  height: 100%;
  transition: all var(--transition-fast);
  color: var(--black);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem;
}
.resource-box:hover {
  background-color: var(--black);
  color: var(--white);
}
.resource-box:hover .title {
  color: var(--white);
}

/* --- Footer --- */
.footer {
  border-top: 2px solid var(--off-black);
  padding: 3rem 1.5rem;
}
.footer a {
  color: var(--grey);
  transition: color var(--transition-fast);
  display: inline-block;
  padding: 0.25rem 0;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.footer a:hover {
  color: var(--white);
}
.footer .has-text-white {
    font-weight: 700;
    text-transform: uppercase;
}

/* ----------------------------------------------------------------
  7. Utility & Animation Classes
-----------------------------------------------------------------*/
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ----------------------------------------------------------------
  8. Specific Page Styles
-----------------------------------------------------------------*/
/* --- For success.html --- */
.success-page-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  text-align: center;
  padding: 2rem;
}

/* --- For privacy.html, terms.html --- */
.static-page-content {
  padding-top: calc(var(--navbar-height) + 4rem);
  padding-bottom: 4rem;
}

.static-page-content h1, .static-page-content h2 {
    margin-bottom: 1.5rem;
}

.static-page-content p, .static-page-content li {
    margin-bottom: 1rem;
}

/* ----------------------------------------------------------------
  9. Media Queries for Responsiveness
-----------------------------------------------------------------*/
@media screen and (max-width: 768px) {
  .section {
    padding: 3rem 1rem;
  }
  .section-title {
    margin-bottom: 2rem !important;
  }
  .navbar-menu {
    background-color: var(--white);
    border-left: 2px solid var(--black);
    border-right: 2px solid var(--black);
    border-bottom: 2px solid var(--black);
  }
  .navbar-item {
    text-align: center;
  }
}