:root {
  --oro: #b8935a;
  --oro-suave: #a98650;
  --crema: #f2ede1;
  --gris: #8a8c80;
  --gris-oscuro: #5c6157;
  --verde: #141c15;
  --linea: rgba(184, 147, 90, 0.28);
}

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

html { background: var(--verde); }

body {
  min-height: 100vh;
  font-family: "EB Garamond", "Cormorant Garamond", Garamond, Georgia, serif;
  color: var(--crema);
  -webkit-font-smoothing: antialiased;
  /* Capa 1 (encima): tu fondo original. Si el archivo no existe, se ve la capa 2. */
  background-color: var(--verde);
  background-image:
    radial-gradient(ellipse at 50% 35%, rgba(0, 0, 0, 0) 30%, rgba(4, 8, 5, 0.45) 100%),
    url("assets/fondo.jpg"),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='700' height='700'><filter id='f' x='0' y='0' width='100%25' height='100%25'><feTurbulence type='turbulence' baseFrequency='0.034' numOctaves='4' seed='11'/><feColorMatrix type='matrix' values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0.9 0.9 0.9 0 -0.8'/></filter><rect width='100%25' height='100%25' filter='url(%23f)' opacity='0.55'/></svg>");
  background-size: 100% 100%, 900px auto, 420px 420px;
  background-repeat: no-repeat, repeat, repeat;
  background-position: center, top left, top left;
  background-attachment: scroll, scroll, scroll;
}

.pagina {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: clamp(3rem, 8vh, 6rem) 1.5rem 4rem;
  text-align: center;
}

.logo { display: block; margin: 0 auto; width: clamp(120px, 14vw, 170px); height: auto; }

.logo-texto {
  font-size: clamp(2rem, 4vw, 2.6rem);
  letter-spacing: 0.06em;
  color: var(--oro);
}

.regla {
  display: block;
  width: 64px;
  height: 1px;
  background: var(--oro);
  opacity: 0.7;
  margin: clamp(2.5rem, 7vh, 4.5rem) auto;
  border: 0;
}

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

h1 {
  font-weight: 400;
  font-style: italic;
  font-size: clamp(1.9rem, 4.2vw, 2.9rem);
  line-height: 1.25;
  margin-top: clamp(1.8rem, 4vh, 2.8rem);
  color: var(--crema);
}

.edicion {
  margin-top: 1.4rem;
  font-size: 0.82rem;
  letter-spacing: 0.26em;
  color: var(--gris);
}

.ornamento {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  margin: clamp(2.2rem, 6vh, 3.6rem) auto;
  color: var(--oro);
  opacity: 0.55;
}
.ornamento::before, .ornamento::after { content: ""; width: 54px; height: 1px; background: var(--oro); }
.ornamento i { width: 4px; height: 4px; border-radius: 50%; background: var(--oro); display: block; }

.intro {
  font-style: italic;
  font-size: 1.15rem;
  color: var(--crema);
  margin-bottom: 3rem;
}

form { max-width: 760px; margin: 0 auto; text-align: left; }

.fila { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.campo { margin-bottom: 2rem; }

label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--oro);
  margin-bottom: 0.6rem;
}

input, textarea {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--linea);
  border-radius: 0;
  padding: 0.7rem 0 0.9rem;
  font-family: inherit;
  font-style: italic;
  font-size: 1.2rem;
  color: var(--crema);
  outline: none;
  transition: border-color 0.3s;
}
textarea { resize: none; min-height: 5.5rem; }
input::placeholder, textarea::placeholder { color: #767a6e; opacity: 1; }
input:focus, textarea:focus { border-bottom-color: var(--oro); }

button {
  display: block;
  width: 100%;
  margin-top: 2.8rem;
  padding: 1.55rem 1rem;
  background: transparent;
  color: var(--crema);
  border: 1px solid rgba(184, 147, 90, 0.6);
  box-shadow: 0 0 0 4px rgba(184, 147, 90, 0.06);
  font-family: inherit;
  font-size: 0.85rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.3s, border-color 0.3s;
}
button:hover { background: rgba(184, 147, 90, 0.1); border-color: var(--oro); }
button:disabled { opacity: 0.6; cursor: default; }

.nota {
  margin-top: 3rem;
  font-style: italic;
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--gris-oscuro);
  letter-spacing: 0.06em;
  text-align: center;
}

.mensaje { text-align: center; padding: 2rem 0; }
.mensaje p { font-style: italic; font-size: 1.35rem; line-height: 1.6; }
.mensaje small { display: block; margin-top: 1rem; color: var(--gris); letter-spacing: 0.2em; text-transform: uppercase; font-size: 0.75rem; }

.oculto { position: absolute; left: -9999px; }

@media (max-width: 640px) {
  .fila { grid-template-columns: 1fr; gap: 0; }
  button { letter-spacing: 0.26em; }
}
