/* =====================================================
   BODY Y GLOBAL
===================================================== */
body {
    overflow-x: hidden;
    font-family: Arial, sans-serif;
    flex-direction: column;
    min-height: 100vh;
}

.actual-info,
.parejas-grid-2,
.actual-grid {
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.material-symbols-outlined {
    font-size: 22px;
    color: #777;
    vertical-align: middle;
}


/* =====================================================
   BANNER SUPERIOR  (vista PRE)
===================================================== */
.cta-inscripcion {
    text-align: center;
    margin: 25px auto 10px auto;
}

.cta-texto {
    margin-top: 10px;
    font-size: 14px;
    color: #221cd1;
    letter-spacing: 0.5px;
}

.btn-banner {
    display: inline-block;
    padding: 14px 34px;
    background: linear-gradient(135deg, #4a6fd1, #150b9b);
    color: white;
    font-weight: 400;
    font-size: 17px;
    border-radius: 30px;
    text-decoration: none;
    transition: 0.25s;
    box-shadow: 0 6px 16px rgba(0,0,0,0.2);
    position: relative;
    overflow: hidden;
}

.btn-banner:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 8px 22px rgba(0,0,0,0.25);
}

.btn-banner::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.3);
    border-radius: 50%;
    transform: translate(-50%,-50%) scale(0.5);
    opacity: 0;
    animation: pulse 2.5s infinite;
}

@keyframes pulse {
    0%   { opacity: 0.4; transform: translate(-50%, -50%) scale(0.8); }
    70%  { opacity: 0;   transform: translate(-50%, -50%) scale(1.3); }
    100% { opacity: 0; }
}

.banner-text {
    color: white;
    font-size: 18px;
    font-weight: 500;
}


/* =====================================================
   CAJAS FECHA / UBICACION / PARTICIPANTES
===================================================== */
.actual-info {
    margin-top: 20px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin: 20px auto;
}

.info-card {
    background: white;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    transition: box-shadow 0.2s ease, border 0.2s ease;
    border: 1px solid transparent;
}

.info-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-size: 24px;
}

.info-fecha .info-icon       { background: #dbe8ff; color: #3f7ad8; }
.info-lugar .info-icon        { background: #dff3e7; color: #2e9c5d; }
.info-participantes .info-icon { background: #efe3ff; color: #7a4fd3; }

.info-label { font-size: 14px; color: #666; }
.info-value { font-size: 16px; font-weight: 400; color: #000; }

/* Hover cajas info */
.info-fecha:hover {
    border: 1px solid #3f7ad8;
    box-shadow: 0 6px 14px rgba(63, 122, 216, 0.15);
}

.info-lugar:hover {
    border: 1px solid #2e9c5d;
    box-shadow: 0 6px 14px rgba(46, 156, 93, 0.15);
}

.info-participantes:hover {
    border: 1px solid #7a4fd3;
    box-shadow: 0 6px 14px rgba(122, 79, 211, 0.15);
}


/* =====================================================
   CAJAS JUGADORES INSCRITOS / CRUCES Y PAREJAS  (vista POST)
===================================================== */
.parejas-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    max-width: 1000px;
    margin: 10px auto 5px auto;
}

.parejas-block {
    background: white;
    min-height: 170px;
    padding: 14px 18px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border-top: 2px solid #e18a2d;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.parejas-block:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 18px rgba(0,0,0,0.12);
}

.parejas-lista li {
    margin-bottom: 10px;
    line-height: 1.4;
    transition: color 0.2s ease;
}

.parejas-lista li:hover { color: #150b9b; }

.parejas-lista li::marker        { color: #f2b980; transition: color 0.2s ease; }
.parejas-lista li:hover::marker  { color: #150b9b; }

/* Iconos dentro de parejas-block */
.parejas-block .block-title .material-symbols-outlined,
.parejas-item span.material-symbols-outlined {
    font-size: 22px;
    color: black !important;
    vertical-align: middle;
}


/* =====================================================
   GRID PROGRAMACION + PREMIOS  (ambas vistas)
===================================================== */
.actual-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    max-width: 1000px;
    margin: 40px auto 20px auto;
}

.actual-block {
    background: white;
    padding: 10px 20px 12px 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border-top: 4px solid #dfe6ff;
}

.block-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 20px;
    font-weight: 400;
    color: #150b9b;
    margin: 0 0 15px 0;
}


/* =====================================================
   PROGRAMACION — Línea de tiempo
===================================================== */
.programa-timeline {
    position: relative;
    padding-left: 40px;
    list-style: none;
}

.programa-timeline li {
    position: relative;
    padding: 6px 0;
    margin-bottom: 2px;
    line-height: 1.2;
}

.programa-timeline li::before {
    content: "";
    position: absolute;
    left: -15px;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    background: #150b9b;
    border-radius: 50%;
    transition: 0.2s;
}

.programa-timeline li:hover::before {
    background: #3f7ad8;
    transform: translateY(-50%) scale(1.2);
}

.hora {
    color: #150b9b;
    font-weight: 400;
    margin-right: 6px;
}


/* =====================================================
   PREMIOS
===================================================== */
.premios-lista {
    list-style: none;
    padding: 0;
    margin: 0;
}

.premios-lista li {
    padding: 5px 0;
    margin-bottom: 2px;
    line-height: 1.2;
    display: flex;
    align-items: center;
}

.premio-icon  { font-size: 20px; margin-right: 8px; }
.estrella     { color: #d62828; }
.aceite       { color: #c99700; }
.equipacion   { color: #2a7de1; }
.chorizo      { color: #b23a2a; }


/*  ================= STYLE PARA MODAL ================= -*/

.modal-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.4);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 99999;
}
.modal {
  background-color: #000;
  width: 50%;
  max-width: 800px;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  animation: fadeIn 0.3s ease-out;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.close-btn {
  position: absolute;
  top: 5px; right: 5px;
  border: none;
  background-color: #000;
  color: #fff;
  font-weight: bold;
  font-size: 16px;
  width: 24px; height: 28px;
  line-height: 28px;
  text-align: center;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  transition: transform 0.2s, box-shadow 0.2s;
  z-index: 10;
}
.close-btn:hover {
  transform: rotate(90deg);
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}
.modal-content {
  padding: 0;
  text-align: center;
  position: relative;
}
.modal-content img {
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  border: 4px solid #000;
  border-radius: 6px;
  box-sizing: border-box;
}
.image-links { position: absolute; display: block; cursor: pointer; }
.michelin    { top: 32%; left: 25%; width: 52%; height: 30%; }


/* =====================================================
   MODAL LINK
===================================================== */
.modal-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: color 0.2s, text-shadow 0.2s;
}

.premios-lista li a.modal-link {
    display: flex;
    align-items: center;
    gap: 6px;
}

.premios-lista li a.modal-link:hover {
    color: #c59d5f;
    text-shadow: 0 0 6px rgba(197,157,95,0.5);
}

.premios-lista li a.modal-link:hover .premio-icon {
    color: #d62828;
    text-shadow: none;
}

/* Ocultar bloques hasta que JS decida cuál mostrar + footer pegado al fondo */
#vista-pre,
#vista-post {
    display: none;
    flex: 1;
}
