body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f2f4f8;
}

header {
    background: #003366;
    color: white;
    padding: 20px;
    text-align: center;
}

nav {
    background: #004d99;
    display: flex;
    justify-content: center;
}

nav a {
    cursor: pointer;
    padding: 15px 20px;
    color: white;
    text-decoration: none;
    font-weight: bold;
}

nav a:hover {
    background: #003366;
}

/* todas ocultas */
section {
    display: none;
    max-width: 950px;
    margin: 25px auto;
    padding: 25px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

/* solo activa */
section.active {
    display: block;
}

.fuga {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    background: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
}

.fuga img {
    width: 160px;
    height: 110px;
    border-radius: 8px;
    object-fit: cover;
}

form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

input, textarea, select, button {
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
}

button {
    background: #004d99;
    color: white;
    cursor: pointer;
    border: none;
}

button:hover {
    background: #0066cc;
}

/* Caja para calificar */
#calificarBox {
    display: none;
    background: #ffffff;
    padding: 20px;
    margin-top: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.bloque-localizacion{
    margin-top: 10px;
    padding: 15px;
    border: 2px solid #004d99;
    border-radius: 8px;
    background: #f7fbff;
}

.bloque-localizacion h3{
    margin-top: 0;
    color: #004d99;
    text-align: center;
}

.error{
    color: #cc0000;
    font-size: 0.85em;
    display: block;
    margin-top: -5px;
    margin-bottom: 5px;
}

.input-error{
    border: 2px solid #cc0000 !important;
    background-color: #ffe6e6;
}

.input-valid{
    border: 2px solid #2ecc71 !important;
    background-color: #eafaf1;
}

.estrellas{
    display: flex;
    gap: 5px;
    font-size: 30px;
    cursor: pointer;
}

.estrellas span{
    color: #ccc;
    transition: color 0.2s;
}

.estrellas span.hover,
.estrellas span.activa{
    color: #ffcc00;
}

/* Mapa de localización */
#mapa {
    width: 100%;
    height: 350px;
    border-radius: 8px;
    border: 2px solid #004d99;
    margin-bottom: 8px;
}

.buscador-mapa {
    display: flex;
    gap: 8px;
    margin-bottom: 6px;
}

.buscador-mapa input {
    flex: 1;
}

.buscador-mapa button {
    width: auto;
    padding: 10px 16px;
    white-space: nowrap;
}