*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden !important;
}

:root {
  --blue: #29b6e8;
  --blue-dark: #1a7fb5;
  --white: #ffffff;
  --overlay: rgba(10, 20, 35, 0.62);
}

body {
  font-family: "Poppins", sans-serif;
  background: #FFFFFF;
  min-height: 100vh;
  overflow-x: hidden !important;
}

/* ── HEADER CUSTOM NAV ── */
@media (max-width: 991.98px) {
  .nav-custom-pill {
    border-radius: 1rem !important;
    padding: 1rem !important;
  }
}
@media (min-width: 992px) {
  .nav-custom-pill {
    border-radius: 50rem !important;
  }
}
.custom-nav-link {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}
.custom-nav-link:hover {
    color: #ffc107 !important;
}

.navbar-logo {
    height: 42px;
    object-fit: contain;
    transition: height 0.3s ease;
}

.navbar-divider {
    height: 38px;
    width: 1px;
    background-color: #707070;
    margin: 0 20px;
    transition: all 0.3s ease;
}

/* ── SLIDER CUSTOM ANIMATIONS & STYLES ── */
#slider .carousel-indicators {
    margin-bottom: 2rem;
}
#slider .carousel-indicators [data-bs-target] {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.8);
    opacity: 0.8;
    margin: 0 6px;
    padding: 0;
    transition: all 0.3s ease;
}
#slider .carousel-indicators .active {
    background-color: #ffc107;
    border-color: #ffc107;
    opacity: 1;
    transform: scale(1.2);
}


@keyframes imgZoom {
    from { transform: scale(1.05); }
    to { transform: scale(1); }
}

#slider .carousel-item .slider-bg {
    filter: brightness(0.65);
    transition: transform 6s ease-out;
}

/* Hide content by default and during transitions */
#slider .carousel-item .slider-title,
#slider .carousel-item .slider-divider,
#slider .carousel-item .slider-subtitle,
#slider .carousel-item .slider-btn,
#slider .carousel-item-next .slider-title,
#slider .carousel-item-prev .slider-title,
#slider .carousel-item-start .slider-title,
#slider .carousel-item-end .slider-title {
    opacity: 0;
    visibility: hidden;
}

#slider .carousel-item.active .slider-bg {
    animation: imgZoom 6s ease-out both;
}

/* Use animation to show content only when active */
#slider .carousel-item.active .slider-title { animation: textFadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) 0.4s both; }
#slider .carousel-item.active .slider-divider { animation: textFadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) 0.6s both; }
#slider .carousel-item.active .slider-subtitle { animation: textFadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) 0.8s both; }
#slider .carousel-item.active .slider-btn { animation: textFadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) 1s both; }

/* Keyframe must handle visibility */
@keyframes textFadeInUp {
    from { 
        opacity: 0; 
        transform: translateY(30px);
        visibility: visible;
    }
    to { 
        opacity: 1; 
        transform: translateY(0);
        visibility: visible;
    }
}

.slider-subtitle-box {
    background: rgba(217, 217, 217, 0.351); 
    backdrop-filter: blur(12px); 
    -webkit-backdrop-filter: blur(12px); 
    max-width: 800px; 
    font-size: clamp(0.85rem, 1.2vw, 1.05rem); 
    font-weight: 400;
    line-height: 1.6;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ── MANTENIMIENTO SECTION ── */
#manteni {
    background-color: #ffffff;
    overflow: hidden;
    padding: 100px 0;
}

#manteni .label-maintenance {
    letter-spacing: 3px;
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    font-weight: 700;
}

#manteni .title-maintenance {
    font-size: clamp(2.5rem, 4vw, 3.8rem);
    line-height: 1.1;
    font-weight: 700;
    margin-bottom: 2rem;
}

#manteni .description-maintenance {
    color: #555;
    line-height: 1.7;
    max-width: 520px;
    margin-bottom: 3rem;
    font-size: 1.05rem;
}

.contact-pill {
    display: inline-flex;
    align-items: center;
    background: #fff;
    border: 1px solid #e2e2e2;
    border-radius: 100px;
    padding: 18px 45px;
    box-shadow: 0 12px 35px rgba(0,0,0,0.04);
    max-width: 100%;
}

.phone-icon-wrapper {
    position: relative;
    width: 65px;
    height: 65px;
    margin-right: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.phone-icon-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.contact-info-text {
    display: flex;
    flex-direction: column;
}

.contact-label {
    font-size: 0.95rem;
    font-weight: normal;
    color: #ffc107;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.phone-numbers {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.phone-item {
    font-size: 1.35rem;
    font-weight: 500;
    color: #222;
    display: flex;
    align-items: center;
}

.phone-dot {
    color: #ffc107;
    font-size: 2rem;
    margin-right: 10px;
    line-height: 0;
}

#manteni .image-composition {
    position: relative;
    padding: 40px;
}

#manteni .parts-image {
    position: relative;
    z-index: 1;
}

@media (max-width: 991.98px) {
    #manteni .image-composition {
        margin-top: 50px;
    }
    #manteni .title-maintenance {
        font-size: 2.5rem;
    }
    #manteni .phone-numbers {
        gap: 10px;
    }
}

/* ── COMPATIBILITY SECTION ── */
#compatibility {
    background-color: #ffffff;
    padding: 80px 0;
}

#compatibility .title-compatibility {
    font-size: clamp(2rem, 3.5vw, 3rem);
    font-weight: 300;
    margin-bottom: 1.5rem;
}

#compatibility .description-compatibility {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 4rem;
}

#compatibility .marcas-img {
    max-width: 100%;
    height: auto;
    filter: brightness(0) saturate(100%) invert(20%) sepia(5%) saturate(100%) hue-rotate(0deg) brightness(95%) contrast(85%);
    opacity: 0.85;
    transition: all 0.3s ease;
}

#compatibility .marcas-img:hover {
    opacity: 1;
    filter: none;
}

/* ── SERVICIO SECTION ── */
#servC {
    background-color: #ffffff;
    padding: 100px 0;
    overflow: hidden;
}

#servC .label-service {
    letter-spacing: 2px;
    font-size: 0.85rem;
    color: #555;
    margin-bottom: 1rem;
    text-transform: uppercase;
    font-weight: 600;
}

#servC .title-service {
    font-size: clamp(2.2rem, 3.3vw, 3.6rem);
    line-height: 1.1;
    font-weight: normal;
    margin-bottom: 2rem;
    color: #333;
}

#servC .description-service {
    color: #444;
    line-height: 1.7;
    max-width: 580px;
    margin-bottom: 3rem;
    font-size: 0.95rem;
}

#servC .img-composition-service {
    position: relative;
    padding: 20px;
}

#servC .shape-yellow {
    position: absolute;
    top: 5%;
    left: 15%;
    width: 60%;
    height: 90%;
    background-color: #ffc107;
    border-radius: 30px;
    transform: rotate(-10deg);
    z-index: 0;
}

#servC .shape-gray {
    position: absolute;
    top: 20%;
    left: 30%;
    width: 50%;
    height: 70%;
    background-color: #e9ecef;
    border-radius: 30px;
    transform: rotate(5deg);
    z-index: 0;
}

#servC .service-image {
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 20px 30px rgba(0,0,0,0.1));
}

@media (max-width: 991.98px) {
    #servC .img-composition-service {
        margin-bottom: 50px;
    }
}

.service-item-box {
    display: flex;
    align-items: center;
    width: 100%;
    justify-content: center;
}

.service-icon {
    width: 50%;
    flex-shrink: 0;
    display: flex;
    justify-content: flex-end;
    padding-right: 15px;
}

.service-icon img {
    max-height: 48px;
    width: auto;
}

.service-text {
    width: 50%;
    text-align: left;
    padding-left: 0; /* Already has padding from the icon side if needed, but keeping it clean */
}

.service-text p {
    margin-bottom: 0;
    line-height: 1.2;
    font-weight: 600;
    font-size: 1.05rem;
    color: #333;
}

/* ── QUIÉNES SOMOS SECTION ── */
#excel {
    background-color: #ffffff;
    padding: 100px 0;
}

#excel .label-who {
    font-size: 0.85rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

#excel .title-who {
    font-size: clamp(2.5rem, 2vw, 3.5rem);
    line-height: 1.1;
    font-weight: normal;
    margin-bottom: 3rem;
}

#excel .img-who-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
}

#excel .img-who {
    width: 100%;
    height: auto;
    display: block;
}

#excel .history-box {
    background-color: #f8f9fa;
    border: 1px solid #eee;
    border-radius: 30px;
    padding: 40px;
    margin-bottom: 30px;
}

#excel .history-text {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #444;
}

#excel .btn-contact-who {
    border: 1px solid #333;
    color: #333;
    border-radius: 50px;
    padding: 10px 30px;
    font-size: 0.85rem;
    text-transform: uppercase;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: 20px;
}

#excel .btn-contact-who:hover {
    background-color: #333;
    color: #fff;
}

#excel .legal-card {
    background-color: #f8f9fa;
    border: 1px solid #eee;
    border-left: 6px solid #ffc107;
    border-radius: 12px;
    padding: 20px 25px;
    margin-bottom: 15px;
    transition: transform 0.3s ease;
}

#excel .legal-card:hover {
    transform: translateX(10px);
}

#excel .legal-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #222;
    margin-bottom: 5px;
}

#excel .legal-desc {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.4;
    margin-bottom: 0;
}

@media (max-width: 991.98px) {
    #excel .img-who-wrapper {
        margin-bottom: 50px;
    }
}

/* ── COBERTURA SECTION ── */
#cobertura {
    background-color: #ffffff;
    padding: 100px 0;
}

#cobertura .label-cobertura {
    font-size: 0.85rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

#cobertura .title-cobertura {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    line-height: 1.1;
    font-weight: normal;
    margin-bottom: 3rem;
}

#cobertura .map-container {
    position: relative;
    width: 100%;
}

#cobertura .map-image {
    width: 100%;
    height: auto;
    transition: transform 0.4s ease;
}

#cobertura .map-image:hover {
    transform: scale(1.03);
}

#cobertura .logo-zoom {
    transition: transform 0.4s ease;
}

#cobertura .logo-zoom:hover {
    transform: scale(1.1);
}

#cobertura .coverage-logos {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: -60px;
    position: relative;
    z-index: 5;
    padding-left: 20px;
}

#cobertura .description-cobertura {
    color: #444;
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 2rem;
}

#cobertura .text-highlight {
    font-weight: 700;
}

@media (max-width: 991.98px) {
    #cobertura .map-container {
        margin-bottom: 50px;
    }
    #cobertura .coverage-logos {
        margin-top: 20px;
        flex-direction: row;
        align-items: center;
        justify-content: center;
    }
}

/* ── VIDEO SECTION ── */
#video {
    padding: 60px 0;
    background-color: #ffffff;
}

#video .video-wrapper {
    max-width: 1000px;
    margin: 0 auto;
}

#video .video-image {
    border: 8px solid #fff;
    transition: transform 0.3s ease;
}

#video .video-image:hover {
    transform: scale(1.01);
}

/* ── CONFIANZA SECTION ── */
#confianza {
    background-color: #ffffff;
    padding: 100px 0;
}

#confianza .label-trust {
    font-size: 0.85rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

#confianza .title-trust {
    font-size: clamp(2.5rem, 4.5vw, 3.5rem);
    line-height: 1.1;
    font-weight: normal;
    margin-bottom: 2rem;
    color: #222;
}

#confianza .description-trust {
    color: #555;
    line-height: 1.7;
    max-width: 580px;
    margin-bottom: 3rem;
    font-size: 0.95rem;
}

#confianza .stats-row {
    display: flex;
    gap: 50px;
    margin-top: 40px;
    flex-wrap: wrap;
}

#confianza .stat-item {
    display: flex;
    flex-direction: column;
}

#confianza .stat-number {
    font-size: 4rem;
    font-weight: 400;
    color: #ffc107;
    line-height: 1;
    margin-bottom: 10px;
}

#confianza .stat-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#confianza .img-trust {
    width: 100%;
    border-radius: 40px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.1);
}

@media (max-width: 991.98px) {
    #confianza .img-trust {
        margin-top: 50px;
    }
    #confianza .stats-row {
        gap: 30px;
        justify-content: center;
        text-align: center;
    }
}

/* ── COTIZA SECTION ── */
#cotiza {
    background-color: #ffffff;
    padding: 100px 0;
}

#cotiza .label-cotiza {
    font-size: 0.85rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

#cotiza .title-cotiza {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    line-height: 1.1;
    font-weight: 500;
    margin-bottom: 1rem;
    color: #222;
}

#cotiza .subtitle-cotiza {
    color: #999;
    font-size: 0.85rem;
    margin-bottom: 4rem;
}

#cotiza .img-cotiza {
    width: 100%;
}

#cotiza .contact-card {
    background: #fff;
    border: 1px solid #e2e2e2;
    border-radius: 60px;
    padding: 25px 40px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
}

#cotiza .contact-card:hover {
    box-shadow: 0 15px 35px rgba(0,0,0,0.05);
    border-color: #ffc107;
}

#cotiza .card-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #ffc107;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
    display: block;
}

#cotiza .card-info {
    font-size: 1rem;
    color: #333;
    font-weight: 500;
    margin: 0;
}

#cotiza .card-phone-list {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

#cotiza .card-phone-item {
    display: flex;
    align-items: center;
    font-size: 0.95rem;
    color: #333;
}

#cotiza .card-phone-dot {
    color: #ffc107;
    font-size: 1.2rem;
    margin-right: 8px;
    line-height: 0;
}

#cotiza .plus-icon-wrapper {
    width: 45px;
    height: 45px;
    background-color: #ffc107;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.5rem;
    flex-shrink: 0;
}

@media (max-width: 991.98px) {
    #cotiza .img-cotiza {
        margin-bottom: 50px;
    }
    #cotiza .contact-card {
        padding: 20px 30px;
        border-radius: 30px;
    }
}

/* ── FOOTER SECTION ── */
#foot {
    background-color: #ffffff;
    padding: 60px 0 40px;
}

#foot .footer-separator {
    height: 1px;
    background-color: #e0e0e0;
    margin-bottom: 40px;
}

#foot .footer-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

#foot .footer-bottom-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    flex-wrap: wrap;
    gap: 20px;
}

#foot .footer-tagline {
    font-size: 0.9rem;
    color: #999;
    margin: 0;
}

#foot .footer-copyright {
    font-size: 0.85rem;
    color: #999;
    margin: 0;
}

#foot .branch-title {
    font-size: 0.75rem;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.2rem;
    font-weight: 600;
}

#foot .branch-name {
    font-size: 0.85rem;
    font-weight: 700;
    color: #666;
    margin-bottom: 0.3rem;
    text-transform: uppercase;
}

#foot .branch-address {
    font-size: 0.8rem;
    color: #888;
    line-height: 1.5;
    margin-bottom: 0.2rem;
}

#foot .branch-tel {
    font-size: 0.8rem;
    color: #888;
    text-decoration: none;
    transition: color 0.3s ease;
}

#foot .branch-tel:hover {
    color: #ffc107;
}

#foot .social-links {
    display: flex;
    gap: 15px;
}

#foot .social-item {
    width: 40px;
    height: 40px;
    border: 1px solid #ccc;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1rem;
}

#foot .social-item:hover {
    border-color: #ffc107;
    color: #ffc107;
    transform: translateY(-3px);
}

.dosrem{
    font-size: 3rem !important;
}

@media (max-width: 768px) {
    #foot .footer-top-row,
    #foot .footer-bottom-row {
        flex-direction: column;
        text-align: center;
    }
    #foot .footer-logos {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 20px;
        margin-bottom: 25px;
    }
    #foot .footer-logos img {
        margin: 0 !important;
    }

    .navbar-brand .navbar-logo {
        height: 34px !important;
        width: auto !important;
    }
    .navbar-divider {
        height: 22px !important;
        margin: 0 8px !important;
    }

    .dosrem{
        font-size: 2.5rem !important;
    }

    /* Catalog Mobile Carousel */
    #catalog .catalog-item {
        display: none !important;
    }
    #catalog .catalog-item.active-mobile {
        display: block !important;
    }
    
    .catalog-nav-btn {
        width: 45px;
        height: 45px;
        display: flex;
        align-items: center;
        justify-content: center;
        border: 1.5px solid #333;
        border-radius: 50%;
        background: transparent;
        color: #333;
        transition: all 0.2s ease;
    }
    .catalog-nav-btn:active {
        background-color: #ffc107;
        border-color: #ffc107;
    }
    .catalog-counter {
        font-weight: 700;
        font-size: 1.1rem;
        min-width: 80px;
        text-align: center;
    }

    .hiddenPhone{
        display: none !important;
    }
    .showPhone{
        display: block !important;
    }

    .saltarPhone{
        display: block;
        margin-left: auto !important;
        margin-right: auto !important;
        margin-bottom: 30px !important;
        width: 160px !important;
        height: auto !important;
        max-height: none !important;
        object-fit: contain;
    }

    .contact-pill{
        border-radius: 30px;
    }
}

.navbar {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar-scrolled {
    margin-top: 12px !important;
}

@media (min-width: 992px) {
    .navbar-scrolled {
        margin-top: 12px !important;
    }
}

/* ── NAVIGATION ACTIVE STATE ── */
.custom-nav-link {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    padding: 8px 18px !important;
    border-radius: 50rem;
    color: #fff !important;
}

.custom-nav-link:hover {
    color: #ffc107 !important;
}

.custom-nav-link.active {
    background-color: #ffc107;
    color: #000 !important;
}

.custom-nav-link.inactive-inicio {
    background-color: transparent !important;
    color: #fff !important;
}

.nav-custom-pill .btn:hover {
    filter: brightness(1.1);
}

@media (max-width: 991.98px) {
    .custom-nav-link {
        width: 100%;
        text-align: center;
        padding: 12px !important;
    }
}
