   /* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* BODY */
body {
    font-family: 'Segoe UI', Arial, sans-serif;
    text-align: center;
    background: linear-gradient(135deg, #f0f8ff, #e0ffff);
    color: #333;
}

/* HEADER */
header {
    background: linear-gradient(90deg, #ff9a9e, #fad0c4);
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

h1 {
    color: white;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* TITULOS */
h2 {
    margin-top: 30px;
    color: #444;
}

/* CONTENEDOR FIGURAS */
.contenedor {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 25px;
    margin: 30px;
}

/* FIGURAS */
.figura {
    width: 100px;
    height: 100px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.figura:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* FORMAS */
.circulo { border-radius: 50%; background: #ff4d4d; }
.cuadrado { background: #4da6ff; }
.rectangulo { width: 150px; background: #4dff88; }
.ovalo { border-radius: 50%; width: 150px; background: #b84dff; }

.triangulo {
    width: 0;
    height: 0;
    border-left: 50px solid transparent;
    border-right: 50px solid transparent;
    border-bottom: 100px solid #ffa64d;
}

/* BOTONES */
button {
    margin: 8px;
    padding: 10px 15px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(90deg, #36d1dc, #5b86e5);
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(0,0,0,0.2);
    background: linear-gradient(90deg, #ff7eb3, #65d6ce);
}

/* INPUTS */
input {
    margin: 8px;
    padding: 8px;
    border-radius: 6px;
    border: 1px solid #ccc;
    transition: 0.3s;
}

input:focus {
    outline: none;
    border-color: #5b86e5;
    box-shadow: 0 0 5px rgba(91,134,229,0.5);
}

/* TEXTOS */
.texto {
    margin: 10px;
    font-weight: bold;
    font-size: 18px;
    transition: 0.3s;
}

/* SECCIONES */
#textos, #agregar {
    background: white;
    margin: 20px auto;
    padding: 20px;
    width: 80%;
    max-width: 700px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* HR */
hr {
    margin: 40px auto;
    width: 80%;
    border: none;
    height: 2px;
    background: linear-gradient(90deg, #ff7eb3, #65d6ce);
}

/* FOOTER */
footer {
    margin-top: 40px;
    padding: 20px;
    background: #333;
    color: white;
    font-size: 14px;
}

/* NAV (la dejo igual pero integrada visualmente) */
nav {
    background: linear-gradient(90deg, #ff7eb3, #65d6ce);
    padding: 10px 0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 40px;
}

nav a {
    text-decoration: none;
    color: white;
    font-weight: bold;
    transition: 0.3s;
}

nav a:hover {
    color: #222;
}