@font-face {
    font-family: 'Nexa Slab';
    src: url('../fonts/NexaSlab-Regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Nexa Slab';
    src: url('../fonts/NexaSlab-Bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
}

:root {
    --primary-color: #FFB600;
    --secondary-color: #393D47;
    --light-bg: #f9f9f9;
    --dark-footer: #2a2d35;
}

* {
    font-family: "Verdana";
}

body {
    color: var(--secondary-color);
    background-color: #ffffff;
}

/* HEADER Y NAVEGACIÓN */
nav.navbar {
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: transparent;
    box-shadow: none;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

nav.navbar.scrolled {
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

nav.navbar:not(.scrolled) .nav-link {
    color: #ffffff !important;
}

nav.navbar.scrolled .nav-link {
    color: var(--dark-footer) !important;
}

nav.navbar .container {
    background-color: transparent;
}

.navbar-brand {
    padding: 0 !important;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.05rem rgba(255, 182, 0, 0.5);
}

.logo-img {
    height: 40px;
    width: auto;
}

.logo-text {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

.navbar-nav .nav-link {
    color: var(--dark-footer) !important;
    font-size: 16px;
    transition: color 0.3s ease;
    position: relative;
    font-weight: 400;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover::after {
    width: 100%;
}

.navbar-toggler {
    border-color: var(--primary-color) !important;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23FFB600' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* HERO SECTION */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    color: #ffffff;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-left: clamp(72px, 8vw, 120px);
    box-sizing: border-box;
    z-index: 1;
}

.hero-slide.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            rgb(0 0 0 / 82%) 0%,
            rgb(0 0 0 / 78%) 25%,
            rgb(0 0 0 / 72%) 50%,
            rgb(0 0 0 / 68%) 100%);
    z-index: 2;
    pointer-events: none;
}

.hero-slide .hero-content {
    position: relative;
    z-index: 3;
    text-align: left;
    padding: 40px;
    max-width: 1044px;
    margin-left: 0;
}

.hero-title {
    font-size: 50px;
    margin-bottom: 20px;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
}

.hero-title-p1 {
    color: var(--primary-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
}

.hero-subtitle {
    font-size: 22px;
    margin-bottom: 40px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.hero-cta {
    display: flex;
    gap: 20px;
    justify-content: flex-start;
}

/* Hero Carousel Controls */
.hero-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 4;
    background-color: transparent;
    border: none;
    color: #ffffff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.hero-control:hover {
    transform: translateY(-50%) scale(1.1);
}

.hero-control svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
}

.hero-control-prev {
    left: 30px;
}

.hero-control-next {
    right: 30px;
}

/* MARCAS MARQUEE SECTION */
.brands-marquee {
    padding: 60px 0;
    background-color: #ffffff;
    overflow: hidden;
}

.marquee {
    overflow: hidden;
    padding: 20px 0;
}

.marquee-content {
    display: flex;
    align-items: center;
    gap: 40px;
    animation: scroll 30s linear infinite;
    width: fit-content;
}

.marquee-content img {
    height: 80px;
    width: auto;
    object-fit: contain;
    flex-shrink: 0;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.marquee-content img:hover {
    filter: grayscale(0%);
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/**********************************/
/* BOTONES SOBREESCRITOS DE BOOTSTRAP */

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color) !important;
    color: white;
    /*sombra al texto*/
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6);
    transition: background-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.btn-outline-primary {
    border-color: var(--primary-color) !important;
    color: white;
    background-color: transparent;
    transition: background-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}


/* SECCIÓN DE CARACTERÍSTICAS */
.features {
    padding: 80px 0;
    background-color: var(--light-bg);
}

.section-title {
    font-size: 44px;
    text-align: center;
    margin-bottom: 60px;
    color: var(--secondary-color);
    font-weight: 700;
}

.section-title span {
    color: var(--primary-color);
}

.feature-card {
    background-color: #ffffff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-left: 5px solid var(--primary-color);
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.feature-card h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.feature-card p {
    font-size: 16px;
    line-height: 1.6;
    color: #666;
    margin-bottom: 0;
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

/* SECCIÓN DE PRODUCTOS */
.products {
    padding: 80px 0;
    background-color: #ffffff;
}

.product-card {
    background-color: var(--light-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    height: 100%;
}

.product-card:hover {
    transform: scale(1.05);
}

.product-carousel {
    position: relative;
    width: 100%;
    height: 250px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #ffc933 100%);
    overflow: hidden;
}

.product-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.35s ease;
}

.product-slide.active {
    opacity: 1;
}

.product-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.35);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.product-control:hover {
    background: rgba(0, 0, 0, 0.5);
    transform: translateY(-50%) scale(1.05);
}

.product-control:focus {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

.product-control.prev {
    left: 12px;
}

.product-control.next {
    right: 12px;
}

.product-info {
    padding: 25px;
}

.product-info h4 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.product-info p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 0;
}

/* SECCIÓN CTA */
.cta-section {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #4a4f5c 100%);
    padding: 80px 0;
    text-align: center;
    color: #ffffff;
}

.cta-section h2 {
    font-size: 44px;
    margin-bottom: 30px;
    font-weight: 700;
}

.cta-section p {
    font-size: 18px;
    margin-bottom: 40px;
    opacity: 0.9;
}

.cta-section .cta-button {
    background-color: var(--primary-color);
    color: var(--secondary-color);
}

.cta-section .cta-button:hover {
    color: var(--secondary-color);
}

/* FOOTER */
footer {
    background-color: var(--dark-footer);
    color: #ffffff;
    padding: 50px 0 20px;
    font-size: 14px;
}

.footer-section h4 {
    font-size: 16px;
    margin-bottom: 20px;
    color: var(--primary-color);
    font-weight: 700;
}

.footer-section p {
    margin-bottom: 0;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    color: #cccccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--primary-color);
}

.footer-section .bi {
    color: var(--primary-color);
    font-size: 1rem;
    vertical-align: -0.05em;
}

.footer-bottom {
    border-top: 1px solid #444;
    padding-top: 20px;
    text-align: center;
    opacity: 0.8;
}

/* RESPONSIVE */
@media (max-width: 1440px) {
    .hero-slide .hero-content {
        max-width: 1044px;
    }
}

@media (max-width: 1024px) {
    .hero-slide .hero-content {
        max-width: 735px;
    }
}

@media (max-width: 768px) {
    .hero-slide .hero-content {
        max-width: 678px;
    }
}

@media (max-width: 425px) {
    .hero-slide .hero-content {
        max-width: 270px;
    }
}

@media (max-width: 375px) {
    .hero-slide .hero-content {
        max-width: 250px;
    }
}

@media (max-width: 320px) {
    .hero-slide .hero-content {
        max-width: 250px;
    }
}

@media (max-width: 992px) {
    .hero-title {
        font-size: 42px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .section-title {
        font-size: 36px;
    }

    .cta-section h2 {
        font-size: 36px;
    }

    .marquee-content {
        gap: 30px;
    }

    .marquee-content img {
        height: 70px;
    }

    .hero-control {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }

    .hero-control-prev {
        left: 20px;
    }

    .hero-control-next {
        right: 20px;
    }
}

@media (max-width: 768px) {
    .hero-slide {
        padding-left: clamp(48px, 6vw, 72px);
        background-attachment: scroll;
    }

    .hero {
        min-height: 70vh;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .section-title {
        font-size: 32px;
    }

    .cta-section h2 {
        font-size: 32px;
    }

    .navbar-nav {
        gap: 15px !important;
    }

    .d-flex.gap-lg-5 {
        gap: 1rem !important;
    }

    .feature-card,
    .product-card {
        margin-bottom: 15px;
    }

    .marquee-content {
        gap: 25px;
    }

    .marquee-content img {
        height: 60px;
    }

    .brands-marquee {
        padding: 40px 0;
    }

    .hero-control {
        width: 45px;
        height: 45px;
        font-size: 20px;
    }

    .hero-control-prev {
        left: 15px;
    }

    .hero-control-next {
        right: 15px;
    }
}

@media (max-width: 576px) {
    .hero-slide {
        padding-left: clamp(15px, 5vw, 56px);
    }

    .hero {
        min-height: 60vh;
    }

    .hero-title {
        font-size: 24px;
        margin-bottom: 15px;
    }

    .hero-subtitle {
        font-size: 14px;
        margin-bottom: 25px;
    }

    .section-title {
        font-size: 24px;
        margin-bottom: 40px;
    }

    .cta-button {
        padding: 12px 30px;
        font-size: 14px;
    }

    .feature-card,
    .product-card {
        padding: 25px;
    }

    .product-image {
        height: 200px;
        font-size: 48px;
    }

    .marquee-content {
        gap: 20px;
    }

    .marquee-content img {
        height: 50px;
    }

    .hero-control {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .hero-control-prev {
        left: 10px;
    }

    .hero-control-next {
        right: 10px;
    }
}

/* CHAT FLOTANTE WHATSAPP */
.whatsapp-floating-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: none;
    background: #25d366;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    z-index: 120;
    font-size: 28px;
}

.whatsapp-floating-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 14px 35px rgba(37, 211, 102, 0.25);
}

.chat-widget {
    position: fixed;
    bottom: 90px;
    right: 24px;
    width: 330px;
    max-width: calc(100% - 48px);
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.16);
    overflow: hidden;
    transform: translateY(12px) scale(0.95);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease, transform 0.22s ease;
    z-index: 120;
    display: flex;
    flex-direction: column;
    height: 450px;
}

.chat-widget.open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    background: #1ebe5d;
    color: #ffffff;
    gap: 12px;
}

.chat-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.chat-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #ffffff;
    flex-shrink: 0;
}

.chat-header-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.chat-header-info strong {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
}

.online-status {
    font-size: 11px;
    opacity: 0.9;
    font-weight: 400;
}

.chat-close-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #ffffff;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
    font-size: 18px;
}

.chat-close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.chat-body {
    padding: 16px;
    background: #f8f9fa;
    font-size: 14px;
    color: #4a4a4a;
    line-height: 1.5;
}

.chat-messages {
    padding: 12px 8px;
    background: #ece5dd;
    background-image: url("data:image/svg+xml,%3Csvg width='200' height='200' xmlns='http://www.w3.org/2000/svg'%3E%3Cdefs%3E%3Cstyle%3E.icon%7Bfill:none;stroke:%23999;stroke-width:1;opacity:0.08;%7D%3C/style%3E%3C/defs%3E%3Cg%3E%3C!-- Casco --%3E%3Cpath class='icon' d='M 8 15 L 8 22 L 18 22 L 18 15 Q 18 12 16 12 L 10 12 Q 8 12 8 15'/%3E%3C!-- Martillo --%3E%3Crect class='icon' x='35' y='12' width='2' height='12' transform='rotate(35 36 18)'/%3E%3Crect class='icon' x='32' y='10' width='8' height='6' rx='1'/%3E%3C!-- Tuercas --%3E%3Ccircle class='icon' cx='65' cy='17' r='4'/%3E%3Cpath class='icon' d='M 61 17 L 69 17'/%3E%3C!-- Engranaje --%3E%3Ccircle class='icon' cx='95' cy='18' r='6'/%3E%3Crect class='icon' x='93' y='10' width='4' height='3'/%3E%3Crect class='icon' x='93' y='24' width='4' height='3'/%3E%3C!-- Excavadora --%3E%3Crect class='icon' x='130' y='20' width='18' height='4'/%3E%3Ccircle class='icon' cx='133' cy='26' r='3'/%3E%3Ccircle class='icon' cx='148' cy='26' r='3'/%3E%3Cpath class='icon' d='M 140 20 L 148 10'/%3E%3C!-- Carretilla --%3E%3Crect class='icon' x='15' y='45' width='12' height='10'/%3E%3Ccircle class='icon' cx='22' cy='58' r='3.5'/%3E%3Cline class='icon' x1='22' y1='45' x2='10' y2='35'/%3E%3C!-- Nivel --%3E%3Crect class='icon' x='50' y='48' width='20' height='2' rx='1'/%3E%3Ccircle class='icon' cx='53' cy='49' r='1'/%3E%3Ccircle class='icon' cx='65' cy='49' r='1'/%3E%3C!-- Cinta métrica --%3E%3Ccircle class='icon' cx='95' cy='53' r='5'/%3E%3Cpath class='icon' d='M 100 53 Q 115 53 118 47'/%3E%3C!-- Bloques --%3E%3Crect class='icon' x='140' y='48' width='6' height='6'/%3E%3Crect class='icon' x='148' y='48' width='6' height='6'/%3E%3Crect class='icon' x='144' y='56' width='6' height='6'/%3E%3C!-- Pala --%3E%3Crect class='icon' x='10' y='75' width='1.5' height='12'/%3E%3Cpath class='icon' d='M 9 87 Q 9 92 11.5 92 Q 14 92 14 87'/%3E%3C!-- Tubería --%3E%3Ccircle class='icon' cx='50' cy='82' r='3'/%3E%3Crect class='icon' x='56' y='80' width='12' height='4'/%3E%3Ccircle class='icon' cx='70' cy='82' r='3'/%3E%3C!-- Andamio --%3E%3Crect class='icon' x='100' y='75' width='15' height='1.5'/%3E%3Crect class='icon' x='100' y='75' width='1.5' height='13'/%3E%3Crect class='icon' x='113.5' y='75' width='1.5' height='13'/%3E%3Cline class='icon' x1='101' y1='82' x2='113.5' y2='82'/%3E%3C!-- Destornillador --%3E%3Crect class='icon' x='145' y='73' width='1' height='15'/%3E%3Cpath class='icon' d='M 143.5 88 L 146.5 88 L 146 91 L 143 91'/%3E%3C!-- Tubo --%3E%3Crect class='icon' x='25' y='120' width='4' height='20' rx='1'/%3E%3C!-- Gafas --%3E%3Ccircle class='icon' cx='65' cy='130' r='3'/%3E%3Ccircle class='icon' cx='78' cy='130' r='3'/%3E%3Cline class='icon' x1='68' y1='130' x2='75' y2='130'/%3E%3C!-- Herramientas adicionales --%3E%3Cpath class='icon' d='M 120 115 L 120 135 L 115 125'/%3E%3Cpath class='icon' d='M 155 120 L 165 120 L 160 115'/%3E%3C!-- Más iconos distribuidos --%3E%3Crect class='icon' x='40' y='155' width='3' height='8'/%3E%3Cpath class='icon' d='M 38 163 L 45 163'/%3E%3Ccircle class='icon' cx='85' cy='160' r='2'/%3E%3Ccircle class='icon' cx='90' cy='160' r='2'/%3E%3Ccircle class='icon' cx='87.5' cy='157' r='2'/%3E%3Crect class='icon' x='130' y='155' width='8' height='3'/%3E%3Crect class='icon' x='133' y='152' width='2' height='8'/%3E%3C/g%3E%3C/svg%3E");
    background-size: 200px 200px;
    background-attachment: local;
    height: 300px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.chat-message {
    padding: 8px 12px;
    border-radius: 12px;
    max-width: 80%;
    word-wrap: break-word;
    animation: slideIn 0.3s ease;
    font-size: 13px;
    line-height: 1.4;
}

.chat-message.bot {
    background: #ffffff;
    color: #303030;
    align-self: flex-start;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.06);
}

.chat-message.user {
    background: #dcf8c6;
    color: #000000;
    align-self: flex-end;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.06);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.typing-indicator {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 10px 12px;
    background: #ffffff;
    border-radius: 12px;
    width: fit-content;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.06);
}

.typing-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #999999;
    animation: typing 1.4s infinite;
}

.typing-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0%, 60%, 100% {
        opacity: 0.4;
        transform: translateY(0);
    }
    30% {
        opacity: 1;
        transform: translateY(-6px);
    }
}

.chat-input {
    display: flex;
    gap: 10px;
    padding: 12px 8px;
    border-top: 1px solid #e1e1e1;
    background: #f5f5f5;
    margin-top: auto;
}

.chat-input input {
    flex: 1;
    border: 1px solid #d9d9d9;
    border-radius: 18px;
    padding: 10px 16px;
    font-size: 14px;
    outline: none;
    font-family: inherit;
    background: #ffffff;
}

.chat-input input::placeholder {
    color: #aaaaaa;
}

.chat-input input:focus {
    border-color: #1ebe5d;
    box-shadow: 0 0 0 2px rgba(30, 190, 93, 0.12);
}

.chat-input button {
    border: none;
    background: #1ebe5d;
    color: #ffffff;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    min-width: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
    font-size: 16px;
}

.chat-input button:hover {
    background: #17a84e;
    transform: scale(1.05);
}

.chat-input button:active {
    transform: scale(0.95);
}