/* ============================================
   PORRA MUNDIAL 2026
   Estilo: iOS 26 Liquid Glass
   Colores: FIFA World Cup 2026
   ============================================ */

/* ---------- Variables ---------- */
:root {
  --wc-green:   #3CAC3B;
  --wc-blue:    #2A398D;
  --wc-red:     #E61D25;
  --wc-gold:    #C9A84C;
  --wc-dark:    #0a0e1a;

  --glass-bg:       rgba(255, 255, 255, 0.10);
  --glass-border:   rgba(255, 255, 255, 0.22);
  --glass-shadow:   0 8px 32px rgba(0, 0, 0, 0.35);
  --glass-blur:     blur(24px);

  --radius-lg: 24px;
  --radius-md: 14px;
  --radius-sm: 10px;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font);
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 16px;

  background:
    radial-gradient(ellipse at 15% 15%, rgba(42, 57, 141, 0.7) 0%, transparent 55%),
    radial-gradient(ellipse at 85% 85%, rgba(60, 172, 59, 0.55) 0%, transparent 55%),
    radial-gradient(ellipse at 50% 50%, rgba(201, 168, 76, 0.15) 0%, transparent 70%),
    var(--wc-dark);
  background-attachment: fixed;
}

/* ---------- Tarjeta principal ---------- */
.card {
  width: 100%;
  max-width: 480px;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--glass-shadow);
  padding: 40px 36px;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent,
    rgba(255,255,255,0.55) 25%,
    rgba(255,255,255,0.85) 50%,
    rgba(255,255,255,0.55) 75%,
    transparent
  );
}

/* ---------- Títulos ---------- */
h2 {
  color: #ffffff;
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 6px;
  text-align: center;
}

h3 {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

/* ---------- Inputs ---------- */
input {
  display: block;
  width: 100%;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.07);
  backdrop-filter: blur(10px);
  color: #ffffff;
  font-size: 1rem;
  font-family: var(--font);
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}

input::placeholder {
  color: rgba(255,255,255,0.35);
}

input:focus {
  border-color: var(--wc-gold);
  background: rgba(255,255,255,0.12);
}

/* ---------- Campo encuesta ---------- */
.field {
  margin-bottom: 14px;
}

.field label {
  display: block;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 5px;
  padding-left: 2px;
}

form > button[type="submit"] {
  margin-top: 20px;
}

/* ---------- Botones ---------- */
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, filter 0.15s;
  position: relative;
  overflow: hidden;
}

button::after {
  content: "";
  position: absolute;
  top: 0; left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.18), transparent);
  transition: left 0.4s;
}

button:hover::after { left: 140%; }
button:active { transform: scale(0.97); }

button[type="submit"] {
  width: 100%;
  background: linear-gradient(135deg, var(--wc-blue), #1a2566);
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(42, 57, 141, 0.5);
}

button[type="submit"]:hover {
  filter: brightness(1.15);
  box-shadow: 0 6px 28px rgba(42, 57, 141, 0.7);
}

/* ---------- Links ---------- */
a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s;
}

a:hover { color: var(--wc-gold); }

/* ---------- Textos ---------- */
p {
  color: rgba(255,255,255,0.65);
  font-size: 0.875rem;
  margin-bottom: 16px;
  text-align: center;
}

p[style*="color:red"] {
  color: #ff6b6b !important;
}

/* ---------- Resultados ---------- */
.results-layout {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
}

.results-layout .card {
  max-width: none;
  flex: 1;
}

.summary-card {
  min-width: 260px;
  flex: 0 0 260px !important;
}

/* ---------- Bloques detalle ---------- */
.result-block {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  margin-bottom: 12px;
}

.result-block h3 {
  color: var(--wc-gold);
  font-size: 0.72rem;
  letter-spacing: 1.2px;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.result-block p {
  text-align: left;
  margin-bottom: 6px;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.85);
}

.result-block strong {
  color: #ffffff;
}

/* ---------- Top favoritos ---------- */
.top-block {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 14px;
  margin-bottom: 10px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-sm);
}

.top-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--wc-gold);
}

.top-value {
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
}

.top-count {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.45);
}

/* ---------- Responsive ---------- */
@media (max-width: 700px) {
  .results-layout {
    flex-direction: column;
  }

  .summary-card {
    flex: 1 !important;
    min-width: unset;
  }
}

@media (max-width: 480px) {
  .card {
    padding: 28px 20px;
    border-radius: var(--radius-md);
  }

  h2 { font-size: 1.5rem; }

  button {
    font-size: 0.95rem;
    padding: 13px 18px;
  }
}