/* Estilos Generales */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
}

/* Encabezado */
header {
    background-color: #2c3e50;
    color: #ecf0f1;
    padding: 2rem 0;
    text-align: center;
    border-bottom: 4px solid #e74c3c;
}

header h1 {
    margin: 0;
    font-size: 2.5rem;
}

/* Contenido Principal */
main {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 20px;
}

/* Contenedor del Buscador */
.search-container {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.search-container form {
    display: flex;
    gap: 10px;
}

.search-box {
    flex-grow: 1;
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.search-box:focus {
    outline: none;
    border-color: #3498db;
}

.search-button {
    padding: 15px 25px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}

.search-button:hover {
    background-color: #2980b9;
}

/* Contenedor de Resultados */
.results-container {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.result-item {
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
}

.result-item:last-child {
    border-bottom: none;
}

.result-item h2 {
    color: #e74c3c;
    margin-top: 0;
}

.result-item p {
    font-size: 1.1rem;
    color: #555;
}

.no-results {
    text-align: center;
    color: #777;
    font-style: italic;
}

/* Pie de Página */
footer {
    text-align: center;
    padding: 1.5rem 0;
    background-color: #34495e;
    color: #ecf0f1;
    position: relative;
    bottom: 0;
    width: 100%;
}

/* Diseño Responsivo */
@media (max-width: 600px) {
    header h1 {
        font-size: 2rem;
    }

    .search-container form {
        flex-direction: column;
    }

    .search-button {
        width: 100%;
    }
}