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

html,body{height:100%}

body{
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,Helvetica,sans-serif;
  color:#fff;
  background:#000;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}

/* ==========================
   Hero de fondo
   ========================== */
.background-image{
  background:#000 url("imagenes/fondo.avif") center / cover no-repeat;
  width:100%;
  min-height:100vh;
  min-height:100svh;
  display:flex;
  align-items:center;
  justify-content:center;
  position:relative;
  contain:paint;
}

.overlay{
  position:absolute;
  inset:0;
  background:rgba(0,0,0,.7);
}

/* ==========================
   Contenido principal
   ========================== */
.content{
  position:relative;
  text-align:center;
  display:flex;
  flex-direction:column;
  align-items:center;
  padding:18px 14px;
  width:min(92vw,520px);
}

.logo{
  width:200px;
  height:200px;
  object-fit:contain;
  display:block;
}

/* ==========================
   Tipografías
   ========================== */
.title{
  margin:10px 0 15px;
  font-size:20px;
  font-weight:800;
  line-height:1.15;
  text-wrap:balance;
}

.subtitle{
  font-size:17px;
  margin-top:34px;
  line-height:1.25;
}

.description{
  color:gold;
  font-size:14px;
  font-weight:800;
  margin:28px 0 44px;
  letter-spacing:.2px;
}

/* ==========================
   Botón principal WhatsApp
   ========================== */
.whatsapp-button{
  position:relative;
  overflow:hidden;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  background:linear-gradient(145deg,#155c3d,#0e2d1e);
  color:#fff;
  font-size:17px;
  font-weight:900;
  padding:12px 16px;
  border:3px solid #fff;
  border-radius:10px;
  text-decoration:none;
  margin-top:22px;
  min-width:220px;
  box-shadow:
    0 0 30px 8px gold,
    inset 0 1px 0 #ffffff33,
    0 0 12px 2px #10392899;
  animation:heartbeat 2s infinite ease-in-out;
  transition:transform .18s ease-in-out, filter .18s ease-in-out;
  will-change:transform;
  -webkit-tap-highlight-color:transparent;
  user-select:none;
}

.whatsapp-button:active{
  transform:scale(.985);
}

.whatsapp-button:focus-visible{
  outline:3px solid rgba(255,215,0,.85);
  outline-offset:3px;
}

.whatsapp-button::before{
  content:"";
  position:absolute;
  inset:0;
  width:50%;
  background:linear-gradient(120deg,transparent,rgba(255,255,255,.6),transparent);
  transform:translateX(-150%) skewX(-25deg);
  animation:shineX 3.5s infinite;
  pointer-events:none;
}

.whatsapp-icon{
  width:30px;
  height:30px;
  display:block;
}

@keyframes shineX{
  from{transform:translateX(-150%) skewX(-25deg)}
  to{transform:translateX(300%) skewX(-25deg)}
}

@keyframes heartbeat{
  0%,100%{transform:scale(1)}
  50%{transform:scale(1.03)}
}

/* ==========================
   Overlay “Redirigiendo...”
   ========================== */
.wa-redirect-overlay{
  position:fixed;
  inset:0;
  z-index:10000;
  background:rgba(0,0,0,.65);
  display:flex;
  align-items:center;
  justify-content:center;
  backdrop-filter:blur(4px);
}

.wa-redirect-overlay[hidden]{
  display:none !important;
}

.wa-redirect-box{
  width:min(360px,calc(100vw - 32px));
  background:rgba(15,20,15,.92);
  border:1px solid rgba(255,255,255,.12);
  border-radius:16px;
  padding:16px;
  display:flex;
  gap:12px;
  align-items:center;
  box-shadow:0 16px 40px rgba(0,0,0,.55);
}

.wa-redirect-text{
  font-weight:900;
  line-height:1.15;
}

.wa-redirect-spinner{
  width:18px;
  height:18px;
  border-radius:999px;
  border:3px solid rgba(255,255,255,.25);
  border-top-color:rgba(255,215,0,.95);
  animation:waSpin .8s linear infinite;
}

@keyframes waSpin{
  to{transform:rotate(360deg)}
}

/* ==========================
   Motion reducido
   ========================== */
@media (prefers-reduced-motion: reduce){
  .whatsapp-button,
  .whatsapp-button::before,
  .wa-redirect-spinner{
    animation:none !important;
  }

  .whatsapp-button{
    transition:none;
  }
}

/* ==========================
   Responsive
   ========================== */
@media (min-width:480px){
  .logo{width:220px;height:220px}
  .title{font-size:21px}
  .subtitle{font-size:18px}
  .whatsapp-button{font-size:18px;min-width:240px}
}

@media (min-width:768px){
  .logo{width:240px;height:240px}
  .title{font-size:22px}
  .subtitle{font-size:19px}
  .description{margin:35px 0 50px}
}

@media (min-width:1024px){
  .content{padding:22px 16px}
  .logo{width:260px;height:260px}
  .whatsapp-button{min-width:260px}
}
