230 líneas
3.7 KiB
CSS
230 líneas
3.7 KiB
CSS
* {
|
|
box-sizing: border-box;
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
body {
|
|
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
|
|
'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
|
|
sans-serif;
|
|
-webkit-font-smoothing: antialiased;
|
|
-moz-osx-font-smoothing: grayscale;
|
|
}
|
|
|
|
/* Accesibilidad: clase para ocultar visualmente pero mantener accesible para lectores de pantalla */
|
|
.visually-hidden {
|
|
position: absolute;
|
|
width: 1px;
|
|
height: 1px;
|
|
margin: -1px;
|
|
padding: 0;
|
|
overflow: hidden;
|
|
clip: rect(0, 0, 0, 0);
|
|
white-space: nowrap;
|
|
border: 0;
|
|
}
|
|
|
|
/* Accesibilidad: Skip link para navegación por teclado */
|
|
.skip-link {
|
|
position: absolute;
|
|
top: -40px;
|
|
left: 0;
|
|
background: #667eea;
|
|
color: white;
|
|
padding: 8px 16px;
|
|
text-decoration: none;
|
|
font-weight: 600;
|
|
border-radius: 0 0 4px 0;
|
|
z-index: 10000;
|
|
transition: top 0.3s;
|
|
}
|
|
|
|
.skip-link:focus {
|
|
top: 0;
|
|
outline: 3px solid #ffd700;
|
|
outline-offset: 2px;
|
|
}
|
|
|
|
.App {
|
|
min-height: 100vh;
|
|
display: flex;
|
|
flex-direction: column;
|
|
background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
|
|
}
|
|
|
|
/* Mejorar contraste para accesibilidad */
|
|
.App-header {
|
|
background: linear-gradient(135deg, #5568d3 0%, #6941a3 100%);
|
|
color: white;
|
|
padding: 2rem 1.5rem;
|
|
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
|
|
}
|
|
|
|
.header-content {
|
|
max-width: 1200px;
|
|
margin: 0 auto;
|
|
}
|
|
|
|
.logo-section {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 1rem;
|
|
margin-bottom: 0.5rem;
|
|
}
|
|
|
|
.app-logo {
|
|
font-size: 3rem;
|
|
animation: float 3s ease-in-out infinite;
|
|
}
|
|
|
|
@keyframes float {
|
|
0%, 100% {
|
|
transform: translateY(0);
|
|
}
|
|
50% {
|
|
transform: translateY(-10px);
|
|
}
|
|
}
|
|
|
|
.App-header h1 {
|
|
font-size: 2.5rem;
|
|
font-weight: 700;
|
|
margin: 0;
|
|
}
|
|
|
|
.subtitle {
|
|
font-size: 1.1rem;
|
|
opacity: 0.95;
|
|
margin: 0;
|
|
padding-left: 4rem;
|
|
}
|
|
|
|
.App-main {
|
|
flex: 1;
|
|
max-width: 1200px;
|
|
width: 100%;
|
|
margin: 0 auto;
|
|
padding: 2rem 1.5rem;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 1.5rem;
|
|
}
|
|
|
|
.controls-section {
|
|
width: 100%;
|
|
}
|
|
|
|
.catalog-section {
|
|
flex: 1;
|
|
background: white;
|
|
border-radius: 12px;
|
|
padding: 1.5rem;
|
|
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
|
|
overflow: hidden;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.App-footer {
|
|
background: #2c3e50;
|
|
color: white;
|
|
padding: 1rem 1.5rem;
|
|
text-align: center;
|
|
box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
|
|
}
|
|
|
|
.App-footer p {
|
|
margin: 0;
|
|
font-size: 0.95rem;
|
|
}
|
|
|
|
.App-footer a {
|
|
color: #8fa3ff;
|
|
text-decoration: none;
|
|
font-weight: 600;
|
|
transition: color 0.3s ease;
|
|
}
|
|
|
|
.App-footer a:hover,
|
|
.App-footer a:focus {
|
|
color: #b5c7ff;
|
|
text-decoration: underline;
|
|
outline: 2px solid #8fa3ff;
|
|
outline-offset: 2px;
|
|
}
|
|
|
|
.share-toast {
|
|
position: fixed;
|
|
top: 2rem;
|
|
left: 50%;
|
|
transform: translateX(-50%);
|
|
background: #4caf50;
|
|
color: white;
|
|
padding: 1rem 2rem;
|
|
border-radius: 8px;
|
|
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
|
|
font-weight: 600;
|
|
z-index: 1002;
|
|
animation: slideDown 0.3s ease;
|
|
}
|
|
|
|
@keyframes slideDown {
|
|
from {
|
|
opacity: 0;
|
|
transform: translateX(-50%) translateY(-20px);
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
transform: translateX(-50%) translateY(0);
|
|
}
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
.App-header {
|
|
padding: 1.5rem 1rem;
|
|
}
|
|
|
|
.logo-section {
|
|
gap: 0.75rem;
|
|
}
|
|
|
|
.app-logo {
|
|
font-size: 2rem;
|
|
}
|
|
|
|
.App-header h1 {
|
|
font-size: 1.8rem;
|
|
}
|
|
|
|
.subtitle {
|
|
font-size: 0.95rem;
|
|
padding-left: 2.75rem;
|
|
}
|
|
|
|
.App-main {
|
|
padding: 1rem;
|
|
gap: 1rem;
|
|
}
|
|
|
|
.catalog-section {
|
|
padding: 1rem;
|
|
}
|
|
|
|
.App-footer p {
|
|
font-size: 0.85rem;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 480px) {
|
|
.logo-section {
|
|
flex-direction: column;
|
|
align-items: flex-start;
|
|
gap: 0.5rem;
|
|
}
|
|
|
|
.subtitle {
|
|
padding-left: 0;
|
|
}
|
|
}
|