/* =================================================================
   BASE — se carga en todas las páginas.
   Tipografía, variables de color y estilos compartidos.
   ================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700&family=Lato:wght@300;400;600;700&display=swap');

:root {
  /* Marca */
  --dorado: #b8963e;
  --dorado-oscuro: #9a7a2e;
  --dorado-claro: #f0c060;
  --azul-noche: #060d21;

  /* Texto */
  --texto: #111111;
  --texto-suave: #5a5a5a;

  /* Superficies */
  --fondo: #ffffff;
  --fondo-alt: #f7f6f3;
  --borde: rgba(0, 0, 0, 0.12);

  /* Estado */
  --verde: #4ade80;
  --rojo: #d64545;

  --radio: 14px;
  --sombra: 0 10px 30px rgba(0, 0, 0, 0.08);
}

body {
  /* Las fuentes se cargaban pero nunca se aplicaban. */
  font-family: 'Lato', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-weight: 400;
  color: var(--texto);
  background-color: var(--fondo);
}

h1, h2, h3,
.hero-title,
.temples-title,
.temple-name {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
  font-weight: 700;
}

/* La navbar y las etiquetas en mayúsculas se leen mejor en Lato. */
.custom-navbar,
.hero-card-label,
.temple-label,
.hero-btn {
  font-family: 'Lato', system-ui, sans-serif;
}

/* ===== FOCO VISIBLE (accesibilidad de teclado) ===== */

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--dorado);
  outline-offset: 2px;
}

/* ===== ANIMACIONES GLOBALES ===== */

/* Estaba anidada dentro de @media (max-width:700px), así que el punto
   verde de "En curso" solo latía en móvil. Ahora es global. */
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.5); }
  70%  { box-shadow: 0 0 0 7px rgba(74, 222, 128, 0); }
  100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}

@keyframes girar {
  to { transform: rotate(360deg); }
}

/* Respeta a quien pide menos movimiento en su sistema operativo. */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ================================================= */
/* ===== PIE DE PÁGINA (componente compartido) ===== */
/* ================================================= */

.pie {
  padding: 70px 40px 30px;
  /* Fondo oscuro: cierra la página y separa el pie del contenido claro. */
  background: var(--azul-noche);
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
  line-height: 1.65;
}

.pie-columnas {
  display: grid;
  /* La primera columna es más ancha porque lleva el texto de presentación. */
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 2.5rem;
  padding-bottom: 2.5rem;
}

.pie-logo {
  display: block;
  margin-bottom: 1rem;
  width: 56px;
  height: auto;
}

.pie-nombre {
  margin: 0 0 0.6rem;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
}

.pie-texto {
  margin: 0;
  max-width: 40ch;
  font-size: 0.88rem;
}

.pie-titulo {
  margin: 0 0 1.1rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dorado-claro);
}

.pie-lista {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  font-style: normal;   /* <address> llega en cursiva por defecto */
}

.pie-enlace {
  display: block;
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  transition: color 0.2s ease;
}

.pie-enlace:hover,
.pie-enlace:focus-visible {
  color: var(--dorado-claro);
}

/* Etiqueta pequeña encima del dato ("Teléfono", "Correo"…). */
.pie-etiqueta {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
}

.pie-horarios li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.pie-horarios li:last-child { border-bottom: none; }

.pie-horarios span:last-child {
  font-weight: 600;
  color: #fff;
}

/* --- Cierre: copyright y redes --- */

.pie-cierre {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.8rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.pie-copyright {
  margin: 0;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
}

.pie-redes {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
}

.pie-red {
  display: inline-block;
  padding: 0.35rem 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.pie-red:hover,
.pie-red:focus-visible {
  background: var(--dorado);
  border-color: var(--dorado);
  color: #fff;
}

@media (max-width: 900px) {
  .pie-columnas {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
  .pie-marca { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  .pie { padding: 50px 22px 25px; }
  .pie-columnas { grid-template-columns: 1fr; }
  .pie-cierre { justify-content: center; text-align: center; }
}
