/*
Theme Name: Tema hijo 
Template: astra
Author: Katherine Arguello
Description: Tema personalizado para Disandina con CPT Marcas y diseño Grid.
Version: 0.1.2
*/


:root {
    --bg: #21145F;
    /* Color principal oscuro (azul/morado) */
    --text: #ffffff;
    /* Color de texto para fondos oscuros */
    --accent: #45A041;
    /* Color de acento (verde) */
    --body: #21145F;
    /* Color de texto principal para fondos claros */
    --link: #45A041;
    /* Color de enlaces */
    --border: #e5e5e5;
}

* {
    box-sizing: border-box
}

body {
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    color: var(--body);
    margin: 0;
    line-height: 1.6;
}

a {
    color: var(--link);
    text-decoration: none
}

a:hover {
    text-decoration: underline
}

/* ============================
   HEADER 
=============================== */

/* ============================
   ESTRUCTURA Y GRID 
=============================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px;
}

/* Grid para Marcas y Noticias */
.brands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 30px;
}

/* Tarjetas de Marcas/Noticias */
.brand-card {
    background: #fff;
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.brand-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.brand-logo img {
    max-height: 70px;
    width: auto;
    margin-bottom: 15px;
    object-fit: contain;
}

.brand-card h3 {
    font-size: 20px;
    margin: 10px 0;
    color: var(--bg);
}

.brand-card p {
    font-size: 14px;
    color: #666;
}

/* Botón estilizado */
.btn-more {
    display: inline-block;
    margin-top: 15px;
    padding: 8px 20px;
    background: var(--bg);
    color: #fff !important;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
}

/* ============================
   FOOTER 
=============================== */
.footer {
    background: var(--bg);
    color: var(--text);
    margin-top: 60px;
}

.footer a {
    color: var(--text);
}

.footer .top {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    padding: 48px 24px;
}

.footer h4 {
    margin: 0 0 15px;
    color: var(--text);
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1px;
}

.footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer li {
    margin: 8px 0;
    font-size: 14px;
}

.footer .pay {
    padding: 0 24px 24px;
}

/*
.footer .pay .btn {
  background: var(--accent); color:#fff; padding:12px 18px; border-radius:8px; 
  display:inline-block; font-weight:700; text-align:center; width: 100%; max-width: 250px; 
  
} */
/* ===== Pagos y soporte (específico) ===== */

/* ===== Pagos y soporte (nuevo diseño PRO) ===== */

/* Contenedor de la columna */
.footer-pay-column {
    display: grid;
    gap: 16px;
    justify-items: center;
    /* alinea con las otras columnas */
    max-width: 260px;
    /* da balance visual */
    margin-inline: auto;
}

/* Botón sobrio */
.footer-pay-button {
    background: var(--accent);
    color: #fff;
    padding: 10px 16px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.15s ease;
    text-align: center;
    width: 100%;


}

.footer-pay-button:hover {
    filter: brightness(90%);
    transform: scale(1.05);
}

/* Separador sutil */
.footer-pay-separator {
    height: 1px;
    width: 100%;
    background: rgba(255, 255, 255, 0.15);
}

/* Logos en fila */
.footer-pay-logos-row {
    display: flex;
    gap: 14px;
    align-items: center;
}

.footer-pay-logos-row img {
    height: 38px;
    /* 38–45px según te guste; aquí más elegante */
    width: auto;
    object-fit: contain;
    display: block;
}


/* Responsive (opcional) */
@media (max-width: 600px) {
    .footer-pay {
        max-width: 100%;
    }

    .footer-pay-logos {
        flex-wrap: wrap;
        row-gap: 10px;
    }

    .footer-pay-logos img {
        height: 32px;
    }
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .footer .footer-payments {
        gap: 12px;
    }

    .footer .footer-payments img {
        height: 36px;
    }
}

@media (max-width: 480px) {
    .footer .footer-payments {
        flex-wrap: wrap;
        /* permite 2×2 en pantallas angostas */
        row-gap: 10px;
    }

    .footer .footer-payments img {
        height: 32px;
    }
}

.footer .bottom {
    border-top: 1px solid rgba(255, 255, 255, .1);
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

/* ============================================================
   MENU HAMBURGUESA RESPONSIVE (Celulares y iPads)
   ============================================================ */

.header-main-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Ocultar elementos de móvil en escritorio */
.menu-mobile__icon,
.menu-mobile__close,
.menu-mobile__arrow {
    display: none !important;
}

@media (max-width: 1024px) {

    /* Mostrar icono hamburguesa */
    .menu-mobile__icon {
        display: block !important;
        font-size: 26px;
        color: var(--bg);
        cursor: pointer;
        order: 2;
    }

    .brand {
        order: 1;
    }

    /* Contenedor del menú lateral */
    .menu-mobile-wrapper {
        position: fixed;
        top: 0;
        left: -100%;
        /* Oculto a la izquierda */
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: #ffffff;
        z-index: 10000;
        transition: left 0.4s cubic-bezier(0.25, 1, 0.5, 1);
        box-shadow: 5px 0 15px rgba(0, 0, 0, 0.1);
        padding: 80px 0 40px 0;
        overflow-y: auto;
    }

    .menu-mobile-wrapper.is-active {
        left: 0;
        /* Aparece */
    }

    /* Botón cerrar dentro del menú */
    .menu-mobile__close {
        display: block !important;
        position: absolute;
        top: 25px;
        right: 25px;
        font-size: 28px;
        color: var(--bg);
        cursor: pointer;
    }

    /* Estilos de la lista del menú móvil */
    .menu-mobile {
        flex-direction: column !important;
        gap: 0 !important;
        display: flex !important;
    }

    .menu-mobile li {
        width: 100%;
        border-bottom: 1px solid #f2f2f2;
    }

    .menu-mobile li a {
        padding: 18px 25px !important;
        width: 100%;
        display: block;
        color: #333 !important;
        font-size: 16px !important;
    }

    /* Ajuste para submenús en móvil */
    .menu-mobile li ul {
        position: static !important;
        box-shadow: none !important;
        display: none !important;
        /* Oculto por defecto en móvil */
        padding-left: 20px !important;
        background: #f9f9f9;
    }

    .menu-mobile li.is-open>ul {
        display: block !important;
        /* Se muestra al abrir */
    }

    .menu-mobile li.menu-item-has-children {
        position: relative;
    }

    .menu-mobile__arrow {
        display: block !important;
        position: absolute;
        right: 15px;
        top: 14px;
        font-size: 18px;
        color: var(--bg);
        cursor: pointer;
        padding: 5px;
        transition: transform 0.3s ease;
        z-index: 10;
    }

    .menu-mobile li.is-open>.menu-mobile__arrow {
        transform: rotate(90deg);
    }

    .footer .top {
        grid-template-columns: 1fr 1fr;
    }
}

/* Estilo de la lista del menú */
.nav-primary ul {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
}

.nav-primary ul li a {
    text-decoration: none;
    color: var(--bg);
    font-weight: 600;
    font-size: 14px;
    transition: color 0.3s;
}

.nav-primary ul li a:hover {
    color: var(--accent);
}

/* Ocultar submenús por defecto */
.nav-primary ul li ul {
    display: none;
    position: absolute;
    background: #fff;
    padding: 10px;
    border: 1px solid #eee;
    z-index: 999;
    list-style: none;
    min-width: 180px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}


/* Estilo para los enlaces del submenú */
.nav-primary ul li ul li a {
    font-size: 14px !important;
    padding: 8px 0;
    display: block;
    text-transform: none;
    font-weight: 500 !important;
}

/* Color de la barra principal */
.header-main {
    background-color: #ffffff !important;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}



.main-menu-list li {
    position: relative;
}

.main-menu-list li ul {
    display: none;
    /* Ocultos por defecto */
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 200px;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
    z-index: 999;
}


.main-menu-list li ul li {
    width: 100%;
}

.main-menu-list li ul li a {
    padding: 10px 20px;
    display: block;
    color: #333 !important;
}

/* Asegurar que el menú principal sea horizontal */
.main-menu-list {
    display: flex;
    gap: 25px;
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Estilo para los elementos que tienen submenú */
.main-menu-list li {
    position: relative;
    /*  posicionar el hijito */
}

/* OCULTAR EL SUBMENÚ POR DEFECTO */
.main-menu-list li ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #ffffff;
    min-width: 200px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    z-index: 999;
    padding: 10px 0;
    list-style: none;
}

/* MOSTRAR AL PASAR EL MOUSE */
.main-menu-list li:hover>ul {
    display: block;
}

/* Estilo de los links de adentro (Ciclismo, etc) */
.main-menu-list li ul li a {
    padding: 10px 20px;
    display: block;
    font-size: 14px;
    color: #333 !important;
}

.main-menu-list li ul li a:hover {
    background-color: #f8f8f8;
    /* color: var(--accent) !important; */
}

/* Barra superior azul más angosta */
.header-top-bar {
    background-color: var(--bg);
    color: white;
    padding: 8px 0 !important;
    /* Aumentamos el padding para dar espacio a los círculos */
    font-size: 13px;
    line-height: 1;
    /* Asegura que el texto no ocupe espacio extra vertical */
}

/* Estilo para los iconos sociales del header */
.header-top-bar .header-socials {
    display: flex;
    align-items: center;
    margin-left: auto;
    gap: 15px;
}

.header-top-bar .header-socials a {
    /* width, height, background-color, border-radius, margin-left */
    color: #fff !important;
    transition: transform 0.2s ease;
    /* Mantenemos la transición al pasar el mouse */
    text-decoration: none;
}

.header-top-bar .header-socials a:hover {
    transform: scale(1.1);
}

.header-top-bar .header-socials a i {
    font-size: 1.1rem;
    margin: 0 !important;
}

.footer .social {
    font-size: 1.5rem;
    display: flex;
    gap: 15px;
    text-decoration: none;
}

.footer .social a:hover {
    transform: scale(1.1);
}

.footer .social a {
    color: #fff !important;
    transition: transform 0.2s ease;
}

/* Ajuste para los iconos */
.header-top-bar i {
    vertical-align: middle;
}

.home-slider {
    width: 100%;
    height: auto;
    margin-bottom: 50px;
}

.swiper {
    width: 100%;
    height: 100%;
    border-radius: 12px;
}


.slide-content {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
}

/* Capa oscura para que el texto se lea bien */
.slide-content::before {
    content: "";
    position: absolute;
    inset: 0;
    /* RGB de #21145F es 33, 20, 95 */
    background: transparent;
}

.slide-text {
    position: relative;
    z-index: 2;
    padding: 20px;
}

.slide-text h2 {
    font-size: 3rem;
    color: white;
    margin-bottom: 10px;
}

.slide-text p {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

/* Ajuste de flechas y paginación de Swiper */
.swiper-button-next,
.swiper-button-prev {
    color: var(--accent) !important;
}

.swiper-pagination-bullet-active {
    background: var(--accent) !important;
}

.titulo-marcas {
    display: flex;
    justify-content: space-between;
    /* izquierda / derecha en pantallas grandes */
    align-items: center;
    gap: 12px;
    width: 70%;
    font-weight: 700;
    font-size: clamp(16px, 2.2vw, 28px);
    /* escala fluida del texto */
    padding: 8px 0;
}

/* Móviles: apilar y centrar */
@media (max-width: 600px) {
    .titulo-marcas {
        flex-direction: column;
        /* uno debajo del otro */
        align-items: center;
        /* centrados */
        gap: 4px;
    }
}

.container-grid {
    display: grid;
    grid-template-columns: 1fr 2fr 1.2fr;
    /* 3 columnas: Lateral | Centro | Derecha */
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Responsivo: Si la pantalla es pequeña, que se pongan una abajo de otra */
@media (max-width: 768px) {
    .container-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== Reset suave para este layout ===== */
.home-wrapper {
    display: block;
}

.home-section {
    margin: 40px 0;
}

.section-title,
.section-title-sm {
    margin: 0 0 15px;
}

/* ===== Banner / Slider ===== */
.home-slider .main-slider {
    width: 100%;
    height: 75vh;
    min-height: 500px;
}

.home-slider .slide-content {
    justify-content: center;
    text-align: center;
    padding-left: 0;
}

home-slider .slide-text {
    margin: 0 auto;
}

/* Quita el fondo negro semitransparente del texto */

.btn-more {
    display: inline-block;
    padding: 12px 30px;
    border: 1px solid #fff;
    /* Borde fino blanco */
    background: transparent;
    color: #fff;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 2px;
    border-radius: 0;
    margin-top: 20px;
    transition: all 0.3s ease;
}

.btn-more:hover {
    background-color: var(--accent);
    color: #ffffff;
    border-color: var(--accent);
}

.btn-accent {
    padding: 12px 18px;
    background: var(--accent);
    color: #fff;
    border: 0;
    border-radius: 6px;
    cursor: pointer;
}

.btn-accent:hover,
.button:hover {
    background-color: var(--accent) !important;
    color: #ffffff !important;
    opacity: 1;
    /* Asegura que no se ponga transparente */
}

/* ===== Cuerpo con aside a la derecha ===== */
.home-body-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    /* principal | aside */
    gap: 24px;
    align-items: start;
}

/* el aside ocupa la altura de varias secciones centrales en desktop */
.home-aside {
    position: sticky;
    top: 24px;
    align-self: start;
}

/* cajas del aside */
.box-cta {
    background: var(--bg);
    color: #fff;
    padding: 24px;
    border-radius: 12px;
    text-align: center;
    width: 100%;
}

.box-cta h3 {
    color: #fff;
    margin: 0 0 8px;
}

.call-box {
    margin-top: 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.box-info {
    margin-top: 20px;
    text-align: center;
}

/* ===== Marcas Destacadas (tira/mini-grid tipo carrusel simple) ===== */
.brands-mini-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.brand-item-small {
    text-align: center;
    border: 1px solid #eee;
    padding: 12px;
    border-radius: 8px;
    background: #fff;
}

.brand-title {
    font-size: 0.9rem;
    margin: 6px 0 0;
}

/* ===== Nuestras Marcas (split de 2 columnas grandes) ===== */
.our-brands-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 10px 0 8px;
}

.split-box {
    min-height: 220px;
    border: 1px solid #ddd;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: inherit;
    background: #fafafa;
    transition: transform .15s ease, box-shadow .15s ease;
}

.split-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, .06);
}

.split-life span,
.split-ciclismo span {
    font-size: clamp(20px, 2.6vw, 32px);
    font-weight: 600;
}

.cat-list {
    list-style: none;
    padding: 0;
    margin: 10px 0 0;
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

/* ===== Noticias (Scroll horizontal) ===== */
.news-flex-container {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 10px;
    scroll-snap-type: x mandatory;
}

.news-card {
    flex: 1;
    min-width: 280px;
    max-width: 360px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    scroll-snap-align: start;
}

.news-body {
    padding: 16px 18px;
}

.news-date {
    color: var(--accent, #0aa);
    display: block;
}

.news-title {
    margin: 6px 0 10px;
    font-size: 1.15rem;
}

.news-link {
    font-weight: 700;
    color: var(--bg, #0b5);
    text-decoration: none;
}

/* ===== Responsivo ===== */
@media (max-width: 1024px) {
    .home-body-grid {
        grid-template-columns: 1fr;
    }

    .home-aside {
        position: static;
    }
}

/* ============================================================
   CARRUSEL DE LOGOS (Productos Destacados)
   ============================================================ */

/* Contenedor del título y el link "Ver todas" */
.header-inline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.view-all {
    color: var(--accent);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: 0.3s;
}

.view-all:hover {
    text-decoration: underline;
}

/* Ajustes del Slider */
.brands-logo-slider {
    padding: 30px 10px;
    background: #fff;
    border-radius: 12px;
}

/* Estilo de cada logo individual */
.logo-item {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    filter: grayscale(100%);
    /* Efecto elegante en blanco y negro */
    opacity: 0.6;
    height: 90px;
    /* Altura controlada para que todos se vean alineados */
}

.logo-item img {
    max-width: 140px;
    /* Tamaño máximo de cada logo */
    max-height: 60px;
    object-fit: contain;
    /* Evita que el logo se deforme */
}

/* Efecto al pasar el mouse (Hover) */
.logo-item:hover {
    filter: grayscale(0%);
    /* El logo recupera sus colores originales */
    opacity: 1;
    transform: scale(1.1);
    /* Crece un poquito */
}

/* Hacer que el Aside te siga (Sticky) */
@media (min-width: 992px) {
    .box-cta-sticky {
        position: -webkit-sticky;
        position: sticky;
        top: 30px;
        /* Distancia desde la parte superior al bajar */
        z-index: 10;
    }
}

/* Forzar que el carrusel muestre los logos en fila */
.brands-logo-slider .swiper-wrapper {
    display: flex;
    align-items: center;

}

/* Controlar el tamaño de la imagen */
.logo-item-slide img {
    width: auto !important;
    max-width: 180px !important;
    /* Limita el ancho máximo */
    height: 120px !important;
    /* Altura fija para que todas se vean iguales */
    object-fit: contain !important;
    /* Evita que se estire la foto */
    margin: 0 auto;
    display: block;
}

/* Contenedor blanco para cada logo (opcional, se ve más limpio) */
.logo-item-slide {
    padding: 10px;
    background: transparent;
}

/* Contenedor del carrusel */
.brands-logo-slider {
    width: 100%;
    padding: 20px 0;
    overflow: hidden;
    /* Oculta lo que sobra para que sea carrusel */
}

/* Ajuste de cada imagen individual */
.logo-item-slide {
    display: flex !important;
    justify-content: center;
    align-items: center;
}

.img-brand-slider {
    max-width: 100% !important;
    height: 120px !important;
    /* Altura uniforme */
    object-fit: contain !important;
    /* Mantiene la proporción sin deformar */
    display: block;
}

/* Contenedor de las 3 noticias */
.news-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

/* Tarjeta individual */
.news-card-item {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.news-card-item:hover {
    transform: translateY(-5px);
}

/* Imagen de la noticia */
.news-card-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

/* Contenido de la tarjeta */
.news-card-content {
    padding: 20px;
}

.news-date {
    font-size: 0.85rem;
    color: #888;
    display: block;
    margin-bottom: 10px;
}

.news-title {
    font-size: 1.2rem;
    color: var(--bg);
    margin: 0 0 15px 0;
    line-height: 1.4;
}

.read-more-btn {
    color: var(--accent);
    font-weight: bold;
    font-size: 0.9rem;
}

/* Cabecera de sección con link a la derecha */
.header-inline-noticias {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

/* Columna de Marcas (Life/Ciclismo) */
.categories-vertical-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cat-card {
    height: 220px;
    /* Altura fija para que no se deformen */
    border-radius: 15px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    padding: 20px;
    text-decoration: none;
    background-size: cover;
    background-position: center;
}

/* Columna de Noticias */
.news-vertical-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.news-card-horizontal .news-flex-link {
    display: flex;
    gap: 20px;
    background: #fff;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    text-decoration: none;
    align-items: center;
}

.news-thumb img {
    width: 180px;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
}

/* Responsive para celular */
@media (max-width: 992px) {
    .main-content-wrapper {
        grid-template-columns: 1fr;
        /* En celular se ponen una debajo de otra */
    }
}

/* Ajuste de las tarjetas Life/Ciclismo */
.categories-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cat-card {
    position: relative;
    height: 200px;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    background-size: cover;
    background-position: center;
}

.cat-card h3 {
    position: relative;
    z-index: 2;
    color: white;
    font-size: 1.8rem;
    margin: 0;
}

.cat-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
}

/* Ajuste de las Noticias para que no se amontonen */
.news-vertical-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.news-card-mini {
    display: flex;
    gap: 20px;
    background: #fff;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.news-card-mini img {
    width: 150px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
}

/* Responsivo para Celular */
@media (max-width: 900px) {
    .main-content-wrapper {
        grid-template-columns: 1fr;
    }
}

/* Contenedor Principal */
.categories-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
}

/* Tarjeta Base */
.cat-card {
    position: relative;
    height: 350px;
    border-radius: 15px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    /* Texto abajo */
    padding: 30px;
    text-decoration: none;
    transition: all 0.4s ease;
    background-size: cover;
    background-position: center;
}

/* Efecto Oscuro para que el texto se lea bien */
.cat-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 60%);
    transition: background 0.3s ease;
}

.cat-card:hover .cat-overlay {
    /* RGB de #45A041 es 69, 160, 65 */
    background: linear-gradient(to top, rgba(69, 160, 65, 0.7) 0%, transparent 100%);
}

/* Contenido de Texto */
.cat-content {
    position: relative;
    z-index: 2;
    color: white;
}

.cat-content h3 {
    font-size: 2.5rem;
    font-weight: 800;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.cat-btn {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 20px;
    background: var(--accent);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: bold;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.3s ease;
}

.cat-card:hover .cat-btn {
    transform: translateY(0);
    opacity: 1;
}

.cat-card:hover {
    transform: scale(1.02);
}

/* Ajuste para Celulares */
@media (max-width: 768px) {
    .categories-grid {
        grid-template-columns: 1fr;
    }

    .cat-card {
        height: 250px;
    }
}

.news-grid-three-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.news-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    padding-bottom: 20px;
}

.news-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.news-content {
    padding: 20px;
}


.main-content-wrapper {
    display: block !important;
    /* Asegura que NO sea grid/flex */
    margin-top: 40px;
}

.home-section {
    width: 100%;
    display: block;
    margin-bottom: 48px;
    /* Espacio entre secciones */
}

/* ============ CABECERA NOTICIAS ============ */
.header-inline-noticias {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

/* ============ MARCAS (COLUMNA VERTICAL) ============ */
.categories-vertical-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Tarjeta de marca */
.cat-card {
    position: relative;
    height: 220px;
    border-radius: 15px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    padding: 20px;
    text-decoration: none;
    background-size: cover;
    background-position: center;
    transition: transform 0.3s ease;
}

.cat-card:hover {
    transform: scale(1.02);
}

.cat-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 60%);
}

.cat-content {
    position: relative;
    z-index: 2;
    color: #fff;
}

.cat-content h3 {
    font-size: 2rem;
    font-weight: 800;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cat-btn {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 20px;
    background: var(--accent);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.3s ease;
}

.cat-card:hover .cat-btn {
    transform: translateY(0);
    opacity: 1;
}

/* Imágenes de fondo demo*/

.Estilo-de-Vida-card {
    background-image: url('assets/estilo-de-vida-02.webp') !important;
    background-size: cover;
    background-position: center;
    /* min-height: 300px;  */
}

.ciclismo-card {
    background-image: url('assets/ciclismo-01.webp') !important;
    background-size: cover;
    background-position: center;
    /* min-height: 300px;  */
}

/* ============ NOTICIAS (LISTA VERTICAL) ============ */
.news-vertical-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.news-card-horizontal .news-flex-link {
    display: flex;
    gap: 20px;
    background: #fff;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    text-decoration: none;
    align-items: center;
}

.news-thumb img {
    width: 180px;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

.news-info .news-date {
    font-size: 0.85rem;
    color: #888;
    display: block;
    margin-bottom: 6px;
}

.news-info .news-title-mini {
    font-size: 1.1rem;
    color: var(--bg);
    margin: 0 0 8px 0;
    line-height: 1.35;
}

.news-info .news-link-text {
    color: var(--accent);
    font-weight: 700;
    font-size: 0.92rem;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 992px) {
    .news-card-horizontal .news-flex-link {
        flex-direction: column;
        align-items: flex-start;
    }

    .news-thumb img {
        width: 100%;
        height: 180px;
    }

    /* ============================================================
   RESPONSIVE: SECCIÓN MARCAS (CICLISMO Y ESTILO DE VIDA)
   Ajustes exclusivos para Tablets, iPads y Celulares
   ============================================================ */

    /* 1. Ajuste para iPads / Tablets (max-width: 1024px) */
    @media screen and (max-width: 1024px) {
        .categories-grid {
            gap: 16px !important;
            /* Reducimos el espacio entre las dos cajas */
            margin-top: 15px !important;
        }

        .cat-card {
            height: 280px !important;
            /* Altura intermedia en tablets */
            padding: 20px !important;
        }

        .cat-content h3 {
            font-size: 1.8rem !important;
            /* Texto un poco más compacto en iPad */
        }
    }

    /* 2. Ajuste para Celulares (max-width: 768px) */
    @media screen and (max-width: 768px) {
        .categories-grid {
            grid-template-columns: 1fr !important;
            /* Obliga a que se pongan una debajo de otra */
            gap: 20px !important;
        }

        .cat-card {
            height: 240px !important;
            /* Altura perfecta para que no ocupe toda la pantalla del móvil */
            padding: 24px 20px !important;
            border-radius: 12px !important;
        }

        /* Ajuste del texto para que mantenga el estilo ejecutivo y limpio */
        .cat-content h3 {
            font-size: 1.6rem !important;
            /* Tamaño legible en pantallas verticales */
            letter-spacing: 1px !important;
        }

        /* Forzar que el botón sea visible y cómodo para el pulgar en móviles */
        .cat-btn {
            transform: translateY(0) !important;
            /* Quitamos el efecto hover oculto para mobile */
            opacity: 1 !important;
            /* Siempre visible, ya que en celular no existe el mouse hover */
            margin-top: 12px !important;
            padding: 10px 24px !important;
            font-size: 0.85rem !important;
            width: auto !important;
            display: inline-block !important;
        }

        /* Asegurar que el degradado oscuro proteja bien la lectura del texto */
        .cat-overlay {
            background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.2) 100%) !important;
        }
    }
}

/* ============ EXTRA: SLIDER DE MARCAS (OPCIONAL) ============ */
.logo-item-slide {
    display: flex !important;
    justify-content: center;
    align-items: center;
}

.img-brand-slider {
    max-width: 100% !important;
    height: 120px !important;
    object-fit: contain !important;
    display: block;
}

/* ==========================
   1) MARCAS: 2 columnas
   ========================== */
.categories-vertical-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* dos tarjetas lado a lado */
    gap: 20px;
}

/* look  de las tarjetas */
.cat-card {
    position: relative;
    height: 220px;
    border-radius: 15px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    padding: 20px;
    text-decoration: none;
    background-size: cover;
    background-position: center;
    transition: transform 0.3s ease;
}

.cat-card:hover {
    transform: scale(1.02);
}

.cat-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 60%);
}

.cat-content {
    position: relative;
    z-index: 2;
    color: #fff;
}

.cat-content h3 {
    font-size: 2rem;
    font-weight: 800;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cat-btn {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 20px;
    background: var(--accent);
    border-radius: 50px;
    font-size: .9rem;
    font-weight: 700;
    transform: translateY(20px);
    opacity: 0;
    transition: all .3s ease;
}

.cat-card:hover .cat-btn {
    transform: translateY(0);
    opacity: 1;
}

/* ==========================
   2) NOTICIAS: 2 columnas
   ========================== */
.news-vertical-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* dos tarjetas lado a lado */
    gap: 20px;
}

/* La tarjeta horizontal */
.news-card-horizontal .news-flex-link {
    display: flex;
    gap: 16px;
    background: #fff;
    padding: 14px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    text-decoration: none;
    align-items: center;
}

.news-thumb img {
    width: 180px;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

.news-info .news-date {
    font-size: .85rem;
    color: #888;
    display: block;
    margin-bottom: 6px;
}

.news-info .news-title-mini {
    font-size: 1.1rem;
    color: var(--bg);
    margin: 0 0 8px 0;
    line-height: 1.35;
}

.news-info .news-link-text {
    color: var(--accent);
    font-weight: 700;
    font-size: .92rem;
}

/* ==========================
   3) RESPONSIVE (apila en móvil)
   ========================== */
@media (max-width: 992px) {

    .categories-vertical-grid,
    .news-vertical-container {
        grid-template-columns: 1fr;
        /* se apilan en pantallas pequeñas */
    }

    /* La tarjeta de noticias pasa a columna para que respire mejor */
    .news-card-horizontal .news-flex-link {
        flex-direction: column;
        align-items: flex-start;
    }

    .news-thumb img {
        width: 100%;
        height: 180px;
    }
}

.k-contacto {
    padding: 2.5rem 1rem;
    background: #f7fbff;
}

.k-container {
    max-width: 1100px;
    margin: 0 auto;
}

.k-title {
    font-size: 2rem;
    margin-bottom: 1.25rem;
    color: var(--bg);
    text-align: center;
}

.k-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.k-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(33, 20, 95, .08);
    padding: 1rem;
}

.k-form .k-field {
    margin-bottom: .75rem;
}

.k-form label {
    display: block;
    margin-bottom: .35rem;
    font-weight: 600;
}

.k-form input,
.k-form textarea {
    width: 100%;
    padding: .65rem .75rem;
    border: 1px solid #dbe6f3;
    border-radius: 8px;
}

.k-btn {

    display: inline-block !important;
    /* Forzamos el comportamiento de caja */
    background: var(--accent);
    color: #fff;
    border: 0;
    padding: .7rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    margin-top: 20px !important;
    margin-bottom: 10px !important;
}

.k-btn:hover {
    filter: brightness(90%);
}

.k-btn.secondary {
    background: var(--accent);
}

.k-map iframe {
    width: 100%;
    height: 250px;
    border: 0;
    border-radius: 8px;
}

.k-info {
    list-style: none;
    padding: 0;
    margin: 0;
}

.k-info li {
    margin-bottom: .5rem;
    display: flex;
    gap: .5rem;
    align-items: center;
}

.k-ico {
    width: 22px;
    display: inline-block;
}

.k-social,
.k-posventa {
    text-align: center;
    margin-top: 1.25rem;
}

.k-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin: .25rem;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    text-decoration: none;
    font-weight: bold;
}

.k-icons a:hover {
    filter: brightness(120%);
}

.k-tyc a {
    color: var(--bg);
    text-decoration: underline;
}

.k-posventa {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.k-posventa h3 {
    margin-bottom: 10px !important;
    display: block;
}


@media (max-width: 900px) {
    .k-grid {
        grid-template-columns: 1fr;
    }


}

/* Contenedor principal  */
.home-products-featured {
    padding: 80px 0;
    background-color: #fff;
    width: 100%;
    overflow: hidden;
}

/* Título minimalista */
.section-title-clean {
    text-align: center;
    font-size: 28px;
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 50px;
    color: var(--bg);
}

/* Tarjeta de producto  */
.product-card-minimal {
    text-align: center;
    padding: 10px;
}

.product-thumb-container {
    background-color: #f9f9f9;
    margin-bottom: 15px;
    transition: opacity 0.3s;
}

.product-thumb-container:hover {
    opacity: 0.8;
}

.img-product-clean {
    width: 100%;
    height: auto;
    display: block;
}

.product-info-minimal h3 {
    font-size: 16px;
    font-weight: 400;
    color: #333;
    margin: 10px 0;
}

.btn-product-link {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent);
    border-bottom: 1px solid #32c137;
    padding-bottom: 2px;
}

.circle-item {
    text-align: center;
}

.circle-thumb {
    width: 100px;
    height: 100px;
    margin: 0 auto 10px;
    overflow: hidden;
    border-radius: 50%;
    border: 2px solid #eee;
    background: #fff;
    /* Asegura fondo blanco */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    /* Sombra suave para mejor definición */
    transition: border-color 0.3s;
}

.circle-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Asegura que la imagen llene el círculo */
}

.circle-thumb:hover {
    border-color: var(--accent);
}

.circle-title {
    font-size: 12px;
    display: block;
    color: #333;
}

.home-body-grid {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    /* Alinea al inicio para que el sticky funcione */
}

.home-aside {
    width: 350px;
    position: sticky;
    top: 20px;
}

.home-aside {
    position: -webkit-sticky;
    position: sticky;
    top: 100px;
    height: fit-content;
}

/* El contenedor del cuadro (Aside) */
.home-aside {
    width: 320px;
    padding: 10px;
}

/* diseño aside */
.card-distribuidor-mini {
    background-color: var(--bg);
    padding: 30px 20px;
    border-radius: 25px;
    text-align: center;
    color: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.card-distribuidor-mini h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.card-distribuidor-mini p {
    font-size: 0.9rem;
    margin-bottom: 25px;
    opacity: 0.9;
}

/* EL BOTÓN VERDE  */
.btn-verde-compacto {
    background-color: var(--accent) !important;
    color: white !important;
    padding: 10px 25px;
    border-radius: 10px;
    text-decoration: none;
    display: inline-block;
    font-weight: bold;
    font-size: 1rem;
    margin-bottom: 25px;
    transition: transform 0.2s ease;
    border: none;
}

.btn-verde-compacto:hover {
    filter: brightness(90%);
    transform: scale(1.05);
}

/* Info de contacto */
.contacto-mini span {
    display: block;
    font-size: 0.8rem;
    margin-bottom: 5px;
}

.contacto-mini a {
    color: var(--accent);
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
}

#ubicacion {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

/* Forzamos el tamaño del contenedor del mapa */
#ubicacion {
    height: 300px !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
    overflow: hidden;
    /* Corta cualquier espacio sobrante */
}

/* Ajustamos el mapa real (iframe) que está adentro */
#ubicacion iframe,
#ubicacion .map-container {
    height: 300px !important;
    width: 100%;
    border: none;
    margin: 0;
}

/* Si hay un espacio extra en la sección general, lo quitamos */
.home-section#ubicacion {
    padding: 20px 0 0 0 !important;
}

#ubicacion iframe {
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Estilos para el formulario de Red de Distribución */
#form_distribucion input[type="text"],
#form_distribucion input[type="email"],
#form_distribucion input[type="tel"],
#form_distribucion textarea {
    width: 80%;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 4px;

}

/* Forzamos el fondo en el body y en los contenedores principales de WordPress/Astra */
body,
#page,
.site,
.site-content,
.ast-container {
    background-color: #f5faff !important;
}

/* ============================
   PÁGINA RED DE DISTRIBUCIÓN
=============================== */
.dist-section {
    padding: 60px 20px;
    border-bottom: 1px solid #f0f0f0;
}

.dist-section:last-child {
    border-bottom: none;
}

.dist-section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--bg);
    margin-bottom: 50px;
}

.dist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    align-items: stretch;
}

.dist-card {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(33, 20, 95, .08);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dist-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(33, 20, 95, .12);
}

.dist-card .icon {
    font-size: 3rem;
    color: var(--accent);
    margin-bottom: 20px;
}

.dist-card h3 {
    font-size: 1.5rem;
    color: var(--bg);
    margin-bottom: 15px;
}

.dist-card p {
    margin-bottom: 25px;
    flex-grow: 1;
}


/* Pagos Section */
.dist-pagos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    justify-content: center;
    max-width: 800px;
    margin: 0 auto;
}

.pago-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

.pago-card:hover {
    transform: translateY(-5px);
}

.pago-card .btn-pago {
    display: block;
    width: 100%;
    margin-top: 15px;
    padding: 10px;
    background: var(--accent);
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: background-color 0.2s;
}

.pago-card:hover .btn-pago {
    filter: brightness(90%);
}

/* =========================================
   ESTILOS BLOQUE 2: RED DE DISTRIBUCIÓN
   ========================================= */
.dist-section.bg-light {
    background-color: #f5faff;
}

.dist-reps-title {
    text-align: center;
    font-size: 1.8rem;
    color: var(--bg);
}

.dist-reps-subtitle {
    text-align: center;
    margin-bottom: 30px;
}

/* Acordeón de Representantes */
.dist-rep-details {
    margin-bottom: 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    background: #fff;
}

.dist-rep-summary {
    font-weight: bold;
    cursor: pointer;
    text-transform: uppercase;
    font-size: 1rem;
}

.dist-rep-content {
    padding-top: 1rem;
    border-top: 1px solid #eee;
    margin-top: 1rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

.dist-rep-group {
    margin-bottom: 1rem;
}

.dist-rep-role {
    margin: 0 0 5px 0;
    font-size: 1rem;
    color: var(--bg);
}

.dist-rep-info {
    margin: 0;
}



/* Esto obliga a que todo el sitio use Montserrat */
body,
h1,
h2,
h3,
p,
a,
span {
    font-family: 'Montserrat', sans-serif !important;
}

h1,
h2,
h3,
.menu-item a {
    letter-spacing: 0.3px;
    /* Esto separa las letras sutilmente */
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

/*Slider circulares logos marcas*/
.circle-thumb {
    transform: scale(1.2);
    transition: transform 0.3s ease;
    margin-bottom: 14px;

}

.circle-thumb:hover {
    transform: scale(1.3);
}

.brands-circle-slider {
    padding-top: 60px !important;
    /* Aumentado para evitar que el escalado 1.2 toque el banner */
    padding-bottom: 50px !important;
    overflow: hidden !important;

}

.brands-circle-slider .swiper-wrapper {
    overflow: visible !important;
}

.circle-thumb {
    transition: transform 0.3s ease-in-out;
}

/* Franquicias Doopler */
.doopler-banner {
    background-image: url('assets/franquicia-doppler.webp');
    background-size: cover;
    background-position: center;
    height: 500px;
    /* Altura del banner */
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    position: relative;
}

.doopler-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;


}

.doopler-banner h1 {
    position: relative;
    z-index: 1;
    font-size: 3.5rem;
    font-weight: 700;
    margin: 0;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

.doopler-content-section {
    max-width: 900px;
    margin: 60px auto;
    padding: 0 20px;
    line-height: 1.8;
    font-size: 1.1rem;
    color: #333;
}

.doopler-content-section h2 {
    color: var(--bg);
    font-size: 2.2rem;
    margin-bottom: 30px;
    text-align: center;
}

.doopler-content-section h3 {
    color: var(--accent);
    font-size: 1.6rem;
    margin-top: 40px;
    margin-bottom: 20px;
}

.doopler-form-container {
    max-width: 800px;
    margin: 60px auto 80px;
    background: #fff;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(33, 20, 95, 0.08);
}

.doopler-form-title {
    text-align: center;
    color: var(--bg);
    margin-bottom: 30px;
}

.doopler-form-container .k-field {
    margin-bottom: 15px;
}

.doopler-form-container .k-field label {
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
}

.doopler-form-container .k-field input[type="text"],
.doopler-form-container .k-field input[type="email"],
.doopler-form-container .k-field input[type="tel"],
.doopler-form-container .k-field textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #dbe6f3;
    border-radius: 8px;
    font-size: 1rem;
}

.doopler-privacy-text {
    font-size: 0.9rem;
    color: #666;
    margin-top: 30px;
    padding: 0 20px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.doopler-privacy-text a {
    color: var(--accent);
    font-weight: 600;
    text-decoration: underline;
}


/* --- Ajustes para Tablets y Pantallas Medianas (768px o menos) --- */
@media (max-width: 768px) {
    .doopler-banner {
        height: 350px;
        /* Reducimos la altura para que la imagen no se corte tanto */
        background-position: 40% center;

    }

    .doopler-banner h1 {
        font-size: 2.2rem;
        /* Tu tipografía adaptada */
    }

    .doopler-content-section {
        margin: 40px auto;
        font-size: 1rem;
    }

    .doopler-content-section h2 {
        font-size: 1.8rem;
    }
}

/* --- Ajustes exclusivos para Celulares  --- */
@media (max-width: 480px) {
    .doopler-banner {
        height: 220px;
        background-position: 20% center;
        /* Desplaza la foto a la izquierda si el texto integrado se tapa */
    }

    .doopler-banner h1 {
        font-size: 1.6rem;
        /* Evita que el título se desborde */
        padding: 0 10px;
    }

    .doopler-form-container {
        padding: 20px;
        margin: 40px 15px;
    }
}


/* Trabaja con nosotros */
.k-form input:focus {
    border-color: var(--accent);
    outline: none;
    box-shadow: 0 0 5px rgba(69, 160, 65, 0.2);
}

/* ============================
   PÁGINA TRABAJA CON NOSOTROS 
=============================== */
.trabaja-header {
    text-align: center;
    padding: 60px 20px;
}

.trabaja-header h1 {
    color: var(--bg);
    font-weight: 700;
}

.trabaja-header p {
    max-width: 600px;
    margin: 0 auto;
    color: #666;
    font-size: 1.1rem;
}

.trabaja-form-container {
    max-width: 800px;
    margin: 0 auto 80px;
    background: #fff;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(33, 20, 95, 0.08);
}

.trabaja-notice {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid;
}

.trabaja-notice.success {
    background: #e6ffed;
    border-color: #b2f5bf;
    color: #1e4620;
}

.trabaja-notice.error {
    background: #ffecec;
    border-color: #ffb7b7;
    color: #721c24;
}

.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.file-upload-wrapper {
    border: 2px dashed #dbe6f3;
    padding: 20px;
    border-radius: 10px;
    background: #fcfdfe;
    text-align: center;
}

.file-upload-wrapper p {
    font-size: 0.8rem;
    color: #888;
    margin-top: 10px;
}

.checkbox-group {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin: 25px 0;
    text-align: left;
}

.checkbox-group input {
    width: 18px !important;
    height: 18px !important;
    margin: 0 !important;
    margin-top: 3px !important;
    /* Alineación fina con el texto */
    flex-shrink: 0;
    /* Evita que el cuadrito se encoja */
    cursor: pointer;
    padding: 0 !important;
    /* Quita rellenos que traiga de estilos generales */
}

.checkbox-group label {
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0 !important;
    cursor: pointer;
}

.checkbox-group a {
    color: var(--accent);
    font-weight: 600;
}

.form-submit-wrapper {
    text-align: center;
    margin-top: 30px;
}

.btn-submit-trabaja {
    padding: 15px 40px !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    width: 100%;
    max-width: 300px;
}

@media (max-width: 600px) {
    .form-row-2 {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   REDISEÑO: FORMULARIO + MARCAS (LADO A LADO)
   ========================================= */
.dist-split-layout {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: stretch;
    /* Mantiene ambas columnas con la misma altura */
    margin-top: 20px;
}

.dist-form-container-card {
    background: #fff;
    padding: 35px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
    height: 100%;
}

#form_distribucion input[type="text"],
#form_distribucion input[type="email"],
#form_distribucion input[type="tel"],
#form_distribucion textarea {
    width: 100% !important;
    border: 1px solid #e1e8f0;
}

@media (max-width: 991px) {
    .dist-split-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .dist-split-layout .dist-section-title {
        text-align: center !important;
    }

    .dist-brands-side .dist-card {
        height: auto !important;
    }
}

/* =========================================
   DISEÑO GRID INTERACTIVO: ESTILO DE VIDA
   ========================================= */
.lifestyle-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    padding-bottom: 10px;
}

/* Diseño de 4 columnas para grids específicos */
.lifestyle-grid.grid-4-cols {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    /* Ajustado para 4 columnas en pantallas grandes */
}

.lifestyle-card {
    position: relative;
    height: 400px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    background-color: #000000;
    /* Cambiado a blanco para que los logos transparentes se vean */
}

/* 1. Reglas para el contenedor */
.lifestyle-image {
    width: 100%;
    height: 100%;
    padding: 20px;
    /* Le di un poco más de aire para que los logos respiren */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    box-sizing: border-box;
    /* ESTO ES CLAVE: evita que el padding rompa el tamaño de la tarjeta */
}

/* 2. Reglas para la imagen (el logo) dentro del contenedor */
.lifestyle-image img {
    max-width: 100% !important;
    max-height: 100% !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    /* Fuerza a la imagen a mantener su proporción */
}

.lifestyle-image img {

    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Esto hace que el fondo negro de la foto llene toda la tarjeta */
    display: block;
}

.lifestyle-card:hover .lifestyle-image {
    transform: scale(1.1);
}

.lifestyle-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(33, 20, 95, 0.95) 10%, rgba(33, 20, 95, 0.4) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    opacity: 0;
    transition: opacity 0.4s ease;
    text-align: center;
}

.lifestyle-card:hover .lifestyle-overlay {
    opacity: 1;
}

.lifestyle-content h3 {
    color: #ffffff !important;
    font-size: 1.8rem;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.lifestyle-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    margin-bottom: 25px;
}

.btn-lifestyle {
    display: inline-block;
    background-color: var(--accent);
    color: #fff !important;
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.85rem;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.btn-lifestyle:hover {
    transform: translateY(-3px);
    filter: brightness(1.1);
    text-decoration: none;
}

/* ============================================================
   AJUSTES EXCLUSIVOS PARA MARCAS DE CICLISMO 
   (No afectan a Estilo de Vida)
   ============================================================ */

/* 1. Ajuste para imágenes cuadradas de Ciclismo */
.ciclismo-brands-section .lifestyle-image {
    background-color: #ffffff !important;
    /* Fondo blanco para logos con transparencia */
    padding: 30px;
}

.ciclismo-brands-section .lifestyle-image img {
    object-fit: contain !important;
    width: 100% !important;
    height: 100% !important;
}

/* 2. Manejo de textos largos (como Oakley) para que no se pierda el botón */
.ciclismo-brands-section .lifestyle-overlay {
    align-items: flex-start !important;
    /* Importante: permite que el scroll funcione desde arriba */
    overflow-y: auto !important;
    padding: 25px 15px;
    scrollbar-width: thin;
    /* Firefox */
    scrollbar-color: var(--accent) transparent;
}

/* Scrollbar elegante para Chrome/Edge */
.ciclismo-brands-section .lifestyle-overlay::-webkit-scrollbar {
    width: 5px;
}

.ciclismo-brands-section .lifestyle-overlay::-webkit-scrollbar-thumb {
    background-color: var(--accent);
    border-radius: 10px;
}

.ciclismo-brands-section .lifestyle-content h3 {
    margin: auto 0;
    /* Centra el contenido si es corto, permite scroll si es largo */
    width: 100%;
}

.ciclismo-brands-section .lifestyle-content p {
    font-size: 0.85rem !important;
    /* Un poco más pequeño para ajustar en 4 columnas */
    line-height: 1.4;
    margin-bottom: 20px;
}

/* ============================================================
   REDISEÑO RESPONSIVE FINAL (BANNER + GRID + ASIDE)
   ============================================================ */

@media (max-width: 480px) {


    /* Ajuste de contenedor para que la cuadrícula se vea centrada en la pantalla */
    .container {
        padding: 12px !important;
    }


    .brands-circle-slider {
        padding-top: 10px !important;
        /* Quita el padding que separa los logos del banner */
        margin-top: -10px !important;
        /* Ajuste fino para acercarlos más */
    }

    /* 1. ELIMINAR ESPACIO BLANCO ENTRE BANNER Y LOGOS */
    .home-section.home-slider {
        margin-bottom: 0 !important;
        /* Quita el margen de 40px por defecto */
    }

    /* Amplia la seccion que contiene las tarjetas de marcas disandina a 100%*/
    .home-main{
        width: 100% !important; 
    }

    /*Ajuste del margen de tarjetas de marcas disandina cuando se muestra en móvil*/
    .home-section {
        margin: 2px 0;
    }
    
    .home-slider .main-slider {
        width: 100%;
        height: 265px !important; /* O la altura exacta en píxeles que midan tus imágenes de banner */
        min-height: auto !important;
    }

    /* Movemos los bullets hacia arriba para que queden sobre la imagen */
    .home-slider .swiper-pagination {
        bottom: 15px !important;
    }

    .home-slider .slide-content {
        height: 250px !important;
        background-position: 70% center !important;
        /* Enfoca al ciclista */
    }

    /* Ajuste de flechas para asegurar que estén sobre la imagen y centradas verticalmente */
    .home-slider .swiper-button-next,
    .home-slider .swiper-button-prev {
        top: 50% !important;
        transform: translateY(-50%) scale(0.5) !important;
        z-index: 10;
        background-color: rgba(255, 255, 255, 0.3);
        border-radius: 50%;
        width: 40px;
        /* height: 40px; */
    }

    .home-slider .swiper-button-next {
        right: 5px !important;
        /* Se mantienen dentro del contenedor */
    }

    .home-slider .swiper-button-prev {
        left: 5px !important;
    }

    /* 3. AJUSTE DEL ASIDE (CUADRO AZUL ABAJO) */
    .home-body-grid {
        display: flex !important;
        flex-direction: column !important;
        /* Apila el contenido */
    }

    .home-aside {
        width: 100% !important;
        order: 10;
        /* Lo manda al final de todo */
        padding: 0 !important;
        margin-top: 30px;
    }

    .card-distribuidor-mini {
        border-radius: 15px !important;
        /* Más estético en móvil */
    }

    /* 4. LAS DOS COLUMNAS (CICLISMO Y ESTILO) */
    .categories-grid,
    .brands-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        /* DOS COLUMNAS */
        gap: 8px !important;
        margin: 10px auto !important;
        width: 100% !important;
    }

    .categories-grid .cat-card,
    .brands-grid .lifestyle-card {
        height: 160px !important;
        /* Altura compacta para móvil */
        padding: 10px !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        /* Centra el contenido verticalmente */
        align-items: center !important;
        /* Centra el contenido horizontalmente */
        text-align: center !important;
    }

    /* Forzar que las capas de texto (overlays) también se centren */
    .cat-overlay,
    .lifestyle-overlay {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 10px !important;
    }

    /* Ajuste de textos dentro de las tarjetas de 2 columnas */
    .cat-content h3,
    .lifestyle-content h3 {
        font-size: 0.9rem !important;
        margin: 0 !important;
        text-align: center !important;
        width: 100% !important;
    }

    .cat-btn,
    .btn-lifestyle {
        padding: 6px 12px !important;
        font-size: 0.7rem !important;
        margin-top: 10px !important;
        display: inline-block !important;
        opacity: 1 !important;
        transform: none !important;
    }
}


