/* ==========================================================
   COLORES (aquí cambias el look de toda la página)
   ========================================================== */
:root {
  --bg: #faf6f1;
  --card: #fff;
  --text: #1d1a18;
  --muted: #6b625b;
  --accent: #d10a14;      /* rojo principal (modo claro) */
  --gold: #b8860b;
  --line: #e5dccf;

  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

/* Modo oscuro automático (según el celular o la compu) */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #120e0e;
    --card: #1c1616;
    --text: #f4ece4;
    --muted: #a89c92;
    --accent: #ff2b2b;    /* rojo más vivo sobre fondo oscuro */
    --gold: #e9c46a;
    --line: #322727;
  }
}

/* Modo oscuro forzado */
:root[data-theme="dark"] {
  --bg: #120e0e;
  --card: #1c1616;
  --text: #f4ece4;
  --muted: #a89c92;
  --accent: #ff2b2b;
  --gold: #e9c46a;
  --line: #322727;
}

/* ==========================================================
   BASE
   ========================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(env(safe-area-inset-top, 0px) + 5rem); /* para que el menú no tape los títulos */
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, sans-serif;
  line-height: 1.65;
}

h1, h2, h3 {
  font-family: 'Bebas Neue', Impact, sans-serif;
  letter-spacing: .04em;
  font-weight: 400;
  margin: 0;
}

a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

/* ==========================================================
   MENÚ CON LOGO
   ========================================================== */
.menu {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.2rem;
  padding: .6rem 1rem;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.menu a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: .9rem;
}

.menu a:hover {
  color: var(--accent);
}

.logo {
  display: flex;
}

.logo img {
  display: block;
  width: 44px;
  height: 44px;
  border-radius: 10px;   /* el logo tiene fondo negro, así se ve como "insignia" */
}

/* ==========================================================
   HERO
   ========================================================== */
.hero {
  text-align: center;
  padding: 5rem 1.2rem 4rem;
}

.hero small {
  color: var(--gold);
  letter-spacing: .3em;
  text-transform: uppercase;
  font-weight: 600;
}

.hero h1 {
  font-size: clamp(4rem, 16vw, 9rem);
  line-height: .95;
  margin: .6rem 0;
  color: var(--accent);
}

.hero p {
  max-width: 34rem;
  margin: 0 auto;
  color: var(--muted);
  font-size: 1.1rem;
}

.tags {
  display: flex;
  gap: .6rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.tags span {
  border: 1px solid var(--gold);
  color: var(--gold);
  padding: .3rem .9rem;
  border-radius: 99px;
  font-size: .85rem;
}

/* ==========================================================
   SECCIONES
   ========================================================== */
section {
  max-width: 60rem;
  margin: 0 auto;
  padding: 3.5rem 1.2rem;
  border-top: 1px solid var(--line);
}

section h2 {
  font-size: clamp(2.2rem, 7vw, 3.4rem);
  color: var(--accent);
  margin-bottom: 1rem;
}

section h2 em {
  font-style: normal;
  color: var(--gold);
  font-size: .45em;
  display: block;
  letter-spacing: .3em;
}

.cols {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  margin-top: 1.5rem;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.3rem;
}

.card h3 {
  font-size: 1.5rem;
  color: var(--gold);
  margin-bottom: .4rem;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: .95rem;
}

/* ==========================================================
   GALERÍA DE FOTOS
   ========================================================== */
.gallery {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr));
  margin-top: 1.5rem;
}

.foto {
  margin: 0;
}

.foto img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 14px;
}

.foto figcaption {
  margin-top: .5rem;
  color: var(--muted);
  font-size: .9rem;
}

/* ==========================================================
   REDES SOCIALES
   ========================================================== */
#contacto {
  text-align: center;
}

.redes ul {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
}

.redes a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 2px solid var(--text);   /* antes era blanco: en modo claro no se veía */
  border-radius: 50%;
  color: var(--text);
  font-size: 1.4rem;
  text-decoration: none;
  transition: background .2s, border-color .2s, color .2s, transform .2s;
}

.redes a:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  transform: translateY(-3px);
}

/* ==========================================================
   FOOTER
   ========================================================== */
footer {
  text-align: center;
  color: var(--muted);
  padding: 2rem 1rem 3rem;
  font-size: .85rem;
}

/* Respeta a quien tiene desactivadas las animaciones */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .redes a { transition: none; }
}
