:root {
  --fondo-pergamino-claro: #fff9f0;
  --fondo-pergamino: #f5efe4;
  --fondo-pergamino-oscuro: #e7dcc6;
  --borde-dorado: #c19a4a;
  --texto-principal: #3b2b18;
  --texto-secundario: #5a4630;
  --enlace: #8a5a11;
  --enlace-hover-bg: rgba(212,185,130,0.18);
  --sombra-suave: rgba(0,0,0,0.12);
  --sombra-fuerte: rgba(0,0,0,0.28);
}

body {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  margin: 0;
  padding: 0;
  background-color: var(--fondo-pergamino-claro);
  color: var(--texto-principal);
  line-height: 1.55;
}

.contenido {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 20px 80px;
  position: relative;
  z-index: 1;
}

.titulo-principal {
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 1vw + 1.5rem, 2.6rem);
  font-weight: 600;
  color: var(--texto-principal);
  line-height: 1.2;
  letter-spacing: 0.02em;
  margin: 0 0 10px 0;
  text-align: center;
}

.intro-ciudad {
  font-size: 1rem;
  color: var(--texto-secundario);
  text-align: center;
  max-width: 780px;
  margin: 0 auto 30px auto;
  line-height: 1.45;
  font-weight: 400;
}

.hero-imagen-ciudad {
  width: 100%;
  max-width: 900px;
  border-radius: 16px;
  border: 2px solid var(--borde-dorado);
  box-shadow:
    0 24px 48px var(--sombra-suave),
    0 2px 4px rgba(0,0,0,0.1);
  display: block;
  margin: 24px auto 10px auto;
}

.indice-bloque {
  background: radial-gradient(
    circle at 20% 20%,
    var(--fondo-pergamino-claro) 0%,
    var(--fondo-pergamino) 40%,
    var(--fondo-pergamino-oscuro) 100%
  );
  border: 2px solid var(--borde-dorado);
  border-radius: 20px;
  padding: 24px 20px;
  margin-top: 40px;
  box-shadow:
    0 24px 48px var(--sombra-suave),
    0 2px 4px rgba(0,0,0,0.08);
  position: relative;
}

.indice-bloque h2 {
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-size: clamp(1.4rem, 0.4vw + 1rem, 1.8rem);
  font-weight: 600;
  color: var(--texto-principal);
  line-height: 1.25;
  text-align: center;
  margin: 0 0 20px 0;
  position: relative;
  padding-bottom: 10px;
}

.indice-bloque h2::after {
  content: "";
  width: 80px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(
    to right,
    #b38b4a 0%,
    #d9c18a 50%,
    #b38b4a 100%
  );
  display: block;
  margin: 14px auto 0 auto;
  box-shadow: 0 0 6px rgba(179,139,74,0.6);
}

.indice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px,100%),1fr));
  gap: 12px 16px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.indice-grid a {
  display: block;
  background: rgba(255,255,255,0.55);
  border: 1px solid rgba(193,154,74,0.5);
  border-left: 6px solid var(--borde-dorado);
  border-radius: 12px;
  padding: 14px 16px;
  font-size: .95rem;
  line-height: 1.4;
  color: var(--texto-principal);
  font-weight: 500;
  text-decoration: none;
  box-shadow: 0 8px 16px rgba(0,0,0,0.06);
  transition: all .18s ease;
}

.indice-grid a:hover {
  background-color: var(--enlace-hover-bg);
  box-shadow:
    0 16px 28px rgba(0,0,0,0.12),
    0 2px 4px rgba(0,0,0,0.18);
}

.indice-num {
  display: inline-block;
  font-weight: 600;
  font-size: .9rem;
  color: var(--borde-dorado);
  margin-right: .5rem;
}

.bloque-seccion {
  background: radial-gradient(
    circle at 20% 20%,
    var(--fondo-pergamino-claro) 0%,
    var(--fondo-pergamino) 40%,
    var(--fondo-pergamino-oscuro) 100%
  );
  border: 2px solid var(--borde-dorado);
  border-radius: 20px;
  padding: 32px 24px;
  margin-top: 50px;
  position: relative;
  box-shadow:
    0 24px 48px var(--sombra-suave),
    0 2px 4px rgba(0,0,0,0.08);
  color: var(--texto-principal);
}

.bloque-seccion::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -60%);
  width: 120px;
  height: 120px;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(193,154,74,0.45) 0%,
    rgba(193,154,74,0) 70%
  );
  filter: blur(18px);
  pointer-events: none;
}

.titulo-seccion {
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-size: clamp(1.6rem, 0.5vw + 1.2rem, 2rem);
  font-weight: 600;
  color: var(--texto-principal);
  line-height: 1.2;
  letter-spacing: 0.02em;
  margin: 0 0 24px 0;
  text-align: center;
  position: relative;
  padding-bottom: 12px;
}

.titulo-seccion::after {
  content: "";
  width: 90px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(
    to right,
    #b38b4a 0%,
    #d9c18a 50%,
    #b38b4a 100%
  );
  display: block;
  margin: 16px auto 0 auto;
  box-shadow: 0 0 6px rgba(179,139,74,0.6);
}

.bloque-texto p {
  font-size: 1rem;
  line-height: 1.55;
  color: var(--texto-principal);
  margin: 0 0 1rem 0;
  font-weight: 400;
}

.bloque-texto strong {
  font-weight: 600;
  color: #2a1c0c;
}

.imagen-contenido {
  width: 100%;
  max-width: 400px;
  display: block;
  margin: 0 auto 24px auto;
  border-radius: 16px;
  border: 2px solid var(--borde-dorado);
  box-shadow:
    0 20px 32px rgba(0,0,0,0.18),
    0 2px 4px rgba(0,0,0,0.15);
}

a {
  color: var(--enlace);
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px dashed rgba(138,90,17,0.4);
  transition: all .18s ease;
}

a:hover {
  color: #000;
  background-color: var(--enlace-hover-bg);
  border-bottom-color: rgba(138,90,17,0.8);
  box-shadow: 0 0 8px rgba(212,185,130,0.6);
  border-radius: 4px;
  padding: 0 2px;
}

#btnTop {
  position: fixed;
  bottom: 80px;
  right: 30px;
  z-index: 1000;
  font-size: 20px;
  background: radial-gradient(circle at 30% 30%, #d9c18a 0%, #b38b4a 60%, #8a5a11 100%);
  color: #2a1c0c;
  border: 2px solid #2a1c0c;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  cursor: pointer;
  display: none;
  box-shadow: 0 14px 24px var(--sombra-fuerte),
              0 2px 3px rgba(0,0,0,0.4);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-weight: 600;
  line-height: 46px;
  text-align: center;
}

#btnTop:hover {
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 18px 32px rgba(0,0,0,0.4),
              0 2px 3px rgba(0,0,0,0.5);
}

.reveal-base {
  opacity: 0;
  transform: translateY(60px);
  filter: blur(6px);
  transition: all 0.9s ease;
  will-change: transform, opacity, filter;
}

.reveal-visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: all .7s ease;
  will-change: transform, opacity;
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: all .7s ease;
  will-change: transform, opacity;
}

.reveal-visible-left,
.reveal-visible-right {
  opacity: 1;
  transform: translateX(0);
}

@media (max-width: 768px) {
  .contenido {
    padding: 28px 14px 70px;
  }

  .bloque-seccion {
    padding: 24px 16px;
    margin-top: 34px;
  }

  .indice-bloque {
    padding: 20px 16px;
  }

  .hero-imagen-ciudad {
    margin-top: 20px;
  }

  #btnTop {
    right: 18px;
    bottom: 18px;
    width: 46px;
    height: 46px;
    line-height: 42px;
  }
}