﻿body {
    margin: 0;
    font-family: Arial, sans-serif;
}

.container {
    text-align: center;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    padding-top: 50px;
    margin: 0 auto; /* Centra la página */
    max-width: 80%; /* Limita el ancho del contenido */
}

.card,
.card-title,
.card-text,
.bar-container,
.title-container {
    width: 100%; /* Asegura que ocupen el espacio disponible */
}

.row {
    justify-content: center; /* Centra los elementos dentro de las filas */
}

/* Barra vertical */
.bar-container {
    position: relative;
    width: 7px; /* Barra estrecha */
    height: 50px; /* Barra corta */
    background-color: #C06767;
    border-radius: 50px;
    margin-bottom: 20px;
}

    /* Texto animado */
    .bar-container span {
        position: absolute;
        top: 11px; /* Debajo de la barra */
        left: 10px;
        font-size: 20px;
        font-weight: bold;
        color: black;
        white-space: nowrap; /* Evita que el texto se rompa */
        animation: slideText 2s ease-out forwards;
    }

/* Animación para el texto */
@keyframes slideText {
    0% {
        transform: translateX(0); /* Comienza justo debajo de la barra */
    }

    100% {
        transform: translateX(120px); /* Se mueve hacia la derecha */
    }
}

/* Línea roja (opcional) */
.line {
    width: 100%;
    height: 3px;
    background-color: red;
    border-radius: 50px;
    margin: 20px 0;
}

.card {
    border: 1px solid #C06767;
    border-radius: 8px;
    overflow: hidden;
    width: 340px; /* Ancho ajustado */
    margin: 10px auto; /* Centra la tarjeta */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    font-family: Arial, sans-serif;
}

.card-title {
    background-color: #C06767;
    color: #E6A7A7;
    padding: 15px;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    margin: 0; /* Sin margen */
    border: 1px solid #E6A7A7;
    border-radius: 8px;
    text-decoration: none; /* Elimina el subrayado */
    color: inherit;
}


.card-text {
    color: black;
    padding: 21px;
    font-size: 15px;
    line-height: 1.5;
    text-align: left;
    box-sizing: border-box;
    width: 100%; /* Asegura que el texto se alinee con el ancho de la tarjeta */
    border-top: none; /* Remueve el borde superior si es necesario */
}


.img-card img {
    height: 150px; /* Establece una altura fija */
    object-fit: cover; /* Asegura que la imagen se recorte para llenar el contenedor */
    border: 5px solid white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    clip-path: polygon(10% 0, 100% 0, 100% 90%, 90% 100%, 0 100%, 0 10%);
    background-color: white;
}



/* Ensure images are responsive */
.img-fluid {
    max-width: 100%;
    height: auto;
}

/* Centering the content */
.align-items-center {
    display: flex;
    align-items: center;
}

.d-flex {
    display: flex;
}

.justify-content-center {
    justify-content: center;
}


.card-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    justify-items: center;
}


.img-card {
    grid-column: span 2;
    text-align: center;
}

.cropped-image {
    max-width: 150px;
    height: auto;
    object-fit: contain;
}

.interactive-card-container {
    display: flex; /* Flexbox para alinearlas horizontalmente */
    justify-content: center; /* Centra las tarjetas */
    gap: 20px; /* Espacio entre tarjetas */
    margin-top: 50px;
}

.interactive-card {
    width: 300px; /* Ajusta el ancho de la tarjeta */
    height: 350px; /* Ajusta la altura de la tarjeta */
    margin: 10px;
    border-radius: 10px;
    overflow: hidden;
    perspective: 1000px;
    cursor: pointer;
    transition: transform 0.6s;
    border: 2px solid #3B659C; /* Borde del mismo color que la tipografía */
}

.interactive-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.6s;
}

.interactive-card:hover .interactive-card-inner {
    transform: rotateY(180deg); /* Efecto de giro al pasar el mouse */
}

.interactive-card-front, .interactive-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 15px;
    box-sizing: border-box;
    word-wrap: break-word; /* Evita que el texto se corte */
}

.interactive-card-front {
    background-color: white;
    color: #3B659C;
    font-size: 16px;
    font-weight: bold;
}

.interactive-card-back {
    background-color: #A1C3EF;
    color: white;
    font-size: 14px;
    padding: 15px;
    transform: rotateY(180deg);
}

.interactive-card:hover .interactive-card-front {
    background-color: #A1C3EF;
    color: white;
}

.interactive-card:hover .interactive-card-back {
    background-color: white;
    color: #3B659C;
}

/*CARRUSEL LOGOS*/

.carrusel-container {
    overflow: hidden;
    position: relative;
    width: 80%;
    height: 80px;
    /*background: #A1C3EF;*/
    top: 10px;
}

.carrusel-logos {
    display: flex;
    flex-wrap: nowrap;
    animation: scroll-continuous 20s linear infinite;
}

    .carrusel-logos img {
        min-width: 100px; /* Ajusta el tamaño mínimo */
        height: 100px;
        margin-right: 10px;
        object-fit: contain;
    }

@keyframes scroll-continuous {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-20%);
    }
}

/* FORM */

/* From Uiverse.io by somshri16 */
.form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 350px;
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    position: relative;
}

.message {
    color: rgba(88, 87, 87, 0.822);
    font-size: 14px;
}

.flex {
    display: flex;
    width: 100%;
    gap: 6px;
}

.form label {
    position: relative;
}

    .form label .input {
        width: 100%;
        padding: 10px 10px 20px 10px;
        outline: 0;
        border: 1px solid rgba(105, 105, 105, 0.397);
        border-radius: 5px;
    }

        .form label .input + span {
            position: absolute;
            left: 10px;
            top: 15px;
            color: grey;
            font-size: 0.9em;
            cursor: text;
            transition: 0.3s ease;
        }

        .form label .input:placeholder-shown + span {
            top: 15px;
            font-size: 0.9em;
        }

        .form label .input:focus + span, .form label .input:valid + span {
            top: 30px;
            font-size: 0.7em;
            font-weight: 600;
        }

        .form label .input:valid + span {
            color: green;
        }

.input01 {
    width: 100%;
    padding: 10px 10px 20px 10px;
    outline: 0;
    border: 1px solid rgba(105, 105, 105, 0.397);
    border-radius: 5px;
}

.form label .input01 + span {
    position: absolute;
    left: 10px;
    top: 50px;
    color: grey;
    font-size: 0.9em;
    cursor: text;
    transition: 0.3s ease;
}

.form label .input01:placeholder-shown + span {
    top: 40px;
    font-size: 0.9em;
}

.form label .input01:focus + span, .form label .input01:valid + span {
    top: 50px;
    font-size: 0.7em;
    font-weight: 600;
}

.form label .input01:valid + span {
    color: green;
}

.fancy {
    background-color: transparent;
    border: 2px solid #EB9A56;
    border-radius: 0px;
    box-sizing: border-box;
    color: #EB9A56;
    cursor: pointer;
    display: inline-block;
    font-weight: 390;
    letter-spacing: 2px;
    margin: 0;
    outline: none;
    overflow: visible;
    padding: 8px 30px;
    position: relative;
    text-align: center;
    text-decoration: none;
    text-transform: none;
    transition: all 0.3s ease-in-out;
    user-select: none;
    font-size: 13px;
}

    .fancy::before {
        content: " ";
        width: 1.7rem;
        height: 2px;
        background: #EB9A56;
        top: 50%;
        left: 1.5em;
        position: absolute;
        transform: translateY(-50%);
        transform: translateX(230%);
        transform-origin: center;
        transition: background 0.3s linear, width 0.3s linear;
    }

    .fancy .text {
        font-size: 1.125em;
        line-height: 1.33333em;
        padding-left: 2em;
        display: block;
        text-align: left;
        transition: all 0.3s ease-in-out;
        text-transform: lowercase;
        text-decoration: none;
        color: #818181;
        transform: translateX(30%);
    }

    .fancy .top-key {
        height: 2px;
        width: 1.5625rem;
        top: -2px;
        left: 0.625rem;
        position: absolute;
        background: white;
        transition: width 0.5s ease-out, left 0.3s ease-out;
    }

    .fancy .bottom-key-1 {
        height: 2px;
        width: 1.5625rem;
        right: 1.875rem;
        bottom: -2px;
        position: absolute;
        background: white;
        transition: width 0.5s ease-out, right 0.3s ease-out;
    }

    .fancy .bottom-key-2 {
        height: 2px;
        width: 0.625rem;
        right: 0.625rem;
        bottom: -2px;
        position: absolute;
        background: white;
        transition: width 0.5s ease-out, right 0.3s ease-out;
    }

    .fancy:hover {
        color: white;
        background: #EB9A56;
    }

        .fancy:hover::before {
            width: 1.5rem;
            background: white;
        }

        .fancy:hover .text {
            color: white;
            padding-left: 1.5em;
        }

        .fancy:hover .top-key {
            left: -2px;
            width: 0px;
        }

        .fancy:hover .bottom-key-1,
        .fancy:hover .bottom-key-2 {
            right: 0;
            width: 0;
        }


html, body {
    margin: 0;
    padding: 0;
    overflow: hidden;
    height: 100%;
}

.container {
    min-height: calc(100% - 140px); /* Altura del footer */
    box-sizing: border-box;
}

.title {
    color: white;
    background-color: #EB9A56;
    border-radius: 8px;
}

.footer-container {
    position: fixed;
    bottom: 0;
    width: 89%;
    background-color: #EB9A56;
    height: 117px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-bar {
    text-align: center;
    color: white;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0 50px; /* Aumenta el espacio interno */
    box-sizing: border-box;
}

.copyright {
    text-align: left;
    margin-left: -471px;
    margin-top: -40px;
}

.social-media {
    text-align: right;
    margin-left: 47px;
    margin-top: -32px;
}

.linkedin-button {
    display: inline-block;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #EB9A56;
    text-align: center;
    line-height: 50px;
    color: white;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease;
}

    .linkedin-button:hover {
        background-color: white;
        color: #EB9A56;
    }

.fa-linkedin-square {
    font-size: 24px;
}

.disabled-link {
    pointer-events: none; /* Deshabilita la interacción */
    cursor: not-allowed; /* Cambia el cursor a un ícono de bloqueo */
    opacity: 0.5; /* (Opcional) Da una apariencia de "deshabilitado" */
    text-decoration: none; /* (Opcional) Elimina subrayados si los hubiera */
}

    .disabled-link i {
        color: gray; /* Cambia el color del ícono para reforzar el efecto */
    }



@media (max-width: 800px) {
    .navbar-left {
        width: 60px; /* Achicamos el ancho */
        overflow: hidden;
        transition: width 0.3s ease;
    }

        .navbar-left.expanded {
            width: 250px; /* Ancho normal cuando está expandido */
        }

        .navbar-left button span {
            display: none; /* Oculta el texto de los botones */
        }

        .navbar-left.expanded button span {
            display: inline; /* Muestra el texto cuando está expandido */
        }

    .menu-toggle {
        display: block;
        position: fixed;
        left: 10px;
        top: 10px;
        background: #6A4FC1;
        color: white;
        border: none;
        padding: 10px;
        border-radius: 5px;
        cursor: pointer;
        z-index: 20;
    }

    .copyright {
        margin-left: -49px;
        font-size:10px;
    }
    .social-media{
        font-size:10px;
    }

    .main-content {
        margin-left: 10px;
    }
}

@media (max-width: 600px) and (min-width: 240px) {
    .container {
        margin-left: 0px;
        padding-top: 70px;
        max-width: 100%;
        padding-left: 43px;
    }

    /* Card Ajustada */
    .card {
        width: 58%; /* Hace que las tarjetas ocupen todo el espacio disponible */
        margin-bottom: 9px; /* Espacio entre tarjetas */
        font-size: 10px;
        left: 11px;
    }

    .card-title,
    .card-text {
        font-size: 10px;
        margin-left: 0px;
        width: 160px;
    }

    .card-title {
        font-size: 10px;
        margin-left: 12px;
        width: 196px;
    }

    .title-container span {
        font-size: 14px;
        margin-left: 10px;
    }

    .bar-container {
        font-size: 10px;
        margin-left: 10px;
    }

    .img-card img {
        width: 62%;
        height: auto;
        justify-items: center;
        margin-left: 17px;
        margin-top: 17px;
    }

    .row {
        margin-left: 0;
        margin-right: 0;
    }

    /* Botones Reducidos */
    .button {
        width: 50px;
        height: 50px;
    }

        .button img {
            max-width: 40%;
        }

    .button-label {
        font-size: 12px;
    }

    /* Texto en la barra */
    .bar-container span {
        font-size: 9px;
        left: 15px;
        animation: none;
    }

    .line {
        margin-left: 10px;
    }

    .logo-civix {
        max-width: 10%; /* Se ajusta en pantallas más pequeñas */
    }

    .container img {
        max-width: 100%;
        height: auto;
        max-height: 1150px;
        margin-left: 0; /* Eliminar el desplazamiento diagonal */
    }

    .footer-bar-container {
        width: 100%;
        position: fixed;
        bottom: 10px; /* Mueve el footer más cerca de la parte inferior */
        left: 0;
        z-index: 100;
        display: flex;
        justify-content: center;
    }

    .footer-bar {
        padding: 0px 0px;
        display: inline-block;
        text-align: center;
        margin-left: 14px;
    }

        .footer-bar a {
            color: white;
            text-decoration: none;
            margin: 0 5px; /* Reduce el margen entre los enlaces */
            font-size: 12px; /* Reduce el tamaño de la fuente */
            transition: color 0.3s;
        }

            .footer-bar a:hover {
                color: #C4834C;
            }

    .footer-container {
        margin-bottom: -2rem;
        margin-left: 4rem;
    }
}
