@import url("https://fonts.googleapis.com/css2?family=Cinzel+Decorative:wght@700&family=Lora&display=swap");

/* ===== RESET ===== */
* { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Lora", serif;
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(14px);
  box-shadow: 0 2px 15px rgba(0,0,0,0.15);
  z-index: 1000;
}

.logo {
  font-family: "Cinzel Decorative", serif;
  font-size: 1.6rem;
  color: #3a2e23;
  font-weight: 700;
}

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

.nav-link {
  text-decoration:none;
  color:#3a2e23;
  font-weight:bold;
  transition: all 0.3s ease;
  position: relative;
  font-family: "Lora", serif;
}

.nav-link:hover { color:#b89e55; }

.nav-link::after {
  content:"";
  position:absolute;
  bottom:-3px;
  left:0;
  width:0;
  height:2px;
  background:#b89e55;
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after { width:100%; }

/* Botón hamburguesa */
.menu-toggle {
  display:none;
  font-size:1.8rem;
  background:none;
  border:none;
  color:#3a2e23;
  cursor:pointer;
}

@media(max-width:768px){
  .menu { 
    display:none;
    flex-direction:column;
    position:absolute;
    top:65px;
    right:0;
    width:65%;
    background:rgba(245,242,235,0.97);
    padding:1.5rem;
    box-shadow:-2px 2px 12px rgba(0,0,0,0.12);
    border-radius:8px 0 0 8px;
  }
  .menu.show { display:flex; }
  .menu li { margin-bottom:1rem; }
  .menu-toggle { display:block; }
}

/* ===== HERO ===== */
.hero {
  width: 100%;
  min-height: 110vh;
  background: url("../img/fotofachada.jpg") center/cover no-repeat fixed;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(0,0,0,0.15), rgba(0,0,0,0.25));
  backdrop-filter: blur(1px);
  z-index: 1;
}

/* ===== WELCOME CARD MODERNO ===== */
.welcome-card {
  position: relative;
  z-index: 2;
  max-width: 635px;
  padding: 2rem 2rem;
  background: rgba(255,255,255,0.92); /* translúcido blanco elegante */
  border-radius: 22px;
  box-shadow: 0 14px 40px rgba(0,0,0,0.32);
  text-align: center;
  color: #2b2115;
  backdrop-filter: blur(8px);
  opacity: 0;
  transform: translateY(30px) scale(0.95);
  animation: fadeInCard 0.8s ease forwards 0.2s; /* animación rápida y con delay */
}

@keyframes fadeInCard {
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.welcome-card h1 {
  font-family: "Cinzel Decorative", serif;
  font-size: 2rem;
  margin-bottom: 0.8rem;
  line-height: 1.2;
  color: #3a2e23;
}

.welcome-card p {
  font-family: "Lora", serif;
  font-size: 1rem;
  margin-bottom: 1.6rem;
  color: #3a2e23;
}

.welcome-card .btn {
  display: inline-block;
  background: #b89e55;
  color: #fff;
  padding: 0.75rem 1.6rem;
  border-radius: 50px;
  font-weight: bold;
  text-decoration: none;
  font-family: "Lora", serif;
  box-shadow: 0 6px 18px rgba(0,0,0,0.32);
  transition: all 0.3s ease, transform 0.2s ease;
}

.welcome-card .btn:hover {
  background: #9e8742;
  transform: translateY(-2px) scale(1.05);
}

/* ===== SECCIONES ===== */
.section {
  padding: 30px 20px;
  text-align:center;
  opacity:0;
  transform:translateY(25px);
  transition: all 0.8s ease;
  background: rgba(248,246,242,0.92);
  backdrop-filter: blur(5px);
  margin-top: 80px;
}
.section.visible { opacity:1; transform:translateY(0); }

.section h2 {
  font-family:"Cinzel Decorative", serif;
  font-size:2.2rem;
  color:#2a1f13;
  margin-bottom:1rem;
}
.section h2::after {
  content:"";
  display:block;
  width:70px;
  height:3px;
  background:#b89e55;
  margin:0.8rem auto 2rem;
  border-radius:2px;
}

/* SOBRE EL MUSEO */
/* Por defecto, 3 tarjetas por fila */
.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* Pantallas medianas: 2 tarjetas por fila si es menor a 900px */
@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Pantallas pequeñas: 1 tarjeta por fila si es menor a 600px */
@media (max-width: 600px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1000px) { .about-grid {grid-template-columns: 1fr; }} /* todo apilado */

.about-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.25);
}

.about-card h3 {
  font-family: "Cinzel Decorative", serif;
  font-size: 1.4rem;
  margin-bottom: 0.6rem;
  color: #2b2115;
}

.about-card p {
  font-family: "Lora", serif;
  font-size: 1rem;
  color: #463a2a;
  line-height: 1.6;
}

/* ===== FOOTER ===== */
.footer {
  background:#2b2116;
  color:#f2eee6;
  text-align:center;
  padding:2rem 1rem;
  font-family:"Lora", serif;
  font-size:0.95rem;
  border-top:3px solid #b89e55;
}

/* ===== RESPONSIVE ===== */
@media(max-width:768px){
  .welcome-card{padding:1.8rem 1.5rem;}
  .welcome-card h1{font-size:1.8rem;}
  .welcome-card p{font-size:0.95rem;}
  .welcome-card .btn{padding:0.65rem 1.4rem;}
  .section h2{font-size:2rem;}
}
@media(max-width:480px){
  .welcome-card{padding:1.3rem 1rem;}
  .welcome-card h1{font-size:1.5rem;}
  .welcome-card p{font-size:0.9rem;}
  .welcome-card .btn{padding:0.5rem 1.2rem;}
  .about-card img{height:180px;}
}

/* ===== FEATURES / QUÉ OFRECE ===== */
.features {
  padding: 80px 20px;
  text-align: center;
  background: rgba(248,246,242,0.92);
  backdrop-filter: blur(5px);
}

.features h2 {
  font-family: "Cinzel Decorative", serif;
  font-size: 2.3rem;
  color: #2a1f13;
  margin-bottom: 2rem;
}
.features h2::after {
  content: "";
  display: block;
  width: 70px;
  height: 3px;
  background: #b89e55;
  margin: 0.8rem auto 2rem;
  border-radius: 2px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.feature-card {
  background: rgba(255,255,255,0.95);
  padding: 1.8rem;
  border-radius: 14px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.18);
}

.feature-card h3 {
  font-family: "Cinzel Decorative", serif;
  font-size: 1.3rem;
  color: #2b2115;
  margin-bottom: 0.8rem;
}

.feature-card p {
  font-family: "Lora", serif;
  font-size: 1rem;
  color: #463a2a;
  line-height: 1.6;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
}
