/* ═══════════════════════════════
   JairoTV Codigos — Estilos globales
═══════════════════════════════ */
:root {
  --bg:      #0A0F1D;
  --surface: #161C2A;
  --card:    #1A2236;
  --cyan:    #00F0FF;
  --red:     #E50914;
  --white:   #FFFFFF;
  --muted:   rgba(255,255,255,0.5);
  --border:  rgba(0,240,255,0.15);
}

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

html, body {
  font-family: 'Outfit', sans-serif;
  background: var(--bg);
  color: var(--white);
  min-height: 100vh;
}

/* Grid de fondo */
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image: radial-gradient(circle, rgba(0,240,255,0.12) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none; z-index: 0;
}
body::after {
  content: '';
  position: fixed; inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(0,240,255,0.07), transparent 65%),
    radial-gradient(ellipse 50% 40% at 80% 80%, rgba(229,9,20,0.06), transparent 60%);
  pointer-events: none; z-index: 0;
}

main {
  position: relative; z-index: 1;
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 2rem 1rem;
}

/* Panel principal */
.panel {
  width: 100%; max-width: 520px;
  background: rgba(22,28,42,0.92);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  box-shadow: 0 0 60px rgba(0,0,0,0.6), 0 0 80px rgba(0,240,255,0.04);
  backdrop-filter: blur(14px);
  text-align: center;
}
.panel-wide { max-width: 860px; }

/* Logo */
.logo-wrap {
  width: 100px; height: 100px;
  margin: 0 auto 1.2rem;
  animation: float 3.5s ease-in-out infinite;
  filter: drop-shadow(0 0 16px rgba(0,240,255,0.45));
}
.logo-wrap img { width: 100%; height: 100%; object-fit: contain; }
@keyframes float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-7px)} }

/* Badge */
.badge-cyan {
  display: inline-block;
  background: rgba(0,240,255,0.08);
  color: var(--cyan);
  border: 1px solid rgba(0,240,255,0.25);
  border-radius: 20px;
  font-size: .72rem; font-weight: 700;
  padding: .25rem .85rem;
  text-transform: uppercase; letter-spacing: 1.2px;
  margin-bottom: .6rem;
}

h1 {
  font-size: 1.9rem; font-weight: 800;
  color: #fff; margin: 0 0 .4rem;
}
h1 span { color: var(--cyan); }

.subtitulo {
  color: var(--muted);
  font-size: .95rem; font-weight: 300;
  margin-bottom: 1.8rem;
}

.divider {
  width: 50px; height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  margin: .8rem auto 1.8rem; border-radius: 2px;
  box-shadow: 0 0 10px rgba(0,240,255,0.4);
}

/* Botones de servicio */
.service-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 1.5rem;
}
.service-grid.single { grid-template-columns: 1fr; max-width: 320px; margin: 1.5rem auto 0; }

.btn-service {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 1rem 1.2rem;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 700; font-size: 1rem;
  color: #fff;
  transition: all .25s;
  border: 1px solid transparent;
}
.btn-netflix {
  background: linear-gradient(135deg, #6B0000, #E50914);
  border-color: rgba(229,9,20,0.4);
}
.btn-netflix:hover { background: linear-gradient(135deg,#8B0000,#FF2020); transform: translateY(-3px); box-shadow: 0 8px 24px rgba(229,9,20,0.4); color:#fff; }

.btn-prime {
  background: linear-gradient(135deg, #00688B, #00A8E1);
  border-color: rgba(0,168,225,0.4);
}
.btn-prime:hover { background: linear-gradient(135deg,#0082b0,#00c0ff); transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,168,225,0.35); color:#fff; }

.btn-disney {
  background: linear-gradient(135deg, #0a1f6e, #113CCF);
  border-color: rgba(17,60,207,0.4);
}
.btn-disney:hover { background: linear-gradient(135deg,#0d2890,#2855ff); transform: translateY(-3px); box-shadow: 0 8px 24px rgba(17,60,207,0.4); color:#fff; }

.btn-service img { height: 26px; object-fit: contain; filter: brightness(0) invert(1); }

.btn-tienda {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 1.2rem;
  color: var(--muted); font-size: .85rem;
  text-decoration: none; transition: color .2s;
  border: none; background: transparent;
}
.btn-tienda:hover { color: var(--cyan); }

/* Cajas info */
.cajas { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 1.5rem; }
@media(max-width:600px){ .cajas { grid-template-columns: 1fr; } }

.caja-info {
  background: rgba(0,240,255,0.04);
  border: 1px solid rgba(0,240,255,0.12);
  border-radius: 12px; padding: 1rem 1.2rem;
}
.caja-info h5 {
  color: var(--cyan); font-weight: 700; font-size: .85rem;
  margin-bottom: .6rem; text-transform: uppercase; letter-spacing: .8px;
}
.caja-info ol { color: rgba(255,255,255,0.75); font-size: .85rem; padding-left: 1.1rem; margin: 0; line-height: 1.8; }
.caja-info ol strong { color: var(--cyan); }

/* Input */
.input-field {
  width: 100%;
  background: rgba(0,240,255,0.05);
  border: 1.5px solid rgba(0,240,255,0.2);
  border-radius: 10px; color: #fff;
  padding: .85rem 1rem; font-size: 1rem;
  font-family: 'Outfit', sans-serif; outline: none;
  transition: border-color .2s, background .2s;
  margin-bottom: 1rem;
}
.input-field::placeholder { color: rgba(255,255,255,0.3); }
.input-field:focus { border-color: var(--cyan); background: rgba(0,240,255,0.08); }

/* Botones acción */
.btn-red {
  background: var(--red); color: #fff; border: none;
  padding: .85rem 2rem; border-radius: 10px;
  font-weight: 700; font-size: 1rem; cursor: pointer;
  transition: all .25s; font-family: 'Outfit', sans-serif;
  box-shadow: 0 4px 16px rgba(229,9,20,0.3);
}
.btn-red:hover { background: #c0000e; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(229,9,20,0.45); }

.btn-back {
  background: var(--surface); color: rgba(255,255,255,0.7);
  border: 1px solid rgba(0,240,255,0.15);
  padding: .85rem 1.5rem; border-radius: 10px;
  font-weight: 600; font-size: .95rem; cursor: pointer;
  transition: all .2s; font-family: 'Outfit', sans-serif;
  text-decoration: none; display: inline-block;
}
.btn-back:hover { background: #1e2a3a; color: #fff; border-color: rgba(0,240,255,0.3); }

.btn-cyan-sm {
  background: var(--cyan); color: #0A0F1D;
  border: none; padding: .4rem .95rem; border-radius: 8px;
  font-weight: 700; font-size: .82rem; cursor: pointer;
  transition: all .2s; font-family: 'Outfit', sans-serif; white-space: nowrap;
}
.btn-cyan-sm:hover { background: #00C8D4; box-shadow: 0 4px 14px rgba(0,240,255,0.35); }

.form-btns { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }

/* Resultados */
.correo-item {
  background: rgba(22,28,42,0.8);
  border: 1px solid rgba(0,240,255,0.1);
  border-radius: 10px; padding: .75rem 1rem;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; margin-bottom: .5rem; transition: border-color .2s;
}
.correo-item:hover { border-color: rgba(0,240,255,0.35); }
.correo-item .fecha { color: var(--cyan); font-size: .76rem; font-weight: 600; }
.correo-item .asunto { color: rgba(255,255,255,0.8); font-size: .86rem; margin-top: 2px; }

.email-body {
  background: #fff; color: #000;
  border-radius: 10px; padding: 1rem;
  max-height: 500px; overflow: auto; margin-bottom: 1rem;
}
.email-body img { max-width: 100%; height: auto; }
.email-body table { width: 100%; border-collapse: collapse; }

/* Alerta error */
.alert-error {
  background: rgba(229,9,20,0.08);
  border: 1px solid rgba(229,9,20,0.3);
  border-radius: 10px; padding: .75rem 1rem;
  color: #ff6b6b; font-size: .88rem; margin-bottom: 1rem;
}

/* Footer */
.footer-aviso {
  color: rgba(255,255,255,0.3); font-size: .82rem;
  text-align: center;
  border-top: 1px solid rgba(0,240,255,0.08);
  padding-top: 1rem; margin-top: 1.2rem;
}

/* Admin badge */
.admin-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(229,9,20,0.1);
  border: 1px solid rgba(229,9,20,0.3);
  border-radius: 20px; color: #ff6b6b;
  font-size: .7rem; font-weight: 700;
  padding: .2rem .7rem; text-transform: uppercase; letter-spacing: 1px;
  margin-bottom: .5rem;
}

@media(max-width:480px){
  .panel { padding: 1.8rem 1.2rem; }
  .service-grid { grid-template-columns: 1fr; }
  h1 { font-size: 1.5rem; }
}
