:root {
    --color-amarillo: #FABC05; /* Verde neón claro */
    --color-azul: #0065FF;
    --color-morado: #873EFF;
    --color-negro: #2C2528;
    --color-verde: #33A852;
}
@keyframes aparecer {
    from { opacity: 0; transform: translateY(100px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes wave-hand {
    0% { transform: rotate(0deg); }
    15% { transform: rotate(15deg); }
    30% { transform: rotate(-10deg); }
    45% { transform: rotate(15deg); }
    60% { transform: rotate(-5deg); }
    75% { transform: rotate(10deg); }
    100% { transform: rotate(0deg); }
}

header {
    background: 
        radial-gradient(var(--color-azul) 40%, transparent 70%) -300px -300px no-repeat,
        radial-gradient(var(--color-morado) 70%, transparent 100%) 0px 00px no-repeat,
        var(--color-azul);
    background-attachment: fixed;
    padding: 1rem 0;
    position: relative;
    overflow: hidden;
    max-width: 100%;
}
header .menu {
    display: none;
}
header.scroll-activo .menu {
    background: #0065FF;
    position: fixed;
    top: 0;
    z-index: 2;
    padding: 1rem;
    width: 100%;
    box-shadow: 0 0rem 1.5rem rgb(0 0 0 / 75%);
}
header .menu a {
    color: #fff;
    text-decoration: none;
}
header .menu a:hover {
    text-decoration: none;
}
header .menu .menu-portada {}
header .menu .menu-contacto {}
header .menu .menu-portada svg {}
header .menu .menu-contacto svg {}
header .menu .menu-servicios {}
header .menu .menu-servicios ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}
header .menu .menu-servicios ul li {}
header .menu .menu-servicios ul li a {
    display: flex;
    align-items: center;
    letter-spacing: 0.025rem;
}
header .menu .menu-servicios ul li a svg {
    display: none;
}
header .container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}
header .texto {
    flex: 1;
}
header .texto h1 {
    font-size: 1.65rem;
    font-weight: 400;
    margin: 0 0 1rem;
    color: #FABC05;
}
header .texto h1 .emoji {
  display: inline-block;
  transform-origin: 70% 70%;
}

header .texto h1 .emoji.wave {
    animation: wave-hand 1s ease-in-out;
}

header .texto h1 em {
    font-size: 1.85rem;
    font-weight: 700;
    font-style: normal;
    color: #33A852;
    text-shadow: 0.05rem 0.025rem #fff;
    filter: drop-shadow(0.5rem 0.5rem 0.5rem rgba(0, 0, 0, 0.5));
}
header .texto h2 {
    font-size: 1rem;
    margin: 0;
    font-weight: 300;
    color: #fff;
    white-space: pre-wrap;
    overflow: hidden;
}
header .texto h2 .invisible-text {
    visibility: hidden;
}
header .texto h2 span {
    display: none;
}
header .cabecera-botones {
    display: flex;
    margin: 1rem 0 0;
    gap: 1rem;
    opacity: 0;
    animation: aparecer 1s ease 2.75s forwards;
}
header .cabecera-botones a {
    color: #fff;
    text-decoration: none;
    padding: 0.75rem 1.25rem;
    border-radius: 1rem;
    border: solid 1px #FFF;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
}
header .cabecera-botones a:hover,
header .cabecera-botones a:hover:first-child {
    background: #0065FF;
    border-color: #0065FF;
}
header .cabecera-botones a:first-child {
    background: #33A852;
    border-color: #33A852;
    display: inline-block;
}
header .perfil {
    position: absolute;
    width: 4.25rem;
    top: 1.25rem;
    right: 1rem;
    border-radius: 5rem;
    overflow: hidden;
    height: 4.25rem;
    padding-top: 0.5rem;
    border: solid 1px #fff;
    background: var(--color-verde);
}
header .perfil img {}
header ul.header-stack {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #fff;
    position: relative;
    padding: 0;
    margin: 1rem 0 0;
    font-size: 0.75rem;
}
header ul.header-stack .slick-track {
    display: flex;
}
header ul.header-stack .slick-slide {
    width: 200px !important;
    margin-right: 1rem;
}
header ul.header-stack .slick-slide > div {
    display: flex;
    width: max-content;
}
header ul.header-stack li {
    display: flex !important;
    gap: 0.5rem;
    align-items: center;
}
header ul.header-stack li svg {
    background: #fff;
    padding: 0.25rem;
    border-radius: 1.5rem;
    height: 1.75rem;
    width: 1.75rem;
}
header ul.header-stack li span {
    position: relative;
    top: 2px;
}
header ul.header-stack li.stack-wordpress svg {
    color: #21759B;
}
header ul.header-stack li.stack-ecommerce svg {
    color: #873EFF;
}
header ul.header-stack li.stack-optimizacion svg {
    color: #0065FF;
}
header ul.header-stack li.stack-hosting svg {
    color: #FF9900;
}
header ul.header-stack li.stack-seguridad svg {
    color: #EA4335;
}
header ul.header-stack li.stack-mantenimiento svg {
    color: #FABC05;
}
header ul.header-stack li.stack-capacitaciones svg {
    color: #33A852;
}


.stack {
    background: url('./portada/imagenes/fondo-binario.jpg');
    background-attachment: fixed;
    z-index: 0;
    position: relative;
}
.stack .container {
    z-index: 2;
    position: relative;
    display: flex;
    justify-content: space-evenly;
    padding: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}
.stack-box {
    background: #0065FF;
    color: #ffffff;
    border-radius: 0.25rem;
    width: 400px;
    height: fit-content;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: end;
    padding: 2rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.5);
}
.stack-box.stack-wordpress {
    background: #21759B;
    /*width: 850px;*/
}
.stack-box.stack-ecommerce {
    background: #873EFF;
}
.stack-box.stack-seguridad {
    background: #EA4335;
    /*width: 620px;*/
}
.stack-box.stack-capacitaciones {
    background: #33A852;
    /*width: 620px;*/
}
.stack-box.stack-hosting {
    background: #FF9900;
}
.stack-box.stack-mantenimiento {
    background: #0065FF;
    /*width: 850px;*/
}
.stack-box.stack-wordpress svg {
    color: #21759B;
    /*width: 850px;*/
}
.stack-box.stack-ecommerce svg {
    color: #873EFF;
}
.stack-box.stack-seguridad svg {
    color: #EA4335;
    /*width: 620px;*/
}
.stack-box.stack-capacitaciones svg {
    color: #33A852;
    /*width: 620px;*/
}
.stack-box.stack-hosting svg {
    color: #FF9900;
}
.stack-box.stack-mantenimiento svg {
    color: #0065FF;
    /*width: 850px;*/
}
.stack-box svg {
    position: absolute;
    width: 3rem;
    top: 1rem;
    right: 1rem;
    background: #fff;
    border-radius: 0.25rem;
    padding: 0.25rem;
}
.stack-box:hover svg {
    animation: wave-hand 1s ease-in-out;
}
.stack-box span {
}
.stack-box span strong {
    display: block;
    margin: 0 0 0.5rem;
    font-size: 1.25rem;
    font-weight: 600;
}
    
.stack li.stack-wordpress svg,
.stack li.stack-wordpress span strong {
    color: #21759B;
}
.stack li.stack-ecommerce svg,
.stack li.stack-ecommerce span strong {
    color: #873EFF;
}
.stack li.stack-optimizacion svg,
.stack li.stack-optimizacion span strong {
    color: #0065FF;
}
.stack li.stack-hosting svg,
.stack li.stack-hosting span strong {
    color: #FF9900;
}
.stack li.stack-seguridad svg,
.stack li.stack-seguridad span strong {
    color: #EA4335;
}
.stack li.stack-mantenimiento svg,
.stack li.stack-mantenimiento span strong {
    color: #FABC05;
}
.stack li.stack-capacitaciones svg,
.stack li.stack-capacitaciones span strong {
    color: #33A852;
}

.contacto h3,
.stack h3,
.portafolio h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 1rem;
    color: #0065FF;
    text-shadow: 1px 1px #fff;
    filter: drop-shadow(0.5rem 0.5rem 0.5rem rgba(0, 0, 0, 0.25));
}

.contacto {
    display: block;
}

.contacto form {
    margin: 0.5rem 0;
}

.servicios ul {
    display: flex;
    flex-wrap: nowrap;
    width: 100vw;
    overflow-x: auto;
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}
.servicios ul li.servicio {
    flex: 1 0 auto;
    min-width: 200px;
    max-width: 100%; 
    text-align: center;
    box-sizing: border-box;
}
.servicio a {
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.25rem;
    color: #fff;
    text-decoration: none;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    font-size: 1rem;
    padding: 1.5rem 0;
}
.servicio a:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
    transform: scale(1.075);
}
.servicio.servicio-desarrollo a {
    background: #21759B;
}
.servicio.servicio-ecommerce a {
    background: #873EFF;
}
.servicio.servicio-soporte a {
    background: #EA4335;
}
.servicio.servicio-capacitaciones a {
    background: #33A852;
}
.servicio.servicio-hosting a {
    background: #FF9900;
}
.servicio.servicio-mantenimiento a {
    background: #0065FF;
}
.servicio a svg {
    width: 1.75rem;
}

.main-portada {
    padding: 1rem 0;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1rem;
    border-top: solid 1px #ccc;
}

.slogan {
    text-align: center;
}
.slogan h3 {
    font-weight: 700;
    font-style: normal;
    font-size: 1.25rem;
    color: #0065FF;
    margin: 0 0 1rem;
}
.slogan h4 {
    color: #873EFF;
    font-weight: 300;
    margin: 0 auto 1rem;
    font-size: 1rem;
    padding: 0 1rem;
}
.slogan h4 strong {
    font-weight: 600;
}
.slogan h5 {
    margin: 0;
    display: block;
    font-weight: 700;
    font-style: normal;
    color: #33A852;
    font-size: 1.25rem;
}
.slogan h5 a {
    color: inherit;
    text-decoration: none;
    
}

footer {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    background: #2C2528;
    color: #ffffff;
    text-align: center;
    padding: 1rem;
    font-size: 0.75rem;
    gap: 1rem;
}
footer a {
    color: #ffffff;
    text-decoration: none;
}
footer .copyright {
    text-align: center;
}
footer .creditos svg {
    display: inline-block;
    position: relative;
    top: 7px;
}

@media (min-width: 576px) {
    header .container {
        position: relative;
    }
    header .texto h1 {
        font-size: 2rem;
    }
    header .texto h1 em {
        font-size: 2.5rem;
    }
    header .perfil {
        width: 6rem;
        height: 6rem;
        top: 0;
    }
    .stack-box {
        width: 100%;
    }
    .slogan h3 {
        font-size: 1.5rem;
    }
}

@media (min-width: 768px) {
        header .texto h1 {
        font-size: 3rem;
    }
    header .texto h1 em {
        font-size: 3.5rem;
    }
    header .texto h2 {
        font-size: 1.3rem;
    }
    header .perfil {
        width: 8rem;
        height: 8rem;
    }
    header ul.header-stack {
        font-size: 1rem;
    }
    header .cabecera-botones a {
        font-size: 1rem;
    }
    .stack-box {
        width: 335px;
        height: 225px;
        justify-content: center;
    }
    .main-portada {
        background: #FCFCFC url('./portada/imagenes/fondo-morado.png') no-repeat center bottom / contain;
    }
}

@media (min-width: 992px) {
    header {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }
    header .container {
        flex-direction: row;
        align-items: center;
        flex: 1;
        margin: 2rem auto;
    }
    header .texto h1 {
        font-size: 3.5rem;
    }
    header .texto h1 em {
        font-size: inherit;
        text-shadow: 1px 1px #fff;
    }
    header .texto h2 {
        font-size: 1.5rem;
    }
    header .texto h2 span {
        display: inline;
    }
    header .cabecera-botones {
        margin-top: 2rem;
    }
    header .cabecera-botones a {
        padding: 0.75rem 1.25rem;
    }
    header .perfil {
        left: 0;
        padding: 0;
        position: relative;
        filter: drop-shadow(1rem 1rem 1rem rgba(0, 0, 0, 0.5));
        background: #0065FF;
        z-index: 1;
        opacity: 0;
        animation: aparecer 3.5s ease forwards;
        top: auto;
        right: auto;
        border-radius: 0;
        overflow: visible;
        width: auto;
        height: auto;
        border: none;
    }
    header .perfil::before {
        content: "";
        position: absolute;
        width: 200px;
        height: 100px;
        top: -30px;
        left: -33px;
        background-image: radial-gradient(white 1px, transparent 1px);
        background-size: 10px 10px;
        z-index: 0;
    }
    header .perfil::after {
        content: "";
        position: absolute;
        width: 170px;
        height: 100px;
        bottom: -30px;
        right: -30px;
        background-image: radial-gradient(white 1px, transparent 1px);
        background-size: 10px 10px;
        z-index: 0;
    }
    header .perfil img {
        z-index: 1;
        background: #0065FF;
        position: relative;
        height: 400px;
        padding: 2rem 1.5rem 0;
    }
    header ul.header-stack {
        margin: 0 0 2rem;
        padding: 0;
    }
    .stack .container {
        padding: 3rem 0;
        gap: 1.5rem;
    }
    .stack-box {
        width: 300px;
    }
    .servicios ul {
        flex-direction: row;
    }
    .servicio a {
        padding: 2.5rem 0;
        font-size: 1.1rem;
    }
    .main-portada {
        padding: 3rem 0;
        gap: 1.5rem;
    }
    .slogan h3 {
        font-size: 1.75rem;
    }
    .slogan h4 {
        padding: 0;
        font-size: 1.25rem;
    }
    .slogan h5 {
        font-size: 1.5rem;
    }
    .slogan h5 a:hover {
        text-shadow: 1px 1px #ffffff;
        filter: drop-shadow(0.5rem 0.5rem 0.5rem rgba(0, 0, 0, 0.25));
    }
    footer {
        flex-direction: row;
    }
    footer .copyright {
        text-align: left;
    }

    footer .creditos {
        text-align: right;
        display: flex;
        align-items: center;
        gap: 0 0.25rem;
    }
    footer .creditos svg {
        display: block;
        top: auto;
    }
}

@media (min-width: 1200px) {
    header .menu {
        display: flex;
        justify-content: space-between;
        padding: 0 1rem;
    }
    header {
        /*height: calc(100vh);*/
    }
    header .container {
        margin: 5rem auto;
    }
    header .texto h1 {
        font-size: 4.5rem;
    }
    header .texto h2 {
        font-size: 2.15rem;
    }
    header ul.header-stack {
        margin-bottom: 4rem;
    }
    .main-portada {
        padding: 5rem 0;
        gap: 2rem;
    }
    .slogan h3 {
        font-size: 2rem;
    }
    .slogan h4 {
        width: 1140px;
        font-size: 1.5rem;
        font-weight: 400;
    }
    .stack .container {
        padding: 5rem 0;
        gap: 3rem;
    }
    .stack-box {
        width: 345px;
    }
    /*
    .stack-box span {
        font-size: 0rem;
        transition: all 0.25s ease;
    }
    .stack-box:hover span {
        font-size: 1rem;
        opacity: 0;
        animation: aparecer 1s ease forwards;
    }
    */
}

@media (min-width: 1400px) {
    .stack-box {
        width: 400px;
    }
}