262 lines
5.2 KiB
CSS
262 lines
5.2 KiB
CSS
/* ==========================================================================
|
|
PÁGINA DE BÚSQUEDA — buscar.html
|
|
========================================================================== */
|
|
|
|
/* Hero con el campo de búsqueda */
|
|
.search-hero {
|
|
padding: 3.5rem 0 2.5rem;
|
|
background: var(--bg-surface);
|
|
border-bottom: 1px solid var(--border-color);
|
|
}
|
|
|
|
.search-hero .eyebrow {
|
|
margin-bottom: 0.75rem;
|
|
display: inline-block;
|
|
}
|
|
|
|
.search-hero h1 {
|
|
font-size: clamp(1.75rem, 4vw, 2.5rem);
|
|
line-height: 1.2;
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
.search-hero .lead-text {
|
|
color: var(--text-muted);
|
|
font-size: 1rem;
|
|
max-width: 640px;
|
|
margin: 0 auto 2rem;
|
|
line-height: 1.55;
|
|
}
|
|
|
|
/* Form de búsqueda */
|
|
.search-page-form {
|
|
display: flex;
|
|
gap: 0.5rem;
|
|
max-width: 640px;
|
|
margin: 0 auto;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.search-page-form .search-input-wrap {
|
|
position: relative;
|
|
flex: 1;
|
|
min-width: 260px;
|
|
}
|
|
|
|
.search-page-form .search-input-wrap svg {
|
|
position: absolute;
|
|
left: 1rem;
|
|
top: 50%;
|
|
transform: translateY(-50%);
|
|
color: var(--text-muted);
|
|
pointer-events: none;
|
|
}
|
|
|
|
.search-page-form input[type="search"] {
|
|
width: 100%;
|
|
padding: 0.9rem 1rem 0.9rem 2.75rem;
|
|
border: 1px solid var(--border-color);
|
|
border-radius: 8px;
|
|
font-size: 1rem;
|
|
font-family: inherit;
|
|
background: var(--bg-body, #fff);
|
|
color: var(--text-body);
|
|
transition: border-color 0.2s ease, box-shadow 0.2s ease;
|
|
}
|
|
|
|
.search-page-form input[type="search"]::placeholder {
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.search-page-form input[type="search"]:focus {
|
|
outline: none;
|
|
border-color: var(--ide-primary);
|
|
box-shadow: 0 0 0 3px rgba(19, 167, 138, 0.15);
|
|
}
|
|
|
|
.search-page-form button[type="submit"] {
|
|
padding: 0.9rem 1.75rem;
|
|
background: var(--ide-primary);
|
|
color: #fff;
|
|
border: none;
|
|
border-radius: 8px;
|
|
font-weight: 600;
|
|
font-size: 0.95rem;
|
|
cursor: pointer;
|
|
font-family: inherit;
|
|
transition: background 0.2s ease, transform 0.15s ease;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.search-page-form button[type="submit"]:hover {
|
|
background: var(--ide-accent, #13A78A);
|
|
transform: translateY(-1px);
|
|
}
|
|
|
|
.search-page-form button[type="submit"]:active {
|
|
transform: translateY(0);
|
|
}
|
|
|
|
/* Status debajo del form */
|
|
.search-hint {
|
|
font-size: 0.88rem;
|
|
color: var(--text-muted);
|
|
margin-top: 1rem;
|
|
min-height: 1.25rem;
|
|
}
|
|
|
|
/* Sección de resultados */
|
|
.search-results-section {
|
|
padding: 2.5rem 0 4rem;
|
|
}
|
|
|
|
.search-results-list {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 1rem;
|
|
max-width: 800px;
|
|
margin: 0 auto;
|
|
}
|
|
|
|
.search-result-item {
|
|
padding: 1.25rem 1.5rem;
|
|
border: 1px solid var(--border-color);
|
|
border-radius: 12px;
|
|
background: var(--bg-surface);
|
|
transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
|
|
}
|
|
|
|
.search-result-item:hover {
|
|
border-color: var(--ide-primary);
|
|
box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
|
|
transform: translateY(-2px);
|
|
}
|
|
|
|
.search-result-item .result-category {
|
|
font-size: 0.72rem;
|
|
font-weight: 700;
|
|
color: var(--ide-accent);
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.08em;
|
|
margin-bottom: 0.4rem;
|
|
}
|
|
|
|
.search-result-item h3 {
|
|
font-size: 1.15rem;
|
|
margin-bottom: 0.5rem;
|
|
line-height: 1.35;
|
|
}
|
|
|
|
.search-result-item h3 a {
|
|
color: var(--ide-primary);
|
|
text-decoration: none;
|
|
transition: color 0.15s ease;
|
|
}
|
|
|
|
.search-result-item h3 a:hover {
|
|
color: var(--ide-accent);
|
|
text-decoration: underline;
|
|
}
|
|
|
|
.search-result-item p {
|
|
font-size: 0.9rem;
|
|
color: var(--text-muted);
|
|
line-height: 1.55;
|
|
margin: 0;
|
|
}
|
|
|
|
.search-result-item mark {
|
|
background: rgba(19, 167, 138, 0.18);
|
|
color: var(--ide-primary);
|
|
font-weight: 600;
|
|
padding: 0 3px;
|
|
border-radius: 3px;
|
|
}
|
|
|
|
/* Estado vacío */
|
|
.search-empty {
|
|
text-align: center;
|
|
padding: 3.5rem 1rem;
|
|
color: var(--text-muted);
|
|
max-width: 480px;
|
|
margin: 0 auto;
|
|
}
|
|
|
|
.search-empty svg {
|
|
opacity: 0.35;
|
|
margin-bottom: 1rem;
|
|
color: var(--ide-primary);
|
|
}
|
|
|
|
.search-empty p {
|
|
font-size: 1rem;
|
|
line-height: 1.6;
|
|
margin-bottom: 0.5rem;
|
|
}
|
|
|
|
.search-empty p strong {
|
|
color: var(--text-body);
|
|
}
|
|
|
|
.search-empty .search-hint {
|
|
font-size: 0.88rem;
|
|
}
|
|
|
|
.search-empty a {
|
|
color: var(--ide-primary);
|
|
text-decoration: underline;
|
|
text-underline-offset: 2px;
|
|
}
|
|
|
|
/* Chips de sugerencias */
|
|
.search-suggestions {
|
|
margin-top: 2rem;
|
|
text-align: center;
|
|
max-width: 640px;
|
|
margin-left: auto;
|
|
margin-right: auto;
|
|
}
|
|
|
|
.search-suggestions strong {
|
|
display: block;
|
|
margin-bottom: 0.85rem;
|
|
font-size: 0.85rem;
|
|
color: var(--text-muted);
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.08em;
|
|
font-weight: 700;
|
|
}
|
|
|
|
.search-suggestions .chip {
|
|
display: inline-block;
|
|
padding: 0.45rem 0.9rem;
|
|
margin: 0.2rem 0.25rem;
|
|
background: var(--bg-subtle);
|
|
border: 1px solid var(--border-color);
|
|
border-radius: 20px;
|
|
font-size: 0.85rem;
|
|
color: var(--text-body);
|
|
text-decoration: none;
|
|
transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
|
|
}
|
|
|
|
.search-suggestions .chip:hover {
|
|
background: var(--ide-primary);
|
|
color: #fff;
|
|
border-color: var(--ide-primary);
|
|
}
|
|
|
|
/* Responsive */
|
|
@media (max-width: 600px) {
|
|
.search-hero {
|
|
padding: 2.5rem 0 1.75rem;
|
|
}
|
|
|
|
.search-page-form {
|
|
flex-direction: column;
|
|
}
|
|
|
|
.search-page-form button[type="submit"] {
|
|
width: 100%;
|
|
}
|
|
} |