/* =========================================
   1. VARIABLES Y CONFIGURACIÓN GLOBAL
   ========================================= */
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;600;700&family=Raleway:wght@300;400;700&display=swap');

:root {
    --tutiron-red: #D92525;
    --tutiron-black: #0a0a0a;
    --tutiron-gray: #1a1a1a;
    --text-white: #ffffff;
    --text-gray: #b3b3b3;
    --border-color: #333;
}

body {
    background-color: var(--tutiron-black);
    color: var(--text-white);
    font-family: 'Raleway', sans-serif;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, .font-oswald {
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    font-weight: 700;
}

p {
    color: var(--text-gray);
    line-height: 1.6;
}

a {
    text-decoration: none;
    transition: 0.3s;
}

ul {
    list-style: none;
    padding-left: 0;
}
.text-muted{color: white!important; opacity: 0.5!important;}

.text-red { color: var(--tutiron-red) !important; }

/* =========================================
   2. NAVBAR (MENÚ DE NAVEGACIÓN)
   ========================================= */
.navbar {
    background-color: transparent;
    padding: 15px 0;
    transition: background-color 0.4s ease;
}

.navbar.scrolled {
    background-color: rgba(0, 0, 0, 0.95);
    padding: 10px 0;
    backdrop-filter: blur(10px);
}

.nav-link {
    color: var(--text-white) !important;
    font-family: 'Oswald', sans-serif;
    font-size: 1rem;
    margin: 0 10px;
    position: relative;
    transition: color 0.3s;
}

.nav-link:hover {
    color: var(--tutiron-red) !important;
}

/* Botón de acción en el menú */
.btn-nav-wa {
    background-color: #25D366;
    color: white !important;
    border-radius: 50px;
    padding: 8px 25px;
    font-family: 'Oswald', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 1px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.2s, background-color 0.3s;
}
.btn-nav-wa i{
    font-weight: 700!important;
}
.btn-nav-wa:hover {
    transform: scale(1.05);
    background-color: #ff3333;
}
.text-secondary{
    color: white!important;
    opacity: 0.8!important;
}
.tag-pill, .model-tag{
    color: white!important;
    opacity: 0.8!important;
}

/* Dropdown Menu Dark */
.dropdown-menu.bg-dark {
    background-color: #111 !important;
    border: 1px solid var(--border-color);
}
.dropdown-item:hover {
    background-color: var(--tutiron-red);
    color: white !important;
}

/* =========================================
   3. HERO SECTIONS (CABECERAS)
   ========================================= */
/* Clase base para todos los heros */
.hero-section, .about-hero, .contact-hero, 
.hero-product, .hero-racks, .hero-moto, .hero-cargo {
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    padding-top: 80px; /* Compensar navbar fija */
    position: relative;
}

/* Index Hero */
.hero-section {
    min-height: 60vh;
    padding-bottom: 50px;
    background-image: linear-gradient(to right, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.5) 100%), 
                      url('img/hero-rack-thule-jalon-alaska.webp'); 
}

.hero-title {
    font-size: 4rem;
    line-height: 0.9;
    margin-bottom: 15px;
}
.hero-title span {
    color: transparent;
    -webkit-text-stroke: 2px var(--text-white);
}

/* Heroes Específicos */
.about-hero {
    height: 50vh;
    background-image: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.9)), url('img/nosotros-tutiron-mexico-cdmx.webp');
    text-align: center;
    border-bottom: 2px solid var(--tutiron-red);
}

.contact-hero {
    height: 40vh;
    background-image: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.9)), url('img/tutiron-contacto-atencion-cliente-tirones-barras-cdmx.webp');
    justify-content: center;
    text-align: center;
    border-bottom: 2px solid var(--tutiron-red);
}

.hero-product { /* Tirones */
    height: 60vh;
    background-image: linear-gradient(to right, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.4) 100%), url('img/tirones-tutiron-cdmx.webp');
}

.hero-racks { /* Racks */
    height: 60vh;
    background-image: linear-gradient(to right, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.4) 100%), url('img/racks-bicicletas-tutironmx-cdmx.webp');
}

.hero-moto { /* Portamotos */
    height: 60vh;
    background-image: linear-gradient(to right, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.3) 100%), url('img/portamotos-tutironmx-cdmx-motocicletas.webp');
}

.hero-cargo { /* Canastillas */
    height: 60vh;
    background-image: linear-gradient(to right, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.4) 100%), url('img/canastillas-tutironmx-cdmx-thule.webp');
}

/* =========================================
   4. COMPONENTES DEL INICIO (INDEX)
   ========================================= */
/* Bloque Rojo CTA */
.red-block-cta {
    background-color: var(--tutiron-red);
    padding: 30px;
    border-radius: 20px;
    color: white;
    position: relative;
    max-width: 400px;
    box-shadow: 0 20px 50px rgba(217, 37, 37, 0.2);
    transition: transform 0.3s ease;
    cursor: pointer;
    overflow: hidden;
    margin-top: 10px;
}
.red-block-cta:hover { transform: translateY(-5px); }
.red-block-cta h3 { font-size: 2rem; line-height: 1; margin-bottom: 10px; width: 85%; }
.red-block-cta p { color: rgba(255,255,255,0.9); font-size: 1rem; margin-bottom: 10px; line-height: 1.3; }
.big-arrow-icon {
    position: absolute; bottom: 15px; right: 20px; font-size: 3.5rem;
    transform: rotate(-45deg); transition: transform 0.3s;
}
.red-block-cta:hover .big-arrow-icon { transform: rotate(0deg) scale(1.1); }

/* Banda de Marcas */
.brands-bar {
    background-color: black;
    padding: 30px 0;
    border-bottom: 1px solid var(--border-color);
    border-top: 1px solid #222;
}
.brand-logo {

    transition: all 0.4s;
    max-height: 40px;
    width: auto;
}


/* Tarjetas de Producto (Squadro Style) */
.product-card {
    position: relative;
    height: 350px;
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all 0.4s ease;
    cursor: pointer;
}
.product-card-bg {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover; background-position: center;
    transition: transform 0.6s; filter: brightness(0.4);
}
.product-card-content {
    position: relative; z-index: 2; height: 100%;
    display: flex; flex-direction: column; justify-content: space-between; padding: 25px;
}
.card-number {
    font-family: 'Oswald', sans-serif; font-size: 3.5rem;
    color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,0.3); font-weight: 700;
}
.card-title { font-size: 2.2rem; margin: 0; }
.btn-arrow {
    width: 45px; height: 45px; background: rgba(255,255,255,0.1);
    border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: 0.3s;
}
/* Hover Effects Product Card */
.product-card:hover { border-color: var(--tutiron-red); }
.product-card:hover .product-card-bg { transform: scale(1.1); filter: brightness(0.4); }
.product-card:hover .card-number { -webkit-text-stroke: 1px var(--tutiron-red); opacity: 0.5; }
.product-card:hover .btn-arrow { background: var(--tutiron-red); }

/* Secciones de Quiebre (Break Sections) */
.break-section, .trust-banner-textured {
    background-color: var(--tutiron-red);
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}
.break-section::before, .trust-banner-textured::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* =========================================
   5. COMPONENTES INTERNOS (NOSOTROS, CONTACTO)
   ========================================= */
/* Nosotros */
.year-badge {
    font-size: 5rem; font-family: 'Oswald', sans-serif;
    color: transparent; -webkit-text-stroke: 2px var(--tutiron-red); opacity: 0.8; line-height: 1;
}
.highlight-text {
    border-left: 4px solid var(--tutiron-red); padding-left: 20px; font-size: 1.2rem; color: #eee;
}
.value-card {
    background: #111; padding: 40px 30px; border-radius: 10px; border: 1px solid var(--border-color);
    transition: 0.3s; height: 100%;
}
.value-card:hover { border-color: var(--tutiron-red); transform: translateY(-10px); background: #161616; }
.value-icon { font-size: 3rem; color: var(--tutiron-red); margin-bottom: 20px; }
.trust-banner { background: var(--tutiron-red); padding: 60px 0; text-align: center; }

/* Contacto */
.info-box {
    background: #111; padding: 40px; border-radius: 15px; border: 1px solid #222; height: 100%;
}
.info-item {
    display: flex; align-items: flex-start; margin-bottom: 30px; padding-bottom: 30px; border-bottom: 1px solid #222;
}
.info-item:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.info-icon {
    font-size: 1.5rem; color: var(--tutiron-red); background: rgba(217, 37, 37, 0.1);
    width: 50px; height: 50px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    margin-right: 20px; flex-shrink: 0;
}
.contact-link { color: var(--text-white); font-weight: 600; font-size: 1.1rem; }
.contact-link:hover { color: var(--tutiron-red); }

/* Formulario */
.custom-form label { color: #fff; margin-bottom: 5px; font-size: 0.9rem; font-weight: 600; }
.custom-form input, .custom-form textarea {
    background-color: #0f0f0f; border: 1px solid #333; color: white;
    padding: 18px; border-radius: 8px; margin-bottom: 25px; width: 100%;
    font-family: 'Raleway', sans-serif; transition: all 0.3s;
}
.custom-form input:focus, .custom-form textarea:focus {
    background-color: #1a1a1a; border-color: var(--tutiron-red); outline: none; box-shadow: 0 0 15px rgba(217, 37, 37, 0.1);
}
.btn-submit {
    background-color: var(--tutiron-red); color: white; width: 100%; padding: 18px;
    border: none; border-radius: 8px; font-family: 'Oswald', sans-serif; font-size: 1.2rem;
    letter-spacing: 1px; text-transform: uppercase; font-weight: 700; transition: 0.3s; cursor: pointer;
    box-shadow: 0 5px 15px rgba(217, 37, 37, 0.3);
}
.btn-submit:hover { background-color: #ff3333; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(217, 37, 37, 0.4); }

.map-container { height: 450px; width: 100%; overflow: hidden; position: relative; border-top: 1px solid #333; }
.map-iframe { width: 100%; height: 100%; border: 0; filter: grayscale(100%) invert(90%); }

/* =========================================
   6. COMPONENTES DE PRODUCTOS (LANDING PAGES)
   ========================================= */
/* Tirones: Category Cards */
.category-card {
    background: #111; border: 1px solid var(--border-color); border-radius: 10px;
    overflow: hidden; transition: 0.3s; height: 100%;
}
.category-card:hover { border-color: var(--tutiron-red); transform: translateY(-5px); }
.cat-img-wrapper { height: 230px; overflow: hidden; position: relative; }
.cat-img-wrapper img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.category-card:hover .cat-img-wrapper img { transform: scale(1.1); }
.cat-body { padding: 25px; }

/* Botones Outline */
.btn-outline-red {
    border: 1px solid var(--text-white); color: var(--text-white); padding: 8px 20px;
    border-radius: 30px; font-family: 'Oswald', sans-serif; display: inline-block; margin-top: 15px;
}
.btn-outline-red:hover { background: var(--tutiron-red); border-color: var(--tutiron-red); color: white; }

/* Galería de Tirones */
.gallery-grid-item {
    position: relative; overflow: hidden; border-radius: 8px; cursor: pointer; margin-bottom: 24px;
}
.gallery-grid-item img { width: 100%; transition: 0.4s; filter: brightness(0.8); }
.gallery-grid-item:hover img { transform: scale(1.05); filter: brightness(1); }
.gallery-caption {
    position: absolute; bottom: 0; left: 0; width: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    padding: 20px; transform: translateY(100%); transition: 0.3s;
}
.gallery-grid-item:hover .gallery-caption { transform: translateY(0); }

/* Racks: Tipos Horizontal */
.rack-type-card {
    background: #111; border: 1px solid var(--border-color); border-radius: 15px;
    overflow: hidden; transition: 0.3s; position: relative; margin-bottom: 30px;
}
.rack-type-card:hover { border-color: var(--tutiron-red); transform: translateX(10px); }
.rack-img-col { min-height: 250px; background-size: cover; background-position: center; position: relative; }
.rack-badge {
    position: absolute; top: 20px; left: 20px; background: var(--tutiron-red);
    color: white; padding: 5px 15px; font-family: 'Oswald', sans-serif; font-size: 0.9rem; border-radius: 4px;
}
.check-list li { margin-bottom: 8px; color: #ccc; font-size: 0.95rem; }
.check-list i { color: var(--tutiron-red); margin-right: 10px; }

/* Grid de Logos y SEO Tags */
.brand-grid-item {
    background: #161616; padding: 20px; border-radius: 8px; display: flex; align-items: center; justify-content: center;
    height: 100px; transition: 0.3s; border: 1px solid #222;
}
.brand-grid-item img { max-height: 50px; max-width: 100%; filter: grayscale(100%) brightness(200%); transition: 0.3s; }
.brand-grid-item:hover { border-color: #444; }
.brand-grid-item:hover img { filter: grayscale(0%); }

.seo-tags-block, .seo-models-block { background: #0f0f0f; padding: 60px 0; border-top: 1px solid #222; }
.tag-pill, .model-tag {
    display: inline-block; background: #1a1a1a; color: #888;
    padding: 5px 15px; border-radius: 20px; margin: 5px; font-size: 0.85rem; border: 1px solid #333;
}
.model-tag { border-radius: 4px; margin: 3px; }

/* Portamotos */
.feature-box {
    background: #111; padding: 30px; border-radius: 10px; border: 1px solid #222;
    text-align: center; transition: 0.3s; height: 100%;
}
.feature-box:hover { border-color: var(--tutiron-red); transform: translateY(-5px); }
.feature-icon { font-size: 3rem; color: var(--tutiron-red); margin-bottom: 20px; }
.spotlight-section { background: #0f0f0f; border-top: 1px solid #222; border-bottom: 1px solid #222; }
.spotlight-img { border-radius: 10px; box-shadow: 0 0 30px rgba(0,0,0,0.5); border: 1px solid #333; width: 100%; }
.moto-tag {
    display: inline-flex; align-items: center; gap: 10px; background: #1a1a1a; padding: 10px 20px;
    border-radius: 50px; border: 1px solid #333; font-family: 'Oswald', sans-serif; margin: 5px; color: #ccc;
}
.moto-tag i { color: var(--tutiron-red); }

/* Canastillas */
.cargo-card {
    background: #111; border: 1px solid #333; border-radius: 12px; overflow: hidden;
    height: 100%; transition: 0.3s;
}
.cargo-card:hover { border-color: var(--tutiron-red); transform: translateY(-5px); }
.cargo-img-top { height: 220px; background-size: cover; background-position: center; position: relative; }
.cargo-body { padding: 30px; }
.feature-list li { margin-bottom: 8px; font-size: 0.9rem; color: #ccc; }
.feature-list i { color: var(--tutiron-red); margin-right: 8px; }
.real-img-container { position: relative; border-radius: 10px; overflow: hidden; border: 1px solid #333; }
.real-img-container img { width: 100%; transition: 0.5s; }
.real-img-container:hover img { transform: scale(1.05); }

/* =========================================
   7. FOOTER
   ========================================= */
footer {
    background-color: #000;
    padding: 50px 0 20px;
    border-top: 1px solid var(--border-color);
}
.footer-logo img {
   
    max-width: 140px;
}
.social-icon-link {
    width: 40px; height: 40px; border-radius: 50%;
    background: #222; display: inline-flex; align-items: center; justify-content: center;
    color: white; margin-right: 10px; transition: all 0.3s;
}
.social-icon-link:hover {
    background: var(--tutiron-red);
    color: white;
    transform: translateY(-3px);
}

/* =========================================
   8. RESPONSIVE
   ========================================= */
@media (max-width: 991px) {
    .hero-section { min-height: auto; }
    .hero-title { font-size: 3rem; }
    .navbar-collapse { background: black; padding: 20px; border-radius: 0 0 15px 15px; }
    .red-block-cta { margin-top: 30px; width: 100%; max-width: 100%; }
    .contact-hero { height: 35vh; }
    .about-hero { height: 40vh; }
    .form-container { padding-left: 0; margin-top: 40px; }
}

@media (max-width: 768px) {
    .hero-section, .hero-product, .hero-racks, .hero-moto, .hero-cargo {
        height: auto; padding: 120px 0 60px;
    }
    .hero-title { font-size: 2.5rem; }
    .big-arrow-icon { font-size: 3rem; }
    .year-badge { font-size: 4rem; }
    .rack-type-card:hover { transform: translateX(0) translateY(-5px); }
}


/* =========================================
   CINTILLO DE MARCAS (CAR LOGOS TICKER)
   ========================================= */
.car-brands-ticker {
    background-color: #000; /* Fondo negro */
    padding: 30px 0;
    overflow: hidden; /* Oculta lo que se sale de la pantalla */
    border-top: 1px solid #333;
    border-bottom: 1px solid #333;
}

.ticker-track {
    display: flex;
    align-items: center;
    width: calc(200px * 18); /* Ajusta: 200px por el número total de logos (incluyendo duplicados) */
    animation: scroll 40s linear infinite; /* 40s es la velocidad, ajústalo a tu gusto */
}

.ticker-item {
    width: 200px; /* Ancho de cada espacio de logo */
    padding: 0 30px; /* Espacio entre logos */
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.ticker-item img {
    max-width: 100%;
    max-height: 60px; /* Altura máxima para que se vean uniformes */
    filter: grayscale(100%) brightness(200%); /* Efecto: Logos blancos/grises */
    opacity: 0.7;
    transition: 0.3s;
}

.ticker-item img:hover {
    filter: grayscale(0%); /* Al pasar el mouse recuperan su color */
    opacity: 1;
    transform: scale(1.1);
}

/* Animación de desplazamiento */
@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-200px * 9)); /* Desplaza la mitad (el set original) */
        /* Nota: El número 9 debe ser la cantidad de logos ÚNICOS que tengas */
    }
}

/* Ajuste Mobile */
@media (max-width: 768px) {
    .ticker-item { width: 150px; padding: 0 20px; }
    .ticker-item img { max-height: 40px; }
}

