/* Fonts */
@font-face {
    font-family: "Adam";
    src: url("../fonts/ADAM-MEDIUM.TTF") format("truetype");
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: "Montserrat";
    src: url("../fonts/MONTSERRAT-MEDIUM.TTF") format("truetype");
    font-weight: normal;
    font-style: normal;
}

:root {
    --body-font: "Adam", sans-serif;
    --heading-font: "Montserrat", Georgia, serif;
    --secondary-font: "Montserrat", serif;
}

body {
    font-family: var(--body-font);
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #ffffff;
    color: #333333;
}

h1,
.h1,
h2,
.h2,
h3,
.h3,
h4,
.h4,
h5,
.h5,
h6,
.h6 {
    font-family: var(--heading-font);
}

a,
.a,
p,
.p {
    font-family: var(--body-font);
}

/* navbar */
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=UTF8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(0, 0, 0, 0.5)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

.navbar-nav .nav-link {
    padding: 10px 15px;
    font-family: var(--body-font);
    font-size: 20px;
    font-weight: bold;
}

.navbar-nav .nav-link:hover {
    color: #2a5caa;
}

.navbar-nav .nav-link:focus {
    font-weight: bolder;
}

.navbar-brand {
    margin-left: 100px;
}

#navbarNavDropdown {
    margin-right: 100px;
}

.navbar-nav .active {
    color: #4473c1;
}

@media (max-width: 600px) {
    #navbarNavDropdown {
        margin-right: 0;
    }

    .navbar-brand {
        margin-left: 0px;
    }

    .navbar-nav {
        margin-top: 1.5rem !important;
    }
}

/* Tarjetas */
/* Estilos para la tarjeta */
.card {
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease-in-out;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
}

/* Efecto al pasar el mouse */
.card:hover {
    transform: scale(1.03);
    box-shadow: 0px 12px 30px rgba(0, 0, 0, 0.6);
}

/* Imagen con transición de opacidad */
.img-container img {
    transition: filter 0.3s ease-in-out;
}

.card:hover .img-container img {
    filter: brightness(50%);
}

.card:hover .card-body {
    filter: brightness(20%);
}

@media (max-width: 768px) {

    /* Aplica solo en pantallas pequeñas */
    /* Efecto al pasar el mouse */
    .card {
        transition: none;
    }

    .card:hover .img-container img {
        filter: none;
    }

    .card:hover .card-body {
        filter: none;
    }
}

/* Oculta el botón por defecto */
.btn-hover {
    position: absolute;
    bottom: 50%;
    left: 50%;
    transform: translate(-50%, 50%);
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    z-index: 2;
    /* Asegura que el botón esté por encima */
}

/* Muestra el botón cuando el mouse está sobre la tarjeta */
.card:hover .btn-hover {
    opacity: 1;
}

.img-container {
    width: 100%;
    height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Recorta la imagen manteniendo la proporción */
}

/* Para evitar que el cuerpo de la tarjeta también se oscurezca */
.card-body {
    background-color: #141345;
    position: relative;
}

.btnDetails {
    background-color: #aabde4;
    font-family: var(--heading-font);
    border: 1px solid #d7d7d7;
    color: #343474;
}

.detailsResponsive {
    color: #141345;
}

.detailsResponsive:hover {
    color: #141345;
    background-color: #aabde4;
}

.productPrice {
    color: #4473c1;
}

@media (max-width: 768px) {
    .col-md-3 {
        margin-bottom: 40px;
    }

    .img-container {
        width: 100%;
        height: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        overflow: hidden;
    }
}

/* Contacto */
.contact {
    background-image: url('../images/imgFooter2.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    padding: 50px;
    text-align: center;
}

.contact h2 {
    font-size: 28px;
    margin-bottom: 20px;
}

.contact p {
    font-size: 18px;
    margin-bottom: 20px;
}

.contact a {
    display: inline-block;
    text-decoration: none;
    background-color: #ffffff;
    color: #2a5caa;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
}

.contact a:hover {
    background-color: #eaeaea;
}

.columna-izquierda {
    align-items: center !important;
    text-align: center !important;
}

/* Footer */
footer {
    text-align: center;
    padding: 20px;
    background-color: #4473c1;
}

footer p {
    margin: 0;
    color: #131245;
}

footer a {
    color: #131245;
}

.pageName {
    font-weight: 900;
}

.btnBackHome {
    background-color: #343474;
    font-family: var(--heading-font);
    border: 1px solid #343474;
    color: #d7d7d7;
}

.btnBackHome:hover {
    color: #343474;
    background-color: rgb(221, 219, 219);
}

.noticeText {
    font-family: inherit;
}

.icon-container {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.icon-container i {
    font-size: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #131245;
}

.icon-container:hover {
    background-color: #14134517;
}

/* Estilos para pantallas pequeñas (móviles en orientación horizontal) */
@media only screen and (max-width: 990px) and (orientation: landscape) {
    .services img{
        width: 180px;
        height: 140px;
    }

    /* Estilos base para la sección de contacto */
  .contact p {
    margin-bottom: 20px;
  }
  
  /* Centrar los elementos en la columna derecha */
  .columna-derecha {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: end;
    text-align: center;
  }
  
  /* Espacio entre los elementos */
  .columna-derecha .d-flex {
    margin-bottom: 10px;
  }

  .columna-izquierda {
    align-items: start !important; /* Alinea al inicio */
    text-align: left !important;  /* Alinea el texto a la izquierda */
}

.img-container {
    width: 100%;
    height: 120px;
}
}