/* estilos.css — la base del diseño. No se edita: el estilo elegido está en estilos/<nombre>.css
   y tus retoques en estilo.css. Este archivo trae el estilo "Ámbar" por defecto.
   Dirección visual: "nocturno cálido con ámbar". Los colores y tamaños viven en :root:
   para cambiar el estilo entero alcanza con cambiar estas variables. */

:root {
  /* Colores */
  --fondo: #16120f;
  --superficie: #201a16;
  --superficie-2: #2a221c;
  --linea: color-mix(in srgb, var(--texto) 12%, transparent);
  --texto: #f3ece4;
  --texto-suave: #b8ab9d;
  --acento: #f2a65a;
  --acento-texto: #1c130b;
  --acento-suave: color-mix(in srgb, var(--acento) 14%, transparent);
  --error: #ff8a7a;
  --exito: #9ad8a0;

  /* Tipografías */
  --fuente-titulo: "Fraunces", Georgia, serif;
  --fuente-texto: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Medidas (sistema de 4 y 8 px) */
  --ancho: 480px;
  --radio: 14px;
  --radio-chico: 10px;
  --esp-1: 4px;
  --esp-2: 8px;
  --esp-3: 12px;
  --esp-4: 16px;
  --esp-6: 24px;
  --esp-8: 32px;
  --esp-12: 48px;

  /* Movimiento */
  --rapido: 160ms;
  --normal: 260ms;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(120% 60% at 50% -10%, color-mix(in srgb, var(--acento) 10%, transparent), transparent 60%),
    var(--fondo);
  color: var(--texto);
  font-family: var(--fuente-texto);
  font-size: 16px;
  line-height: 1.5;
  min-height: 100vh;
}

a { color: inherit; }
img { max-width: 100%; display: block; }

:focus-visible { outline: 2px solid var(--acento); outline-offset: 3px; border-radius: 6px; }

.saltar {
  position: absolute; left: var(--esp-4); top: -60px;
  background: var(--acento); color: var(--acento-texto);
  padding: var(--esp-2) var(--esp-4); border-radius: var(--radio-chico); font-weight: 600; z-index: 10;
}
.saltar:focus { top: var(--esp-4); }

.pagina {
  max-width: var(--ancho);
  margin: 0 auto;
  padding: var(--esp-12) var(--esp-4) var(--esp-8);
}

/* ---------- Perfil ---------- */
.perfil { text-align: center; }
.perfil__foto {
  width: 104px; height: 104px; border-radius: 50%; margin: 0 auto var(--esp-4);
  object-fit: cover;
  box-shadow: 0 0 0 3px var(--fondo), 0 0 0 5px var(--acento);
}
.perfil__nombre {
  font-family: var(--fuente-titulo); font-style: italic; font-weight: 500;
  font-size: clamp(34px, 9vw, 44px); line-height: 1.05; letter-spacing: -0.01em;
  margin: 0 0 var(--esp-2);
}
.perfil__frase { color: var(--texto-suave); margin: 0 auto; max-width: 34ch; }

/* ---------- Redes ---------- */
.redes { display: flex; justify-content: center; gap: var(--esp-2); margin: var(--esp-6) 0 var(--esp-8); flex-wrap: wrap; }
.red {
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--superficie); border: 1px solid var(--linea);
  transition: border-color var(--rapido), transform var(--rapido), background var(--rapido);
}
.red:hover { border-color: var(--acento); background: var(--superficie-2); transform: translateY(-2px); }

/* Íconos de marcas: se pintan con el color del texto usando una máscara */
.icono-marca {
  width: 18px; height: 18px; background: currentColor;
  -webkit-mask: var(--icono) center / contain no-repeat; mask: var(--icono) center / contain no-repeat;
}

/* ---------- Campaña ---------- */
.campania {
  display: flex; align-items: center; gap: var(--esp-3);
  padding: var(--esp-3) var(--esp-4); margin-bottom: var(--esp-8);
  border: 1px solid var(--acento); border-radius: 999px; background: var(--acento-suave);
  text-decoration: none; transition: background var(--rapido);
}
.campania:hover { background: color-mix(in srgb, var(--acento) 22%, transparent); }
.campania__punto { width: 10px; height: 10px; border-radius: 50%; background: var(--acento); flex: none; }
.campania__texto { display: flex; flex-direction: column; line-height: 1.3; }
.campania__titulo { font-weight: 600; }
.campania__detalle { font-size: 13px; color: var(--texto-suave); }
/* ---------- Grupos y links ---------- */
.grupo { margin-bottom: var(--esp-8); }
.titulo-bloque {
  display: flex; align-items: baseline; gap: var(--esp-3);
  font-family: var(--fuente-titulo); font-weight: 500; font-size: 20px; margin: 0 0 var(--esp-3);
}
.titulo-bloque__num { font-family: var(--fuente-texto); font-size: 12px; font-weight: 600; color: var(--acento); letter-spacing: 0.08em; }
.titulo-bloque::after { content: ""; flex: 1; height: 1px; background: var(--linea); align-self: center; }

.lista-links { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--esp-2); }
.link {
  display: grid; grid-template-columns: 40px 1fr 16px; align-items: center; gap: var(--esp-3);
  min-height: 64px; padding: var(--esp-3) var(--esp-4);
  background: var(--superficie); border: 1px solid var(--linea); border-radius: var(--radio);
  text-decoration: none;
  transition: border-color var(--rapido), background var(--rapido), transform var(--rapido);
}
.link:hover { border-color: color-mix(in srgb, var(--acento) 50%, transparent); background: var(--superficie-2); transform: translateY(-1px); }
.link:active { transform: translateY(0); }
.link__icono { width: 40px; height: 40px; border-radius: var(--radio-chico); background: var(--superficie-2); display: grid; place-items: center; color: var(--acento); }
.link__icono svg { width: 20px; height: 20px; }
.link__texto { display: flex; flex-direction: column; min-width: 0; }
.link__titulo { font-weight: 600; line-height: 1.3; }
.link__detalle { font-size: 13px; color: var(--texto-suave); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.link__flecha { color: var(--texto-suave); width: 16px; height: 16px; }

/* .link.link--destacado (dos clases): así ningún estilo que cambie .link le pisa el fondo al destacado. */
.link.link--destacado { background: var(--acento); color: var(--acento-texto); border-color: var(--acento); }
.link.link--destacado:hover { background: var(--acento); border-color: var(--acento); box-shadow: 0 0 0 2px var(--fondo), 0 0 0 4px var(--acento); }
.link.link--destacado .link__icono { background: color-mix(in srgb, var(--acento-texto) 12%, transparent); color: var(--acento-texto); }
.link.link--destacado .link__detalle { color: var(--acento-texto); }
.link.link--destacado .link__flecha { color: color-mix(in srgb, var(--acento-texto) 78%, transparent); }

/* Grupo plegable */
.plegable summary {
  list-style: none; cursor: pointer; min-height: 44px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--esp-4); border: 1px solid var(--linea); border-radius: var(--radio); background: var(--superficie);
  font-weight: 600; transition: border-color var(--rapido);
}
.plegable summary::-webkit-details-marker { display: none; }
.plegable summary::after { content: "+"; color: var(--acento); font-size: 20px; transition: transform var(--rapido); }
.plegable[open] summary { margin-bottom: var(--esp-2); }
.plegable[open] summary::after { transform: rotate(45deg); }
.plegable summary:hover { border-color: color-mix(in srgb, var(--acento) 50%, transparent); }

/* Aviso +18 */
.aviso18 {
  padding: var(--esp-6) var(--esp-4); border: 1px dashed color-mix(in srgb, var(--acento) 50%, transparent); border-radius: var(--radio);
  background: var(--superficie); text-align: center;
}
.aviso18__sello {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  border: 2px solid var(--acento); color: var(--acento); font-weight: 600; font-size: 14px; margin-bottom: var(--esp-3);
}
.aviso18 p { margin: 0 0 var(--esp-4); color: var(--texto-suave); }
.aviso18 strong { color: var(--texto); }

/* ---------- Botones ---------- */
.boton {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--esp-2);
  min-height: 44px; padding: 0 var(--esp-6); border-radius: 999px;
  font: 600 15px/1 var(--fuente-texto); text-decoration: none; cursor: pointer;
  border: 1px solid var(--acento); background: var(--acento); color: var(--acento-texto);
  transition: background var(--rapido), opacity var(--rapido);
}
.boton:hover { box-shadow: 0 0 0 2px var(--fondo), 0 0 0 4px var(--acento); }
.boton[disabled] { opacity: 0.6; cursor: progress; }
.boton--secundario { background: transparent; color: var(--texto); border-color: var(--linea); }
.boton--secundario:hover { background: var(--superficie-2); border-color: var(--acento); }
.boton svg { width: 18px; height: 18px; }

/* ---------- Bloques: galería, video, eventos, FAQ, contacto ---------- */
.bloque { margin-bottom: var(--esp-8); }

.galeria { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--esp-2); }
.galeria button { padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: var(--radio-chico); overflow: hidden; }
.galeria img { aspect-ratio: 4 / 5; width: 100%; height: auto; object-fit: cover; transition: transform var(--normal); }
.galeria button:hover img { transform: scale(1.04); }

.visor { border: 0; padding: 0; background: transparent; max-width: min(92vw, 560px); }
.visor::backdrop { background: rgba(10, 8, 6, 0.88); }
.visor img { border-radius: var(--radio); width: 100%; }
.visor__cerrar { position: absolute; top: var(--esp-2); right: var(--esp-2); }

.video {
  position: relative; aspect-ratio: 16 / 9; border-radius: var(--radio); overflow: hidden;
  background: var(--superficie); border: 1px solid var(--linea);
}
.video button { all: unset; cursor: pointer; position: absolute; inset: 0; display: grid; place-items: center; }
.video img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.75; }
.video__play {
  position: relative; width: 64px; height: 64px; border-radius: 50%; background: var(--acento); color: var(--acento-texto);
  display: grid; place-items: center; transition: transform var(--rapido);
}
.video button:hover .video__play { transform: scale(1.08); }
.video button:focus-visible .video__play { outline: 2px solid var(--texto); outline-offset: 4px; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.evento {
  display: grid; grid-template-columns: 64px 1fr; gap: var(--esp-4);
  padding: var(--esp-4); background: var(--superficie); border: 1px solid var(--linea); border-radius: var(--radio);
}
.evento + .evento { margin-top: var(--esp-2); }
.evento__fecha { text-align: center; border-right: 1px solid var(--linea); padding-right: var(--esp-4); }
.evento__dia { font-family: var(--fuente-titulo); font-size: 32px; line-height: 1; display: block; }
.evento__mes { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--acento); }
.evento__titulo { font-weight: 600; margin: 0; }
.evento__detalle { font-size: 14px; color: var(--texto-suave); margin: 2px 0 var(--esp-2); }
.evento__falta { font-size: 13px; color: var(--acento); margin: 0 0 var(--esp-3); }
.evento__acciones { display: flex; gap: var(--esp-2); flex-wrap: wrap; }
.evento__acciones .boton { min-height: 44px; padding: 0 var(--esp-4); font-size: 14px; }

.faq details { border-bottom: 1px solid var(--linea); }
.faq summary {
  list-style: none; cursor: pointer; padding: var(--esp-4) 0; font-weight: 600;
  display: flex; justify-content: space-between; gap: var(--esp-4);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--acento); font-size: 20px; line-height: 1; transition: transform var(--rapido); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { margin: 0 0 var(--esp-4); color: var(--texto-suave); }

.formulario { display: grid; gap: var(--esp-3); }
.campo { display: grid; gap: var(--esp-1); }
.campo label { font-size: 14px; font-weight: 500; }
.campo input, .campo textarea {
  font: 16px/1.4 var(--fuente-texto); color: var(--texto);
  background: var(--superficie); border: 1px solid var(--linea); border-radius: var(--radio-chico);
  padding: var(--esp-3); width: 100%;
}
.campo textarea { min-height: 112px; resize: vertical; }
.campo input:focus, .campo textarea:focus { border-color: var(--acento); outline: none; box-shadow: 0 0 0 3px var(--acento-suave); }
.formulario__estado { font-size: 14px; min-height: 1.5em; margin: 0; }
.formulario__estado--ok { color: var(--exito); }
.formulario__estado--error { color: var(--error); }
.contacto__directo { display: flex; gap: var(--esp-2); flex-wrap: wrap; margin-top: var(--esp-4); }

.qr { text-align: center; margin-top: var(--esp-6); }
.qr__imagen { background: #fff; padding: var(--esp-3); border-radius: var(--radio-chico); width: 200px; margin: var(--esp-4) auto 0; }
.qr__imagen img, .qr__imagen svg { width: 100%; height: auto; }

.pie { text-align: center; font-size: 13px; color: var(--texto-suave); padding-top: var(--esp-6); border-top: 1px solid var(--linea); }
.pie a { color: var(--texto-suave); }
.sin-js { text-align: center; padding: var(--esp-8); }

/* ---------- Animación de entrada ---------- */
/* El estado normal es visible: si la animación no corre, igual se ve todo */
.aparece { animation: aparecer var(--normal) ease-out backwards; }
@keyframes aparecer { from { opacity: 0; transform: translateY(8px); } }

/* Para quien prefiere menos movimiento: todo quieto */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .aparece { opacity: 1; transform: none; }
}

/* Pantallas grandes: un poco más de aire arriba */
@media (min-width: 768px) {
  .pagina { padding-top: 72px; }
}
