:root {
    /* interpolate-size: allow-keywords; */
    --hue: 205;
    --saturation: 100%;
    --lightness: 50%;
    --primary-color: hsl(var(--hue), var(--saturation), var(--lightness)); /*azul claro*/
    --secondary-color: hsl(calc(var(--hue) + 180), var(--saturation), var( --lightness)); /*rojo-anaranjado*/
    --terciary-color: hsl(calc(var(--hue) - 120), var(--saturation), var(--lightness)); /*verde claro*/
    --body-bg: hsl(var(--hue), calc(var(--saturation) * 0.05), calc(var(--lightness) + 40%));
    --body-bg-pink: hsl(calc(var(--hue) * 0), calc(var(--saturation) * 0.67), calc(var(--lightness) + 30%));
    --contenido-bg: hsl(var(--hue), calc(var(--saturation) * 0), calc(var(--lightness) + 50%));
    --border-width: 1px;
    --font-family: "Source Sans Pro";
    --font-family-second: "IBM Plex Serif", serif;
    --font-family-alt: "Quattrocento";
    --font-size-sm: clamp(0.8rem, 0.17vw + 0.76rem, 0.89rem);
    --font-size-base: clamp(1rem, 0.34vw + 0.91rem, 1.19rem);
    --font-size-md: clamp(1.25rem, 0.61vw + 1.1rem, 1.58rem);
    --font-size-lg: clamp(1.56rem, 1vw + 1.31rem, 2.11rem);
    --font-size-xl: clamp(1.95rem, 1.56vw + 1.56rem, 2.81rem);
    --font-size-xxl: clamp(2.44rem, 2.38vw + 1.85rem, 3.75rem);
    --font-size-xxxl: clamp(3.05rem, 3.54vw + 2.17rem, 5rem);
    --line-height-base: 1.5;
    --card-bg: hsl(var(--hue), calc(var(--saturation) * 0), calc(var(--lightness) + 50%));
    --card-width: 95%;
    --card-padding: 24px 34px;
    --card-margin: 50px 0px 30px 30px;
    --card-border-color: hsla(var(--hue), calc(var(--saturation) * 0), calc(var(--lightness) + 20%), 1);
    --card-font-family: var(--font-family);
    --card-text-color: hsl(var(--hue), calc(var(--saturation) * 0), calc(var(--lightness) * 0.7));
    --card-link-padding: 3px 9px;
    --card-link-bg: var(--secondary-color);
    --card-link-color: hsl(calc(var(--hue) + 180), var(--saturation), calc(var( --lightness) * 1.8));
    --card-link-family: var(--font-family);
    --card-link-decoration: none;
    --card-shadow: hsla(0, 0%, 0%, 0.15);
    --color-pre: var(--terciary-color);
    --font-size-pre: calc(var(--font-size-base) * 1.1);
    --bg-color-pre: hsla(var(--hue), calc(var(--saturation) * 0.2), calc(var(--lightness) * 0.6), 0.7);
    --color-code: hsl(calc(var(--hue) * 0.78), calc(var(--saturation) / 2), var(--lightness));
    --font-size-code: calc(var(--font-size-base) * 1.1);
    --body: #32373d;
    --nav-bg: #5533ff;
    --bg: #ffffff;

    /* variables para list-colapse */
    
    /* colores */
    --bg-color: #79a8a9;
    --bg-color-dark: #1f4e5f;
    --card-color: #f4f7f7;
    --text-color: #1f4e5f;

    /* medidas */
    --padding: 1em;
    --height: 4em;
    --shadow: 5px;
    --perspective: 150px;

    /* fuentes */
    --delay: 0.1s;
}

:root[data-theme=dark] {
    --hue: 120;
    --lightness: 70%;
    --body-bg: hsl(var(--hue), calc(var(--saturation) * 0), calc(var(--lightness) * 0.25));
    --body-bg-pink: hsla(calc(var(--hue) * 0), calc(var(--saturation) * 0), calc(var(--lightness) - 50%), .7);
    --contenido-bg: hsla(var(--hue), calc(var(--saturation) * 0), calc(var(--lightness) * 0.1), 0.5);
    --border-width: 3px;
    --line-height-base: 1.55;
    --card-width: 92%;
    --card-padding: 30px 38px;
    --card-margin: 50px 0px 30px 30px;
    --card-bg: hsla(var(--hue), calc(var(--saturation) * 0), calc(var(--lightness) * 0.1), 0.5);
    --card-border-color: hsla(var(--hue), calc(var(--saturation) * 0), calc(var(--lightness) * 0.5), 0.5);
    --card-font-family: var(--font-family-alt);
    --card-text-color: hsl(var(--hue), calc(var(--saturation) * 0), calc(var(--lightness) * 1.25));
    --card-link-padding: 0;
    --card-link-bg: null;
    --card-link-color: hsl(calc(var(--hue) + 180), var(--saturation), calc(var( --lightness) * 1.1));
    --card-link-decoration: underline;
    --card-shadow: hsla(0, 0%, 80%, 0.2);
    --color-pre: hsl(calc(var(--hue) + 50), calc(var(--saturation) * 0.2), var(--lightness)); 
    --bg-color-pre: hsl(var(--hue), calc(var(--saturation) * 0.1), calc(var(--lightness) * 0.35));
    --color-code: hsl(calc(var(--hue) * 0.28), calc(var(--saturation) / 2), var(--lightness));
}

*, *::before, *::after {
    box-sizing: border-box; 
    scroll-behavior: smooth;
    /* outline: 2px solid var(--body-bg-pink); */
} 

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    background-color: var(--body-bg);
    margin: 0;
    padding: 0;
    padding-top: 50px;
    overflow-x: hidden;
}

/* Estilo para todos los contenidos modo claro-oscuro */

.card {
    width: var(--card-width);
    border: var(--border-width) solid var(--card-border-color);
    border-radius: 6px;
    padding: var(--card-padding);
    margin: var(--card-margin);
    background-color: var(--card-bg);
    color: var(--card-text-color);
    font-family: var(--card-font-family);
    font-size: var(--font-size-base);
    box-shadow: 2px 2px 3px var(--card-shadow);
    transition: .5s;
}

.card_header {
    margin-bottom: 0.8rem;
    color: var(--primary-color);
    font-family: "Alfa Slab One";
    font-size: calc(var(--font-size-base) * 1.8);
    font-weight: 400;
    text-align: center;
    text-shadow: 4px 4px 5px #0005;
    transition: .5s;
}

.card_accion {
    display: inline-block;
    border: 0;
    border-radius: 5px;
    padding: var(--card-link-padding);
    background-color: var(--card-link-bg);
    color: var(--card-link-color);
    font-family: var(--card-link-family);
    /* font-size: calc(var(--font-size-base) * 1.1); */
    font-weight: bold;
    text-decoration: var(--card-link-decoration);
    transition: .5s;
}

/* css subrayado animado de enlaces en :hover */

.enlace {
    text-decoration: none;
    background-image: linear-gradient(currentColor, currentColor);
    background-position: 0% 100%;
    background-repeat: no-repeat;
    background-size: 0% 2px;
    transition: background-size .3s;
}

.enlace:hover, 
.enlace:focus, 
.enlace:active {
    transition: all 0.3s ease 0s;
    display: inline-block;
    background-size: 100% 2px;
}

/* css de background animado en :hover */

.back {
    background-image: linear-gradient(120deg, var(--body-bg-pink), var(--body-bg-pink));
    background-position: 0% 100%;
    background-repeat: no-repeat;
    background-size: 100% 0;
    border-bottom: .125rem solid var(--body-bg-pink);
    white-space: nowrap;
    transition: all .2s cubic-bezier(0,0,.24,.9);
}

.back:hover,
.back:focus, 
.back:active {
    display: inline-block;
    transition: all .2s cubic-bezier(0,0,.24,.9);
    background-size: 100% 100%;
}

/* Estilo de la cabecera */

#cabecera {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    background-color: #404040;
    height: 48px;
    z-index: 150;
    border-radius: 10%;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    transition: top .3s linear;
}

/* Estilo del div que contiene el logo y el nombre */

#nombre {
    width: 180px;
    display: flex;
    justify-content: space-evenly;
}

p.logo {
    display: inline-block;
    background-image: url("/assets/favicon/iconos/favicon-32x32.png");
    width: 32px;
    height: 32px;
    margin: 0;
    align-self: center;
}

p.logo:hover {transition: .3s;transform: scale(1.3); cursor: pointer;}

a.link-nombre {display: flex;flex-direction: column;padding-bottom: 10px;text-decoration: none;}

p.titulo {
    position: relative;
    color: #ffffff;
    word-break: break-word;
    font-weight: 400;
    display: inline-block;
    margin: 0px;
    -webkit-text-stroke: 1px #ffffff;
    -webkit-text-fill-color: transparent;
}

p.titulo::after {
    color: #000000;
    position: absolute;
    top: 0px;
    left: 0px;
    z-index: 99;
    display: inline-block;
    overflow: hidden;
    width: 0%;
    white-space: pre;
    word-break: normal;
    content: attr(data-text);
    transition-timing-function: cubic-bezier(0.39, 0.13, 0.55, 0.88);
    transition-duration: 0.7s;
    transition-property: width;
    will-change: width;
    -webkit-text-fill-color: #ffffff;
    -webkit-text-stroke: unset;
}
a.link-nombre:hover p.titulo::after {width: 100%;}

/* Boton oculto que aperece con la media query */

#btn-toggle {display: none;}

/* Estilo para botón de esconder menu en resolución movil */

#cab-btn-toggle{display: none;}
 
/* Estilo para el menu de navegación en cabecera */

#menu {
    position: relative;
    top: 0;
    width: 100%;
    max-width: 1000px;
    display: flex;
    justify-content: space-between;
}

#menu .temas {
    list-style: none;
    width: 100%;
    max-width: 80%;
    margin: 0;
    display: flex;
    justify-content: space-around;
    transition: all .3s cubic-bezier(0, -0.7, 1, 1.7);
}

#menu .temas > li {flex-grow: 0; transition: all .3s cubic-bezier(0, -0.7, 1, 1.7);}
#menu .temas > li:hover {transition: all .3s cubic-bezier(0, -0.7, 1, 1.7); flex-grow: 0.5;}

#menu .primer-item {position: relative;}

#menu .primer-item > a {
    display: block;
    text-align: center;
    text-decoration: none;
    color: var(--bg);
    transition: all .3s cubic-bezier(0, -0.7, 1, 1.7);
}

#menu .primer-item:hover > a {padding-top: 10px; color: rgb(231, 16, 16);}

#menu #informatica {
    list-style:none; 
    display: flex;  
}

#informatica span {
    position: relative;
    display: block;
    opacity: 0;
    transform: translateY(-100%);
    transition: .5s linear;
    z-index: 1000;
}

#informatica span.active {
    transition: .5s linear;
    opacity: 1;
    background: white; 
    padding: 10px 20px;
    margin: 0 50px;
    transform: translate(-90px, 0%);
}

#informatica span.active a {color: black;}

#menu .list-item {
    perspective: 500px;
    position: relative;
    transition: all .2s ease-in-out;
}

.list-item a {color: #fff;}

.list-item:hover > a {padding-top: 10px; color: #33fff5;}

.item-dropdown {
    position: absolute;
    list-style: none;
    top: 55px;
    left: 50%;
    padding: 1rem 2.25rem;
    line-height: 2;
    color: var(--bg); 
    transform: translate(-100%, 0);
    opacity: 0;
    visibility: hidden;
    transition: all 0.1s ease-out;
}

.item-dropdown.active {
    opacity: 1;
    visibility: visible;
    transition-delay: 0.2s;
}

.item-dropdown li a {
    font-size: 0.8rem;
    display: block;
    text-decoration: none;
    color: var(--bg);
    white-space: nowrap;
    transition: all 0.1s ease-out;
}

#navigation-dropdown {
    position: fixed;
    background: var(--body);
    box-shadow: 0 1px 5px -2px var(--nav-bg);
    border-radius: 3px;
    transition: all 0.2s ease-out;
    opacity: 0;
    visibility: hidden;
    transform-origin: 50% 0;
}

#navigation-dropdown.active {
    opacity: 1;
    visibility: visible;
    color: var(--bg);
}

#navigation-dropdown::before {
    position: absolute;
    content: "";
    bottom: 100%;
    left: 50%;
    transform: translate(-50%, 0);
    border-top: 0.5rem solid transparent;
    border-right: 0.5rem solid transparent;
    border-bottom: 0.5rem solid var(--body);
    border-left: 0.5rem solid transparent;
}

#menu .temas ul.imagenes_cab {
    position: absolute;
    width: 0%;
    height: 0%;
    top: 85px;
    list-style: none;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    overflow: hidden;
    z-index: 1000;
    transition: all .5s cubic-bezier(0, -0.7, 1, 1.7) .2s;
}

#menu .temas > li.list-item-images:hover > ul.imagenes_cab {
    transition: all .5s cubic-bezier(0, -0.7, 1, 1.7) .2s;
    height: 50vh;
    width: 25vw;
    overflow-y: auto;
    opacity: 1;
    background: lightyellow;
}

#menu .temas > li.list-item-images > ul.imagenes_cab:hover {
    transition: all .5s cubic-bezier(0, -0.7, 1, 1.7) .2s;
    background: white;
    border: 2px solid black;
    border-radius: 20px; 
    box-shadow: inset 4px 4px 8px rgba(0, 0, 0, .7);
    transform: translateY(20px);
}

#menu .temas .imagenes_cab li {text-indent: -10px; margin-top: 50px;}

li.list-item-images > a {
    color: #fff;
    transition: .3s linear;
}

li.list-item-images:hover > a {
    padding-top: 10px;
    color: rgb(255, 51, 255);
}

.imagenes_cab #search-input {
    width: 60%;
    max-width: 300px;
    padding: 10px 20px;
    border: none;
    box-shadow: 0 0 5px rgba(0,0,0,.3);
    border-radius: 5px;
    font-size: var(--font-size-sm);
    color: #333;
}

.imagenes_cab #search-button {
    padding: 10px 20px;
    background-color: #4caf50;
    color: white;
    border: none;
    font-size: var(--font-size-sm);
    box-shadow:  0 0 5px rgba(0,0,0,.3);
    cursor: pointer;
    border-radius: 5px;
    transition: background-color .3s cubic-bezier(0, -0.7, 1, 1.7);
}

.imagenes_cab #search-button:hover {
    background-color: #3e8e41;
}

.imagenes_cab li.resultados {
   position: relative;
   width: 100%;
   max-width: 90%;
   display: flex; 
   flex-direction: column;
   justify-content: center;
   text-indent: 0 !important;
   transform: translateX(-40px);
}

.imagenes_cab li.resultados .search-results {
    background-color: rgb(0,0,0);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    gap: 50px;
    width: 100%;
    width: 23vw;
    padding: 20px 0;
    z-index: 100;
}

.imagenes_cab li.resultados .search-result:not(:empty) {
    margin: 0;
    width: 100%;
    width: 20vw;
    height: 250px;
    border-radius: 5px;
    box-shadow: 0 0 5px rgba(0, 0, 0, .3);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.imagenes_cab li.resultados .search-result:hover img {
    transform: scale(1.05);
}

.imagenes_cab li.resultados .search-result img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform .3s cubic-bezier(0, -0.7, 1, 1.7);
}

.imagenes_cab li.resultados .search-result a {
    font-size: 14px;
    padding: 10px;
    display: block;
    color: #fff;
    text-decoration: none;
    transition: background-color .3s ease-in-out;
}

.imagenes_cab li.resultados .search-result:hover a {
    background-color: rgba(0, 0, 0, .3);
}

.imagenes_cab li.resultados #show-more-button {
    position: relative;
    top: 0px;
    z-index: 200;
    display: none;
    font-size: var(--font-size-sm);
    background-color: #008cba;
    border: none;
    color: white;
    padding: 10px 20px;
    text-align: center;
    margin: 20px auto;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color .3s cubic-bezier(0, -0.7, 1, 1.7);
}

.imagenes_cab li.resultados #show-more-button:hover {
    background-color: #0077b5;
}

#menu .temas .imagenes_cab a.enlace { 
    position: relative;
    left: 0%;
    top: 0%;
    display: inline-block;
    text-decoration: none;
    width: 100%;
    height: auto;
    border-top: 2px solid transparent;
    border-left: 2px solid transparent;
    border-right: 2px solid transparent;
    border-bottom: 10px solid black;
    color: rgb(255, 51, 255);
    transition: all .5s cubic-bezier(0, -0.7, 1, 1.7) .2s;
}

#menu .temas .imagenes_cab a.enlace::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -50px;
    border-bottom: 10px solid rgba(0, 0, 0, .8);
    width: 0;
    transition: all .5s cubic-bezier(0, -0.7, 1, 1.7) .2s;
}

#menu .temas .imagenes_cab a.enlace:hover {
    transition: all .5s cubic-bezier(0, -0.7, 1, 1.7) .2s; 
    border: 2px solid black; 
    border-radius: 20px; 
    transform: translateY(-30px) rotateY(-10deg) skewX(3deg) skewY(3deg);
}

#menu .temas .imagenes_cab li a.enlace:hover::after {
    transition: all .5s cubic-bezier(0, -0.7, 1, 1.7) .2s;
    text-transform: uppercase;
    width: 170px;
    bottom: -40px;
    padding-left: 30px;
    white-space: nowrap;
    background: rgba(0, 0, 0, .3);
}

#menu .temas .imagenes_cab li:nth-child(3) a:hover::after {content:"HTML";}
#menu .temas .imagenes_cab li:nth-child(4) a:hover::after {content:"CSS";}
#menu .temas .imagenes_cab li:nth-child(5) a:hover::after {content:"Javascript";}
#menu .temas .imagenes_cab li:nth-child(6) a:hover::after {content:"Mascotas";}
#menu .temas .imagenes_cab li:nth-child(7) a:hover::after {content:"Cocina";}

#menu .temas .imagenes_cab li a.enlace img {
    max-width: 180px;
    max-height: 180px; 
    border: 4px solid transparent; 
    transition: all .5s cubic-bezier(0, -0.7, 1, 1.7) .2s;
}

#menu .temas .imagenes_cab li a.enlace img:hover {
    transition: all .5s cubic-bezier(0, -0.7, 1, 1.7) .2s; 
    transform: translateY(-20px) rotateY(10deg) skewX(-3deg) skewY(-3deg); 
    border-radius: 40%; 
    overflow: hidden;
    border-top-color: blue;
    border-left-color: yellow;
    border-bottom-color: green;
    border-right-color: red;
}

/* CSS para botones sociales en cabecera */

#icono-cabecera {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    border: transparent;
    background: grey;
    border-radius: 10%;
    z-index: 10;
    transition: all .3s linear .1s;
}

#icono-cabecera.active {opacity: 0; visibility: hidden; z-index: -1; height: 0; overflow: hidden;}
#icono-cabecera a {display: flex;height: 40px;text-decoration: none;}
#icono-cabecera i {display: block;font-size: 30px;color: rgb(204, 223, 204);padding-top: 5px;}

#icono-cabecera span {
    display: block;
    width: 0;
    font-size: var(--font-size-base);
    padding-left: 5px;
    margin-top: 5px;
    color: white;
    overflow: hidden;
    visibility: hidden;
    opacity: 0;
}

#icono-cabecera:hover i {
    transition: all 0.6s ease 0s;
    font-size: 25px;
    padding-top: 5px;
    padding-left: 5px;
    color: white;
}

#icono-cabecera a:hover span {
    transition: all 0.4s linear 0s;
    width: auto;
    padding-right: 5px;
    font-size: 1em;
    letter-spacing: 1.2px;
    visibility: visible;
    opacity: 1;
}

#icono-cabecera .face:hover {
    transition: all 0.4s linear 0s;
    background-color: rgb(9, 9, 189);
    border: 1px solid white;
    border-radius: 10%;
    font-weight: bold;
}

#icono-cabecera .twit:hover {
    transition: all 0.4s linear 0s;
    background-color: #008bc2;
    border: 1px solid white;
    border-radius: 10%;
    font-weight: bold;
}

#icono-cabecera .gmail:hover {
    transition: all 0.4s linear 0s;
    background-color: rgba(253, 0, 0, 0.527);
    border: 1px solid white;
    border-radius: 10%;
    font-weight: bold;
}

#icono-cabecera .link:hover {
    transition: all 0.4s linear 0s;
    background-color: #0a66c2;
    border: 1px solid white;
    border-radius: 10%;
    font-weight: bold;
}

/* Estilo para toda la cabecera */

#cab {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    background-color: #404040;
    height: 48px;
    z-index: 150;
    border-radius: 10%;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    transition: top .3s linear;
}

/* Icono que abre el menu acordeon */

#abremenu {
    overflow: hidden;
    max-width: 100%;
    cursor: pointer;
    position: relative;
    top: -40px;
}

#abremenu #abremenu1 {
    position: relative;
    top: 0px;
    left: 5px;
    width: 30px;
    height: 23px;
    margin: 10px;
    z-index: 1000;
}

#abremenu #abremenu1 span {
    opacity: 1;
    left: 0;
    top: 0;
    display: block;
    width: 100%;
    height: 3px;
    border-radius: 10px;
    color: white;
    background-color: lightgrey;
    position: absolute;
    transform: rotate(0deg);
    transition: .4s ease-in-out;
}

#abremenu #abremenu1 span:nth-child(1) {top: 1px;}
#abremenu #abremenu1 span:nth-child(2) {top: 9px;}
#abremenu #abremenu1 span:nth-child(3) {top: 17px;}
#abremenu #abremenu1.open span:nth-child(1) {transform: translateY(9px) rotate(135deg);}
#abremenu #abremenu1.open span:nth-child(2) {opacity: 0;transform: translateX(-60px);}
#abremenu #abremenu1.open span:nth-child(3) {transform: translateY(-7px) rotate(-135deg);}

/* Menu lateral */

#nav-lateral.active {width: 350px;}
.menunav::-webkit-scrollbar {display: none;}

.menunav {
    position: absolute;
    display: block;
    height: 100vh;
    width: 100%;
    max-width: 350px;
    background-color: #111;
    overflow-x: hidden;
    overflow-y: auto;
    z-index: 999;
    top: 50px;
    left: -100%;
    padding-top: 50px;
    transition: left .3s linear;
} 

.menunav a {
    display: block;
    text-decoration: none;
    font-size: 1.3em;
    font-family: impact, arial;
    color: #818181;
    margin: 10px 0;
    transition: 0.3s;
}

.contenido-menunav {display: none; padding-top: 10px;padding-bottom: 10px;}
.enlace-menunav {padding-left: 10px;padding-bottom: 10px;}
.contenido-menunav.open {margin-left: 20px; margin-bottom: 10px;}
.contenido-menunav.open a {margin: 6px; padding: 2px;}
.menunav a:hover {color: #f1f1f1;}

.toggle-menunav a::before, .toggle-menunav a::after {
    content: "";
    display: block;
    position: absolute;
    right: 30px;
    width: 15px;
    height: 2px;
    margin-top: -1px;
    background-color: #5a5858;
    transform-origin: 50% 50%;
    transition: all 0.3s ease-out;
}

.toggle-menunav a::before {margin-top: 12px;transform: rotate(-90deg);opacity: 1;z-index: 2;}
.toggle-menunav a::after {margin-top: -16px;}

.toggle-menunav.active-tab {
    transition: all 0.3s ease;
    background: yellowgreen;
    height: 2.6em;
    text-align: center;
    line-height: 35px;
    font-weight: bold;
    transform: translate(0px, 10px) scale(1.1);
}

.toggle-menunav a.active::before {transform: rotate(0deg);background: #fff !important;}
.toggle-menunav a.active::after {transform: rotate(180deg);background: #fff !important;opacity: 0;}

.hover-menunav .enlace {
    text-decoration: none;
    background-image: linear-gradient(currentColor, currentColor);
    background-position: 0% 100%;
    background-repeat: no-repeat;
    background-size: 0% 2px;
    transition: background-size .3s;
}

.hover-menunav .enlace:hover,
.hover-acordeon .enlace:focus {
    transition: all 0.5s ease 0s;
    display: block;
    background-size: 100% 2px;
    font-weight: bold;
}

#nav1-lateral{transition: 0.5s;}
#nav2-lateral{transition: 0.5s;}
#nav3-lateral{transition: 0.5s;}
#nav4-lateral{transition: 0.5s;}

/* CSS para el menu lateral acordeon */

#container-acordeon {
  display: none;
}

#icono {overflow: hidden;max-width: 100%;cursor: pointer;position: relative;top: -40px;}
#icono #icono1 {position: relative; top: 0px; left: 5px; width: 30px; height: 23px; margin: 10px; z-index: 1000;}
#icono #icono1 span {
    opacity: 1;
    left: 0;
    top: 0;
    display: block;
    width: 100%;
    height: 3px;
    border-radius: 10px;
    color: white;
    background-color: var(--body);
    position: absolute;
    transform: rotate(0deg);
    transition: .4s ease-in-out;
}
#icono #icono1 span:nth-child(1) {top: 1px;}
#icono #icono1 span:nth-child(2) {top: 9px;}
#icono #icono1 span:nth-child(3) {top: 17px;}
#icono #icono1.open span:nth-child(1) {transform: translateY(9px) rotate(135deg);}
#icono #icono1.open span:nth-child(2) {opacity: 0;transform: translateX(-60px);}
#icono #icono1.open span:nth-child(3) {transform: translateY(-7px) rotate(-135deg);}
.acordeon {height: 70vh;overflow-y: auto;}
.acordeon::-webkit-scrollbar {display: none;}
.acordeon a {text-decoration: none;display: block;color: black;}
#container-acordeon .acordeon .contenido-acordeon {padding-top: 10px;padding-bottom: 10px;}
#container-acordeon .acordeon {
    padding-left: 0;
    display: block;
    position: absolute;
    top: 130px;
    width: 100%;
    max-width: 400px;
    border-radius: 10px;
    background: white;
    box-shadow: rgba(100, 100, 100, 0.2) 6px 2px 10px;
    z-index: 999;
    overflow-y: auto;
    overflow-x: hidden;
    left: -110%;
    transition: left .4s linear;
}
.contenido-acordeon.open {margin-left: 20px; margin-bottom: 10px;}
.contenido-acordeon.open a {margin: 6px; padding: 2px;}

#nav1, 
#nav2, 
#nav3, 
#nav4, 
#nav5, 
#nav6 {
    font-size: 16px;
    padding: 14px 0px 14px 20px; 
    text-transform: uppercase;
    border-top: 1px solid #dbdcd2;
}

#nav1:hover, 
#nav3:hover, 
#nav5:hover {
    transition: all 0.3s;
    background-image: linear-gradient(to right, rgba(255, 255, 255, 0.3), rgba(0, 0, 0, 0.3));
    line-height: 20px;
    letter-spacing: 5px;
}

#nav2:hover, 
#nav4:hover, 
#nav6:hover {
    transition: all 0.3s;
    background-image: linear-gradient(to left, rgba(255, 255, 255, 0.3), rgba(0, 0, 0, 0.3));
    line-height: 20px;
    letter-spacing: 5px;
}

.enlace-menu {padding-left: 10px; padding-bottom: 10px;}

.hover-acordeon .enlace {
    text-decoration: none;
    background-image: linear-gradient(currentColor, currentColor);
    background-position: 0% 100%;
    background-repeat: no-repeat;
    background-size: 0% 2px;
    transition: background-size .3s;
}

.hover-acordeon .enlace:hover, 
.hover-acordeon .enlace:focus {
    transition: all 0.5s ease 0s;
    display: block;
    background-size: 100% 2px;
    font-weight: bold;
}

.toggle-acordeon, 
.contenido-acordeon {cursor: pointer;font-size: 16px;position: relative;letter-spacing: 1.5px;}

.contenido-acordeon {display: none;}

.toggle-acordeon a::before, .toggle-acordeon a::after {
    content: "";
    display: block;
    position: absolute;
    top: 50%;
    right: 30px;
    width: 15px;
    height: 2px;
    margin-top: -1px;
    background-color: #5a5858;
    transform-origin: 50% 50%;
    transition: all 0.3s ease-out;
}

.toggle-acordeon a::before {transform: rotate(-90deg);opacity: 1;z-index: 2;}

.toggle-acordeon.active-tab {
    transition: all 0.3s ease;
    background: yellowgreen;
    height: 2.4em;
    text-align: center;
    line-height: 0px;
    font-weight: bold;
    transform: translate(0px, 10px) scale(1.1);
}
.toggle-acordeon a.active::before {transform: rotate(0deg);background: #fff !important;}
.toggle-acordeon a.active::after {transform: rotate(180deg);background: #fff !important;opacity: 0;}

/* Estilo para el botón de activar el modo claro-oscuro */

#darkboton {
    position: absolute;
    left: 90%;
    top: 54px;
    z-index: 20;
}

.modoOscuro {
    position: relative;
    width: 56px;
    background: #3494b1;
    display: inline-block;
    cursor: pointer;
    outline: none;
    border: none;
    border-radius: 1rem;
    transition: all .5s ease; 
}

.modoOscuro span {
    max-width: 24px;
    line-height: 26px;
    display: inline-block;
    color: #fff;
    background: none;    
}

.modoOscuro span:nth-child(2) {margin-left: 10px;}

.modoOscuro::after {
    content: "";
    display: block;
    background: #fffbf5;
    width: 1.6rem;
    height: 1.4rem;
    position: absolute;
    top: 3px;
    left:5px;
    right:unset;
    border-radius: 3rem;
    transition: all 1s ease;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, .5);
}

.modoOscuro.active {background: #fdd384;}
.modoOscuro.active::after{left:unset;right:5px;}

/* Estilo para el botón de subir páginas */

#boton-subir {position: fixed; top: 90vh; right: 50px; width: 40px; height: 40px; opacity: 0; transition: 0.5s linear; z-index: 2000;}
#boton-subir a {display: block; text-decoration: none; width: 40px; height: 40px;}
#boton-subir i {display: block; font-size: 30px; color: black; background:white; height: 40px; padding: 5px;}
#boton-subir.active {transition: .5s linear; opacity: 1;}

/* Estilo para boton y formulario de contacto */

#ver {
    width: 130px;
    height: 50px;
    background-color: #111;
    color: #fff;
    border: none;
    outline: none;
    text-transform: uppercase;
    cursor: pointer;
    position: fixed;
    top: 50%;
    right: 0%;
    z-index: 1000;
    transition: 0.3s ease-in-out;
}

#ver::before {
    content: "";
    background: linear-gradient(45deg, #ff0000, #ff7300, #fffb00, #48ff00, #00ffd5, #002bff, #7a00ff, #ff00c8, #ff0000);
    position: absolute;
    top: -2px;
    left: -2px;
    background-size: 400%;
    z-index: -1;
    filter: blur(5px);
    width: calc(100% + 4px);
    height: calc(100% + 4px);
    animation: borde 20s linear infinite;
    opacity: 0;
    transition: opacity .3s ease-in-out;
    border-radius: 10px;
}

#ver:active {color: #000;}
#ver:active::after {background: transparent;}
#ver:hover::before {opacity: 1;}
#ver::after {
    content: "";
    z-index: -1;
    position: absolute;
    width: 100%;
    height: 100%;
    background: #111;
    left: 0;
    top: 0;
    border-radius: 10px;
}

@keyframes borde {
    0% {background-position: 0 0;}
    50% {background-position: 400% 0;}
    100% {background-position: 0 0;}
}

#ver.active {
    transition: 0.3s ease-in-out;
    transform: translate(-310%, 0%);
    border-radius: 30%;
    color: #7c7fe0;
    border: 2px solid black;
    background-color: lightgrey;
    font-family: impact;
    font-weight: bold;
}

.navegacion {
    position: fixed;
    width: 100%;
    max-width: 400px;
    height: 100%;
    top: 0;
    overflow-y: auto;
    overflow-x: hidden;
    opacity: 0;
    visibility: hidden;
    z-index: 1010;
    transition-delay: 300ms;
    right: 0;
}

.navegacion.active {opacity: 1;visibility: visible;transition-delay: 0s;}

.navegacion.active .navegacion_1 {
    background-color: #7c7fe0;
    transform: translate(0, 0);
    transition: transform 300ms linear, background-color 0s linear 599ms;
}

.navegacion.active .navegacion_1::after {
    width: 300%;
    border-radius: 50%;
    animation: elastic 150ms ease 300.5ms both;
}
.navegacion_1 {
    position: absolute;
    width: 100%;
    max-width: 400px;
    height: 100%;
    top: 0;
    right: 0;
    overflow: hidden;
    z-index: 999999;
    transform: translate(-100%, 0);
    transition: transform 300ms linear, background-color 0s linear 300ms;
}
.navegacion_1::after {
    content: "";
    position: absolute;
    width: 0;
    height: 100%;
    top: 0;
    right: 0;
    background-color: #7c7fe0;
    border-radius: 50%;
    z-index: -1;
    transition: all 300ms linear;
}

@keyframes elastic {
    0% {border-radius: 50%;}
    45% {border-radius: 0;}
    65% {
        border-top-right-radius: 40px 50%;
        border-bottom-right-radius: 40px 50%;
    }
    80% {border-radius: 0;}
    90% {
        border-top-left-radius: 20px 50%;
        border-bottom-left-radius: 20px 50%;
    }
    100% {border-radius: 0;}
}

#formulario {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 90vh;
    font-family: cursive;
}
#formulario input, #formulario textarea {width: 100%;padding: 5px;outline: none;resize: none;}
#formulario label {line-height: 1.9rem;} /* equivalen a 30.4px */
#formulario input[type="submit"] {
    width: 100%;
    /* transform: translate(6%); */
    border-radius: 10%;
    padding: 3px;
    margin-top: 0.6rem;
    font-family: cursive;
    font-weight: bold;
    cursor: pointer;
}

#formulario input[type="submit"]:active {background: green;}
#formulario fieldset {padding: 20px 40px;}

/* div que incluyo para esta página con imágenes png */

#png1 {
    position: relative;
    margin-top: 20px;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    width: 100%; 
    height: 50px; 
    z-index: 1000;
}
#png1 img {width: 30px; height: 30px;}
#png1 i {font-size: 24px; width: 40px; height: 40px;}
#png1 i {color: #fff; padding: .3em 0 0 .3em;}
#png1 a, #png1 i {text-decoration: none; display: block;}
#png1 .facepng:hover {transition: 0.2s; background: blue; height: 40px; transform: scale(0.9) translateY(-5px);}
#png1 .linkpng:hover {transition: 0.2s; background: rgb(51, 153, 204); height: 40px; transform: scale(0.9) translateY(-5px);}
#png1 .gmailpng:hover {transition: 0.2s; background: rgb(255, 0, 0); height: 40px; transform: scale(0.9) translateY(-5px);}

/* Estilo del contenedor general #contenido */

#contenido {transition: margin-left 0.3s linear; max-width: 92%; padding-left: 80px; font-size: var(--font-size-base);}
/*#contenido.margen {transition: all 0.3s; margin-left: 400px; max-width: 90%;}*/
#contenido.active {transition: margin-left 0.5s linear; margin-left: 345px; max-width: 90%;}

/* ESTILOS PARA LIST-COLAPSE O MENU DE CONTENIDOS */

.container-list {
    position: absolute;
    top: 8%;
    left: 7%;
    width: 100%;
    max-width: 30%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transform-style: preserve-3d;
    z-index: 2;
}

@media screen and (max-width: 995px) {
    .container-list {max-width: 50%;}
}

/* CSS PARA EL AVISO DE COOKIES */

main {
	margin: 20px auto;
	max-width: 1000px;
	background: #fff;
	min-height: 80vh;
	padding: 20px;
	border-radius: 10px;
}

main p {
	margin-bottom: 20px;
	line-height: 150%;
}

.aviso-cookies {
	display: none;
	background: #fff;
	padding: 20px;
	width: calc(100% - 40px);
	max-width: 300px;
	line-height: 150%;
	border-radius: 10px;
	position: fixed;
	bottom: 20px;
	left: 20px;
	z-index: 1000;
	padding-top: 60px;
	box-shadow: 0px 2px 20px 10px rgba(222,222,222,.25);
	text-align: center;
}

.aviso-cookies.activo {
	display: block;
}

.aviso-cookies .galleta {
	max-width: 100px;
	position: absolute;
	top: -50px;
	left: calc(50% - 50px);
}

.aviso-cookies .titulo,
.aviso-cookies .parrafo {
	margin-bottom: 15px;
}

.aviso-cookies .boton {
	width: 100%;
	background: #595959;
	border: none;
	color: #fff;
	font-family: 'Roboto', sans-serif;
	text-align: center;
	padding: 15px 20px;
	font-weight: 700;
	cursor: pointer;
	transition: .3s ease all;
	border-radius: 5px;
	margin-bottom: 15px;
	font-size: 14px;
}

.aviso-cookies .boton:hover {
	background: #000;
}

.aviso-cookies .enlace {
	display: inline-block;
	color: #4DBFFF;
	text-decoration: none;
	font-size: 14px;
}

/*
  .aviso-cookies .enlace:hover {
    text-decoration: underline;
  } 
*/

.fondo-aviso-cookies {
	display: none;
	background: rgba(0,0,0,.20);
	position: fixed;
	z-index: 999;
	width: 100vw;
	height: 100vh;
	top: 0;
	left: 0;
  backdrop-filter: blur(5px);
}

.fondo-aviso-cookies.activo {
	display: block;
}

/* Clase que añado para el archivo de menu cambio position */

.container-list.display {display: none;}

.container-list h2 {
    padding-top: var(--padding);
    font-size: var(--font-size-md);
    margin: 0;
}

ul.list-colapse {
    position: relative;
    width: 100%;
    list-style: none;
    margin: 0;
    padding: var(--padding);
    display: flex;
    justify-content: center;
    perspective: calc(var(--perspective) * 3); 
}

.list-colapse .lista-item {
    position: absolute; 
    width: 100%;
    background-color: var(--card-color);
    padding: calc(var(--padding) * 0.5);
    perspective: calc(var(--perspective) / 3);
    border: 1px solid transparent; 
    transition: .5s linear var(--delay);
}

.list-colapse .lista-item:nth-child(even) {
    background-image: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, transparent 100%);
    clip-path: polygon(0 0, 99% 0, 100% 100%, 1% 100%);
}

.list-colapse .lista-item:nth-child(odd) {
    background-image: linear-gradient(to bottom, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.15) 100%);
    clip-path: polygon(1% 0, 100% 0, 99% 100%, 0% 100%);
}

.list-colapse .lista-item:nth-child(even) a {
    transform: rotate3d(1,1,0, -3deg);
    text-indent: 10px; 
} 

.list-colapse .lista-item:nth-child(odd) a {
    transform: rotate3d(1,1,0, 3deg);
    text-indent: 10px; 
} 

.list-colapse .lista-item:nth-child(1) {
    transform: none;
    top: 0;
    z-index: 20;
    opacity: 1;
}

.list-colapse .lista-item:nth-child(2) {
    top: 100%;
    transform: translate3d(0%, -100%, 3px) rotate3d(0,1,1, 180deg);
    transition-delay: var(--delay);
    z-index: 19;
    opacity: 0;
}

.list-colapse .lista-item:nth-child(3) {
    top: 200%;  
    transform: translate3d(0%, -200%, 3px) rotate3d(0,1,1, 180deg);
    transition-delay: calc(var(--delay) * 2);
    z-index: 18;
    opacity: 0;
}

.list-colapse .lista-item:nth-child(4) {
    top: 300%;
    transform: translate3d(0%, -300%, 3px) rotate3d(0,1,1, 180deg);
    transition-delay: calc(var(--delay) * 3);
    z-index: 17;
    opacity: 0;
}

.list-colapse .lista-item:nth-child(5) {
    top: 400%;
    transform: translate3d(0%, -400%, 3px) rotate3d(0,1,1, 180deg);
    transition-delay: calc(var(--delay) * 4);
    z-index: 16;
    opacity: 0;
}

.list-colapse .lista-item:nth-child(6) {
    top: 500%;
    transform: translate3d(0%, -500%, 3px) rotate3d(0,1,1, 180deg);
    transition-delay: calc(var(--delay) * 5);
    z-index: 15;
    opacity: 0;
}

.list-colapse .lista-item:nth-child(7) {
    top: 600%;
    transform: translate3d(0%, -600%, 3px) rotate3d(0,1,1, 180deg);
    transition-delay: calc(var(--delay) * 6);
    z-index: 14;
    opacity: 0;
}

.list-colapse .lista-item:nth-child(8) {
    top: 700%;
    transform: translate3d(0%, -700%, 3px) rotate3d(0,1,1, 180deg);
    transition-delay: calc(var(--delay) * 7);
    z-index: 13;
    opacity: 0;
}

.list-colapse .lista-item:nth-child(9) {
    top: 800%;
    transform: translate3d(0%, -800%, 3px) rotate3d(0,1,1, 180deg);
    transition-delay: calc(var(--delay) * 8);
    z-index: 12;
    opacity: 0;
}

.list-colapse .lista-item:nth-child(10) {
    top: 900%;
    transform: translate3d(0%, -900%, 3px) rotate3d(0,1,1, 180deg);
    transition-delay: calc(var(--delay) * 9);
    z-index: 11;
    opacity: 0;
}

.list-colapse .lista-item:nth-child(11) {
    top: 1000%;
    transform: translate3d(0%, -1000%, 3px) rotate3d(0,1,1, 180deg);
    transition-delay: calc(var(--delay) * 10);
    z-index: 10;
    opacity: 0;
}

.list-colapse .lista-item:nth-child(12) {
    top: 1100%;
    transform: translate3d(0%, -1100%, 3px) rotate3d(0,1,1, 180deg);
    transition-delay: calc(var(--delay) * 11);
    z-index: 9;
    opacity: 0;
}

.list-colapse .lista-item:nth-child(13) {
    top: 1200%;
    transform: translate3d(0%, -1200%, 3px) rotate3d(0,1,1, 180deg);
    transition-delay: calc(var(--delay) * 12);
    z-index: 8;
    opacity: 0;
}

.list-colapse .lista-item:nth-child(14) {
    top: 1300%;
    transform: translate3d(0%, -1300%, 3px) rotate3d(0,1,1, 180deg);
    transition-delay: calc(var(--delay) * 13);
    z-index: 7;
    opacity: 0;
}

.list-colapse .lista-item:nth-child(15) {
    top: 1400%;
    transform: translate3d(0%, -1400%, 3px) rotate3d(0,1,1, 180deg);
    transition-delay: calc(var(--delay) * 14);
    z-index: 6;
    opacity: 0;
}

.list-colapse .lista-item:nth-child(16) {
    top: 1500%;
    transform: translate3d(0%, -1500%, 3px) rotate3d(0,1,1, 180deg);
    transition-delay: calc(var(--delay) * 15);
    z-index: 5;
    opacity: 0;
}

.list-colapse .lista-item:nth-child(17) {
    top: 1600%;
    transform: translate3d(0%, -1600%, 3px) rotate3d(0,1,1, 180deg);
    transition-delay: calc(var(--delay) * 16);
    z-index: 4;
    opacity: 0;
}

.list-colapse .lista-item:nth-child(18) {
    top: 1700%;
    transform: translate3d(0%, -1700%, 3px) rotate3d(0,1,1, 180deg);
    transition-delay: calc(var(--delay) * 17);
    z-index: 3;
    opacity: 0;
}

.list-colapse .lista-item:nth-child(19) {
    top: 1800%;
    transform: translate3d(0%, -1800%, 3px) rotate3d(0,1,1, 180deg);
    transition-delay: calc(var(--delay) * 18);
    z-index: 2;
    opacity: 0;
}

.list-colapse .lista-item:nth-child(20) {
    top: 1900%;
    transform: translate3d(0%, -1900%, 3px) rotate3d(0,1,1, 180deg);
    transition-delay: calc(var(--delay) * 19);
    z-index: 1;
    opacity: 0;
}

.list-colapse .lista-item:nth-child(21) {
    top: 2000%;
    transform: translate3d(0%, -2000%, 3px) rotate3d(0,1,1, 180deg);
    transition-delay: calc(var(--delay) * 20);
    z-index: 1;
    opacity: 0;
}

.list-colapse:hover .lista-item {
    transform: none;
    opacity: 1;
}

.list-colapse .lista-item a {
    display: inline-block;
    text-decoration: none;
    color: var(--bg-color-dark);
    font-size: var(--font-size-sm);
    text-align: center;
    white-space: nowrap;
    transition: .3s linear;
}

.list-colapse .lista-item:hover a {transform: none;}

/* Estilo de la segunda lista colapse-left */

ul.list-colapse.left {
    position: absolute;
    top: 20%;
    left: 50%;
    width: 100%;
    max-width: 50%;
}

.list-colapse.left .list-item1:nth-child(1) {
    transform: none;
    top: 0;
}

.list-colapse.left .list-item1:nth-child(2) {
    top: 150%;
    transform: translate3d(0%, -100%, 10px) rotate3d(1,0,0, 90deg);
}

.list-colapse.left .list-item1:nth-child(3) {
    top: 300%;
    transform: translate3d(0%, -200%, 10px) rotate3d(1,0,0, 90deg);
    transition-delay: calc(var(--delay) * 2);
}

.list-colapse.left .list-item1:nth-child(4) {
    top: 450%;
    transform: translate3d(0%, -300%, 10px) rotate3d(1,0,0, 90deg);
    transition-delay: calc(var(--delay) * 3);
}

.list-colapse.left .list-item1:nth-child(5) {
    top: 600%;
    transform: translate3d(0%, -400%, 10px) rotate3d(1,0,0, 90deg);
    transition-delay: calc(var(--delay) * 4);
}

.list-colapse.left .list-item1:nth-child(6) {
    top: 750%;
    transform: translate3d(0%, -500%, 10px) rotate3d(1,0,0, 90deg);
    transition-delay: calc(var(--delay) * 5);
}

.list-colapse.left:hover .list-item1 {
    transform: none;
}

/* CSS para el pie de página */

#pie {
    position: relative;
    left: 0;
    width: 100%;
    height: auto;
    bottom: 0;
    background: lightgrey;
    z-index: 990;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#pie.active {transition: margin-left 0.5s linear; margin-left: 360px;}

/* Estilo para formemail del footer */

#formulario-email {
    --button-text-color: #fff;
    --button-front-color: #670F0F;
    --button-shadow-right-color: #3B1212;
    --button-shadow-bottom-color: #430808;
    --form-gap: 20px;
    position: relative;
}

#ver-form {
    position: absolute;
    bottom: 0;
    left: 20px;
    transition: all .4s linear;
    white-space: pre;
    word-break: normal;
}

#ver-form.active {
    position: fixed;
}

.container-form {
    position: fixed;
    bottom: 0; 
    display: flex;
    justify-content: space-between;
    padding: 0;
    width: 100%;
    max-width: 70%;
    margin: 0;
    gap: 40px;
    align-items: center;
    transition: all .4s linear;
    transform: translate(0%, 100%);
    transform-origin: 0% -50%;
    opacity: 0;
    background: transparent;
}

.container-form.active {
    transform: translate(0%, 0%) scale(0.8);
    opacity: 1;
    background: rgba(255,255,255,.8);
    padding: 20px;
    transition: all .4s linear;
}

.container-form img {
    width: 100%;
    max-width: 50%;
    border-radius: 50%;
}

#form-email {
    display: flex;
    flex-wrap: wrap;
    flex: 1;
    gap: 10px var( --form-gap ); 
}

#form-email .error {color: #FF0000;}

.exito {
    text-align: center;
    display: inline-block;
    background-color: rgba(0, 255, 0, 0.6);
    margin: 0px 15px;
    padding: 6px 15px;
}

#form-email legend {
    font-variant: small-caps;
    color: #670F0F;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

#form-email > div {
     width: calc( 50% - ( var(--form-gap) / 2 ) );
}

#form-email > div.large {
    width: 100%;
}

#form-email input, #form-email select {
    display: block;
    width: 100%;
    height: 40px;
    padding-inline: 15px;
    outline: none; 
}

#form-email textarea {
    display: block;
    width: 100%;
    padding: 15px;
    outline: none; 
    resize: none;
}

#form-email button {
    background: #670F0F;
    color: #fff;
    width: 50%;
    margin: auto;
    border: none;
    outline: none;
}

.button, #form-email .button {
    margin: 10px 0 0 10px;
    display: inline-block;
    padding: 20px 10px;
    color: var(--button-text-color);
    transform: translate(-10px, -10px);
    vertical-align: middle;
    font-family: "Rubik One", sans-serif;
    text-decoration: none;
    font-size: 1em;
    transition: all 0.25s;
    background-color: var(--button-front-color);
    cursor: pointer;
}

.button::after, .button::before {
    position: absolute;
    content: "";
    transition: all 0.5s;
}

.button::before {
    bottom: -10px;
    height: 10px;
    width: 100%;
    left: 5px;
    transform: skewX(45deg);
    background-color: var(--button-shadow-bottom-color);
}

.button::after {
    right: -10px;
    height: 100%;
    width: 10px;
    bottom: -5px;
    transform: skewY(45deg);
    background-color: var(--button-shadow-right-color);
}

.button:active {
    margin-left: 20px;
    margin-top: 20px;
}

.button:active::before {
    bottom: -5px;
    height: 5px;
    left: 3px;
}

.button:active::after {
    right: -5px;
    width: 5px;
    bottom: -3px;
}

.container-datos {
    position: absolute;
    top: 120px;
    left: 10%;
}

@media screen and (max-width: 1000px) {
    .container-form {flex-direction: column;}
    .container-form.active {transform: translateY(0%) scale(.8);}
}

/* Menú pagination */

#pagination {
    width: 100%;
    max-width: 30vw;
    display: flex;
    justify-content: center;
    gap: 10px;
    vertical-align: middle;
    border-radius: 4px;
    margin-left: 200px;
    padding: 1px 2px 4px 2px;
    border-top: 1px solid #AEAEAE;
    border-bottom: 1px solid #FFFFFF;
    background-color: #DADADA;
    background: linear-gradient(to top, #DBDBDB, #E2E2E2);
    transition: all .2s;
}

#pagination:hover {
    background: linear-gradient(to bottom, transparent, #DBDBDB, transparent);
}

#pagination span {
    width: 100%;
    padding: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
}

#pagination a,
#pagination i {
    display: inline-block;
    vertical-align: middle;
    width: 22px;
    color: #7D7D7D;
    text-align: center;
    font-size: 10px;
    padding: 3px 0 2px 0;
    user-select: none;
}

#pagination a {
    margin: 0 2px 0 2px;
    border-radius: 4px;
    border: 1px solid #E3E3E3;
    cursor: pointer;
    box-shadow: inset 0 1px 0 0 #FFF, 0 1px 2px #666;
    text-shadow: 0 1px 1px #FFF;
    background-color: #E6E6E6;
    background: linear-gradient(180deg, #F3F3F3, #D7D7D7);
    padding: 5px;
}

#pagination > a {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2em;
    text-align: center;
    padding: 2px 10px;
    color: black;
    transition: all .3s;
}

#pagination i {
    margin: 0 3px 0 3px;
}

#pagination a.current {
    border: 1px solid #E9E9E9;
    box-shadow: 0 1px 1px #999;
    background-color: #DFDFDF;
    background: linear-gradient(180deg, #D0D0D0, #EBEBEB);
}

@media screen and (max-width: 880px) {
    #pagination {background: transparent; border: none; align-items: center; gap: 35px;}
    #pagination a {padding: 10px;}
    #pagination > a {font-size: 0.9em;}
}

@media screen and (max-width: 850px) {
    #pagination {background: transparent; border: none; align-items: center; gap: 55px;}
    #pagination a {padding: 10px;}
    #pagination > a {padding: 7px;}
}

@media screen and (max-width: 700px) {
    #pagination {background: transparent; border: none; align-items: center; gap: 65px;}
    #pagination a {padding: 7px;}
    #pagination > a {padding: 7px;}
}

/* cirlulo animación */

#circulo {
    /* variables */
    --letra: 26; /* numero de letras y espacios */
    --angulo: calc(360deg / var(--letra)); /* para calcular el angulo de rotación */
    width: 50%;
    max-width: 140px;
    height: 100%; 
    position: relative; 
    background: radial-gradient(/*#5f80ad #800080*/ #7B68EE 50%, #0000 50.25%);
    animation: rotar 40s infinite linear; 
    aspect-ratio: 1/1;
    border-radius: 100%; 
    overflow: hidden; 
    margin: 20px 100px; 
}

@keyframes rotar {
    0% {transform:rotate(0deg);}
    100% {transform:rotate(720deg);}
}

#circulo:hover {
    transition: all 1s linear 0s;
    background: radial-gradient(#999 50%, #7B68EE 50.25%);
}

#circulo:hover #letras-circ i {
    display: block;
    transition: all 1.5s linear 0s;
    background-color: white;
    color: var(--card-text-color);
    font-size: var(--font-size-sm);
    bottom: 4px;
    text-shadow: red 0 -3px;
    /*
        transform: scale(1.2);
        animation: aparecer 1s infinite alternate;
        @keyframes aparecer {
            0% {opacity: 1;}
            50% {opacity: 0.5;}
            100% {opacity: 0;}
        }
    */
}

#circulo i {
    display:block; 
    /* font:600 normal 0.8em/1em arial, sans-serif; */
    font-size: var(--font-size-sm);
    font-weight: 600;
    line-height: var(--line-height-base);
    font-family: Arial, Helvetica, sans-serif;
    color: /*#585;*/var(--secondary-color); 
    width: 10%; 
    height: 50%; 
    position: absolute;
    top: 0; 
    left: 45%;
    text-align: center;
    transform-origin: 50% 100%;
    transition: 1s linear .2s;
}

#circulo i:nth-child(2) {transform:rotate(var(--angulo));}
#circulo i:nth-child(3) {transform:rotate(calc(var(--angulo) * 2));}
#circulo i:nth-child(4) {transform:rotate(calc(var(--angulo) * 3));}
#circulo i:nth-child(5) {transform:rotate(calc(var(--angulo) * 4));}
#circulo i:nth-child(6) {transform:rotate(calc(var(--angulo) * 5));}
#circulo i:nth-child(7) {transform:rotate(calc(var(--angulo) * 6));}
#circulo i:nth-child(8) {transform:rotate(calc(var(--angulo) * 7));}
#circulo i:nth-child(9) {transform:rotate(calc(var(--angulo) * 8));}
#circulo i:nth-child(10) {transform:rotate(calc(var(--angulo) * 9));}
#circulo i:nth-child(11) {transform:rotate(calc(var(--angulo) * 10));}
#circulo i:nth-child(12) {transform:rotate(calc(var(--angulo) * 11));}
#circulo i:nth-child(13) {transform:rotate(calc(var(--angulo) * 12));}
#circulo i:nth-child(14) {transform:rotate(calc(var(--angulo) * 13));}
#circulo i:nth-child(15) {transform:rotate(calc(var(--angulo) * 14));}
#circulo i:nth-child(16) {transform:rotate(calc(var(--angulo) * 15));}
#circulo i:nth-child(17) {transform:rotate(calc(var(--angulo) * 16));}
#circulo i:nth-child(18) {transform:rotate(calc(var(--angulo) * 17));}
#circulo i:nth-child(19) {transform:rotate(calc(var(--angulo) * 18));}
#circulo i:nth-child(20) {transform:rotate(calc(var(--angulo) * 19));}
#circulo i:nth-child(21) {transform:rotate(calc(var(--angulo) * 20));}
#circulo i:nth-child(22) {transform:rotate(calc(var(--angulo) * 21));}
#circulo i:nth-child(23) {transform:rotate(calc(var(--angulo) * 22));}
#circulo i:nth-child(24) {transform:rotate(calc(var(--angulo) * 23));}
#circulo i:nth-child(25) {transform:rotate(calc(var(--angulo) * 24));}
#circulo i:nth-child(26) {transform:rotate(calc(var(--angulo) * 25));}
#circulo i:nth-child(27) {transform:rotate(calc(var(--angulo) * 26));} 

/* Estilos para monitores grandes */

@media screen and (min-width: 1200px) {
    body {font-size: 110%;}
    #contenido {max-width: 90%;}
    #contenido p {font-size: calc(var(--font-size-base) * 1.1);}
    #contenido code.enlace {font-size: calc(var(--font-size-base) * 1.1);}
}

@media screen and (max-width: 1199px) {
    body {font-size: 100%;}
    #contenido {max-width: 95%;}
    .card_header {font-size: 95%;}
    #contenido p {font-size: var(--font-size-base) !important;}
    #contenido code.enlace {font-size: var(--font-size-base) !important;}
    #menu {max-width: 900px;}
    #search-input, #search-button {transition: all 0.3s linear; transform: scale(0.9); padding: 10px 10px!important;}
} 

@media screen and (max-width: 1095px) {
    #menu {max-width: 800px;}
}

@media screen and (max-width: 1040px) {
    #contenido{max-width: 100%; padding-left: 20px;}
}

@media screen and (max-width: 995px) {
    #menu {max-width: 720px;}
}

@media screen and (max-width: 915px) {
    #menu {max-width: 680px;}
}

/* estilo menu cabecera para resolucion pequeña */

@media screen and (max-width: 875px) {
    body {font-size: 90%;}
    .card_header {font-size: 90%;}
    .card_accion {padding: calc(var(--card-link-padding) * 0.2) !important;}
    #contenido p {font-size: calc(var(--font-size-base) * 0.9); margin-left: 0 !important;}
    #contenido code.enlace {font-size: calc(var(--font-size-base) * 0.9) !important;}
    .item-dropdown {transform: translate(-50%, 0%);}
    .item-dropdown.active {background: var(--bg);}
    .item-dropdown li a {color: var(--body);}
    #informatica span.active {transition: .5s linear; opacity: 1; background: white; padding: 10px 20px; margin: 0 20px; transform: translate(0%, 0%);}
    #navigation-dropdown::before {position: absolute; content: ""; bottom: 100%;
    left: 50%; transform: translate(-50%, 0%); border-top: 0.5rem solid transparent;
    border-right: 0.5rem solid transparent; border-bottom: 0.5rem solid var(--bg); border-left: 0.5rem solid transparent;}
    #menu .temas > li:last-child {display: none;}
    #oscuro {transform: scale(0.7);}
    #ver {transform: scale(0.7);}
    #ver.active {transition: 0.3s ease-in-out; transform: translate(-180%, 0%) scale(0.7);}
    .navegacion.active {max-width: 250px;}
    #formulario {height: 80vh;}
    #ver-form {transform: scale(0.7);}
    #circulo {max-width: 100px;}
        #circulo i {font-size: calc(var(--font-size-sm) * 0.8);}
    #container-acordeon .acordeon {max-width: 300px;}
    .btn-nav {padding: .2rem .5rem;}
    #btn-toggle {
        display: block;
        border: 2px solid #EEE;
        border-radius: 6px;
        padding: .5rem 1rem;
        font-size: 1rem;
        background: none;
        color: white;
        cursor: pointer;
    }
    #btn-toggle.active{transition: all .3s linear 0s;border-radius: 50%;}
    #btn-icon{display: block;width: 20px;border-top: 2px solid;color: #EEE;}
    #btn-icon::after, #btn-icon::before {
        display: block;
        margin-top: 5px;
        content: '';
        width: 20px;
        height: 2px;
        background: currentColor;
        transition: .3s;
        position: relative;
    }
    #btn-icon.active{transition: color .3s linear 0s;border-top-color: transparent;color: red;}
    #btn-icon.active::after{transform: rotate(135deg);top: -7px;}
    #btn-icon.active::before{transform: rotate(-135deg);}
    #menu .temas {
        position: fixed;
        width: 100%;
        top: 45px;
        left: 0;
        display: flex;
        flex-direction: column;
        align-content: center;
        align-items: center;
        transform-origin: top;
        transform: scaleY(0);
        opacity: 0;
    }
    #menu .temas > a {
        display: block;
        width: 100%;
        text-align: left;
        padding-left: 5px;
    }
    #menu .temas:hover > li > a {
        transition: all 1s linear 0.2s;
        font-family: impact;
        text-align: center;
        letter-spacing: 3.5px;
    }   
    #menu .temas.active {
        min-width: 100vw;
        height: 100vh;
        display: flex; 
        flex-direction: column;
        overflow-y: hidden;
        transition: all 1s linear 0s;
        transform-origin: top;
        transform: scaleY(1);
        background-color: black;
        color: white;
        overflow: visible;
        opacity: 1;
        visibility: visible;
    }
    #menu .temas.active span:hover {transition: .2s linear; color: black;}
}

@media screen and (max-width: 800px) {
    #contenido{max-width: 100%; padding-left: 0 !important; margin: 0;}
}

@media screen and (max-width: 600px) {
    body {font-size: 80%;}
    #contenido p {font-size: calc(var(--font-size-base) * 0.8) !important;}
    #contenido code.enlace {font-size: calc(var(--font-size-base) * 0.8) !important;}
    #circulo {max-width: 80px;}
    #circulo i {font-size: calc(var(--font-size-sm) * 0.7);}
}

/* Estilos para altura menor a 650px */

@media  screen and (max-height: 650px) {
    body {font-size: 80%;}
    #contenido {max-width: 100%; padding-left: 0 !important; margin: 0;}
    #contenido.margen {transition: .3s linear; margin-left: 350px;}
    .card_header {font-size: 90%;}
    #contenido p {font-size: calc(var(--font-size-base) * 0.8) !important;}
    #contenido code.enlace {font-size: calc(var(--font-size-base) * 0.8) !important;}
    #container-acordeon .acordeon {max-width: 300px;}
    /*  
        .card_accion {font-size: 80%;}
        .card p {font-size: 80%;} 
    */
    #cabecera {width: 100%;left: 0;}
    /* #menu {max-width: 100%;margin-left: ;} */
    #oscuro {transform: scale(0.7);}
    #ver {transform: scale(0.7);}
    #ver.active {transition: 0.3s ease-in-out; transform: translate(-180%, 0%) scale(0.7);}
    .navegacion.active {max-width: 250px;}
    #formulario {height: 80vh;}
    #circulo {max-width: 80px;}
    #circulo i {font-size: calc(var(--font-size-sm) * 0.7);}
}