/* =========================
   1. ESTILOS GENERALES Y MODO OSCURO/CLARO
   ========================= */

/* --- Estilos generales del body --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: rgb(255, 255, 212);
    font-family: "Montserrat", sans-serif;
    transition: background-color 0.5s ease, color 0.5s ease;
    user-select: none;
    color: black;
    width: 100%;
    margin: 0px;
    overflow-x: hidden;
}

/* --- Modo oscuro: body2 y elementos relacionados --- */
.body2 {
    color: rgb(255, 255, 255);
    background-color: black;
    z-index: 10000;
}

.body2 .container-fluid {
    background-color: black;
}

.body2 .dropdown-menu .dropdown-item {
    color: rgb(0, 0, 0);
}

.body2 .container-fluid a {
    color: white;
}

.body2 .proyectos .parrafos p {
    color: rgb(255, 255, 255);
    filter: drop-shadow(0px 4px 6px rgba(0, 0, 0, 0.8));
}

.body2 .proyectos {
    background-image: url(/fotos/code-image.jpg);
}

.body2 .footer {
    background-color: black;
}

.OnOff {
    background-color: black;
}

.body2 .principal-card .card {
    background-color: #0d2280;
}

.body2 .principal-card .card p {
    color: #f8f8f8;
}

.body2 .principal-card .card h1 {
    color: black;
}

.body2 .principal-card .card a {
    background-color: rgb(98, 2, 253);
}

.body2 .principal-card .card a:hover {
    background-color: rgb(144, 160, 248);
}

.precios .landing, .precios .infor, .precios .online {
    border: 1px solid rgb(0, 0, 0);
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.8);
}

.body2 .precios .landing {
    border: 1px solid rgb(255, 255, 255);
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.8);
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(50px); /* Los elementos se mueven 50px hacia arriba */
    transition: opacity 0.5s ease-out, transform 0.5s ease-out; /* Transición suave */
}

/* Estado final de los elementos (visible y en su lugar original) */
.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}
/*MENU BOOTRSTRAP EN CELULARES Y TABLETS - ANIMACION CANCELADA */
@media (max-width: 991px) {
    .navbar-collapse {
        justify-content: center !important;
        text-align: center;
    }

    .navbar-collapse.collapse.show {
        display: flex !important;
    }

    .navbar-nav {
        width: 100%;
        justify-content: center;
    }
}
/* =========================
   2. RESPONSIVE EN COMPUTADORA (min-width: 769px)
   ========================= */

@media (min-width: 769px) {

    /* Ocultar el menú por defecto */
    .nav-item.dropdown .dropdown-menu {
        display: none;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease;
        margin-top: 0; /* opcional, para que quede pegado */
    }

    /* Mostrarlo al hacer hover en el item */
    .nav-item.dropdown:hover .dropdown-menu {
        display: block;
        opacity: 1;
        visibility: visible;
        background-color: gray;
    }

    /* --- Margen y alineación en desktop --- */
    .entrada-principal p {
        line-height: 1;
    }

    .proyectos p {
        text-align: center;
        font-size: 25px;
        padding: 10px 10px 0px 0px;
        line-height: 0px;
        filter: drop-shadow(0px 4px 6px rgba(255, 255, 255, 0.8));
    }

    .proyectos .parrafos {
        padding: 20px 0;
    }

    .entrada-principal {
        padding: 50px;
        top: 20px;
        text-align: center;
        font-size: 20px;
    }

    .servicios-costos {
        text-align: center;
        margin: 100px 0px 0px 0;
    }

    .proyectos {
        background-image: url(/fotos/fondo2negro.jpg);
        background-repeat: no-repeat;
        background-size: cover;
        background-attachment: fixed;
        width: 100%;
        min-height: 100vh;
    }

    .precios {
        display: flex;
        position: relative;
        text-align: center;
        align-items: center;
        margin: 50px 70px 50px 70px;
    }

    .precios .infor {
        border: 2px solid white;
        height: 600px;
    }

    .precios .landing {
        height: 710px;
    }

    .precios .online {
        border: 2px solid white;
        height: 600px;
    }

    .precios h1 {
        font-size: 40px;
    }

    .precios h2 {
        font-size: 25px;
    }

    .precios #changing-color {
        color: #ff1aec;
    }

    .precios #precio-cards {
        font-size: 45px;
    }

    .precios button {
        background-color: #c05a92;
        font-size: 25px;
        border-radius: 25px;
        padding: 15px 50px 15px 50px;
        transform: scale(1);
        margin: 10px auto 20px auto;
        transition: transform 0.3s ease-in-out;
        cursor: pointer;
        color: white;
    }

    .precios button:hover {
        transform: scale(1.1);
        background-color: #fc54b0;
        text-shadow: 0 0 5px rgba(255, 255, 255, 1);
    }

    .precios #mejor {
        margin: 30px 0px 40px 0px;
        font-size: 23px;
        position: relative;
        color: #ff00c8;
        text-shadow: 10px 10px 10px rgb(248, 31, 255);
    }

    .fondo-contacto {
        min-width: 400px;
        padding: 20px;
        position: relative;
        text-align: center;
        align-items: center;
    }

    .fondo-contacto h1 {
        color: #ff00c8;
        font-family: "Noto Sans", sans-serif;
        justify-content: center;
        bottom: 50px;
        font-size: 70px;
    }

    .fondo-contacto p {
        line-height: 0px;
    }

    .contacto p {
        padding: 0px 10px 0px 0;
        font-size: 22px;
    }

    .footer p {
        text-align: center;
        margin: -30px 0px 0px 0px;
    }
}

/* =========================
   3. RESPONSIVE EN CELULAR (max-width: 768px)
   ========================= */
@media (max-width: 768px) {

    /* --- Barra de navegación y menú --- */
    .navbar-collapse.show {
        text-align: center;
        background-color: #f0f0f0;
        border-radius: 10px;
        padding: 15px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    }

    .body2 .navbar-collapse.show {
        text-align: center;
        background-color: transparent;
        border-radius: 10px;
        padding: 15px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    }

    .dropdown-menu {
        width: 100%;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
        z-index: 1050;
    }

    .dropdown-menu .dropdown-item {
        padding: 5px;
        text-align: center;
        color: #333;
        background-color: #c0c0c0;
    }

    .imagen-fondo {
        background-position: center;
        opacity: 0.5;
    }
/* --- Media-query --- */

/* --- Textos y parrafos --- */
.entrada-principal {
    line-height: 1;
    text-align: center;
    margin: 0 0 30px 0px;
    font-size: 20px;
}

.proyectos {
    background-image: none;
    background-color: transparent;
}

.proyectos .parrafos p {
    line-height: 1;
    padding: 5px 0;
    margin: 0 15px 0 15px;
    font-size: 15px;
    text-align: center;
}

/* --- Cartas de precios --- */
.servicios-costos {
    text-align: center;
    margin: 100px 0px 0px 0;
}

.precios {
    margin: 40px 0;
    text-align: center;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    height: auto;
    padding: 20px 20px 20px 20px;
    border-bottom: 20px;
}

.precios p {
    line-height: 1.5;
}

.precios button {
    background-color: #c05a92;
    font-size: 15px;
    border-radius: 25px;
    height: 50px;
    width: 200px;
    font-family: "Montserrat", sans-serif;
    cursor: pointer;
    color: white;
    margin: 20px;
}

.precios button:hover {
    background-color: #fc54b0;
    text-shadow: 0 0 5px rgba(255, 255, 255, 1);
}

.precios #changing-color {
    color: #ff1aec;
}

.precios #precio-cards {
    font-size: 45px;
}

.precios #mejor {
    margin: 30px 0px 0px 0px;
    font-size: 23px;
    position: relative;
    color: #ff00c8;
    text-shadow: 10px 10px 10px rgb(248, 31, 255);
}

/* --- Seccion de contacto --- */
.fondo-contacto {
    margin: 100px 0px 20px 0px;
    align-items: center;
    text-align: center;
    line-height: 1;
}

.fondo-contacto h1 {
    font-size: 40px;
    color: #ff00c8;
    margin: 20px 0 20px 0;
}

.contacto .botones {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 30px;
    justify-items: center;
    width: 100%;
}

.contacto .icono {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.contacto .icono img {
    width: 70px;
    height: auto;
}

.principal-card {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center; /* Centra las tarjetas */
    text-align: center; /* Centra el texto dentro de las tarjetas */
}

.principal-card .card {
    width: 50%;
    margin-bottom: 20px; /* Mantener este margen si se desea separar las tarjetas */
    display: flex;
    flex-direction: column;
    align-items: center;
}

.principal-card .card img {
    height: 200px;
    width: 100%; /* Para que la imagen se ajuste */
    object-fit: cover; /* Para que la imagen no se deforme */
    display: block;
}

.principal-card .card  {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-top: 10px; /* Espacio entre la imagen y el botón */
}

.principal-card .card a {
    font-family: "Montserrat", sans-serif;
    background-color: rgb(255, 255, 255);
    width: 150px;
    height: 40px;
    border: #ffffff;
    border-radius: 20px;
    margin: 10px auto; /* Agrega 'auto' para centrar el botón */
    font-size: 20px;
    transform: scale(1);
    transition: transform 0.3s ease-in-out;
}

.principal-card .card a:hover {
    background-color: #7a7afc; /* Color al pasar el mouse */
    text-shadow: 0 0 5px rgba(255, 255, 255, 1);
}

/* --- Footer --- */
.footer {
    margin: 0px 10px 0px 10px;
}
}

/* =========================
   4. ESTILOS Y DISEÑO VISUAL
   ========================= */

/* --- Navbar y menú --- */
.navbar-nav {
    font-size: 20px;
    font-family: "Montserrat", sans-serif;
    gap: 20px;
}

.container-fluid {
    background: #ffffff;
    width: auto;
    margin: -10px;
    padding: 10px;
    height: auto;
}

#OffOn {
    font-size: 25px;
    cursor: pointer;
    border: none;
    user-select: none;
    transition: transform 0.4s ease, background-color 0.4s ease;
}

#OffOn:hover {
    transform: rotate3d(1, 1, 0, 50deg);
}

/* --- Fondo principal y textos --- */
.imagen-fondo {
    background-image: url(./fotos/pexels-pixabay-270366.jpg);
    opacity: 1;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    height: 100vh;
    width: 100%;
    display: block;
}

.container-1 {
    align-items: center;
    text-align: center;
    justify-content: center;
    display: flex;
    font-size: 24px;
    transition: transform 1s ease;
    filter: drop-shadow(12px 8px 4px #000000);
    text-shadow: 0 0 3px #ffffff, 0 0 5px #6161b3;
}

.entrada-principal h1 {
    padding: 10px 0;
}

/* --- Presentación y logos --- */
.presentacion {
    margin: 0 20px 0px 0px;
    text-align: center;
    align-items: center;
    justify-content: center;
}

.presentacion h1 {
    line-height: 15px;
}

.presentacion p {
    font-size: 25px;
    padding: 15px 0;
}

.logos img {
    width: 80px;
    height: auto;
    align-items: center;
    gap: 20px;
    position: relative;
    object-fit: contain;
    margin: 10px 0px 10px 0;
}

.miembro-uno img {
    width: auto;
    height: 400px;
    text-align: left;
}

.logos .logo-fotos {
    transform: scale(1);
    transition: transform 0.3s ease-in-out;
}

.logos .logo-fotos:hover {
    transform: scale(1.2);
}

#cv {
    color: rgb(22, 115, 255);
    text-decoration: underline;
    text-decoration-color: transparent;
    transition: text-decoration-color 0.6s ease;
    text-decoration-thickness: 3px;
}

#cv:hover {
    text-decoration-color: #ff5151;
}

/* --- Proyectos realizados --- */
.contactame {
    text-align: center;
}

.contactame img {
    width: 100px;
    height: auto;
    margin: 10px 0px 30px 0;
    transform: rotate()
}

.contactame img:hover {
    animation: rotate 0.9s infinite;
}

@keyframes rotate {
    from {
        transform: rotate();
    }

    to {
        transform: rotate(360deg);
    }
}

.principal-card h1 {
    font-size: 25px;
}

.principal-card p {
    font-size: 20px;
}

.principal-card {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.principal-card .card {
    border-radius: 10px;
    width: 400px;
    height: 350px;
    background-color: #54ffbd;
    position: relative;
    align-items: center;
    text-align: center;
    padding: 0;
    overflow: hidden;
    box-sizing: border-box;
    transform: scale(1);
    transition: transform 0.3s ease-in-out;
}

.principal-card .card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.principal-card .card:hover {
    filter: drop-shadow(10px 10px 50px #000000);
    transform: scale(1.1);
}

.principal-card .card a {
    font-family: "Montserrat", sans-serif;
    background-color: rgb(255, 255, 255);
    width: 150px;
    height: 40px;
    border: #ffffff;
    border-radius: 20px;
    margin: 10px 0;
    font-size: 20px;
    transform: scale(1);
    transition: transform 0.3s ease-in-out;
    display: block;
    line-height: 40px;
    text-decoration: none;
    color: black;
}

.principal-card .card a:hover {
    background-color: rgb(229, 233, 255);
    cursor: pointer;
}


/* --- Cartas de precio, información y método de pagos --- */
.cursor {
    animation: palpitar 1s ease-in-out infinite;
}

@keyframes palpitar {
    0%,
    50% {
        opacity: 1;
    }

    50.01%,
    100% {
        opacity: 0;
    }
}

/* --- Contacto y footer --- */
.contacto {
    display: flex;
    flex-direction: column;
    text-align: center;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.contacto .botones {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.contacto .icono {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    cursor: pointer;
}

.contacto .icono img {
    width: 80px;
    transition: transform 0.2s ease-in-out;
}

.contacto .icono img:hover {
    transform: scale(1.1);
}

/* SPAN OCULTO INICIALMENTE */
.contacto .icono span {
    margin-top: 8px;
    font-size: 16px;
    color: white;
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    transition: all 0.3s ease-in-out;
    display: block;
    /* Asegura que esté debajo */
    width: 100%;
    text-align: center;
}

/* APARECE AL HACER HOVER EN EL ICONO (NO SOLO EN EL IMG) */
.contacto .icono:hover span {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    color: #5473ff;
}

.footer {
    background-color: #ffffff;
    width: 100%;
    min-height: 60px;
    display: inline-block;
}

.footer a {
    color: rgb(255, 0, 191);
    text-decoration: none;
}