/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Fuente y colores base */
body {
    font-family: 'Segoe UI', sans-serif;
    background-color: #f9f9f9;
    color: #333;
}

/* HEADER */
header {
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 40px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Logo */
header .logo {
    display: flex;
    align-items: center;
}

header .logo img {
    height: 50px;
    margin-right: 10px;
}

/* Menú */
nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

nav a {
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    color: #b30000;
    transition: color 0.3s;
}

nav a:hover {
    color: #007bff;
}

/* HERO SECTION */
.hero {
    position: relative;
    background: url('fondo.jpg') center/cover no-repeat;
    min-height: 100vh;
    display: flex;
    align-items: flex-start; /* subimos el contenido */
    justify-content: center;
    padding-top: 60px; /* espacio arriba */
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(50, 50, 50, 0.5); /* Gris semitransparente */
    z-index: 1;
}

.hero h1 {
    font-size: 50px;
    font-weight: bold;
    color: white;
    line-height: 1.2;
    max-width: 500px;
    position: relative;
    z-index: 2;
    text-align: center;
}

.content-wrapper {
    position: relative;
    z-index: 2;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px; /* separación entre formulario y resultado */
}

/* Contenedor del formulario (si lo usas en la misma página) */
.container {
    text-align: center;
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 90%;
    max-width: 500px;

    /* Nuevo ajuste para subir el panel */
    margin: 0px auto 20px auto; /* margen superior negativo */
    position: relative;
    z-index: 2;
}

/* Campos de entrada */
.input-field {
    padding: 8px;
    margin: 10px auto;
    width: 80%;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
    display: block;
    text-align: center;
}

/* Botón */
.submit-btn {
    padding: 10px 20px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

.submit-btn:hover {
    background-color: #45a049;
}

/* Resultado debajo del formulario */
.result {
    width: 90%;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin: 20px auto;
    padding: 20px;
    position: relative;
    z-index: 2;
}
