
* {
    box-sizing: border-box;
}

html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
    position: relative;
    min-height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    align-items
}

#cabeceraweb {
    width: 100%;
    text-align: center;
    padding: 20px;
    font-size: 1.5rem;
    border-bottom: 2px solid #ccc;
}

#Logo {
    width: 120px; /*Ancho*/
    height: auto; /*Mantiene la proporcion de la imagen*/
    float: left;
}

#logoAbouth {
    width: 120px; /*Ancho*/
    height: auto; /*Mantiene la proporcion de la imagen*/
    float: right;
}

#logoAbouthServ {
    width: 120px; /*Ancho*/
    height: auto;
    float: right;
    margin-top: -50px;
}

#contenidoprincipla {
    background-color: purple;
    margin-left: 200px; /*espaio entre el margen izquierdo hacia el centro*/
    padding-left: 75px; /*espacio entre margin hacia el centro*/
    padding-top: 570px; /*largo del contenido principal*/
}

#pie {
    text-align: center;
    clear: both;
    margin-top: 10px;
}

#TJorgeR {
    width: 320px; /*Ancho*/
    height: auto; /*Mantiene la proporcion de la imagen*/
}

#logoContact {
    width: 200px; /*Ancho*/
    height: auto; /*Mantiene la proporcion de la imagen*/
    float: right;
    /*float: right;*/ /*logo a la derecha*/
}

main {
    margin-top: 10px; /*Espacio entre franja superior negra botones y el Bienvenido a SoyTuAbogado.com*/
}

.mensaje-exito {
    background-color: #d4edda; /*Verde claro*/
    color: #155724; /*Verde oscuro*/
    padding: 10px;
    border: 1px solid #c3e6cb;
    border-radius: 5px;
    text-align: center;
    font-weight: bold;
    margin: 10px 0;
}

.mensaje-error {
    background-color: #d4edda; /*Verde claro*/
    color: #155724; /*Verde oscuro*/
    padding: 10px;
    border: 1px solid #c3e6cb;
    border-radius: 5px;
    text-align: center;
    font-weight: bold;
    margin: 10px 0;
}

.Fondo2 {
    background-image: url('../imagenes_abogados/Fondo1.png');
    height: 1380px; /*Alto*/
    width: 1250px; /*Ancho*/
    border-radius: 10px;
}

.h5 {
    position: absolute;
    top: 1500px;
    right: 10px;
}

/* Página de la libreta */
.pagina {
    z-index: 1;
    padding: 10px;
}

.contenedor {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: right;
    padding: 107px; /*Centra arriba ó abajo*/
}

.cuadro {
    width: 350px;
    height: 550px; /*Alto*/
    border: 2px solid #000;
    background-color: #f0f0f0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    text-align: center;
    padding: 15px;
}

.titulo {
    text-align: center;
    width: 100%; /*Centrar el titulo*/
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
}

.subtitulo {
    font-size: 16px;
    margin-left: 10px;
}

.menu ul {
    list-style: none; /* Elimina los estilos de lista */
    padding: 0;
    margin: 0;
    display: flex; /* Alinea los elementos en una fila */
    gap: 30px; /* Espaciado entre elementos */
   
}

.menu li {
    padding: 10px;
    border-radius: 5px;
    text-align: center;
    border: 1px solid #333;
}

.menu a {
    color: black; /* Color de texto negro */
    text-decoration: none; /* Elimina el subrayado */
    font-size: 16px; /* Tamaño de la fuente */
   /* font-weight: bold;*/ /* Texto en negrita */
}

.menu li a {
    color: black; /* Color de texto al pasar el ratón */
}

.contenedor_tarjetas {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0px; /*Espacion entre tarjetas*/
}

.tarjeta {
    width: 249px; /*tarjetas a lo ancho de pantalla 249 = 4 tarjetas*/
    /* height: 400px;*/
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    margin: 12px;
}

    .tarjeta:hover {
        box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    }

.contenedor-imagen {
    width: 100%;
    height: 300px;
    overflow: hidden;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
}

.imagen-abogado {
    width: 100%; /*tamaño tarjeta*/
    height: 150px; /*espacio entre tarjeta y borde contenedor*/
    object-fit: contain;
    display: block;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    background-color: #f4f4f4;
}

.contenido-tarjeta {
    padding: 10px;
    flex-grow: 1;
}

.nombre-abogado {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-bottom: 8px;
}

.especialidades,
.ubicacion,
.email {
    font-size: 14px;
    color: #555;
    margin: 4px 0;
    color: #007bff; /* Azul para resaltar el email */
}

/* Responsive: en pantallas pequeñas */
@media (max-width: 600px) {
    .tarjeta {
        width: 90%;
        height: auto;
    }

    .contenedor-imagen {
        height: 180px;
    }
}

.resaltado {
    background-color: yellow;
    font-weight: bold;
}

    .resaltado.actual {
        background-color: orange;
        color: black;
    }

.etiqueta-especialidad {
    color: black;
    font-size: 16px;
    text-align: center;
    display: block;
}

.etiqueta-busqueda {
    color: black;
    font-size: 16px;
    text-align: center;
    display: block;
}

.etiqueta-busqueda {
 color: black;
 font-size: 16px;
 text-align: center;
 display:block;
}

.enlace {
    color: black;
    font-size: 16px;
}