/* Estilos personalizados para AFIX */

/* Hacer las imágenes más altas en la sección 4 Pasos */
.steps-carousel-new .step-slide img {
    height: 450px !important;
    object-fit: cover;
}

@media (max-width: 768px) {
    .steps-carousel-new .step-slide img {
        height: 300px !important;
    }
}

/* Estilos mejorados para las flechas del carousel de cotización */
.afix-cotizacion-btn {
    width: 50px;
    height: 50px;
    background: rgba(191, 3, 17, 0.8);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    opacity: 0.8;
}

.afix-cotizacion-btn:hover {
    background: rgba(191, 3, 17, 1);
    opacity: 1;
    transform: scale(1.1);
}

.afix-cotizacion-btn:focus {
    box-shadow: 0 0 0 3px rgba(191, 3, 17, 0.25);
}

.afix-cotizacion-icon {
    color: white;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.afix-cotizacion-btn-prev {
    left: 15px;
}

.afix-cotizacion-btn-next {
    right: 15px;
}

@media (max-width: 768px) {
    .afix-cotizacion-btn {
        width: 40px;
        height: 40px;
    }
    
    .afix-cotizacion-icon {
        font-size: 14px;
    }
}

/* Cambios de colores primarios */
:root {
    --primary: #BF0311;
    --secondary: #232323;
    --light: #E5E5E5; /* Nuevo color gris claro para fondos */
    --dark: #000000;
    --afix-hover-transition: all 0.2s ease-in-out;
}

/* Cambios de fondo general */
body {
    background-color: var(--light);
}

/* Fondos con el nuevo color gris claro */
.bg-light {
    background-color: var(--light) !important;
}

/* Mantener algunos elementos con fondo blanco para destacar */
.card, .team-item .bg-light, 
.courses-item, .bg-white, .position-relative .bg-white {
    background-color: #FFFFFF !important;
}

/* Testimonios con fondo gris claro */
.testimonial-item {
    background-color: var(--light) !important;
    box-shadow: none;
}

/* Cambio de links azules a negros */
.navbar .navbar-nav .nav-link, .dropdown-item {
    color: #000000 !important;
}

/* Cambio de fondo de footer y topbar a negro */
.bg-dark, .copyright, .footer {
    background-color: #000000 !important;
}

/* Links en fondos negros a color blanco con hover rojo */
.bg-dark a, .footer a, .footer .btn.btn-link, .copyright a, 
.bg-dark .text-light, .footer .text-light,
.bg-dark .text-white, .footer .text-white {
    color: #FFFFFF !important;
}

.bg-dark a:hover, .footer a:hover, .copyright a:hover,
.footer .btn.btn-link:hover, .navbar .navbar-nav .nav-link:hover {
    color: var(--primary) !important;
}

/* Iconos de redes sociales rojos sin fondo */
.btn-square.btn-link i, 
.btn-square.btn-outline-light i,
.h-100.d-inline-flex.align-items-center.mx-n2 a i,
.d-flex.pt-2 a i {
    color: var(--primary) !important;
}

.btn-square.btn-link, 
.btn-square.btn-outline-light,
.h-100.d-inline-flex.align-items-center.mx-n2 a,
.d-flex.pt-2 a {
    background-color: transparent !important;
    border-color: transparent !important;
}

.btn-square.btn-link:hover i, 
.btn-square.btn-outline-light:hover i,
.h-100.d-inline-flex.align-items-center.mx-n2 a:hover i,
.d-flex.pt-2 a:hover i {
    color: #8c0000 !important; /* Rojo oscuro para hover */
}

/* Eliminar fondos de los iconos de redes sociales */
.btn-square, .btn-sm-square, .btn-lg-square {
    background-color: transparent !important;
    border: none !important;
}

/* Cambiar elementos amarillos a rojo */
.btn-primary, .bg-primary, .d-inline-block.bg-primary, 
.d-inline-block.bg-primary.text-white,
.d-inline-block.bg-primary.fs-5 {
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
}

.text-primary, 
.breadcrumb-item.text-primary, .display-6 .text-primary,
.text-primary.text-uppercase, h1 .text-primary, h2 .text-primary, 
h6.text-primary, span.text-primary, p .text-primary {
    color: var(--primary) !important;
    background-color: transparent !important;
}

/* Corregir iconos para que sean rojos */
i.text-primary, .fa.text-primary, .far.text-primary, .fas.text-primary, 
.fab.text-primary, .bi.text-primary, .fa-square.text-primary, 
.fa-quote-left.text-primary, .fa-check.text-primary, 
.fa-map-marker-alt.text-primary, .far.fa-clock.text-primary, 
.fa-phone-alt.text-primary {
    color: var(--primary) !important;
}

/* Asegurar que todos los elementos con texto-primary sean rojos */
*[class*="text-primary"] {
    color: var(--primary) !important;
}

/* Ajuste para carousel y controles */
.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: var(--primary) !important;
    border: 10px solid var(--primary) !important;
}

/* Ajuste para botones */
.btn-outline-primary {
    color: var(--primary) !important;
    border-color: var(--primary) !important;
}

.btn-outline-primary:hover {
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
    color: white !important;
}

/* Ajuste para los bordes en la topbar */
.border-secondary {
    border-color: #000000 !important;
}

/* Ajuste para spinners y elementos animados */
.spinner-grow.text-primary {
    background-color: var(--primary) !important;
}

/* Ajuste para los botones de la página */
.back-to-top, .btn-lg-primary {
    background-color: var(--primary) !important;
}

/* Ajustes para el owl carousel */
.testimonial-carousel .owl-dot.active {
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
}

/* Corrección específica para cualquier elemento con clase bg-primary */
[class*="bg-primary"] {
    background-color: var(--primary) !important;
}

/* Ajustes adicionales para fondos de cartas y elementos destacados */
.courses-item {
    background-color: #FFFFFF !important;
    box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.1);
}

/* Ajuste para el área de la reseña con fondo blanco */
.position-absolute.top-100.start-50.translate-middle.d-flex.align-items-center.justify-content-center.bg-white {
    background-color: var(--light) !important;
}

/* Corrección para textos blancos en fondos rojos */
.bg-primary .text-white, .btn-primary .text-white, 
.btn-primary.text-white, .bg-primary.text-white {
    color: #FFFFFF !important;
}

/* Ajuste específico para botones */
.btn.btn-primary {
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
}

.btn:not(.btn-square):hover {
    opacity: 0.9;
}

/* Ajuste para botones activos */
.btn-check:checked+.btn-primary,
.btn-check:active+.btn-primary,
.btn-primary:active,
.btn-primary.active,
.show>.btn-primary.dropdown-toggle {
    border-color: #8c0000 !important;
    background-color: #A30211 !important;
}

.btn-check:focus+.btn-primary,
.btn-primary:focus,
.btn-check:focus+.btn-outline-primary,
.btn-outline-primary:focus {
    box-shadow: 0 0 0 .25rem rgba(191, 3, 17, 0.25) !important;
}

/* Corrección específica para enlaces del navbar */
.navbar-nav .nav-link.active {
    color: var(--primary) !important;
}

/* Clases específicas para elementos en testimonial.html */
.testimonial-carousel .owl-dot {
    background-color: #D5D5D5 !important;
    border: 2px solid #D5D5D5 !important;
}

.testimonial-carousel .owl-dot.active {
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
}

/* Estilos para los enlaces en el footer */
.footer .btn.btn-link {
    color: #FFFFFF !important;
}

.footer .btn.btn-link::before {
    color: #FFFFFF !important;
}

.footer .btn.btn-link:hover {
    color: var(--primary) !important;
}

/* Estilos específicos para los botones de redes sociales en el footer */
.footer .d-flex.pt-2 a {
    border: none !important;
    background-color: transparent !important;
}

.footer .d-flex.pt-2 a i,
.topbar .h-100.d-inline-flex.align-items-center.mx-n2 a i {
    color: var(--primary) !important;
}

/* Corregir colores de enlaces en la topbar */
.container-fluid.bg-dark.text-light a {
    color: #FFFFFF !important;
}

/* Cambiar los inputs de formularios a fondo blanco */
.form-control.border-0.bg-light,
input.form-control,
textarea.form-control,
select.form-control,
.form-control,
.input-group input,
.form-floating input,
.form-floating textarea {
    background-color: #FFFFFF !important;
    border: 1px solid #ced4da !important;
}

/* Estilo para los inputs del newsletter en el footer */
.footer .input-group input,
.footer .input-group .form-control,
.footer .form-control {
    background-color: #FFFFFF !important;
    border-color: #FFFFFF !important;
    color: #333333 !important;
}

/* Estilo para botones de tipo submit/enviar */
button[type="submit"], 
input[type="submit"],
.btn-submit {
    background-color: #000000 !important;
    color: #FFFFFF !important;
    border-color: #000000 !important;
    transition: all 0.3s ease !important;
}

button[type="submit"]:hover, 
input[type="submit"]:hover,
.btn-submit:hover {
    background-color: #000000 !important;
    color: var(--primary) !important;
    border-color: #000000 !important;
}

/* Corrección para los iconos en la sección "¿Por qué elegirnos?" */
.about .fa-check-circle,
.about .fa-check-square,
.about .fa-check {
    color: #FFFFFF !important;
    background-color: var(--primary) !important;
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0;
}

.about [class*="col-"] [class*="fa-"] {
    width: auto;
    height: auto;
    background-color: transparent !important;
}

.about [class*="col-"] i.text-primary {
    color: var(--primary) !important;
}

/* Específicamente para los cuadrados rojos con checkmarks blancos */
[class*="fa-check"].text-white,
.bg-primary .fa-check,
.btn-square.bg-primary i.text-white,
.flex-shrink-0.btn-square.bg-primary .fa-check {
    color: #FFFFFF !important;
}

/* Corrección específica para la sección ¿Por qué elegirnos? */
.container .d-flex .flex-shrink-0.btn-square.bg-primary {
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Arreglo para los checkboxes en la sección de valores */
.col-sm-6 .d-flex .flex-shrink-0.btn-square.bg-primary .fa-check {
    color: #FFFFFF !important;
    font-size: 16px;
}

/* Corrección para la sección de productos */
.container-xxl.py-6 {
    padding-bottom: 5rem !important;
}

/* Ajuste específico para las tarjetas de productos */
.courses-item {
    height: 100%;
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
}

.courses-item .text-center {
    flex: 1 0 auto;
}

.courses-item .position-relative {
    flex: 0 0 auto;
    height: auto; /* Cambiado de altura fija a automática */
    max-height: 250px;
    overflow: hidden;
    margin-top: auto;
}

.courses-item .position-relative img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    aspect-ratio: 16/9;
}

/* Ajuste para las imágenes en la sección de productos */
.img-fluid {
    max-width: 100%;
    height: auto;
}

/* Mejora de la estructura de productos */
.row.g-4.justify-content-center {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -12px;
}

.row.g-4.justify-content-center > [class*="col-"] {
    padding: 0 12px;
    margin-bottom: 24px;
    display: flex;
}

/* Ajuste para el espaciado entre secciones */
.container-xxl:not(:last-child) {
    margin-bottom: 2rem;
}

/* Corregir fondos de elementos del menú desplegable */
.dropdown-menu .dropdown-item {
    background-color: #FFFFFF !important;
    color: #000000 !important;
}

.dropdown-menu .dropdown-item:hover,
.dropdown-menu .dropdown-item:focus,
.dropdown-menu .dropdown-item:active {
    background-color: var(--primary) !important;
    color: #FFFFFF !important;
}

/* Cambio para las imágenes pequeñas en las secciones */
.position-absolute.top-0.start-0.bg-white,
.position-absolute.top-0.end-0.bg-white {
    background-color: var(--light) !important;
}

/* Asegurarse que todas las instancias de estas imágenes pequeñas tengan fondo gris */
.position-relative .position-absolute[class*="bg-white"] {
    background-color: var(--light) !important;
}

/* Específicamente para la imagen pequeña mostrada en la sección "Sobre Nosotros" */
img.position-absolute.top-0.start-0.bg-white {
    background-color: var(--light) !important;
}

/* Específicamente para la imagen pequeña mostrada en la sección "¿Por Qué Elegirnos?" */
img.position-absolute.top-0.end-0.bg-white {
    background-color: var(--light) !important;
}

/* Estilos para el carrusel de clientes */
.client-carousel {
    background-color: transparent;
    padding: 20px 0;
    border-radius: 0;
    box-shadow: none;
}

.client-item {
    padding: 10px;
    transition: all 0.3s ease;
}

.client-item:hover {
    transform: scale(1.1);
}

.client-item img {
    filter: none !important;
}

.client-item:hover img {
    filter: none !important;
}

h6.text-primary.text-uppercase.text-center.mb-4 {
    margin-bottom: 15px !important;
    font-weight: 600;
    letter-spacing: 1px;
}

/* Ajustar espaciado para mejor separación entre secciones */
.container-fluid.py-4 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
}

/* Estilos para el hero del index con background-attachment fixed */
.container-fluid.p-0.wow.fadeIn #header-carousel .carousel-inner .carousel-item {
    background-attachment: fixed !important;
}

#header-carousel .carousel-item img {
    background-attachment: fixed !important;
}

/* Estilos para los headers de las demás páginas con background-attachment fixed */
.container-fluid.page-header {
    background-attachment: fixed !important;
}

/* Modificación específica para el fondo de page-header manteniendo la imagen pero con attachment fixed */
.page-header {
    background: linear-gradient(rgba(0, 0, 0, .75), rgba(0, 0, 0, .75)), url(../img/carousel-1.jpg) center center no-repeat !important;
    background-attachment: fixed !important;
    background-size: cover !important;
}

/* Ocultar el título del carrusel de clientes */
h6.text-primary.text-uppercase.text-center.mb-4 {
    display: none;
}

/* Unificar transiciones hover en toda la web */
.btn, .btn-primary, .btn-outline-primary, .btn-link,
.team-member-card, .team-img img, .team-overlay, .product-item, .product-item img, .testimonial-carousel .owl-dot, .team-card, .team-info, .team-img, .team-title, .team-caption, .team-item, .team-social, .team-item::after,
.nav-link, .footer .btn.btn-link, a,
input, textarea, select, .form-control, .owl-dot, .owl-nav button {
  transition: var(--afix-hover-transition) !important;
}

/* Estilos armonizados para títulos, subtítulos y textos */
h1, .display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
  font-family: 'Work Sans', Arial, sans-serif;
  font-weight: 700;
  letter-spacing: -1px;
  color: #000;
  margin-bottom: 1rem;
}

h2, .section-title, .team-title h2 {
  font-family: 'Work Sans', Arial, sans-serif;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

h3, h4, h5, h6, .text-primary.text-uppercase, .member-name, .team-info h5 {
  font-family: 'Work Sans', Arial, sans-serif;
  font-weight: 500;
  color: #232323;
  text-transform: none;
  margin-bottom: 0.5rem;
}

.section-subtitle, .text-danger, .team-info p, .member-desc, .team-title p, .team-caption p, .team-quote, .team-info .text-danger, .team-info .mb-1 {
  font-family: 'Work Sans', Arial, sans-serif;
  font-weight: 400;
  color: #666;
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.text-primary, .text-danger, .team-info .text-danger {
  color: var(--primary) !important;
}

/* Ajuste para subtítulos en mayúscula */
.text-uppercase, .section-subtitle, h6 {
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--primary);
}

/* Ajuste para textos generales */
p, li, .member-desc, .team-quote {
  font-family: 'Work Sans', Arial, sans-serif;
  font-size: 1rem;
  color: #444;
  line-height: 1.7;
}

/* Carousel backgrounds */
.afix-carousel-bg {
  height: 70vh;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}
.afix-carousel-caption {
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
}

/* Facts min-height */
.afix-minh-150 { min-height: 150px; }

/* Icon circle */
.afix-circle-60 {
  width: 60px;
  height: 60px;
}

/* About/Process/Feature collage */
.afix-minh-400 { min-height: 400px; }
.afix-img-200 { width: 200px; height: 200px; }
.afix-img-cover { object-fit: cover; }
.afix-img-square { width: 100%; height: 100%; aspect-ratio: 1/1; }

/* Section max-widths */
.afix-maxw-600 { max-width: 600px; }
.afix-maxw-700 { max-width: 700px; }
.afix-maxw-800 { max-width: 800px; }
.afix-maxw-500 { max-width: 500px; }

/* Testimonial quote icon */
.afix-quote-circle { width: 60px; height: 60px; }

/* Client logos */
.afix-client-logo { max-height: 45px; width: auto; object-fit: contain; }

/* Footer logo margin */
.afix-mt-06 { margin-top: 0.6rem; }

/* Footer contact text */
.afix-footer-contact { color: #fff; }

/* Contact/Appointment section titles */
.afix-section-subtitle {
  letter-spacing: 1.5px;
  font-size: 0.95rem;
  font-weight: 600;
}
.afix-section-title {
  font-weight: 800;
}

/* Contact textarea height */
.afix-textarea-120 { height: 120px; }
.afix-textarea-100 { height: 100px; }

/* Contact features */
.afix-contact-feature { background: none; padding-left: 0; }

/* Google maps min height */
.afix-map-minh { min-height: 350px; }

/* Centered section */
.afix-center { text-align: center; margin-left: auto; margin-right: auto; }

/* Section with h-100 override */
.afix-h-480 { height: 480px !important; }

/* Col-12 49% height for collage */
.afix-h-49 { height: 49%; }

/* Estilos para la nueva sección de 4 pasos */
.steps-carousel-new {
    position: relative;
}

.step-slide {
    position: relative;
    overflow: hidden;
    border-radius: 0;
}

.step-slide img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 0;
    transition: none;
}

.step-overlay {
    position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: 10;
}

.step-badge {
    background-color: var(--primary) !important;
    color: #fff !important;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border: none;
}

.step-badge h5, .step-badge p {
    color: #fff !important;
}

/* Estilos para la lista de pasos */
.steps-list .step-item {
    transform: none;
}

.step-number {
    background-color: var(--primary) !important;
    color: white !important;
    font-weight: bold;
    font-size: 1.1rem;
    min-width: 40px;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Ajustes para el carrusel de pasos */
.steps-carousel-new .owl-nav {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    transform: translateY(-50%);
    z-index: 10;
}

.steps-carousel-new .owl-prev,
.steps-carousel-new .owl-next {
    position: static;
    background-color: var(--primary) !important;
    color: white !important;
    width: 50px;
    height: 50px;
    border-radius: 0;
    border: 2px solid #fff !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.3s ease;
    pointer-events: auto;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    margin: 0 10px;
}

.steps-carousel-new .owl-prev:hover,
.steps-carousel-new .owl-next:hover {
    background-color: var(--primary) !important;
    transform: scale(1.1);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

.steps-carousel-new .owl-prev i,
.steps-carousel-new .owl-next i {
    color: #fff !important;
    font-weight: bold;
}

/* Responsive para la sección de pasos */
@media (max-width: 991px) {
    .steps-carousel-new .owl-prev {
        left: 10px;
    }
    .steps-carousel-new .owl-next {
        right: 10px;
    }
    .step-slide img {
        height: 300px;
    }
    /* Apilar columnas en mobile */
    .container-fluid.bg-dark .row.align-items-center {
        flex-direction: column !important;
    }
    .container-fluid.bg-dark .col-lg-5,
    .container-fluid.bg-dark .col-lg-7 {
        max-width: 100%;
        flex: 0 0 100%;
        padding-left: 0;
        padding-right: 0;
    }
    .steps-list {
        padding: 0 10px 20px 10px;
    }
}

/* Ajuste para mover el carousel hacia la derecha */
.container-fluid.bg-dark .col-lg-7 {
    padding-left: 30px;
}

@media (max-width: 991px) {
    .container-fluid.bg-dark .col-lg-7 {
        padding-left: 0;
    }
}

@media (max-width: 767px) {
    .step-slide img {
        height: 200px;
    }
    .step-overlay {
        bottom: 8px;
        right: 8px;
    }
    .step-badge {
        padding: 6px 10px !important;
        font-size: 0.9rem;
        min-width: 90px;
        max-width: 90vw;
        box-sizing: border-box;
    }
    .steps-list {
        padding: 0 5px 15px 5px;
    }
    .steps-list .step-item {
        margin-bottom: 18px;
    }
    .steps-list .step-item:last-child {
        margin-bottom: 0;
    }
    .container-fluid.bg-dark .display-6 {
        font-size: 2rem;
    }
    .container-fluid.bg-dark .text-primary {
        font-size: 1rem;
    }
    /* Catálogo responsivo en mobile */
    .product-carousel .product-grid .row.g-4 {
        flex-direction: column !important;
        gap: 0 !important;
    }
    .product-carousel .product-grid .row.g-4 > .col-md-4 {
        max-width: 100%;
        flex: 0 0 100%;
        margin-bottom: 20px;
    }
    .product-item {
        min-height: 220px;
        height: auto;
        overflow: visible !important;
        display: block;
    }
    .product-item img {
        width: 100%;
        height: auto;
        min-height: 180px;
        object-fit: contain;
    }
    .owl-carousel.product-carousel {
        min-height: 250px;
        display: block !important;
        overflow: visible !important;
    }
    .product-carousel .owl-stage-outer {
        min-height: 250px;
        overflow: visible !important;
    }
    .product-carousel .owl-item {
        min-height: 250px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
    }
} 