@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500&display=swap");

body{
    overflow-x: hidden;
    box-sizing: border-box;
}

.header-container {
    display: flex;
    justify-content: space-between;
    background: #ffff;
    width: 100%;
}

.cintillo img {
    width: 30%;
    height: 85px;
    display: block;
    border: none;
    position: relative;
    z-index: 9999;
    padding: 5px;
}

@media (max-width: 768px) {
    .cintillo img {
        width: 80%;
    }
}

@media (max-width: 992px) {
    .cintillo img {
        width: 110%;
        height: 70px;
    }
}

.cintillo {
    flex-grow: 1;
    margin-right: 20px;
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        align-items: center;   
        gap: 15px;       
    }
    .cintillo img {
        width: 80%;
    }
    .logo img {
        width: 60px;
        height: auto;
    }
}

/* Menú principal*/
.main-horizontal {   
    height: 65px;
    width: 100%;
    top: 60px;
    background-color: #ffffff;
    border: none;
    box-sizing: border-box;
    align-items: center;
    padding: 0 20px;
    position: fixed;
    z-index: 9999;
    justify-content: space-between;
    display: flex;
    margin-top: -60px;
}

.logo_link {
    display: flex;
    align-items: center;
    margin-right: auto;
}

.logo {
    height: 30px;
    padding-left: 100px;
}

.links_main{
    text-decoration: none;
    font-weight: 300;
    color: black;
    font-size: 18px;
    padding: 0 15px;
    white-space: nowrap;
}

.links_main:hover{
    height: 65px;
    color: #ffff;
    background-color: #005b9b;
    display: flex;
    justify-content: center;
    align-items: center;
}
@media (max-width: 1200px) {
    .logo {
        padding-left: 50px;
    }
    .links_main {
        font-size: 16px;
        padding: 0 10px;
    }
}

@media (max-width: 992px) {
    .logo {
        padding-left: 20px;
    }
    .links_main {
        font-size: 15px;
        padding: 0 8px;
    }
}

@media (max-width: 768px) {
    .links_main {
        font-size: 12px;
        padding: 0 5px;
    }

    .main-horizontal {
        padding: 0 10px;
    }
    .logo {
        padding-left: 10px;
    }
}
/* Barra de búsqueda y Banner */
.searh--box{
    top: 0;
    margin: 0;
    height: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.searh--box input {
    background: transparent;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 35px;
    border: 2px solid #57575788;
    box-shadow: 0 4px 10px rgba(102, 102, 102, 0.247);
    width: 45%;
    height: 35px;
    margin-top: 5%;
    cursor: pointer;
    color: #03347ef3;
    font-weight: 500;
}    

.searh--box input:focus{
    outline: none;
}

.searh--box input:hover{
    border: 2px solid #005B9B; 
}
@media screen and (max-width: 1280px) {
    .searh--box input{
        width: 60%;
        display: flex;
        justify-content: center;
        align-items: center;
    }
}

.searh--box i {
    background-color: #005b9b;
    border-radius: 20px;
    width: 30px;
    height: 30px;
    padding: 7px 7px;
    cursor: pointer;
    margin-left: -55px;
    margin-top: 60px;
}
@media screen and (max-width: 1280px) {
    .searh--box i{
        margin-top: 42px;
    }
}
.searh--box i:hover {
    transform: scale(1.2);
}

button{
    border: none;
    background-color: transparent;
}

.container1{
    background-color: transparent;
    width: 90%;
    max-width: 1200px;
    margin: -50px auto;
    padding: 0; 
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center
}

.content{
    color: #032750;
    flex: 0 0 auto;
    width: 100%;
    text-align: center;
}
.content_home h2{
    font-size: 20px;
    color: black;
}
.content_home p{
    font-size: 20px;
    color: black;
    color: rgb(58, 63, 75);
    color: rgb(81, 85, 96);
    font-weight: 500;
}

/* Tarjetas */
#carrusel{
    margin-top: 210px;
}

.box-area{
    display: grid;
    max-width: 1900px;
    width: 100%;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    margin: 45px auto;
    padding: 20px;
    box-sizing: border-box;
}

.box {
    border-radius: 0px 50px 0px 50px;
    position: relative;
    overflow: hidden;
    box-shadow: 5px 5px 15px rgba(61, 61, 61, 0.9);
    width: 100%;
    height: 190px;
    margin-left: 0;
    margin-right: 0;
    margin-top: 0;
}

.box img{
    width: 100%;
    height: 100%;
    border-radius: 0px;
    display: block;
    transition: transform 0.5s;
    background-image: cover;
}

.overlay {
	width: 100%;
	height: 0;
	background: linear-gradient(transparent,#005a9bc9 58%);
	border-radius: 0, 10px, 0, 10px;
	position: absolute;
	left: 0;
	bottom: 0;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	padding: 0 120px;
	text-align: center;
	transition: height 0.5s;
}

.overlay a {
    width: 110px;
    height: 35px;
	margin-top: 10px;
	color: #262626;
	text-decoration: none;
	font-size: 16px;
	background: #ffffffee;
	border-radius: 10px;
	text-align: center;
	padding: 5px 10px;
    font-weight: bold;
}

.overlay a:hover {
	color: #ffffff;
	background: #032750;
}
.box:hover .overlay{
    height: 100%;
}

@media (min-width: 1201px) {
    .box-area {
        grid-template-columns: repeat(6, 1fr);
        gap: 20px;
    }
}

@media (max-width: 1208px) {
    .box-area {
        grid-template-columns: repeat(4, 1fr);
        gap: 15px;
        padding: 0 15px;
    }
}

@media (max-width: 991px) {
    .box-area {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
        padding: 0 10px;
        margin-top: -120px;
    }
    .overlay a {
        font-size: 14px;
        width: 100px;
    }
}

@media (max-width: 767px) {
    .box-area {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        margin: 20px auto;
        padding: 0 5px;
    }
    .box {
        height: 140px;
    }
    .overlay {
        padding: 0 5px;
    }
    .overlay a {
        font-size: 12px;
        width: 90px;
        height: 30px;
        padding: 3px 8px;
    }
}

@media (max-width: 480px) {
    .box-area {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 0 10px;
    }
    .box {
        height: 120px;
    }
    .overlay a {
        width: 100%;
        font-size: 14px;
    }
}

/* Pie de página*/
.logo_footer{
    width: 190px;
    height: 90px;
    margin-top: 3px;
    margin-left: -90px;
}

.footer{
    position: relative;
    z-index: 9999;
    width: 100%;
    height: 190px;
    background-color: #005B9B;
    align-items: center;
    align-content: center;
    justify-content: center;
    bottom: 0;
    left: 0;
}

.footer_c{
    position: absolute;
}

.footer p{
    color: white;
    margin-top: -14px;
}

.footer .correo{
    width: 350px;
    height: 60px;
    margin-top: -25px;
}

.footer a{
    text-decoration: none;
}

.footer .icono-f{
    color: white;
    width: 45px;
}

/* Banner secundario*/
.ensign{
    position: relative;
    width: 100%;
    height: 400px;
    margin-top: 3%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}
.ensign img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.ensign h1,
.ensign h2 {
    position: relative;
    z-index: 2;
    background-color: transparent;
    margin: 0;
    padding: 0 15px;
    line-height: 1.2;
    box-sizing: border-box;
    color: inherit;
}

.ensign h1 {
    font-size: 45px;
    font-weight: 400;
    color: #002c42;
    margin-bottom: 10px;
}

.ensign h2 {
    font-size: 45px;
    font-weight: 400;
    color: #002c42;
    margin-right: 170px;
}

@media screen and (max-width: 1280px) {
    .ensign {
        height: 350px;
    }
    .ensign h1 {
        font-size: 40px;
    }
    .ensign h2 {
        font-size: 40px;
        margin-right: 120px;
    }
}

@media screen and (max-width: 992px) {
    .ensign {
        height: 280px;
    }
    .ensign h1 {
        font-size: 32px;
    }
    .ensign h2 {
        font-size: 32px;
    }
}

@media screen and (max-width: 768px) {
    .ensign {
        height: 220px;
        margin-top: 2%;
    }
    .ensign h1 {
        font-size: 26px;
        margin-bottom: 5px;
    }
    .ensign h2 {
        font-size: 18px;
    }
    .ensign h1 b {
        display: block;
        white-space: normal;
    }
}

@media screen and (max-width: 480px) {
    .ensign {
        height: 180px;
        margin-top: 1%;
    }
    .ensign h1 {
        font-size: 20px;
    }
    .ensign h2 {
        font-size: 14px;
    }
    .ensign h1,
    .ensign h2 {
        padding: 0 10px;
    }
}
/*******/
.metrics-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

#metrics {
    background-color: transparent;
    max-width: 1200px;
    width: 98%;
    padding-bottom: 10px;
}

@media screen and (max-width: 1280px) {
    #metrics {
        height: auto;
        width: 85%;
    }
}

.metrics-title h1 {
    font-size: 30px;
    color: #032750;
    font-family: 'Poppins', sans-serif;
    font-weight: bold;
    text-align: center;
    padding-top: 20px;
    margin-bottom: 20px;
}

.container-data {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 10px 20px;
}

.data-registre {
    background-color: #ffff;
    box-shadow: 5px 5px 15px #7575753f;
    box-shadow: -2px 1px 24px 1px #7575753f;
    -webkit-box-shadow: -2px 1px 24px 1px #7575753f;
    -moz-box-shadow: -2px 1px 24px 1px #7575753f;
    border-radius: 0px 50px 0px 50px;
    height: 200px;
    padding: 20px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.data-registre:hover {
    background-color: #61bdff62;
}

.total-data {
    font-family: 'Poppins', sans-serif;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 5px;
    margin: 0;
    width: 100%;
}
@media screen and (max-width: 1920px) {
    .total-data{
        width: 70%;
    }
}

.total-data i {
    color: #005b9b;
    font-size: 85px;
    margin-bottom: 5px;
}

@media screen and (max-width: 1920px) {
    .total-data i {
        font-size: 60px;
    }
    .total-data{
        width: 70%;
    }
}

.total-data h5 {
    font-weight: 500;
    font-size: 20px;
    color: #f16304;
    margin: 0;
    line-height: 1.2;
    margin-bottom: 30px;
}

.total-data h1 {
    margin: 0;
    font-size: 50px;
    font-weight: bold;
    color: #0099ff;
    line-height: 1;
}

@media screen and (max-width: 1920px) {
    .total-data h1 {
        font-size: 45px;
    }
}
@media screen and (max-width: 768px) {
    .container-data {
        grid-template-columns: 1fr;
        padding: 0 10px;
    }
    .data-registre {
        min-height: 120px;
        padding: 10px;
    }
    .total-data i {
        font-size: 50px;
    }
    .total-data h5 {
        font-size: 12px;
    }
    .total-data h1 {
        font-size: 40px;
    }
}

@media screen and (min-width: 769px) and (max-width: 1024px) {
    .container-data {
        grid-template-columns: repeat(2, 1fr);
    }
}

.data-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-top: 0;
}

#data{
    background-color: transparent;
    width: 50%;
    height: auto;
}

/*********/
.custow-container{
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 3%;
}

#datasets {
    width: 98%;
    max-width: 1200px;
    padding: 20px;
    box-sizing: border-box;
}

@media screen and (max-width: 1280px) {
    #datasets {
        width: 85%;
    }
}

.datasets-title h1 {
    font-size: 28px;
    color: #002c42;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    text-align: center;
    padding-top: 10px;
    margin-bottom: 25px;
}

.datasets-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    padding: 0px 20px;
}

.datasets-registre {
    background-color: #ffffff;
    border: 2px solid #66b2ff;
    border-radius: 15px;
    min-height: 180px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    text-align: center;
    box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.datasets-registre:hover {
    transform: translateY(-5px);
    box-shadow: 0px 6px 20px rgba(0, 0, 0, 0.1);
    background-color: #a3d6f888;
    border: none;
}

.datasets-total {
    font-family: 'Poppins', sans-serif;
    color: #333;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 5px;
    width: 100%;
}

.icon-circle {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 60px;
    height: 60px;
    border: 2px solid #0099ff;
    border-radius: 50%;
    background-color: #e0f2ff;
    margin-bottom: 10px;
}

.datasets-total i {
    color: #0099ff;
    font-size: 35px;
    margin: 0;
}

.datasets-total h5 {
    font-weight: 600;
    font-size: 18px;
    color: #007bff;
    margin: 5px 0 0px 0;
    line-height: 1.2;
    text-transform: capitalize;
    cursor: pointer;
}

.datasets-total .data-description {
    font-size: 13px;
    color: #555;
    margin: 0 0 5px 0;
    font-weight: normal;
    text-decoration: none;
}

.datasets-total .data-views {
    margin: 0;
    font-size: 16px;
    font-weight: bold;
    color: #333;
}

@media screen and (max-width: 1024px) {
    .datasets-content {
        grid-template-columns: repeat(2, 1fr);
        padding: 0px 15px;
    }
    .datasets-registre {
        min-height: 160px;
        padding: 15px;
    }
    .icon-circle {
        width: 50px;
        height: 50px;
    }
    .datasets-total i {
        font-size: 30px;
    }
    .datasets-total h5 {
        font-size: 16px;
    }
    .datasets-total .data-description {
        font-size: 12px;
    }
    .datasets-total .data-views {
        font-size: 14px;
    }
    .datasets-title h1 {
        font-size: 24px;
    }
}

@media screen and (max-width: 768px) {
    #datasets {
        width: 100%;
        padding: 15px;
        border-radius: 10px;
    }
    .container-data {
        grid-template-columns: 1fr;
        padding: 0px 10px;
    }
    .data-registre {
        min-height: 140px;
        padding: 15px;
    }
    .icon-circle {
        width: 45px;
        height: 45px;
    }
    .total-data i {
        font-size: 25px;
    }
    .total-data h5 {
        font-size: 15px;
    }
    .total-data .data-description {
        font-size: 11px;
    }
    .total-data .data-views {
        font-size: 13px;
    }
    .metrics-title h1 {
        font-size: 20px;
    }
}
/*****/ 
.banner img{
    width: 100%;
    height: 350px;
    margin-top: 4%;
}
@media screen and (max-width: 1280px) {
    .banner img{
        width: 100%;
        height: 400px;
        margin-top: 70px;
    }
}
.banner .lhorizontal{
    width: 40%;
    height: 220px;
    margin-top: -400px;
    margin-left: 600px;
}
@media screen and (max-width: 1280px) {
    .banner .lhorizontal{
        width: 40%;
        height: 120px;
        margin-top: -460px;
        margin-left: 200px;
    }
}
.banner .mbanner{
    width: 300px;
    height: 300px;
    z-index: 9999;
    margin-top: -400px;
    margin-left: 150px;
}
@media screen and (max-width: 1280px) {
    .banner .mbanner{
        width: 20%;
        height: 180px;
        margin-top: -420px;
        margin-left: 120px;
    }
}

.metrics-container.fade-in-on-scroll {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 1s ease-out, transform 0.5s ease-out;
}

.metrics-container.fade-in-on-scroll.fade-in-active {
    opacity: 1;
    transform: translateX(0);
}

.custow-container.fade-in-on-scroll {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.custow-container.fade-in-on-scroll.fade-in-active {
    opacity: 1; 
    transform: translateX(0);
}

