/* =========================================================
   COLORES Y LETRAS — cambia aquí y se cambia en toda la web
   ========================================================= */
:root {
  --fondo: #111010;        /* negro de fondo */
  --fondo-claro: #1c1a19;  /* negro un poco más claro (secciones) */
  --texto: #ece6dc;        /* blanco cálido */
  --acento: #d9a35b;       /* dorado arena (botones, brillos) */
  --gris: #9a948b;

  --letra-titulos: "Cormorant Garamond", serif;
  --letra-texto: "Jost", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--fondo);
  color: var(--texto);
  font-family: var(--letra-texto);
  font-weight: 300;
  line-height: 1.7;
}

a { color: inherit; }

h1, h2 {
  font-family: var(--letra-titulos);
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* ================= CABECERA Y MENÚ ================= */
.cabecera {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 5%;
  background: rgba(17, 16, 16, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(217, 163, 91, 0.2);
}

.logo {
  font-family: var(--letra-titulos);
  font-size: 1.6rem;
  text-decoration: none;
}
.logo span { color: var(--acento); }

.menu { display: flex; gap: 0.5rem; }

/* Pestañas: se iluminan al pasar el cursor */
.pestana {
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  transition: background 0.3s, color 0.3s, box-shadow 0.3s;
}
.pestana:hover,
.pestana.activa {
  background: var(--acento);
  color: var(--fondo);
  box-shadow: 0 0 18px rgba(217, 163, 91, 0.6);
}
.pestana-destacada {
  border: 1px solid var(--acento);
  color: var(--acento);
}

.boton-menu {
  display: none;
  background: none;
  border: none;
  color: var(--texto);
  font-size: 1.8rem;
  cursor: pointer;
}

/* ================= PORTADA ================= */
.portada {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 1.5rem 3rem;
  background:
    radial-gradient(circle at 50% 40%, rgba(217, 163, 91, 0.18), transparent 60%),
    var(--fondo);
}

.antetitulo {
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.8rem;
  color: var(--acento);
}

.portada h1 {
  font-size: clamp(3rem, 10vw, 6.5rem);
  line-height: 1.05;
  margin: 0.5rem 0 1rem;
}

.lema {
  font-size: 1.2rem;
  color: var(--gris);
  margin-bottom: 2rem;
}

.boton {
  display: inline-block;
  padding: 0.9rem 2.2rem;
  border: 1px solid var(--acento);
  border-radius: 999px;
  color: var(--acento);
  text-decoration: none;
  letter-spacing: 0.1em;
  transition: background 0.3s, color 0.3s, box-shadow 0.3s;
}
.boton:hover {
  background: var(--acento);
  color: var(--fondo);
  box-shadow: 0 0 24px rgba(217, 163, 91, 0.5);
}

/* ================= SECCIONES ================= */
.seccion {
  padding: 6rem 5%;
  max-width: 1200px;
  margin: 0 auto;
}
.seccion h2 {
  font-size: 2.6rem;
  text-align: center;
}
.subtitulo {
  text-align: center;
  color: var(--gris);
  margin-bottom: 2.5rem;
}

/* ================= GALERÍA ================= */
.galeria {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.galeria img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 6px;
  cursor: zoom-in;
  filter: grayscale(30%);
  transition: transform 0.4s ease, filter 0.4s ease, box-shadow 0.4s ease;
}
/* Ampliación suave al pasar el cursor */
.galeria img:hover {
  transform: scale(1.05);
  filter: grayscale(0%);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 0 1px var(--acento);
}

/* Visor de foto grande */
.visor {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.92);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.visor.abierto { opacity: 1; pointer-events: auto; }
.visor img {
  max-width: 90vw;
  max-height: 88vh;
  border-radius: 6px;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}
.visor.abierto img { transform: scale(1); }
.visor-cerrar {
  position: absolute;
  top: 1rem; right: 1.5rem;
  background: none;
  border: none;
  color: var(--texto);
  font-size: 2.8rem;
  cursor: pointer;
}

/* ================= SOBRE MÍ ================= */
.sobre-mi {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 3rem;
  align-items: center;
}
.sobre-mi h2 { text-align: left; margin-bottom: 1rem; }
.sobre-mi p { margin-bottom: 1rem; }
.foto-sobre-mi {
  width: 100%;
  border-radius: 6px;
  border: 1px solid rgba(217, 163, 91, 0.3);
}

/* ================= FORMULARIO ================= */
.formulario {
  max-width: 720px;
  margin: 0 auto;
  background: var(--texto);
  border-radius: 10px;
  overflow: hidden;
}
.formulario iframe {
  width: 100%;
  height: 900px;
  border: none;
  display: block;
}
.aviso-formulario {
  padding: 4rem 2rem;
  text-align: center;
  color: var(--fondo);
}

/* ================= PIE ================= */
.pie {
  text-align: center;
  padding: 2.5rem 1rem;
  background: var(--fondo-claro);
  color: var(--gris);
  border-top: 1px solid rgba(217, 163, 91, 0.2);
}
.pie a { color: var(--acento); text-decoration: none; }
.pie a:hover { text-decoration: underline; }

/* ================= MÓVIL ================= */
@media (max-width: 760px) {
  .boton-menu { display: block; }

  .menu {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    padding: 1rem 5%;
    background: var(--fondo);
  }
  .menu.abierto { display: flex; }

  .sobre-mi { grid-template-columns: 1fr; }
  .sobre-mi h2 { text-align: center; }
}
