:root {
    --verde: #6abb3a;
}

@font-face {
    font-family: "Bw Modelica";
    src: url("../webfonts/BwModelica/otf/BwModelica-Medium.otf")
        format("opentype"); /* Cambia la extensión según el formato de tu fuente */
    /* Puedes agregar más formatos si la fuente tiene diferentes extensiones */

    font-family: "Bw Modelica Bold";
    src: url("../webfonts/BwModelica/otf/BwModelica-Bold.otf")
        format("opentype"); /* Cambia la extensión según el formato de tu fuente */
    /* Puedes agregar más formatos si la fuente tiene diferentes extensiones */

    font-family: "Bw Modelica Light";
    src: url("../webfonts/BwModelica/otf/BwModelica-Light.otf")
        format("opentype"); /* Cambia la extensión según el formato de tu fuente */
    /* Puedes agregar más formatos si la fuente tiene diferentes extensiones */
}

body {
    font-family: "Bw Modelica", sans-serif; /* Usa la fuente en tu página */
}

h1 {
    font-family: "Bw Modelica Bold", sans-serif; /* Usa la fuente en tu página */
}

h4 {
    font-family: "Bw Modelica Light", sans-serif; /* Usa la fuente en tu página */
}

html,
body {
    height: 100%;
}

/* SE ESTA PROBANDO COLOCAR BORDES A LAS CARDS DE LOS TRAMITES */
/* .div1, .div2, .imagen {
    border: 1px solid rgba(106, 187, 58, 1);
    box-sizing: border-box;
    border-radius: 5%;
    padding: 5px;
    margin-left: 7.5px;
  } */
/* Estilo para el contenedor del input con icono flotante */
.input-container {
    position: relative;
}

/* Estilo para el icono de búsqueda */
.search-icon {
    position: absolute;
    top: 64%;
    left: 15%; /* Ajusta según sea necesario */
    transform: translateY(-50%);
    color: #aaa; /* Color del icono */
}

/* Estilo para el input */
.custom-input {
    width: 100%;
    padding-left: 30px; /* Ajusta según sea necesario para dejar espacio al icono */
}

/* Estilo para el contenedor del select con icono flotante */
.select-container {
    position: relative;
}

/* Estilo para el icono de filtro */
.filter-icon {
    position: absolute;
    top: 64%;
    left: 15%; /* Ajusta según sea necesario */
    transform: translateY(-50%);
    color: #aaa; /* Color del icono */
}

/* Estilo para el select */
.custom-select {
    width: 75%;
    padding-left: 30px; /* Ajusta según sea necesario para dejar espacio al icono */
}

.template {
    /* min-height: 100%; */
    min-height: 100vh; /* Ocupa toda la altura de la pantalla */
    display: grid;
    /* grid-template-rows: 5rem 20rem auto 5rem; */
    grid-template-rows: 5rem 20rem fr auto; /* "1fr" hace que el contenido ocupe el espacio restante */
    grid-template-areas:
        "header"
        "fondo"
        "main"
        "footer";
}

.header {
    grid-area: header;
    background-color: var(--verde);
    box-shadow: 0px 4px 4px #00000039;
    position: sticky;
}

.fondo {
    grid-area: fondo;
    /* background-image: url("../img/palacio.png"); */
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center 65%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.main {
    grid-area: main;
}

.mi-form-group input {
    border-color: rgba(106, 187, 58, 1);
}
.mi-form-group select {
    border-color: rgba(106, 187, 58, 1);
}

.mi-form-group input:focus {
    border-color: rgba(106, 187, 58, 1);
    box-shadow: 0 0 0 0.2rem rgba(106, 187, 58, 0.5);
}

.mi-form-group select:focus {
    border-color: var(--verde);
    box-shadow: 0 0 0 0.2rem rgba(106, 187, 58, 0.5);
}

.footer {
    grid-area: footer;
    background-color: var(--verde);
}

/* ESTILOS PARA EL HEADER PANTALLA GRANDE */
.mi-boton {
    background-color: white;
    color: var(--verde);
    text-transform: uppercase;
    border: none;
    box-shadow: 0px 4px 4px #00000039;
}

.mi-boton:hover {
    background-color: white;
    color: var(--verde);
    text-transform: uppercase;
    border: none;
    box-shadow: 0px 4px 4px #00000039;
}

#logo-mcc {
    height: 75px;
    padding: 2.5%;
    margin-left: 2.5%;
}

.contenedor-boton {
    padding: 2.5%;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
/* ESTILOS PARA EL HEADER PANTALLA GRANDE */

/*  ESTILOS PARA EL FOOTER GRANDE */
.footer {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
}

#logo-footer {
    width: 50px;
    padding-right: 10px;
}

.logo-sec,
.dudas,
.redes {
    display: flex;
    justify-content: center;
    align-items: center;
}

.texto-ciudad,
.texto-dudas,
.redes {
    color: white;
    margin-top: 20px;
}

.texto-ciudad a {
    color: white;
}

.redes a {
    color: white;
}
/*  ESTILOS PARA EL FOOTER GRANDE */

.section-title h1 {
    color: white;
}

.section-sub-title h4 {
    color: white;
    padding-bottom: 3%;
}

.micard {
    background-color: white;
}

.card,
.micard {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
}

.main {
    display: flex;
    justify-content: center;
    align-items: center;
}
.micard-tramites {
    display: grid;
    grid-template-columns: 30% 70%;
    border-radius: 10px;
    width: 100%;
    height: 190px;
    min-height: 190px;
    box-shadow: 0px 4px 4px #00000039;
}
div #link {
    text-decoration: none;
    color: black;
}

a:hover {
    text-decoration: none;
}
.div1 {
    font-weight: bold;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2; /* Limita a 2 líneas */
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
    max-height: 3.2em; /* Ajusta según el tamaño de fuente */
    line-clamp: 2; /* Propiedad estándar */
}
.mi-form-group {
    display: flex;
    justify-content: center;
}

#logo-tr {
    margin: 10px;
}

/* SI SE ROMPE ALGO DE LA VISTA, DESCOMENTAR TODO ESTO Y BORRAR LO DE MAS ABBAJO CON LA MISMA CLASE */
/* .div2 { */
/* text-align: space-around; */
/* width: 100%; */
/* word-spacing: 10px; */
/* display: -webkit-box; */
/* -webkit-box-orient: vertical; */
/* -webkit-line-clamp: 3; Ajusta el número de líneas según sea necesario */
/* text-overflow: ellipsis; */
/* white-space: normal; Cambiado a 'normal' para permitir varias líneas */
/* overflow: hidden; */
/* font-weight: 300; */
/* } */

.div2 {
    width: 100%;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3; /* Limita a 3 líneas */
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
    font-weight: 300;
    max-height: 4.8em; /* Ajusta según el tamaño de fuente */
    line-clamp: 3; /* Propiedad estándar */
}

.mi-form-group input,
.mi-form-group select {
    margin-top: 15px;
}

.contenido {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    grid-template-rows: auto;
    grid-gap: 25px;
    width: 90%;
    justify-content: center;
    align-items: center;
}

.container-fluid {
    display: flex;
    justify-content: center;
    align-items: center;
}
@media (max-width: 2200px) {
    .search-icon {
        position: absolute;
        top: 64%;
        left: 14%; /* Ajusta según sea necesario */
        transform: translateY(-50%);
        color: #aaa; /* Color del icono */
    }
    .filter-icon {
        position: absolute;
        top: 64%;
        left: 14%; /* Ajusta según sea necesario */
        transform: translateY(-50%);
        color: #aaa; /* Color del icono */
    }
}

@media (max-width: 1422px) {
    .contenido {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr 1fr;
        grid-template-rows: auto;
        grid-gap: 35px;
    }
}

@media (max-width: 1024) {
    .contenido {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr 1fr;
        grid-template-rows: auto;
        grid-gap: 35px;
    }
}

@media (max-width: 800px) {
    .logo-sec,
    .dudas {
        display: none;
    }
    .footer {
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .fondo {
        background-repeat: no-repeat;
        background-size: cover;
        background-position: center 65%;
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
    }
    .contenido {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
    }

    .card {
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
    }

    .section-card-filtro {
        margin-bottom: 15px;
    }

    input,
    select {
        width: 75%;
    }
}

@media (max-width: 600px) {
    #logo-mcc {
        height: 40px;
        margin: 20px;
    }

    .mi-boton {
        padding: 4px 8px;
        font-size: 1rem;
        margin: 20px;
    }

    .contenido {
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        grid-gap: 1px;
    }
}

@media (max-width: 535px) {
    .section-title h1 {
        font-size: 1.5rem;
    }

    .section-sub-title h4 {
        font-size: 1.2rem;
    }
}
@media (max-width: 414px) {
    .section-title h1 {
        font-size: 1rem;
    }

    .section-sub-title h4 {
        font-size: 0.9rem;
    }
}

@media (max-width: 382px) {
    .section-title h4 {
        margin: 0;
    }

    .section-sub-title h4 {
        margin: 0;
    }
    #logo-mcc {
        height: 30px;
        margin: 20px;
    }
    .section-title h1 {
        font-size: 1rem;
    }

    .section-sub-title h4 {
        font-size: 0.9rem;
    }
}

@media (max-width: 375px) {
    .contenido {
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        grid-gap: 5px;
    }

    .micard-tramites {
        width: 100%;
        height: auto;
    }
}
@media (max-width: 280px) {
    #logo-mcc {
        height: 30px;
        margin: 20px;
    }
    .section-title h1 {
        font-size: 1.4rem;
    }

    .section-sub-title h4 {
        text-align: center;
        font-size: 0.8rem;
    }

    .mi-boton {
        padding: 2px 4px;
        font-size: 0.8rem;
        margin: 8px;
    }
}
