* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-primary: #011138;
    --color-primary-opacity: rgba(1, 17, 56, 0.6);
    --color-secondary: #68E2F2;
    --white-opacity: rgba(255, 255, 255, 0.597);
    --black-opacity: rgba(0, 0, 0, 0.597);
    --color-third: #2148A7;
    --color-pink: rgb(244, 116, 197);

    --font-family: "Poppins", sans-serif;
}
html {
    scroll-behavior: smooth;
}

h1,
h2,
h3,
p,
a,
li,
input,
select,
textarea {
    font-family: var(--font-family);
}

body {
    background: var(--color-primary);
}

li {
    list-style: none;
}

a {
    text-decoration: none;
    color: white;
}

img {
    width: 100%;
}

input,
textarea,
select {
    width: 100%;
    display: inline-block;
    padding: 0.5rem;
    border: 1px solid var(--black-opacity);
    outline: none;
}

/* ESTILOS REUTILIZABLE */
.text-light{
    color: var(--black-opacity);
    background: transparent;
    border: 1px solid var(--black-opacity);
}

.celeste {
    color: #68E2F2;
}

.negrita {
    color: black !important;
    font-weight: 700;
}

.negrita-plomo {
    color: var(--black-opacity);
    font-weight: 700;
}

.btn {
    color: white;
    font-size: 0.8em;
    font-weight: bold;
    text-transform: uppercase;
    padding: 15px 25px;
    border: none;
    cursor: pointer;
}

.btn-degrade {
    background: linear-gradient(90deg, #051C53, #2148A7, #2148A7, #051C53);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.4),
        0 4px 6px rgba(0, 0, 0, 0.2);
}

.btn-degrade-planes{
    background: linear-gradient(90deg, var(--color-third), var(--color-secondary));
}


.grupo-separador{
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    justify-self: center;
}

.button{
    margin-top: 1.5rem;
    z-index: 9;
    position: relative;
    bottom: 0;
    padding: 1rem 0;
}

.btn-primary {
    background: #2148A7;
}

.btn-radius {
    border-radius: 30px;
}

.title {
    text-align: center;
    color: var(--color-third);
    padding: 0 0 1.5rem;
}

.description {
    max-width: 550px;
    padding: 0 1rem;
    margin: auto;
    text-align: center;
    color: var(--color-third);
}

.flex {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.icono {
    font-size: 1.8rem;
}

@media (min-width: 800px) {
    .btn {
        font-size: 1.2em;
        padding: 15px 30px;
    }
}

#menuDesktop,
#logoText,
.SVGgrafico,
.formulario img {
    display: none;
}

.nav {
    position: fixed;
    width: 100%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 1rem 0.6rem 1.5rem;
    z-index: 100;
    transition-property: background-color;
    transition-duration: 0.5s;
}

#navMobile {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 1000;
    background: var(--black-opacity);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: 0.3s;
}

#cerrar {
    position: absolute;
    right: 19px;
    top: 15px;
    font-size: 2.4rem;
    cursor: pointer;
    color: white;
}

#navMobile ul {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 3rem;
    font-size: 1.5rem;
}

#navMobile li {
    width: 100%;
    text-align: center;
    padding: 1rem;
}

.toogleMobile {
    left: 100% !important;
}

.nav-scroll {
    background: var(--color-primary-opacity);
    backdrop-filter: blur(9px);
    box-shadow: 1px 1px 10px rgba(0, 0, 0, 0.6);
}

#logo {
    width: 2.4rem;
}

#menu {
    font-size: 2.4rem;
    cursor: pointer;
}

.inicio-header {
    position: relative;
    height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-items: center;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    padding: 3rem 2rem 1rem;
    color: white;
    text-align: center;
    overflow: hidden;
}

.header-legal {
    padding: 4rem 2rem 1rem;
    font-size: 1.2rem;
    height: 300px;
    text-align: center;
    color: white;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-legal {
    background-color: white;
    padding: 3rem;
}

.main-legal section {
    width: 100%;
    max-width: 700px;
    margin: auto;
    overflow: hidden;
}

.main-legal li {
    list-style: disc;
    margin-left: 2rem;
}

.main-legal li::marker {
    color: var(--black-opacity);
    font-size: 1.2em;
}

.main-legal p,
.main-legal h3,
.main-legal li {
    color: var(--black-opacity);
    margin-top: 5px;
}

.main-legal h2,
.main-legal h3 {
    font-size: 1.2rem;
}

.main-legal p,
.main-legal li {
    font-size: .8rem;
}

.contenedor-card {
    max-width: 1000px;
    margin: auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    padding: 3rem 0;
}

.card {
    position: relative;
    width: 170px;
    height: 170px;
    perspective: 1000px; 
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 1.3s;
    transform-style: preserve-3d;
}

.card:hover .card-inner {
    transform: rotateY(180deg);
}

.card-front,
.card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    overflow: hidden;
}

.card-front {
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    color: white;
    z-index: 2;
}

.card-back {
    background: linear-gradient(135deg, #68e2f2 0%, #011138 100%);
    color: white;
    transform: rotateY(180deg);
    padding: 20px;
}

.card-back ul {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.85rem;
}

@media (max-width: 440px) {
    .card-back ul {
        font-size: 0.70rem;
    }
} 

.card-back ul li {
    margin: 6px 0;
    padding: 6px 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.card-back ul li:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(5px);
}

/* Backgrounds para cada card-front */
.contenedor-card .card:nth-child(1) .card-front {
    background-image: url(img/desarrollo_web.webp);
}

.contenedor-card .card:nth-child(2) .card-front {
    background-image: url(img/gestion_automatizacion.jpg);
}

.contenedor-card .card:nth-child(3) .card-front {
    background-image: url(img/diseño_digital.jpg);
}

.contenedor-card .card:nth-child(4) .card-front {
    background-image: url(img/produccion_creativa.jpeg);
}

.contenedor-card .card:nth-child(5) .card-front {
    background-image: url(img/marketing.jpg);
}

.card-front::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: var(--black-opacity);
    z-index: -1;
}


@media (min-width: 440px) {
    .inicio-header {
        padding: 4.5rem 2rem 1rem;
    }
}

.inicio-header::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100vh;
    background: url(img/imgFondo.jpg);
    top: 0;
    left: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -2;
    opacity: 0.25;
}

.inicio-header p {
    display: none;
}

.inicio-header h2 {
    text-transform: uppercase;
    font-size: 3rem;
}

.container-imgPortada {
    position: relative;
}

.container-imgPortada img {
    animation: flotante 4s infinite alternate;
}

@keyframes flotante {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(10px);
    }

    100% {
        transform: translateY(0);
    }
}

.main {
    background: white;
}

#servicios {
    padding: 4rem 0;
}

#planes {
    overflow: hidden;
    background: var(--color-primary);
    padding: 4rem 0;
}

#planes h2 {
    color: white;
}

.planes-container,
.planes-container-header {
    padding: 1.5rem;
    margin: auto;
    position: relative;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 3.5rem;
}

.planes-container::before,
.planes-container-header::before {
    content: "";
    position: absolute;
    width: 500px;
    height: 500px;
    right: 45%;
    top: 100px;
    background: linear-gradient(90deg, var(--color-third), var(--color-secondary));
    border-radius: 50%;
}

.planes-container::after,
.planes-container-header::after {
    content: "";
    position: absolute;
    width: 350px;
    height: 350px;
    left: 70%;
    background: linear-gradient(-15deg, rgb(255, 255, 255), var(--color-pink));
    border-radius: 50%;
    z-index: 0;
}

.plan {
    max-width: 400px;
    width: 100%;
    position: relative;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 3rem 2.5rem;
    border-radius: 18px;
    color: white;
    z-index: 5;
    transition-property: background-color;
    transition-duration: 0.3s;
}

.planes-container a:nth-child(2) .plan::before {
    content: "Más vendido";
    position: absolute;
    left: 0;
    right: 0;
    height: 35px;
    top: 0;
    background: white;
    color: black;
    font-family: var(--font-family);
    font-weight: 700;
    border-radius: 18px 18px 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.planes-container a:nth-child(1),
.planes-container a:nth-child(3) {
    margin-top: 35px;
}

.plan h3 {
    text-align: center;
    font-size: 1.6rem;
    color: white;
}

.plan li {
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 4px;
}

.plan li:nth-child(1) {
    border-top: 1px solid white;
    padding-top: 15px;
}

.plan li:last-child {
    margin-top: 15px;
    color: var(--color-secondary);
    font-weight: 600;
}

.plan-precio {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: 0.3s;
    font-size: 4rem;
    color: white;
    font-weight: 700;
    text-shadow: 2px 2px 5px black;
}

.plan:hover .plan-precio {
    opacity: 1;
    top: 90%;
}

.plan:hover {
    background: rgba(0, 0, 0, 0.6);
}


.oculto{
    display: none;
}


.formulario {
    display: flex;
    height: 80vh;
}

.formulario img {
    position: relative;
    max-width: 50%;
}

form {
    padding: 0.5rem;
    margin: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}


.status-message{
    margin-top: 15px; 
    padding: 10px; 
    border-radius: 5px; 
    display: none; 
    text-align: center;
}

.footer {
    max-width: 1200px;
    margin: auto;
    display: flex;
    padding: 3rem 2rem;
    flex-direction: column;
    align-items: center;
    text-align: center;
    justify-content: space-between;
    gap: 2rem;
    overflow: hidden;
}

.footer img {
    width: 150px;
    height: 40px;
}

.footer h3 {
    color: white;
    font-weight: 600;
    margin-bottom: 12px;
}

.footer li {
    margin-bottom: 5px;
    font-weight: 300;
    font-size: 0.8rem;
}

.footer a:hover {
    color: var(--color-secondary);
    transition: 0.4s;
}

.copyright {
    width: 90%;
    max-width: 1170px;
    border-top: 1px solid var(--white-opacity);
    margin: auto;
    color: white;
    padding: 1rem;
    text-align: center;
    overflow: hidden;
}

@media (min-width: 800px) {
    .container-imgPortada::after {
        content: "Alcance +2,323";
        position: absolute;
        top: 50px;
        left: -60px;
        border: 1px solid #72EFFF;
        padding: 6px 15px;
        border-radius: 12px;
        font-family: "Poppins", sans-serif;
        background: rgba(255, 255, 255, 0.05);
        backdrop-filter: blur(6px);
        -webkit-backdrop-filter: blur(6px);
        z-index: 10;
    }

    .container-imgPortada::before {
        content: "ROI +3,500";
        position: absolute;
        top: -10px;
        right: 60px;
        border: 1px solid #72EFFF;
        padding: 6px 15px;
        border-radius: 12px;
        font-family: "Poppins", sans-serif;
        background: rgba(255, 255, 255, 0.05);
        backdrop-filter: blur(6px);
        -webkit-backdrop-filter: blur(6px);
        z-index: 10;
    }

    .container-imgPortada div::before {
        content: "Visitas +1,989";
        position: absolute;
        bottom: 110px;
        left: -70px;
        border: 1px solid #72EFFF;
        padding: 6px 15px;
        border-radius: 12px;
        font-family: "Poppins", sans-serif;
        background: rgba(255, 255, 255, 0.05);
        backdrop-filter: blur(6px);
        -webkit-backdrop-filter: blur(6px);
        z-index: 10;
    }

    #menuDesktop {
        display: flex;
        gap: 1rem;
        text-transform: uppercase;
        font-weight: 500;
    }

    #menuDesktop a:hover {
        color: var(--color-secondary);
        transition: 0.4s;
    }

    #menu,
    #logo,
    #navMobile {
        display: none;
    }

    .inicio-header {
        flex-direction: row;
        justify-content: space-around;
        text-align: left;
        overflow: hidden;
    }

    .SVGgrafico {
        width: 75%;
        display: block;
        position: absolute;
        bottom: -10px;
        right: -10px;
        z-index: -1;
    }

    .inicio-header h2 {
        font-size: 3rem;
    }

    .inicio-header p {
        display: block;
        max-width: 440px;
        margin: -10px 0 20px;
    }

    #logoText,
    #logoText img {
        display: block;
        width: 10rem;
    }

    .nav {
        padding: 0.8rem 2.5rem;
    }

    .main-legal h2,
    .main-legal h3 {
        font-size: 1.5rem;
    }

    .main-legal p,
    .main-legal li {
        font-size: 1rem;
    }

    .planes-container {
        gap: 3.5rem;
    }

    .formulario img {
        display: block;
    }

    .footer {
        flex-direction: row;
        align-items: start;
        text-align: start;
    }

    .card {
        width: 300px;
        height: 220px;
        display: flex;
        font-size: 1rem;
    }

    .title {
        font-size: 2.5rem;
    }

    .description {
        font-size: 1.2rem;
    }
}

@media (min-width: 1000px) {
    .inicio-header h2 {
        font-size: 5rem;
    }

    .inicio-header h3 {
        font-size: 1.5rem;
        margin-bottom: -15px;
    }
}