/* ==============================
   Fuentes disponibles
============================== */
@font-face {
    font-family: 'Futura Condensed';
    src: url('../fonts/FuturaLT-Condensed_1.ttf') format('truetype');
    font-weight: 400;
}

@font-face {
    font-family: 'Futura Condensed';
    src: url('../fonts/FuturaLT-CondensedBold.ttf') format('truetype');
    font-weight: 700;
}

@font-face {
    font-family: 'Futura';
    src: url('../fonts/FuturaLT-Bold.ttf') format('truetype');
    font-weight: 700;
}

@font-face {
    font-family: 'Futura';
    src: url('../fonts/FuturaLT-ExtraBold.ttf') format('truetype');
    font-weight: 800;
}

@font-face {
    font-family: 'Myriad Pro';
    src: url('../fonts/MyriadPro-Regular.otf') format('opentype');
    font-weight: 400;
}

/* ==============================
   Componentes
============================== */
/* Botón para ver PDF */
.btn-pdf {
    display: inline-block;
    background: linear-gradient(90deg, #4a90e2, #50e3c2); /* degradado moderno */
    color: white;
    font-weight: 600;
    font-size: 16px;
    padding: 12px 28px;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}


.resultados-anticipados {
    text-align: center;
    color: #fff;
    font-size: 20px;
    margin-top: 40px;
    font-weight: bold;
    background-color: #ca1515;
    margin: 0 100px;
}


.filtros {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 30px 0;
  
}

.filtros input {
  padding: 10px 14px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 15px;
  width: 220px;
  transition: border-color 0.2s ease;
}

.filtros input:focus {
  outline: none;
  border-color: #004aad;
  box-shadow: 0 0 3px rgba(0, 74, 173, 0.5);
}

.filtros button {
  padding: 10px 18px;
  background-color: #1230d6;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.2s ease;
}

.filtros button:hover {
  background-color: #a11212;
  transform: scale(1.05);
}

#resultados {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.btn-pdf:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    background: linear-gradient(90deg, #50e3c2, #4a90e2); /* invertir degradado al pasar el mouse */
}

.btn-pdf:active {
    transform: translateY(0);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}



* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 20px; /* base size; ajustado para letras más grandes */
}

body {
    font-family: 'Futura Condensed', 'Myriad Pro', sans-serif;
    font-size: 1rem; /* 20px */
    background-color: #ffffff;
    color: #000000;
    line-height: 1.5;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Futura Condensed', sans-serif;
    font-weight: 700;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2.25rem; }
h4 { font-size: 2rem; }
h5 { font-size: 1.5rem; }
h6 { font-size: 1.25rem; }

/* HEADER */
/* HEADER */
.header {
    width: 100%;
    position: relative;

    display: flex;
    flex-direction: column;   /* texto arriba, imagen abajo */
    align-items: center;
    
    overflow: visible;      /* espacio para el texto */
}

.header img {
    width: 200%;
    height: auto;             /* clave: NO forzar altura */
    object-fit: contain;      /* muestra la imagen completa */
    display: block;
}



/* SECCIÓN OPCIONES – SOBRE EL HEADER */
.opciones {
    text-align: center;
    padding: 40px 20px;

    margin-top: -200px;   /* 🔥 ESTO crea la superposición */
    position: relative;
    z-index: 20;          /* por encima del header */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.opciones:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}
/* =========================
   MOBILE (hasta 768px)
========================= */
@media (max-width: 768px) {

    /* HEADER */
    .header {
        height: auto;              /* deja crecer según imagen */
        overflow: visible;
    }
    section.opciones h1 {
        color: #000000;
    }
    section.opciones h2 {
        color: #000000;
    }

    .header img {
        width: 100%;
        height: auto;              /* muestra la imagen completa */
        object-fit: contain;       /* NO recorta */
        display: block;
    }

    /* OPCIONES */
    .opciones {
        padding: 20px 16px;
        text-align: center;
        margin-top: 0px;   /* menos superposición en móvil */
        color: #ffffff;
    }

    .opciones h1 {
        font-size: 20px;
        line-height: 1.3;
        margin-bottom: 8px;
        color: #004aad;
        font-family: 'Futura Condensed', sans-serif;
        font-weight: 400;  /* sin negrilla */
    }

    .opciones h2 {
        font-size: 18px;
        margin-bottom: 16px;
        color: #004aad;
        font-family: 'Futura Extra Bold', sans-serif;
        font-weight: 800;  /* negrilla */
    }

    /* IMAGEN OPCIONES */
    .imagen-premios {
        display: flex;
        justify-content: center;
    }

    .imagen-premios img {
        width: 100%;
        max-width: 320px;          /* controla tamaño en móvil */
        height: auto;
        border-radius: 12px;
        height: 120% !important;           /* fuerza altura proporcional */
    }

}
/* CONTENEDOR DE LA IMAGEN */
/* CONTENEDOR IMAGEN OPCIONES */
.opciones .imagen-premios {
    display: flex;
    justify-content: center;
    align-items: center;

    position: relative;
    z-index: 1;
}
.boton_resolucion {
    display: flex;
    justify-content: center;   /* centra horizontal */
    align-items: center;       /* centra vertical */
    margin-top: 30px;
    margin-bottom: 30px;
}

.boton_resolucion a {
    display: inline-block;
    cursor: pointer;
}

.boton_resolucion a img {
    max-width: 250px;
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

.boton_resolucion a img:hover {
    transform: scale(1.05);
}
/* IMAGEN DE PREMIOS */
.imagen-premios img {
    display: block;
    margin: 0 auto;          /* centra horizontalmente */
    width: 100%;
    max-width: 700px;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
    transition: transform 0.3s ease;
}
.opciones h1 {
    font-size: 1.5rem;
    color: #000000;
    margin-bottom: 3px;
    text-align: center;
    font-family: 'Futura Condensed', sans-serif;
    font-weight: 400;  /* sin negrilla */
}
.opciones h2 {
    font-size: 2.25rem;
    color: #000000;
    margin-bottom: 10px;
    text-align: center;
    font-family: 'Futura Extra Bold', sans-serif;
    font-weight: 800;  /* negrilla */
}

.card {
  background-color: #f3f0f0;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  width: calc(33.33% - 20px);
  min-width: 280px;
  padding: 20px 25px;
  box-sizing: border-box;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.fecha {
  font-weight: bold;           
  color: #977b00;             
  font-size: 20px;
}



.numero-serie {
  color: #1518ca;
  font-size: 30px;
  font-weight: bold;
  text-align: right;
}


.loteria {
  font-size: 15px;
  color: #333;
  text-align: center;
  font-style: italic;
  border-top: 1px solid #1900ff;
  padding-top: 8px;
}

/* Ajustes para pantallas móviles */
@media (max-width: 768px) {
    .card {
        width: 70%;       /* ocupan casi todo el ancho del móvil */
        padding: 12px;    /* menos padding para que no se vea grande */
        margin: 8px auto; /* centrado y menos espacio entre cards */
        font-size: 14px;  /* reducir tamaño de texto dentro de la card */
    }
    .fecha 
        {
        font-weight: bold;           
        color: #977b00;             
        font-size: 20px;
    }
    .loteria {
        font-size: 10px;
        color: #333;
        text-align: center;
        font-style: italic;
        border-top: 1px solid #1900ff;
        padding-top: 8px;
    }


}


/* BLOQUES DE TEXTO */
.bloque-texto {
    max-width: 900px;
    margin: 20px auto;
    padding: 0 20px;
    text-align: center;
}

.bloque-texto h3 {
    color: #004aad;
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.bloque-texto h2 {
    text-align: justify;
    margin-bottom: 10px;
}
.bloque-texto p {
    text-align: justify;
    margin-bottom: 10px;
}

.fecha-sorteo {
    background-color: #004aad;
    color: #ffffff;
    font-size: 30px;
    font-weight: bold;
    font-family: 'Futura Bold', sans-serif;
    border-radius: 5px;
    display: block;          /* block so margin auto works */
    width: fit-content;       /* shrink to content width */
    margin: 0.5rem auto 0;    /* center horizontally */
    padding: 0.25rem 1rem;    /* space around text */
    text-align: center;
}

/* PREMIOS ANTICIPADOS */
.premios-anticipados {
    text-align: center;
    padding: 30px 20px;
}

.premios-anticipados img {
    width: 700px;
    max-width: 100%;
}

.premios-desktop {
    width: 700px !important;

}

.premios-mobile {
    display: none;
}

.premios-anticipados h3 {
    font-size: 48px;
    color: #004aad;
    font-family: 'Futura Extra Bold', sans-serif;
}

.premios-anticipados p {
    text-align: justify;
    margin-bottom: 10px;
}

/* CONDICIONES */
.condiciones {
    max-width: 900px;
    margin: 30px auto;
    padding: 0 20px;
}

.condiciones h3 {
    color: #004aad;
    text-align: center;
    margin-bottom: 40px;
    display: block;
    font-size: 40px;
}

.condiciones ol {
    padding-left: 40px;
    line-height: 1.8;
}

.condiciones li {
    margin-bottom: 12px;
    font-size: 1rem;  /* 20px */
    font-family: 'Futura Condensed', 'Myriad Pro', sans-serif;
}


/* FOOTER */
footer {
    background: #002b5c;
    color: #fff;
    text-align: center;
    padding: 15px 0;
    margin-top: 40px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .opciones h2 {
        font-size: 28px;
    }

    .imagen-premios img {
        max-width: 150% !important;
        border-radius: -50px;
        height: 250px !important;
    }

    .imagen-premios :hover {
        transform: scale(1.02)
    }


    .bloque-texto h3 {
        font-size: 30px;
    }

    .condiciones h3 {
        font-size: 30px;
    }

    .premios-anticipados h3 {
        font-size: 40px;
    }

    .premios-desktop {
        display: none;

    }

    .premios-mobile {
        display: block;
    }

}

/* DESKTOP: usar imagen completa como fondo y superponer contenido */
@media (min-width: 769px) {
    .header {
        /* ruta relativa al archivo CSS */
        background-image: url('../image/pc/fondo_completo.png');
        background-repeat: no-repeat;
        background-position: center top;
        background-size: 120% auto; /* agranda la imagen horizontalmente sin deformar */
        width: 100%;
        /* aumentar espacio reservado para que la imagen se vea más grande */
        min-height: 900px;
        display: block;
    }

    /* ocultar la imagen <img> dentro del header en escritorio (mantenemos para móvil) */
    .header img {
        display: none;
    }

    /* asegurar que la sección de opciones quede encima del fondo */
    .opciones {
        margin-top: -280px; /* mantener la superposición; ajustar si hace falta */
    }
}

/* bloques .titulo-degradado retirados (no se usan sin degradado) */

/* override: <h4> más pequeño y alineado a la izquierda */
.bloque-texto h4 {
    font-size: 1.25rem;
    text-align: left;
}

/* Contenedor relativo */
.imagen-premios {
    position: relative;
}

