﻿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: #E6A7A7;
    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;
}


/* Estilos para hacer que el navbar lateral se oculte en pantallas pequeñas */
@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;
    }
}

@media (max-width: 600px) and (min-width: 240px) {
    /* Main Content */
    .main-content {
        margin-left: 0;
        padding: 10px; /* Reduce el padding para ajustarse mejor en pantallas pequeñas */
        width: 100%;
    }

    .card-container {
        grid-template-columns: 1fr;
    }

    .card {
        width: 100%;
    }

    .bar-container span {
        font-size: 14px;
        transform: translateX(60px);
    }

    .img-card img {
        width: 35%;
        height: 20%;
    }

    /* Card Ajustada */
    .card {
        width: 41%; /* Hace que las tarjetas ocupen todo el espacio disponible */
        margin-bottom: 9px; /* Espacio entre tarjetas */
        font-size: 10px;
        box-sizing: content-box;
    }


    .card-title,
    .card-text {
        font-size: 10px;
        margin-left: -11px;
        width: 128px;
    }

    .card-title {
        font-size: 10px;
        margin-left: -10px;
    }

    .title-container span {
        font-size: 14px;
        margin-left: 10px;
    }

    .bar-container {
        font-size: 10px;
        margin-left: 24px;
    }

    .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;
    }


    /* 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: -30px;
        animation: none;
    }
    .line {
        margin-left: 10px;
    }

    .footer-bar {
        background-color: #E6A7A7;
        border-radius: 25px;
        padding: 3px 13px;
        display: inline-block;
        text-align: center;
        margin-left: 30px;
        max-width: 87%; /* Ajusta el tamaño para que no ocupe toda la pantalla */
    }

        .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: #C06767;
            }

    .main-content {
        margin-left: 0;
        padding: 10px; /* Reduce el padding para ajustarse mejor en pantallas pequeñas */
        width: 100%;
    }

    .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 */
    }

}