﻿body {
    font-family: 'Montserrat', sans-serif;
    margin: 0px;
    padding: 0px;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: white;
}

@media print {
    * {
        display: none !important;
    }
}

@media screen and (max-width: 768px) {
    .filtros {
        flex-direction: column;
        align-items: stretch;
    }

        .filtros input,
        .filtros select,
        .filtros .btn {
            width: 100%;
        }
}

/* Barra Superior del Header */
.top-bar {
    background-color: #F8F8F8;
    padding: 8px;
    text-align: left;
    display: flex;
    flex-wrap: wrap;
    border: 1.5px solid #DDDDDD;
}

    .top-bar .top-link {
        color: #777777; /* Color del texto de la barra superior */
        font-size: 13px; /* Tamaño de fuente para "INICIO A RAMA JUDICIAL" */
        text-decoration: none;
        padding: 10px 20px; /* Espaciado dentro de la barra */
    }

/* Contenido Principal del Header */
.header-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 0px 0px;
    background-color: #FFFFFF;
    position: relative;
    flex-wrap: wrap;
    max-height: auto;
    width: 100%;
    margin: 0 auto;
}

.header-logo {
    width: 100%;
    max-height: 100%;
}

/* Icono de Inicio */
.home-link {
    background-color: #007D6E; /* Color de fondo verde */
    padding: 17px 20px;
    border-radius: 0px;
    display: flex;
    align-items: center;
}

    .home-link a {
        display: flex;
        color: #FFFFFF; /* Color de texto blanco para "INICIO" */
        text-decoration: none;
        align-items: center;
        justify-content: space-between;
    }

.home-icon {
    max-width: 30px; /* Tamaño del icono de inicio */
    margin-right: 8px; /* Espacio entre el icono y el texto */
}

.home-link span {
    font-size: 13px; /* Tamaño de fuente para "INICIO" */
}

.card-header {
    display: flex;
    align-items: center;
    width: auto;
}

.logo {
    margin-right: 10px;
    padding: 10px;
}

.header-text h2, .header-text h3, .header-text h4 {
    font-size: 16px;
    margin: 0;
    color: #333;
    text-align: center;
}

.header-text h4 {
    color: #359946;
    font-weight: 700;
    text-align: center;
}

.search-container {
    margin-left: auto; /* Empuja la búsqueda a la derecha */
}

.search-form {
    display: flex;
    align-items: center;
    background: #f5f5f5; /* Color de fondo del input */
    border-radius: 20px;
    padding: 5px 15px;
}

.search-input {
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    border: none;
    background: transparent;
    padding: 8px;
    outline: none;
    min-width: 250px;
}

.search-button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    transform: scale(2); /* 2x */
    transform-origin: center;
    transition: transform 0.5s ease-in-out; /* Transición para el botón */
}

.search-icon {
    height: 25px;
    width: 25px;
    display: block; /* Necesario para evitar espacios fantasma */
    transition: all 0.5s ease-in-out;
}

/* Efecto hover - Escala y color */
.search-button:hover .search-icon {
    transform: scale(2.5);
    filter: brightness(1);
}


.search-button:hover {
    transform: translateY(-1px); /* Pequeño movimiento vertical */
}

/* Busqueda Filtro*/
.highlight {
    background-color: yellow;
    font-weight: bold;
}

.hidden {
    display: none;
}

.search-results {
    display: none;
    margin-top: 20px;
    padding: 10px;
    border: none;
    background: transparent;
}

/* Publicaciones*/

.titulo-publicaciones {
    text-align: center;
    font-size: 20px;
    color: #007D6E;
}

.tabla-documentos {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border: 0px solid #ccc;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    overflow: hidden;
    text-align: left;
    font-size: 14px;
    color: #4B0082;
    margin: 6px 0px 0px 0;
}

.link-as-text {
    text-decoration: none !important; /* Quitar subrayado */
    color: inherit !important; /* Usar el color normal del texto */
    /*cursor: default;*/ /* Cursor normal (no mano) */
    background: none;
    border: none;
    padding: 0;
    font-family: inherit;
    font-size: inherit;
}
    /* Cuando se enfoca o pasa el mouse sobre el botón, que no se vea como link */
    .link-as-text:hover,
    .link-as-text:focus {
        text-decoration: none;
        color: inherit;
    }

/* Estilo cuando el mouse pasa sobre la fila */
.tabla-documentos tr:hover {
    background-color: #d0e7ff;
    cursor: pointer;
}

/* Estilo para la fila seleccionada */
.tabla-documentos .selected-row {
    background-color: #99ccff !important;
    font-weight: bold;
}

.pagination {
    margin-top: 10px;
    text-align: center;
    border: none;
}

.custom-pager a, .custom-pager span {
    display: inline-block;
    margin: 0 5px;
    padding: 6px 10px;
    border-radius: 4px;
    border: 1px solid #ccc;
    text-decoration: none;
    color: #007D6E;
    background-color: #fff;
}

    .custom-pager a:hover {
        background-color: #007D6E;
        color: white;
    }

/* Página activa */
.custom-pager span {
    background-color: #007D6E;
    color: white;
    font-weight: normal;
    border: 1px solid #007D6E;
}

.tabla-documentos th, .tabla-documentos td {
    /*border: 1px solid #ccc;*/
    color: black; /*Color letra celdas*/
    padding: 8px;
    /*border-left: 1px solid #ccc;
    border-right: 1px solid #ccc;*/
}

.tabla-documentos th {
    background-color: lightsteelblue; /*Color Cabezote*/
    color: black;
    font-weight: bold;
    text-align: center;
}

.tabla-documentos img {
    display: block;
    margin: auto;
}


/*Filtros de la tabla */

.filtros {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
    align-items: flex-end;
    padding: 0px 0px 0px 20px;
}

    .filtros input[type="text"],
    .filtros select {
        padding: 6px 10px;
        font-size: 14px;
        border: 1px solid #ccc;
        border-radius: 4px;
        width: 200px;
        height: auto;
    }

    .filtros .btn {
        background-color: #3b82f6; /* azul tipo Bootstrap */
        color: white;
        border: none;
        padding: 7px 20px;
        height: 34px;
        border-radius: 4px;
        font-weight: bold;
        cursor: pointer;
        transition: background-color 0.3s ease;
    }

        .filtros .btn:hover {
            background-color: #2563eb;
        }

/*Slider-container*/
.container {
    position: relative;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 50px;
}

.slider-wrapper {
    position: relative;
    overflow: hidden;
}

.card-list {
    /*background-image: url('../images/bg.jpg');*/
    /*background-color: rgba(0, 65, 130, 0.5);*/
    /* background: white;
    display: flex;
    justify-content: center;
    align-items: center;*/
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% / 4) - 20px);
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none; /* Para Firefox */
    -ms-overflow-style: none; /* Para IE y Edge */
}
    /* Ocultar scrollbar para Chrome, Safari y Opera */
    .card-list::-webkit-scrollbar {
        display: none;
    }

.card-item {
    scroll-snap-align: start;
    flex: 0 0 auto;
    margin: 15px 10px;
    width: 100%;
    transition: transform 0.3s ease;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #003366;
    color: white;
    border: none;
    padding: 15px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .carousel-btn:hover {
        background: #002244;
        transform: translateY(-50%) scale(1.1);
    }

.prev-btn {
    left: 10px;
}

.next-btn {
    right: 10px;
}

.card-list .card-item {
    margin: 15px 20px 15px 20px;
    color: whitesmoke;
    max-width: 300px;
    min-width: 185px;
    padding: 10px 0px 10px 0px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    backdrop-filter: blur(30px);
    background: #eef5fd;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0px 0px 6px -1px rgba(0, 0, 0, 0.1);
}

    .card-list .card-item .user-image {
        width: 150px;
        height: 150px;
        border-radius: 50%;
        margin-bottom: 40px;
        border: 3px solid #fff;
        padding: 4px;
    }

.title-name {
    color: black;
}

.info-profession {
    color: black;
}

.card-list .card-item .message-button {
    font-family: 'Montserrat', sans-serif;
    color: black;
    padding: 10px 35px;
    border-radius: 6px;
    cursor: pointer;
    background: white;
    border: 1px solid transparent;
    transition: 0.2s ease;
    font-size: 16px;
}


    .card-list .card-item .message-button:hover {
        /*background: rgba(255, 255, 255, 0.1);*/
        background: #003366;
        border: 1px solid #fff;
        color: white;
    }

/*FAQ-container*/
.faq-container {
    display: flex;
    background-color: #eef5fd;
    padding: 20px;
    border-radius: 10px;
    width: auto;
    height: auto;
    margin: 20px 17px 20px 17px;
    ALIGN-CONTENT: center;
    box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.1);
}

.faq-left {
    width: 20%;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-right {
    width: 80%;
    margin: -7px 0px 0px 10px;
}

.faq-title {
    font-size: 24px;
    font-weight: bold;
    text-align: left;
    padding-bottom: 10px;
}

.faq-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 40%;
}

.faq-button {
    background-color: white;
    color: #003366;
    border: 1px solid #003366;
    padding: 12px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: bold;
    text-align: left;
    cursor: pointer;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: 0.3s;
    font-family: 'Montserrat', sans-serif;
}

    .faq-button:hover {
        background-color: #003366;
        color: white;
    }

.faq-icon {
    font-size: 18px;
    font-weight: bold;
}

.faq-text {
    width: 59%;
    font-size: 14px;
    color: #333;
    line-height: 1.6;
}

.chart-container {
    width: 100%;
    max-width: 1920px;
    margin-top: 20px;
    text-align: center;
}


.faq-answer {
    display: none;
    padding: 15px;
    margin-top: 10px;
    background: white;
    border-radius: 8px;
}

    .faq-answer.visible {
        display: block;
    }

.search-match {
    background-color: #ffeb3b;
    font-weight: bold;
}


/* Footer Styles */
footer {
    background-color: #007D6E;
    color: #FFFFFF;
    padding: 10px 20px;
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-around;
    text-align: left;
    font-size: 13px;
}

.footer-section {
    width: 22%;
    min-width: 200px;
    margin-bottom: 10px;
}

icon-group {
    margin: 15px 0;
    display: flex;
    gap: 20px;
}

.footer-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.icon-img {
    width: 50px;
    height: 50px;
    margin-bottom: 5px;
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    filter: drop-shadow(4px 4px 8px rgba(0, 0, 0, 0.2));
}

.icon-title {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.small-text {
    font-size: 11px;
    margin-top: 10px;
    line-height: 1.4;
}

.footer-section h4 {
    border-bottom: 1px solid #FFFFFF;
    padding-bottom: 10px;
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: normal; /* Cambia a texto sin negrita */
}

.footer-section ul {
    list-style: none;
}

    .footer-section ul li a {
        color: #FFFFFF;
        text-decoration: none;
    }

        .footer-section ul li a:hover {
            text-decoration: underline;
        }

.email-link {
    color: #FFFFFF;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
}

    .email-link:hover {
        color: #FFD700; /* Amarillo dorado */
        font-weight: bold;
        transform: translateY(-2px);
    }

        .email-link:hover .icon-img {
            transform: scale(1.05) rotate(-5deg);
        }


.icon-link {
    color: #FFFFFF;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
}


    .icon-link:hover {
        color: #FFD700; /* Amarillo dorado */
        font-weight: bold;
        transform: translateY(-2px);
    }


        .icon-link:hover .icon-img {
            transform: scale(1.05) rotate(-5deg);
        }
}

