/* --- Global Styles --- */
body {
  margin: 0;
  font-family: "Inter", sans-serif;
  color: #333;
  line-height: 1.6;
  background-color: #fff;
}

h1, h2, h3 {
  font-family: "Playfair Display", serif;
  color: #111;
  margin-bottom: 0.5rem;
}

a { text-decoration: none; }

/* --- Navigation --- */
.navbar {
  position: fixed;
  width: 100%;
  top: 0;
  padding: 1rem 0;
  z-index: 1000;
  transition: all 0.4s ease;
  background: transparent;
}

/* Default (first fold) — all white */
.navbar .logo,
.navbar .logo span,
.navbar .nav-menu a {
  color: white;
  transition: color 0.3s;
}

/* Hover while in hero area */
.navbar .nav-menu a:hover {
  color: #ddd;
}

/* When scrolled — white background and dark text */
.navbar.scrolled {
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* Colors after scroll */
.navbar.scrolled .logo {
  color: #111;
}

.navbar.scrolled .logo span {
  color: #B44A3E;
}

.navbar.scrolled .nav-menu a {
  color: #111;
}

.navbar.scrolled .nav-menu a:hover {
  color: #B44A3E;
}

/* Container Layout */
.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Optional: ensure mobile toggle is visible on hero */
.nav-toggle {
  color: white;
  transition: color 0.3s;
}

.navbar.scrolled .nav-toggle {
  color: #111;
}

.logo {
  font-family: "Playfair Display", serif;
  font-size: 1.6rem;
  color: #111;
}

.logo span {
  color: #B44A3E;
}

.nav-menu {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.nav-menu a {
  color: #111;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-menu a:hover {
  color: #B44A3E;
}

/* Mobile Nav */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: #111;
  cursor: pointer;
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
    position: absolute;
    top: 65px;
    right: 10px;
    flex-direction: column;
    background: white;
    width: 220px;
    padding: 1rem;
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
  }
  .nav-menu.active {
    display: flex;
  }
  .nav-toggle { display: block; }
}

/* --- Hero --- */
.hero {
  position: relative;
  height: 100vh;
  background: url('/images/museo-hero.jpg') center/cover no-repeat;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero .overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  padding: 2rem;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

/* --- Hero Slider --- */
.hero {
  position: relative;
  height: 100vh;
  overflow: hidden;
  color: white;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slider {
  position: absolute;
  inset: 0;
}

.slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.slide.active {
  opacity: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  padding: 2rem;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}


.btn, .btn-outline {
  padding: 0.8rem 1.8rem;
  border-radius: 4px;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.btn {
  background-color: #B44A3E;
  color: white;
  border: none;
  transition: background 0.3s;
}

.btn:hover {
  background-color: #943a31;
}

.btn-outline {
  border: 2px solid #B44A3E;
  color: #B44A3E;
  background: transparent;
  transition: all 0.3s;
}

.btn-outline:hover {
  background: #B44A3E;
  color: white;
}

/* --- Sections --- */
.section {
  padding: 6rem 2rem;
}

.section.light {
  background-color: #f9f9f9;
}

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

/* --- Grid / Cards --- */
.grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  margin-top: 2rem;
}

.card {
  position: relative;
  height: 300px;
  border-radius: 8px;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.card.large {
  height: 400px;
  grid-column: span 2;
}

.card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
  color: white;
  display: flex;
  align-items: end;
  padding: 1.5rem;
  transition: background 0.3s;
}

.card:hover .card-overlay {
  background: rgba(0,0,0,0.6);
}

.cards.three {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}

.cards.three .card {
  flex: 1 1 280px;
  background: white;
  border: 1px solid #eee;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}
/* --- Contact Form --- */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 500px;
  margin: 2rem auto 0;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
  font-family: "Inter", sans-serif;
  resize: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #B44A3E;
}

.success-message {
  color: green;
  font-weight: 600;
}

.error-message {
  color: #B44A3E;
  font-weight: 600;
}

/* --- Red de Museos Section --- */
#network .lead {
  font-size: 1.2rem;
  max-width: 800px;
  margin: 1rem auto 2rem;
  color: #333;
  line-height: 1.7;
}

.vision-text {
  max-width: 900px;
  margin: 0 auto;
  text-align: left;
  font-size: 1.05rem;
  line-height: 1.8;
  color: #444;
}

.vision-text p {
  margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
  #network .lead {
    font-size: 1.05rem;
  }
  .vision-text {
    font-size: 1rem;
  }
}
/* --- Timeline Section --- */
.timeline {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
  padding: 3rem 0;
}

/* vertical line */
.timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  width: 2px;
  background: #ddd;
  top: 20px;
  bottom: 20px;
  transform: translateX(-50%);
  z-index: 0;
}

/* start and end dots */
.timeline::after,
.timeline::before-dot {
  content: "";
  position: absolute;
  left: 50%;
  width: 14px;
  height: 14px;
  background: #B44A3E;
  border-radius: 50%;
  transform: translateX(-50%);
  border: 2px solid white;
  box-shadow: 0 0 4px rgba(0,0,0,0.1);
  z-index: 2;
}

.timeline::after {
  bottom: 0;
}

.timeline::before-dot {
  top: 0;
}

/* timeline steps */
.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  margin: 3rem 0;
  z-index: 1;
}

.dot {
  width: 14px;
  height: 14px;
  background: #B44A3E;
  border-radius: 50%;
  position: relative;
  z-index: 2;
  border: 2px solid white;
  box-shadow: 0 0 4px rgba(0,0,0,0.1);
}

/* content boxes */
.step .content {
  background: white;
  border: 1px solid #eee;
  padding: 1.5rem 2rem;
  border-radius: 8px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.05);
  margin-top: 1rem;
  width: 80%;
  max-width: 500px;
  text-align: center;
  z-index: 1;
}

.step .content h3 {
  color: #B44A3E;
  margin-bottom: 0.5rem;
}

.step .content p {
  color: #444;
  line-height: 1.6;
}

/* responsive adjustments */
@media (max-width: 768px) {
  .timeline::before,
  .timeline::after,
  .timeline::before-dot {
    left: 20px;
    transform: none;
  }

  .step {
    align-items: flex-start;
  }

  .dot {
    left: 13px;
  }

  .step .content {
    margin-left: 2.5rem;
    width: calc(100% - 3rem);
    text-align: left;
  }
}




/* --- Footer --- */
footer {
  background: #111;
  color: #eee;
  text-align: center;
  padding: 2rem;
  font-size: 0.9rem;
}
