html,
body {
    margin: 10px 10px;
    padding: 0;
    font-size: 10px;
    text-align: justify;
}

h1,
h2,
h3 {
    margin-inline-start: 3rem;
}

h2 {
    margin-block-start: 5rem;
    margin-block-end: 1rem;
    font-size: 3rem;
    color: #e75281;
}

h3 {
    font-size: 2.4rem;
    color: rgb(38, 87, 193);
}

p {
    font-size: 1.6rem;
}


a {
    outline: none;
    text-decoration: none;
    padding: 2px 1px 0;
}

a:link {
    color: #e75281;
}

a:visited {
    color: #d833bf;
}

a:focus {
    border-bottom: 1px solid;
    background: #bae498;
    border-radius: 0.3em;
}

a:hover {
    border-bottom: 1px solid;
    background: #cdfeaa;
    border-radius: 0.3em;
}

a:active {
    background: #265301;
    color: #cdfeaa;
    border-radius: 0.3em;
}

/* --FlexBox-- */
.wrapper {
    display: flex;
}

.wrapper>div {
    flex: 1;
}

/* ----------- */

.box1,
.box2,
.box3,
.box4,
.box5,
.box6 {
    background-color: rgb(190, 77, 247);
    border: 2px solid black;
    margin: 3px 3px;
    font-size: 1.6rem;
    border-radius: 5px;
    padding: 10px;
    text-align: center;
}

/* --Diseño de cuadrícula-- */
.wrapper1 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: 100px 100px;
    grid-gap: 10px;
}

.wrapper2 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: 100px 100px;
    grid-gap: 10px;
}

.wrapper2 .box1 {
    grid-column: 2 / 4;
    grid-row: 1;
}

.wrapper2 .box2 {
    grid-column: 1;
    grid-row: 1 / 3;
}

.wrapper2 .box3 {
    grid-row: 2;
    grid-column: 3;
}

/* ------------------------ */

/* -----Floats----- */
.box {
    float: left;
    width: 150px;
    height: 150px;
    margin-right: 30px;
    border: 1px solid black;
}

/* ---------------- */

/* -----Técnicas de posicionamiento----- */
.po,
.po1,
.po2 {
    width: 500px;
    margin: 0 auto;
}

.po p,
.po1 p,
.po2 p {
    background-color: rgb(207, 232, 220);
    border: 2px solid rgb(79, 185, 227);
    padding: 10px;
    margin: 10px;
    border-radius: 5px;
}

/* -----posicionamiento relativo----- */
.po1 .positioned {
    position: relative;
    background: rgba(255, 84, 104, 0.3);
    border: 2px solid rgb(255, 84, 104);
    top: 30px;
    left: 30px;
}

/* -----posicionamiento absoluto----- */

.po2 .positioned {
    position: absolute;
    background: rgba(255, 84, 104, 0.3);
    border: 2px solid rgb(255, 84, 104);
    top: 1700px;
    left: 30px;
}

/* --------Posicionamiento fijo-------- */
.positioned1 {
    position: fixed;
    top: 30px;
    left: 30px;
    background: rgba(255, 84, 104, 0.3);
    border: 2px solid rgb(255, 84, 104);
    padding: 10px;
    padding-inline-end: 500px;
    margin: 10px;
    border-radius: 5px;
    font-size: 2rem;
}

/* -------Posicionamiento pegajoso------- */
.positioned2 {
    position: sticky;
    top: 30px;
    left: 30px;
    background: rgba(255, 84, 104, 0.3);
    border: 2px solid rgb(255, 84, 104);
    padding: 10px;
    padding-inline-end: 500px;
    border-radius: 5px;
    font-size: 2rem;

}

.pega {
    width: 500px;
    margin: 0 auto;
}

/* ------------------------------------- */

/* ---------Diseño de tablas-------- */
html {
    font-family: sans-serif;
}

form {
    display: table;
    margin: 0 auto;
    margin-block-start: 60px;
    font-size: 1.8rem;
}

form div {
    display: table-row;
}

form label,
form input {
    display: table-cell;
    margin-bottom: 10px;
}

form label {
    width: 200px;
    padding-right: 5%;
    text-align: right;
}

form input {
    width: 300px;
}

form p {
    display: table-caption;
    caption-side: bottom;
    width: 300px;
    color: #999;
    font-style: italic;
}

/* ------------------------------- */

/* -----------Diseño en columnas---------- */
.container {
    margin-block-start: 30px;
    column-width: 250px;
    
}
/* --------------------------------------- */