Estructura inicial del ejercicio
This commit is contained in:
178
estilo.css
Normal file
178
estilo.css
Normal file
@@ -0,0 +1,178 @@
|
||||
/*
|
||||
(Archivo generado con IA)
|
||||
|
||||
=========================
|
||||
ESTILO GENERAL
|
||||
========================= */
|
||||
|
||||
* {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
body {
|
||||
margin: 0;
|
||||
padding: 40px 20px;
|
||||
font-family: Arial, Helvetica, sans-serif;
|
||||
background: #f4f7fb;
|
||||
color: #2d3436;
|
||||
line-height: 1.6;
|
||||
}
|
||||
|
||||
/* =========================
|
||||
TÍTULO PRINCIPAL
|
||||
========================= */
|
||||
|
||||
h1 {
|
||||
text-align: center;
|
||||
font-size: 2.5rem;
|
||||
margin-bottom: 40px;
|
||||
color: #1e3a5f;
|
||||
letter-spacing: 1px;
|
||||
}
|
||||
|
||||
/* =========================
|
||||
CONTENEDORES
|
||||
========================= */
|
||||
|
||||
.grupo-comidas,
|
||||
#parrafos {
|
||||
max-width: 850px;
|
||||
margin: 0 auto 35px auto;
|
||||
background: white;
|
||||
padding: 30px;
|
||||
border-radius: 18px;
|
||||
box-shadow: 0 8px 25px rgba(0,0,0,0.08);
|
||||
transition: all 0.3s ease;
|
||||
}
|
||||
|
||||
/* =========================
|
||||
PÁRRAFO INICIAL
|
||||
========================= */
|
||||
|
||||
.texto-inicial {
|
||||
font-size: 1.1rem;
|
||||
background: #eef4ff;
|
||||
padding: 18px;
|
||||
border-left: 6px solid #4a90e2;
|
||||
border-radius: 10px;
|
||||
transition: all 0.3s ease;
|
||||
}
|
||||
|
||||
/* Clase para probar desde JS */
|
||||
.texto-inicial.activo {
|
||||
background: #d1ffd9;
|
||||
color: #14532d;
|
||||
transform: scale(1.02);
|
||||
border-left-color: #22c55e;
|
||||
}
|
||||
|
||||
/* =========================
|
||||
LISTA
|
||||
========================= */
|
||||
|
||||
.lista-comidas {
|
||||
margin-top: 25px;
|
||||
padding: 0;
|
||||
list-style: none;
|
||||
}
|
||||
|
||||
.lista-comidas li {
|
||||
background: #f8fafc;
|
||||
margin-bottom: 12px;
|
||||
padding: 14px 18px;
|
||||
border-radius: 10px;
|
||||
border: 2px solid transparent;
|
||||
transition: all 0.25s ease;
|
||||
font-size: 1.05rem;
|
||||
}
|
||||
|
||||
/* Hover elegante */
|
||||
.lista-comidas li:hover {
|
||||
transform: translateX(6px);
|
||||
background: #edf4ff;
|
||||
border-color: #4a90e2;
|
||||
}
|
||||
|
||||
/* Clase para agregar/quitar desde JS */
|
||||
.lista-comidas.resaltada li {
|
||||
background: #fff4d6;
|
||||
border-color: #f4b400;
|
||||
color: #7a5200;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
/* =========================
|
||||
IMAGEN
|
||||
========================= */
|
||||
|
||||
#foto {
|
||||
width: 100%;
|
||||
max-width: 500px;
|
||||
display: block;
|
||||
margin: 30px auto 0 auto;
|
||||
border-radius: 16px;
|
||||
box-shadow: 0 10px 25px rgba(0,0,0,0.15);
|
||||
transition: all 0.35s ease;
|
||||
}
|
||||
|
||||
/* Clase para experimentar */
|
||||
#foto.zoom {
|
||||
transform: scale(1.08) rotate(-1deg);
|
||||
filter: saturate(1.4);
|
||||
box-shadow: 0 18px 40px rgba(0,0,0,0.25);
|
||||
}
|
||||
|
||||
/* =========================
|
||||
PÁRRAFOS COMUNES
|
||||
========================= */
|
||||
|
||||
#parrafos p {
|
||||
padding: 14px 16px;
|
||||
border-radius: 10px;
|
||||
transition: all 0.25s ease;
|
||||
}
|
||||
|
||||
/* Hover suave */
|
||||
#parrafos p:hover {
|
||||
background: #f2f7ff;
|
||||
}
|
||||
|
||||
/* =========================
|
||||
DESTACADOS
|
||||
========================= */
|
||||
|
||||
.destacado {
|
||||
background: linear-gradient(135deg, #4a90e2, #357abd);
|
||||
color: white;
|
||||
font-weight: bold;
|
||||
padding: 18px !important;
|
||||
box-shadow: 0 6px 16px rgba(74, 144, 226, 0.35);
|
||||
transform: scale(1.02);
|
||||
}
|
||||
|
||||
/* Otra clase para probar desde JS */
|
||||
.destacado.alerta {
|
||||
background: linear-gradient(135deg, #ff5f6d, #d7263d);
|
||||
transform: scale(1.05);
|
||||
letter-spacing: 1px;
|
||||
}
|
||||
|
||||
/* =========================
|
||||
RESPONSIVE
|
||||
========================= */
|
||||
|
||||
@media (max-width: 700px) {
|
||||
|
||||
body {
|
||||
padding: 20px 12px;
|
||||
}
|
||||
|
||||
h1 {
|
||||
font-size: 2rem;
|
||||
}
|
||||
|
||||
.grupo-comidas,
|
||||
#parrafos {
|
||||
padding: 20px;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user