
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}


body {
    background: linear-gradient(to bottom, #f4f6f8, #e0e4ea);
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
}


header {
    background: linear-gradient(135deg, #1a1f71, #151a5a);
    color: #fff;
    padding: 30px 0;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
}

header h1 {
    margin-bottom: 15px;
    font-size: 2.5rem;
    letter-spacing: 1px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}

header nav a {
    color: #fff;
    text-decoration: none;
    margin: 0 15px;
    font-weight: bold;
    padding: 8px 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
    background-color: rgba(255,255,255,0.1);
}

header nav a:hover {
    color: #1a1f71;
    background-color: #ffcc00;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}


main {
    max-width: 900px;
    margin: 50px auto;
    padding: 0 20px;
    text-align: center;
    position: relative; 
}

main section {
    background: #fff;
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

main section:hover {
    transform: translateY(-5px);
}

main h2 {
    margin-bottom: 20px;
    color: #1a1f71;
    font-size: 2rem;
}

main p {
    font-size: 1.1rem;
    color: #555;
}


form {
    background-color: #fff;
    padding: 35px;
    max-width: 450px;
    margin: 40px auto;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

form:hover {
    transform: translateY(-3px);
}

form label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

form input {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 8px;
    transition: border-color 0.3s;
}

form input:focus {
    border-color: #1a1f71;
    outline: none;
}

form button {
    width: 100%;
    padding: 14px;
    background-color: #1a1f71;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

form button:hover {
    background-color: #151a5a;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}


section {
    margin: 50px 0;
}


.message {
    text-align: center;
    margin-top: 20px;
    font-weight: bold;
    color: green;
}

.error {
    color: red;
}


main::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background: url('https://wallpapersafari.com/w/1920/1080/2aF1QK/gta-5-police-wallpapers-1920x1080.jpg') no-repeat center center;
    background-size: cover;
    opacity: 0.15;
    z-index: 0;
    border-radius: 15px;
    pointer-events: none; 
}

#pregunta-container {
    position: relative;
    z-index: 1;
    max-width: 750px;
    margin: 30px auto;
    padding: 30px 35px;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    text-align: left;
}

#pregunta {
    font-weight: bold;
    font-size: 1.4rem;
    margin-bottom: 25px;
    color: #1a1f71;
}

#respuestas button {
    display: block;
    width: 100%;
    padding: 14px;
    margin: 12px 0;
    background-color: #1a1f71;
    color: #fff;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    text-align: left;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

#respuestas button:hover {
    background-color: #151a5a;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

#respuestas button:disabled {
    opacity: 0.6;
    cursor: default;
}

#resultado {
    margin-top: 20px;
    font-weight: bold;
    font-size: 1.15rem;
    color: #1a1f71;
}

#siguiente {
    position: relative;
    z-index: 1;
    margin-top: 25px;
    padding: 15px 30px;
    background-color: #ffcc00;
    color: #1a1f71;
    border: none;
    border-radius: 10px;
    font-weight: bold;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

#siguiente:hover {
    background-color: #e6b800;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}


nav {
    text-align: center;
    margin-bottom: 30px;
}

nav a, nav button {
    display: inline-block;
    margin: 0 10px;
    padding: 10px 20px;
    text-decoration: none;
    color: #fff;
    background-color: #1a1f71;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

nav a:hover, nav button:hover {
    background-color: #151a5a;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}


ul {
    list-style: none;
    padding: 0;
}

ul li a {
    display: block;
    margin: 10px 0;
    padding: 15px 20px;
    background-color: #fff;
    color: #1a1f71;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-decoration: none;
    transition: all 0.3s ease;
}

ul li a:hover {
    background-color: #e6e6ff;
    transform: translateY(-2px);
}


@media (max-width: 600px) {
    header h1 {
        font-size: 2rem;
    }

    form, #pregunta-container, main section {
        padding: 20px;
    }

    nav a, nav button {
        margin: 5px 0;
        display: block;
    }
}


.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(to right, #1a1f71, #151a5a);
    color: #fff;
    padding: 60px 20px;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.hero-content {
    flex: 1;
    max-width: 500px;
}

.hero-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
    color: white;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 25px;
    color: wheat;
}

.hero-content .btn-primary,
.hero-content .btn-secondary {
    padding: 12px 25px;
    margin-right: 15px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

.hero-content .btn-primary {
    background-color: #ffcc00;
    color: #1a1f71;
}

.hero-content .btn-primary:hover {
    background-color: #e6b800;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.hero-content .btn-secondary {
    background-color: rgba(255,255,255,0.2);
    color: #fff;
}

.hero-content .btn-secondary:hover {
    background-color: rgba(255,255,255,0.4);
}

.hero-image {
    flex: 1;
    max-width: 450px;
    text-align: center;
}

.hero-image img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}


.info-cards {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.card {
    flex: 1;
    min-width: 250px;
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    text-align: center;
    padding: 20px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.card img {
    width: 100%;
    border-radius: 12px;
    margin-bottom: 15px;
}

.card h3 {
    color: #1a1f71;
    margin-bottom: 10px;
}

.card p {
    color: #555;
    font-size: 1rem;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

/* Responsive Hero y tarjetas */
@media (max-width: 800px) {
    .hero {
        flex-direction: column;
        text-align: center;
    }

    .hero-content, .hero-image {
        max-width: 100%;
    }

    .info-cards {
        flex-direction: column;
    }
}
