/* ==========================
   ESTILOS GENERALES
   ========================== */
@import url('https://fonts.googleapis.com/css2?family=Fira+Sans:wght@400;700&display=swap');

* {
    box-sizing: border-box;
}

body {
    font-family: 'Fira Sans', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

/* ==========================
   ESTILOS BARRA DE NAVEGACIÓN
   ========================== */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.navbar {
    width: 100%;
    background-image: url('../images/kb/pleca.png');
    background-color: #575757;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    padding: 15px 100px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.navbar .logo img {
    height: 90px;
}

.nav-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 90px;
}

.nav-links li a {
    text-decoration: none;
    color: #ffffff;
    font-weight: bold;
    font-size: 1rem;
    padding: 10px;
    transition: color 0.3s ease;
}

.nav-links li a:hover {
    color: #000000;
}

.nav-links li .btn-naranja {
    background-color: #ec630f;
    color: #ffffff;
    font-weight: bold;
    padding: 10px 15px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.nav-links li .btn-naranja:hover {
    background-color: #d85c0e;
}

.menu-toggle {
    display: none;
}

.main-header.scrolled {
    background-color: #ffffff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.main-header.scrolled .nav-links li a {
    color: #000000;
}

/* ==========================
   ESTILOS PARA EL SLIDER DEL BANNER
   ========================== */
.kubota-content.hero-banner {
    position: relative;
    width: 100%;
    /* Ajusta la altura para dejar espacio al navbar, si es necesario */
    height: calc(100vh - 150px); /* Altura para escritorio */
    overflow: hidden;
    margin-top: 150px; /* Margen para evitar solapamiento con el navbar fijo */
}

.slider-container {
    width: 100%;
    height: 100%;
}

.slider-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.slider-track {
    display: flex;
    transition: transform 0.5s ease;
    height: 100%;
}

.slider-slide {
    flex-shrink: 0;
    width: 100%; /* Cada slide ocupa el 100% del ancho del track */
    height: 100%;
    /* Asegura que el contenido del slide no se desborde */
    overflow: hidden;
}

.slider-slide img {
    width: 100%; /* La imagen siempre ocupa el 100% de su slide */
    height: 100%;
    object-fit: cover; /* Recorta la imagen para que cubra todo el espacio sin distorsión */
    display: block;
}

/* Controles de navegación */
.slider-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 2rem;
    z-index: 3;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.slider-control:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.slider-control.prev {
    left: 20px;
}

.slider-control.next {
    right: 20px;
}

/* === Media Query para Móviles (ej: hasta 768px de ancho) === */
@media (max-width: 768px) {
    .kubota-content.hero-banner {
        /* Ajusta la altura del banner para móviles si el navbar es más pequeño */
        height: calc(100vh - 80px); /* Por ejemplo, si el navbar móvil mide 80px */
        margin-top: 80px; /* Ajusta el margen superior para el navbar móvil */
    }

    /* Aseguramos que la imagen del slider ocupe el 100% del ancho en móviles */
    .slider-slide img {
        width: 100%;
        height: 100%; /* Mantener la altura al 100% */
        object-fit: cover;
    }
}

/* === Media Query para pantallas muy grandes (opcional) === */
@media (min-width: 1200px) {
    /* Aquí podrías añadir un max-width al .kubota-content.hero-banner
       si quieres que en monitores muy anchos no se estire demasiado.
       Por ejemplo:
    .kubota-content.hero-banner {
        max-width: 1920px;
        margin-left: auto;
        margin-right: auto;
    }
    */
}
/* ==========================
   ESTILOS DE LA GALERÍA KUBOTA
   ========================== */
.gallery-section {
    padding: 50px 20px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.gallery-section h2 {
    font-family: 'Impact', sans-serif;
    color: #000000;
    font-size: 2.5rem;
    margin-bottom: 50px;
    text-transform: uppercase;
    text-align: left;
}

.gallery-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.gallery-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 20px;
}

.gallery-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #f4f4f4;
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
}

.gallery-row img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 10px;
}

.gallery-row.first-row .gallery-item {
    flex: 1 1 calc(20% - 20px);
}

.gallery-row:not(.first-row) .gallery-item {
    flex: 1 1 calc(25% - 20px);
}

.btn-download {
    display: inline-block;
    padding: 10px 20px;
    background-color: #ec630f;
    color: #ffffff;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    margin-top: auto;
    transition: background-color 0.3s ease;
}

.btn-download:hover {
    background-color: #000000;
}

/* ==========================
   ESTILOS PARA EL ACORDEÓN
   ========================== */
.accordion-section {
    padding: 50px;
    background-color: #ffffff;
}

.section-title {
    text-align: center;
    color: #003a63;
    margin-bottom: 30px;
}

.accordion-container {
    max-width: 900px;
    margin: 0 auto;
}

.accordion-item {
    border: 1px solid #e0e0e0;
    margin-bottom: 10px;
    border-radius: 8px;
    overflow: hidden;
}

.accordion-header {
    background-color: #f8f8f8;
    color: #003a63;
    cursor: pointer;
    padding: 15px 20px;
    width: 100%;
    border: none;
    text-align: left;
    outline: none;
    font-size: 1.2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}

.accordion-header:hover {
    background-color: #e9e9e9;
}

.accordion-header h3 {
    margin: 0;
    color: #003a63;
    font-weight: 700;
}

.accordion-header span {
    font-size: 1.5rem;
    font-weight: bold;
    color: #469e27;
}

.accordion-content {
    background-color: #fafafa;
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
}

.accordion-content.active {
    max-height: 900px;
    padding: 20px;
}

.image-wrapper {
    width: 100%;
    height: 300px;
    overflow: hidden;
    position: relative;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.accordion-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ==========================
   ESTILOS VIDEO
   ========================== */
.video-section {
    width: 100%;
    height: auto;
    overflow: hidden;
}

.full-width-video {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

/* ==========================
   ESTILOS FOOTER
   ========================== */
.main-footer {
    background-image: url('../images/kb/pleca.png');
    color: #000000;
    padding: 60px 20px 20px;
    font-family: 'Fira Sans', sans-serif;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-column {
    flex: 1;
    min-width: 200px;
    margin-bottom: 20px;
}

.footer-logo {
    max-width: 300px;
    margin-bottom: 15px;
}

.footer-column h4 {
    color: #000000;
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
}

.footer-column h4::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background-color: #DF4408;
    margin-top: 10px;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links a,
.footer-contact a {
    color: #000000;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover,
.footer-contact a:hover {
    color: #469e27;
}

.footer-contact p {
    margin-bottom: 10px;
}

.footer-contact i {
    margin-right: 10px;
    color: #469e27;
}

.social-links a {
    color: #ffffff;
    font-size: 1.5rem;
    margin-right: 20px;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #ec630f;
}

.footer-bottom {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-bottom p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.7;
}

/* ==========================
   DISEÑO RESPONSIVO
   ========================== */
@media (max-width: 768px) {
    /* Navbar móvil */
    .navbar {
        padding: 10px 20px;
    }
    .navbar .logo img {
        height: 60px;
    }
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #000000;
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
    }
    .nav-links.active {
        display: flex;
    }
    .nav-links li {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    }
    .nav-links li:last-child {
        border-bottom: none;
    }
    .nav-links li a {
        color: #ffffff;
        padding: 15px;
    }
    .nav-links li .btn-naranja {
        background-color: transparent;
        color: #ec630f;
    }
    .menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        width: 30px;
        height: 25px;
        cursor: pointer;
    }
    .menu-toggle .bar {
        width: 100%;
        height: 3px;
        margin: 5px auto;
        background-color: #fff;
        transition: all 0.3s ease-in-out;
    }

    /* Slider móvil */
    .kubota-content.hero-banner {
        height: calc(100vh - 80px);
        margin-top: 80px;
    }

    /* Galería móvil */
    .gallery-row .gallery-item {
        flex-basis: calc(50% - 20px);
    }
    
    .product-gallery .gallery-container {
        flex-direction: column;
        align-items: center;
    }

    /* Footer móvil */
    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .footer-column h4::after {
        margin: 10px auto 0;
    }
    .social-links {
        margin-top: 20px;
    }
}

/* ==========================
   SECCIÓN DEL SLIDER
   ========================== */
.slider-section {
    width: 100%;
    overflow: hidden;
    /* Si tienes un menú fijo, añade un margen superior para que no se solape. Por ejemplo: */
    margin-top: 150px; 
}
/* ==========================
   FIN SECCIÓN DEL SLIDER
   ========================== */
/* ==========================
   NUEVO SLIDER
   ========================== */


.new-slider-container {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.new-slider-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease-in-out;
}

.new-slider-slide {
    flex-shrink: 0;
    width: 100%;
    height: 100%;
}

.new-slider-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.new-slider-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 15px;
    cursor: pointer;
    font-size: 1.5rem;
    z-index: 10;
}

.new-slider-control.prev {
    left: 20px;
}

.new-slider-control.next {
    right: 20px;
}

/* === Media Query para Móviles === */
@media (max-width: 768px) {
    .new-slider-container {
        height: 50vh; /* Ajusta la altura del slider para que no ocupe toda la pantalla del móvil */
    }
}
/* Asegura que los íconos dentro de los botones se vean bien */
.btn-naranja i {
    font-size: 1rem; /* O el tamaño que prefieras */
}
/* Espacio entre los íconos de redes sociales */
.nav-links li .fab {
    margin: 0 5px; /* Ajusta el espacio horizontal */
}
/* Estilos para los íconos de redes sociales en el menú */
.nav-links li a .fab {
    font-size: 1.5rem; /* Tamaño del icono */
    color: #ec630f; /* Color de los iconos */
    transition: color 0.3s ease;
}

.nav-links li a:hover .fab {
    color: #000000; /* Color al pasar el cursor */
}

/* Espacio entre los enlaces de redes sociales */
.nav-links li:last-child {
    padding-left: 20px;
}
.video-section {
    position: relative; /* Asegura que el botón se posicione en relación a esta sección */
    width: 100%;
    height: auto;
    overflow: hidden;
}
/* Estilos para el botón de silenciar/activar */
.mute-toggle {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s ease;
}

.mute-toggle:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

/* --- ESTILOS PARA EL CONTENEDOR PRINCIPAL --- */
.whatsapp-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

/* --- ESTILOS PARA EL BOTÓN FLOTANTE --- */
.whatsapp-flotante {
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: #fff;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px rgba(0, 0, 0, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease-in-out;
}

.whatsapp-flotante:hover {
    transform: scale(1.1);
}

/* --- ESTILOS PARA LA VENTANA DE INFORMACIÓN (OCULTA POR DEFECTO) --- */
.whatsapp-info {
    display: none; /* Oculto por defecto */
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    width: 280px;
    margin-bottom: 10px;
    padding: 15px;
    text-align: center;
    animation: fadeIn 0.5s;
}

.whatsapp-info.active {
    display: block;
}

.whatsapp-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.whatsapp-header h4 {
    margin: 0;
    font-size: 1rem;
    color: #25d366;
}

.close-info {
    font-size: 1.5rem;
    cursor: pointer;
    color: #888;
}

.whatsapp-qr img {
    width: 150px;
    height: 150px;
    margin: 10px auto;
}

.whatsapp-chat {
    display: block;
    width: 100%;
    padding: 10px;
    background-color: #25d366;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1rem;
    margin-top: 10px;
}

.whatsapp-chat i {
    margin-right: 5px;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}