diff --git a/ejercicios-clase-8.js b/ejercicios-clase-8.js new file mode 100644 index 0000000..af39c43 --- /dev/null +++ b/ejercicios-clase-8.js @@ -0,0 +1 @@ +// Vincular este archivo al archivo index.html, y resolver aquí los ejercicios. diff --git a/estilo.css b/estilo.css new file mode 100644 index 0000000..fcb26fc --- /dev/null +++ b/estilo.css @@ -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; + } +} diff --git a/foto1.jpg b/foto1.jpg new file mode 100644 index 0000000..93b4432 Binary files /dev/null and b/foto1.jpg differ diff --git a/foto2.jpg b/foto2.jpg new file mode 100644 index 0000000..b527848 Binary files /dev/null and b/foto2.jpg differ diff --git a/index.html b/index.html new file mode 100644 index 0000000..0c393ac --- /dev/null +++ b/index.html @@ -0,0 +1,35 @@ + + + + + + Comidas típicas de Argentina + + + +

Comidas típicas de Argentina

+ +
+

Si bien cada región + tiene sus propias comidas típicas, hay algunas que son + tradicionales en casi todas las provincias:

+ + + + Empanadas +
+
+

Este es un párrafo cualquiera.

+

Pero este es un párrafo muy importante.

+

Es importante distinguir los párrafos relevantes de los + comunes.

+

¿Y este párrafo? ¿Será importante?

+

Este es otro párrafo del montón.

+
+ +