/* ===== Fuente ===== */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap');

/* ===== Tokens ===== */
:root{
  --bg:#0b0e14;
  --text:#ff0000;        /* rojo principal */
  --text-soft:#ff4d4d;   /* rojo claro (correo y hover) */
  --panel-bg: rgba(10,10,10,0.24);  /* tarjeta más transparente */
  --panel-stroke: rgba(255,0,0,0.10);
  --shadow: 0 12px 40px rgba(0,0,0,.55);
}

/* ===== Base ===== */
*,*::before,*::after{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family:'Roboto', system-ui, -apple-system, Segoe UI, Helvetica, Arial, sans-serif;
  color:var(--text);
  background:var(--bg);
  overflow:hidden; /* sin scroll de página */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===== Fondo + overlay ===== */
.hero{ position:fixed; inset:0; z-index:-1; }
.hero picture, .hero img{ display:block; width:100%; height:100%; }
.hero img{
  object-fit:cover;
  object-position:center 42%;
  filter: brightness(.78) contrast(1.06) saturate(1.08) blur(3px);
}
.overlay{
  position:absolute; inset:0;
  background:
    radial-gradient(1200px 700px at 50% 35%, rgba(0,0,0,.18), transparent 60%),
    linear-gradient(to bottom, rgba(20,0,0,.55), rgba(0,0,0,.6));
  backdrop-filter: blur(1px);
}

/* ===== Layout ===== */
.card{
  height:100svh; /* altura exacta del viewport (móvil incluido) */
  display:grid;
  place-items:center;
  padding:clamp(12px, 3vh, 32px);
  text-align:center;
}

/* Tarjeta “glass” más estrecha y ligera */
.panel{
  display:grid;
  gap:clamp(12px, 2.2vh, 20px);
  align-items:center;
  justify-items:center;
  width:min(80vw, 600px);           /* ← proporción de tarjeta */
  padding:clamp(20px, 4vh, 48px) clamp(20px, 5vw, 40px);
  background: var(--panel-bg);
  border:1px solid var(--panel-stroke);
  border-radius:24px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px) saturate(140%);
  animation: panelIn .8s ease both;
}
@keyframes panelIn{
  from{ opacity:0; transform:translateY(10px); }
  to  { opacity:1; transform:translateY(0); }
}

/* ===== Logo: balanceo/ondulación orgánica sin filtros SVG ===== */
.logo{
  width: clamp(200px, 24vmin, 460px);
  height:auto;
  margin: 0 auto clamp(16px, 2.5vh, 24px) auto;
  display:block;
  filter: drop-shadow(0 0 20px rgba(255,0,0,.55));
  transition: transform .25s ease, filter .25s ease;
  /* animaciones combinadas: sway + pulso de glow (sin flashes) */
  animation:
    tentacleSway 3.4s ease-in-out infinite,
    tentacleGlow 3.0s ease-in-out infinite;
}
@keyframes tentacleSway{
  0%,100% { transform: translateY(0) rotate(0deg) scaleX(1)  scaleY(1); }
  25%     { transform: translateY(-1px) rotate(-1.1deg) scaleX(1.015) scaleY(0.985); }
  75%     { transform: translateY(1px)  rotate( 1.1deg) scaleX(0.985) scaleY(1.015); }
}
@keyframes tentacleGlow{
  0%,100% { filter: drop-shadow(0 0 20px rgba(255,0,0,.55)); }
  50%     { filter: drop-shadow(0 0 40px rgba(255,0,0,.9)); }
}
.logo:hover{
  transform: translateY(-1px) scale(1.05);
  filter: drop-shadow(0 0 34px rgba(255,0,0,.85));
}

/* ===== Tipografía y jerarquía ===== */
.title{
  font-weight:700;
  font-size: clamp(20px, 3.2vmin, 28px);
  letter-spacing:.6px;
  text-transform:uppercase;
  text-shadow:0 0 14px rgba(0,0,0,.65);
}
.meta{
  max-width:52ch;
  display:grid;
  gap:clamp(6px, 1.2vh, 10px);
  font-size: clamp(14px, 2.1vmin, 18px);
  line-height:1.7;
  text-shadow:0 0 14px rgba(0,0,0,.65);
}
.meta a{
  color:var(--text-soft);
  font-weight:500;
  text-decoration:none;
  padding:4px 10px;
  border:1px solid rgba(255,0,0,.18);
  border-radius:999px;
  background: rgba(0,0,0,.18);
  transition: background .25s ease, border-color .25s ease, color .25s ease;
}
.meta a:hover,.meta a:focus{
  color:#ff6a6a;
  border-color: rgba(255,0,0,.35);
  background: rgba(0,0,0,.28);
}
.addr{ opacity:.9; }

/* ===== Footer ===== */
.footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 10px;
  text-align: center;
  font-size: 12px;
  color: var(--text);
  text-shadow: 0 0 10px rgba(0, 0, 0, .55);
  pointer-events: none; /* mantiene el footer no interactivo */
}

/* permite clics solo en los enlaces */
.footer a {
  pointer-events: auto;
  color: var(--text-soft);
  text-decoration: none;
  position: relative;
  z-index: 10;
  transition: color 0.2s ease, text-shadow 0.2s ease;
}

/* efecto hover elegante */
.footer a:hover {
  color: #fff;
  text-shadow: 0 0 5px var(--text-soft);
}

/* ===== Ajustes responsivos ===== */
@media (max-height: 760px){
  .logo { width: clamp(180px, 22vmin, 420px); }
  .title{ font-size: clamp(18px, 2.6vmin, 24px); }
  .meta { font-size: clamp(13px, 1.9vmin, 17px); }
  .panel{ gap:12px; }
}
@media (max-width: 520px){
  .panel{ width:min(90vw, 480px); }
  .logo { width: clamp(170px, 60vw, 340px); }
}

/* ===== Parche mínimo (compat y estabilidad) ===== */

/* 1) Safari/WebKit: asegura el blur del glass */
.panel{
  -webkit-backdrop-filter: blur(10px) saturate(140%);
}

/* 2) Fondo: evita micro-saltos y bandas en algunos navegadores */
.hero{
  contain: layout paint;             /* encapsula el layer de fondo */
}
.hero picture, .hero img{
  position:absolute; inset:0;        /* fija el fondo al viewport sin gaps */
}
.hero img{
  will-change: transform, filter;    /* animación suave del sway/blur */
}

/* 3) Viewport en móviles: altura estable con barras del navegador */
.card{
  min-height: 100dvh;
  height: 100svh;
}

/* 4) Logo: evita “flicker” de filtros durante hover+animación */
.logo{
  backface-visibility: hidden;
  transform: translateZ(0);
}

