@font-face {
    font-family: 'Century Gothic';
    src: url('fonts/GOTHICB0.otf') format('truetype');
    /* Cambio aquí */
    /* Puedes agregar más formatos si es necesario */
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Mermaid';
    src: url('fonts/Mermaid1001.ttf') format('truetype');
    /* Cambio aquí */
    /* Puedes agregar más formatos si es necesario */
    font-weight: normal;
    font-style: normal;
}

* {
    margin: 0;
    padding: 0;
    font-family: 'Century Gothic', sans-serif;
    box-sizing: border-box;
}
.logo {
    display: flex;
    align-items: center; /* Alinea verticalmente la imagen */
}

.logo img {
    max-width: 20vh; /* Ajusta el ancho máximo del logo (puedes cambiar este valor) */
    height: auto; /* La altura se ajusta automáticamente para mantener las proporciones */
}
body {
    background: #1e1f21;
    color: #fff;
    font-family: 'Century Gothic', sans-serif;
}
header .carousel-inner .item {
    height: 100vh;
}

.navbar-inverse {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 1), rgba(0, 0, 0, 0));
    border-color: transparent;
}

.navbar-inverse .navbar-brand {
    color: #fff;
    font-family: 'Alfa Slab One', cursive;
    font-size: 25px;
}
.navbar-inverse .navbar-nav > li > a {
    color: #fff;
    font-family: 'Century Gothic', sans-serif;
    font-size: 25px;
}

.bg {
    -webkit-background-size: cover;
    background-size: cover;
    background-position: center center;
    height: 100vh;
}
.carousel-caption {
    padding-bottom: 250px;
    text-align: left;
    left: 13%;
}
.carousel-caption h2 {
    font-size: 50px;
    text-transform: uppercase;
    font-family: 'Mermaid', cursive;
}
.carousel-caption .btn {
    display: inline-block;
    margin-top: 15px;
}
.carousel-control.right {
    background-image: none;
}
.carousel-control.left {
    background-image: none;
}

@media (max-width:767px) {
    .bg {
        background-position: 65%;
    }
    .carousel-caption {
        padding-bottom: 140px;
        left: 5%;
    }
    .carousel-caption h2 {
        font-size: 20px;
    }
    .carousel-caption h3 {
        font-family: 'Century Gothic', sans-serif;
        font-size: 15px;
    }
}
.wrapper {
    padding: 10px 10%;
}
#card-area {
    padding: 50px 0;
}
.box-area {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    grid-gap: 40px;
    margin-top: 50px;
}
.box {
    display: flex;
    align-items: center; /* Centrar verticalmente */
    justify-content: center; /* Centrar horizontalmente */
    border-radius: 10px;
    position: relative;
    overflow: hidden;
    box-shadow: 5px 5px 15px rgba(0,0,0,0.9);
    background-color: black;
}

.box h2 {
    font-family: 'Mermaid';
    font-size: 40px;
}
.box b {
    font-family: 'Mermaid', sans-serif;
    text-align: left;
    font-size: 30px;
}

.box p {
    font-family: 'Century Gothic', sans-serif;
    text-align: justify;
    font-size: 20px;
}

.box img {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    border-radius: 10px;
    transition: transform 0.5s;
}
.box:hover img {
    transform: scale(1.1);
}
.box:hover .overlay {
    height: 100%;
}

.box-area-ser {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    grid-gap: 40px;
    margin-top: 50px;
}
.box-ser {
    border-radius: 10px;
    position: relative;
    overflow: hidden;
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.9);
    background-image: url('img/fondo-serv.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;  /*Mantener la imagen de fondo fija */
    /*background-color: transparent;  Si deseas que el fondo sea transparente */
}

.box-ser h2 {
    font-family: 'Mermaid';
    font-size: 40px;
}
.box-ser b {
    font-family: 'Mermaid', sans-serif;
    text-align: left;
    font-size: 30px;
}

.box-ser p {
    font-family: 'Century Gothic', sans-serif;
    text-align: justify;
    font-size: 16px;
}

.box-ser img {
    width: 100%;
    border-radius: 10px;
    display: block;
    transition: transform 0.5s;
}
.box-ser:hover img {
    transform: scale(1.1);
}
.box-ser:hover .overlay {
    height: 100%;
}

.overlay {
    width: 100%;
    height: 0;
    background: linear-gradient(transparent,#1c1c1c 58%);
    border-radius: 10px;
    position: absolute;
    left: 0;
    bottom: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 0 30px;
    text-align: center;
    font-size: 14px;
    transition: height 0.5s;
}
.overlay h3 {
    font-weight: 500;
    margin-bottom: 5px;
    margin-top: 65%;
    font-family: 'Mermaid', cursive;
    font-size: 30px;
    letter-spacing: 2px;
}

.overlay p {
    font-family: 'Century Gothic', sans-serif;
    font-size: 16px;
}
.overlay a {
    margin-top: 10px;
    color: #262626;
    text-decoration: none;
    font-size: 14px;
    background: #fff;
    border-radius: 50px;
    text-align: center;
    padding: 5px 15px;
}

.content {
    padding: 1%; /* Puedes ajustar el espaciado según tu preferencia */
    background-color: rgba(0, 0, 0, 0.5); /* Color de fondo para el div content */
    border-radius: 5px;
    color: white;
}

.content a {
    margin-top: 10px;
    color: #262626;
    text-decoration: none;
    font-size: 14px;
    background: #fff;
    border-radius: 50px;
    text-align: center;
    padding: 5px 15px;
}

.content-small-ser {
    max-width: 70%; /* Ajusta el ancho máximo del div content-small */
    margin: 0 auto; /* Centrar el div horizontalmente */
}

.content-ser {
    padding: 1%; /* Puedes ajustar el espaciado según tu preferencia */
    background-color: rgba(0, 0, 0, 0.5); /* Color de fondo para el div content */
    border-radius: 5px;
    color: white;
}

.content-ser a {
    font-family: 'Century Gothic', sans-serif;
    font-size: 16px;
    color: #fff;
}

.content-small {
    max-width: 70%; /* Ajusta el ancho máximo del div content-small */
    margin: 0 auto; /* Centrar el div horizontalmente */
}

.carousel-inner img {
    width: 150px;
    height: 150px;
    margin: 0 auto;
}

.testimonial-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: auto; /* Cambia esta altura según tus necesidades */
    padding: 60px; /* Añade un poco de espacio interno */
}

.testimonial-item img {
    width: 150px;
    height: 150px;
    margin: 0 auto;
}

.footer a {
    font-family: 'Century Gothic', sans-serif;
    font-size: 16px;
    color: #fff;
}

.footer h2 {
    font-family: 'Mermaid';
    font-size: 40px;
}

.wrapper h2 {
    font-family: 'Mermaid';
    font-size: 40px;
}

.boxqs {
    border-radius: 10px;
    position: relative;
    overflow: hidden;
    box-shadow: 5px 5px 15px rgba(0,0,0,0.9);
    background-color: black;
}

.boxqs h2 {
    font-family: 'Mermaid';
    font-size: 40px;
}
.boxqs b {
    font-family: 'Mermaid', sans-serif;
    text-align: left;
    font-size: 30px;
}

.boxqs p {
    font-family: 'Century Gothic', sans-serif;
    text-align: justify;
    font-size: 20px;
}

.boxqs:hover .overlay {
    height: 100%;
}

/* Estilos para la imagen con clase .infonavit-image */
.infonavit-image {
    width: 150px;
    height: auto; /* O el valor que desees */
    border-radius: 10px;
    display: block;
    transition: transform 0.5s;
    margin: 0 auto; /* Centrar horizontalmente */
}

/* Agrega estos estilos para el contenedor flex */
.flex-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

/* Estilos para la imagen */
.image-container {
    width: 40%; /* La mitad del ancho */
    height: 100%; /* Alto completo */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 10px;
}

.custom-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}
