/* Reset de márgenes y estilos generales */
* {
    margin: 0;
    padding: 0;
    width: auto;
    font-family: Arial, Helvetica, sans-serif;
}
html,body{
    overflow-x: hidden !important;
}

/* Estilo para párrafos y listas */
p,
li,
label,
small {
    font-family: Arial, Helvetica, sans-serif;
    color: #000;
    font-size: 21px;
}

.p_li {
    padding-left: 20px;
}

/* Barra de navegación */
nav {
    display: flex;
    justify-content: space-between;
    padding: 2.8rem 0;
    background-color: #ffffff;
    margin: 28px 40px;
}

.navbar-nav {
    display: flex;
    justify-content: flex-end;
    font-weight: 500;
    margin: 0;
}

.nav-item {
    margin-left: 5px;
    padding: 0;
}

.nav-link {
    color: #c33e12 !important;
    font-family: Arial;
    font-size: 18px;
    text-decoration: none !important;
    letter-spacing: -0.0277em;
}

/* Estilo para texto principal */
.texto {
    padding: 50px;
}

/* Estilo para botones */
.boton {
    text-align: center;
    padding: 10px 15px;
    color: #ffffff;
    background-color: #c33e12;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    text-decoration: none;
}

/* Estilo para el carrusel */
.carousel-item img {
    object-fit: cover;
    object-position: center;
    height: 50vh;
    width: 100%;
    overflow: hidden;
    z-index: 1;
}

/* Ajuste de columna */
.col-md {
    width: 100%;
}

/* Enlaces sin subrayado */
.text-body {
    text-decoration: none !important;
}

/* Estilo para el formulario de contacto */


/* Estilo para el mapa */
iframe {
    width: 100%;
}

/* Estilo para separadores */
hr {
    border-style: solid;
    border-width: 0.05rem 0 0 0;
    border-color: #000000;
    margin: 3rem auto !important;
    max-width: 90%;
    width: 100%;
}

.separator hr,
hr.styled-separator {
    background: linear-gradient(to left, currentColor calc(50% - 16px), transparent calc(50% - 16px), transparent calc(50% + 16px), currentColor calc(50% + 16px));
    background-color: transparent !important;
    border: none;
    height: 0.1rem;
    overflow: visible;
    position: relative;
    width: 100%;
}

.separator hr:not(.has-background),
hr.styled-separator {
    color: #000000;
}

.separator hr::before,
.separator hr::after,
hr.styled-separator::before,
hr.styled-separator::after {
    background: currentColor;
    content: "";
    display: block;
    height: 1.2rem;
    position: absolute;
    top: calc(50% - 0.6rem);
    transform: rotate(22.5deg);
    width: 0.05rem;
}

.separator hr::before,
hr.styled-separator::before {
    left: calc(50% - 0.4rem);
}

.separator hr::after,
hr.styled-separator::after {
    right: calc(50% - 0.4rem);
}

/* Estilo para tarjetas de noticias */


.container-fluid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; 
    gap: 15px; 
}


.col-md-3 {
    padding-right: 0;
    padding-left: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch; 
    margin-bottom: 15px;
    flex-basis: 30%; 
    box-sizing: border-box;
}


.card {
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    border: none !important;
    height: 100%;
}

/* Imagen */
.card-img {
    border-radius: 8px 0 0 8px;
    max-width: 100%;
    height: auto;
    object-fit: cover;
    margin: 0 auto;
    max-height: 150px;
}


.card-body {
    padding: 8px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
    text-align: center;
    height: 100%;

}

.card-title {
    min-height: 2em;
    font-size: 18px;
    color: #c33e12;
    text-align: center;
    line-height: 1.5;
}

.card-text {
    min-height: 3em;
    font-size: 0.9rem;
    line-height: 1.5;
    text-align: center;
}


.card .btn {
    font-size: 0.85rem;
    padding: 6px 12px;
    width: 80%;
    margin: 0 auto;
    text-align: center;
    position: relative;
    bottom: 0;
    background-color: transparent;
    border-color: #c33e12;
    color: #c33e12;
}


.col-md-3 {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: space-between;
}


.card {
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: space-between;
    padding: 15px;
    box-sizing: border-box;
}



/* Estilo para enlaces activos en la barra de navegación */
.nav-link.active {
    text-decoration: underline !important;
    cursor: default;
    pointer-events: none;
}

/*Efecto de sig sauer*/
.box {
    float: left;
    transition: .5s linear;
    position: relative;
    display: block;
    overflow: hidden;
    padding: 15px;
    text-align: center;
    margin: 0 5px;
    background: transparent;
}
.box a {
    position: relative;
    z-index: 2; 
}
.box:before {
    position: absolute;
    content: '';
    left: 0;
    bottom: 0;
    height: 4px;
    width: 100%;
    border-bottom: 2px solid transparent;
    border-left: 2px solid transparent;
    box-sizing: border-box;
    transform: translateX(100%);
}

.box:after {
    position: absolute;
    content: '';
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    border-top: 2px solid transparent;
    border-right: 2px solid transparent;
    box-sizing: border-box;
    transform: translateX(-100%);
}


.box:hover:before {
    border-color: #212121;
    height: 100%;
    transform: translateX(0);
    transition: .2s transform linear, .2s height linear .2s;
}

.box:hover:after {
    border-color: #212121;
    height: 100%;
    transform: translateX(0);
    transition: .2s transform linear, .2s height linear .2s;
}

/*efecto botones*/


.btn-effect {
    position: relative;
    display: inline-block;
    padding: 15px 30px;
    border: 2px solid #c33e12;
    text-transform: uppercase;
    color: #c33e12;
    text-decoration: none;
    font-weight: 600;
    font-size: 20px;
}

.btn-small {
    font-size: 14px;
    padding: 10px 20px;
    border-width: 1px;
}

.btn-effect::before {
    content: '';
    position: absolute;
    top: 6px;
    left: -2px;
    width: calc(100% + 4px);
    height: calc(100% - 12px);
    background-color: #fefefe;
    transition: 0.3s ease-in-out;
    transform: scaleY(1);
}

.btn-effect:hover::before {
    transform: scaleY(0);
}

.btn-effect::after {
    content: '';
    position: absolute;
    left: 6px;
    top: -2px;
    height: calc(100% + 4px);
    width: calc(100% - 12px);
    background-color: #fefefe;
    transition: 0.3s ease-in-out;
    transform: scaleX(1);
    transition-delay: 0.5s;
}

.btn-effect:hover::after {
    transform: scaleX(0);
}

.btn-effect span {
    position: relative;
    z-index: 3;
    color: #c33e12;
    text-decoration: none !important;
}
.btn-effect a {
    text-decoration: none !important;
}

button {
    background-color: none;
    text-decoration: none;
    background-color: #fefefe;
    border: none;
}

.btn-effect:hover {
    color: #c33e12;
}

/* Cuando el botón tiene la clase 'active', desactivar el efecto hover */

.btn-effect.active::before,
.btn-effect.active::after {
    opacity: 0;

}


/* Productos */
.navbar.prod {
    background-color: transparent !important;
    border-bottom: 1px solid #c4c3c3;
}

.navbar-nav.prod {
    justify-content: center;
    width: 100%;
    padding-left: 0;
    padding-right: 0;
    margin: 0;
}

/* Sección Categorías */
.categoria {
    width: 100%;
    display: none;
}

.categoria-activa {
    display: block;
}

/* Estilos para la fila de productos */
.row {
    display: flex;
    justify-content: center;
    margin: 0;
    padding: 0;
    gap: 0;
}


.col-12,
.col-md-2 {
    padding: 0 !important;
    margin: 0 !important;
    max-width: 18rem;
}

/* Estilo de los productos */
.producto {
    margin: 0 !important;
    transition: transform 0.3s ease;
}


/* Estilo de las tarjetas de productos */
.card-prod {
    height: 100%;
    overflow: hidden;
    transition: transform 0.3s ease;
    margin: 0 !important;
}


/* Estilo de la imagen de la tarjeta */
.card-img-top {
    border-radius: 8px 0 0 8px;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    margin: 0 auto;
    height: 200px;
    margin: 0 !important;
}

/* Estilo del cuerpo de la tarjeta */
.card-body-prod {
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Estilo del texto de los productos */
.card-text-prod {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin-top: 10px;
    text-align: center;
}

@media (max-width: 768px) {
    body {
        padding: 0;

    }
    li{
        font-size: 18px;
    }
    p,
    label,
    small {
        text-align: center;
        font-size: 18px;
    }
    .navbar-nav.prod {
        flex-direction: row;
        justify-content: center;
        width: 100%;
        margin: 0;
    }
    .contact {
        width: 90%;
        padding: 20px;
        display: block;
        margin: 0 auto;
    }

    .nav-item.prod {
        margin: 0 5px;
    }

    .btn-effect {
        font-size: 14px !important;
    }
    
    #form-btn {
        text-align: center;
    }

    .img_logo {
        text-align: center;
    }

    .card-title {
        font-size: 0.9rem;
    }

    .card-body {
        padding: 6px;
    }

    .navbar-nav {
        flex-direction: column;
        width: 100%;
        align-items: center;
    }

    .nav-item {
        margin-left: 0;
        margin-bottom: 10px;
        text-align: center;
    }

    .nav-link {
        color: #c33e12;
        font-weight: 500;
    }

    .img_logo img {
        width: 100%;
        transform: translate(10px, 10px);
    }

    #titulo-contacto {
        margin-top: 20px;
    }

    .product-title {
        margin-top: 20px;
        text-align: center;

    }

    .product-price {
        text-align: center;
    }

    .login-box {
        box-shadow: none !important;
        translate: 0 90px;
    }
    .btn-volver {
        margin-top: 100px;
        text-align: center;
    }
    
    .contact {
        width: 90%;            
        padding: 20px;   
        display: block; 
        margin: 0 auto;      
      }
    .card-title{
        font-size: 18px;
    }
    .description-title{
        text-align: center;
    }
    .texto{
        padding: 20px;
    }
    label.form-label {
        text-align: center;
    }
    .mb-3{
        text-align: center;
    }
    .navbar-toggler{
        transform: translateX(-20px);
    }


}
@media (max-width: 576px) {
    .mini-image {
        width: 100%;
        margin-bottom: 10px; 
    }
}


.product-description {
    margin-top: 20px;
}
.description-title{
    line-height: 1.7957em;
    font-weight: 400;
    color: #c33e12;
}


/* Asegura que la imagen principal sea responsiva */
.product-images img {
    width: 100%;
    max-width: 100%;
    height: auto;
}

/* Estilo para las miniaturas */
.mini-image {
    width: 100%; 
    height: auto;
    object-fit: cover; 
}


.description-section {
    margin-top: 40px;
    font-size: 14px;
    line-height: 1.7957em;
    font-weight: 400;
}

.txt-prod{
    font-size: 21px;
}

/* login*/
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    margin-top: 10%;
}

.login-box {
    padding: 40px;
    width: 100%;
    max-width: 400px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.login-box h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #c33e12;
}

.form-group {
    margin-bottom: 15px;
}

.form-control {
    border-radius: 8px;
    border: 1px solid #ddd;
    padding: 12px;
    font-size: 1rem;
    width: 100%;
    box-sizing: border-box;
}
/*menu usuario*/
.usuario {
    z-index: 1050;
    max-height: 400px;
    overflow-y: auto;
    word-wrap: break-word; 
    translate: 0px -9px;
}

.usuario-item {
    color: white;
    font-size: 14px;
    padding: 12px 10px;
    white-space: normal; 
}

.usuario-item:hover {
    background-color: #c33e12 !important;
    color: #fff !important;
}
/*modal*/
.modal-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
  }
  
  .modal-footer button {
    margin: 0 10px; 
  }
.modal-title{
    color: #c33e12;
}
.btn-close{
    margin:0;
    padding:0 ;
}

/*centrar boton*/
.text-center {
    display: flex;
    justify-content: center; 
    align-items: center; 
    width: 100%; 
    padding: 0 15px; 
}

