/* Fuentes */
body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background-color: #0c0c0c;
  color: #f5f5f5;
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: 'Playfair Display', serif;
  color: #ffd700;
}

a {
  color: #ffd700;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 2rem;
}

/* Navbar */
.top-header {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  background-color: transparent;
}

.top-header.scrolled {
  background-color: #000 !important;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.8);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 960px;
  margin: 0 auto;
  padding: 1rem 2rem;
}

.logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: #ffd700;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease;
  font-weight: 600;
}

.nav-links a:hover {
  text-decoration: underline;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background-color: #ffd700;
  display: block;
  border-radius: 2px;
}

.hero {
  height: 100vh;
  background: url('../img/carcosa-hero.jpg') no-repeat center center / cover;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  margin: 0;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-color: rgba(0, 0, 0, 0.6); /* oscurece la imagen */
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 2rem;
}

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

.hero p {
  font-size: 1.2rem;
  color: #f5f5f5;
}


.hero .overlay {
  background-color: rgba(0, 0, 0, 0.7);
  padding: 2rem;
  border-radius: 10px;
  max-width: 800px;
}

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

main.container {
  padding-top: 60px;
}

/* Secciones */
.section {
  margin-bottom: 4rem;
}

.section h2 {
  border-left: 5px solid #ffd700;
  padding-left: 1rem;
  margin-bottom: 1rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.card {
  background-color: #1a1a1a;
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

a.card {
  color:white;
  text-decoration: none;
}

.card-content {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.card-image {
  width: 100px;
  height: 100px;
  border-radius: 8px;
  flex-shrink: 0;
  align-self: flex-start;
  margin-top: 0.9rem;
  object-fit: cover;
  object-position: top center;
}

footer {
  text-align: center;
  padding: 2rem;
  font-size: 0.9rem;
  color: #999;
  border-top: 3px solid #ffd700;
}

footer .accent {
  color: #ffd700;
}

/* Responsive menu */
@media (max-width: 768px) {
  .nav-links {
    position: absolute;
    top: 60px;
    right: 20px;
    background-color: #0c0c0c;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
    display: none;
  }

  .nav-links.active {
    display: flex;
  }

  .menu-toggle {
    display: flex;
  }

  .card-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .card-image {
    width: 100%;
    height: 320px;
    flex-shrink: 0;
    align-self: flex-start;  
  }
}