/* =========================================
   ESTILOS: APOYO ROBO REFACCIONES (FINAL)
   ========================================= */

/* --- 1. HERO BANNER --- */
.robo-hero {
    position: relative;
    height: 70vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    color: #fff;
    background-color: #000;
}
.hero-bg {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.8;
}
.hero-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%);
    z-index: 1;
}
.hero-content {
    position: relative; z-index: 2; max-width: 600px; padding-left: 5%;
}
.hero-content .pretitle {
    font-size: 0.9rem; font-weight: 700; letter-spacing: 1px; margin-bottom: 10px;
}
.hero-content h1 {
    font-size: 3.5rem; font-weight: 800; line-height: 1.1; margin-bottom: 20px;
}
.hero-content .description {
    font-size: 1.1rem; line-height: 1.5;
}

/* --- 2. SECCIÓN PRINCIPAL --- */
.parts-section {
    padding: 80px 0;
    background-color: #fff;
}
.text-center { text-align: center; max-width: 800px; margin: 0 auto 40px auto; }

.section-pretitle { color: #EB0A1E; font-weight: 700; font-size: 0.8rem; letter-spacing: 1px; margin-bottom: 5px; }
.section-title { font-size: 2.5rem; margin: 0 0 10px 0; color: #000; font-weight: 700; }
.section-desc { color: #555; }

/* --- PESTAÑAS (TABS) --- */
.tabs-container {
    display: flex;
    justify-content: center;
    gap: 60px; /* Espacio amplio entre botones */
    margin-top: 50px;
    border-bottom: 2px solid #f0f0f0; /* Línea base gris */
    padding-bottom: 0;
}

.tab-btn {
    background: none; 
    border: none;
    font-size: 1rem; 
    font-weight: 700; 
    color: #999; 
    padding: 15px 10px; 
    cursor: pointer;
    position: relative;
    top: 2px; /* Baja el botón para que la línea activa cubra la línea gris */
    border-bottom: 4px solid transparent; 
    transition: all 0.3s;
    text-transform: uppercase;
    font-family: inherit;
    letter-spacing: 1px;
}

.tab-btn:hover { color: #555; }

.tab-btn.active {
    color: #000; 
    border-bottom: 4px solid #EB0A1E; /* Línea roja activa */
}

/* Contenedor de Pestañas */
.tab-content { 
    display: none; 
    width: 100%;
    opacity: 0;
    transition: opacity 0.4s ease-in;
    padding-top: 40px;
}
.tab-content.active { 
    display: block; 
    opacity: 1;
}

/* --- CARRUSEL (GLIDE) --- */
.single-view-carousel {
    max-width: 1000px; /* Ancho máximo para la imagen */
    margin: 0 auto;    /* Centrado */
    position: relative;
    padding: 0 20px;
}

/* Tarjeta individual */
.part-card { 
    text-align: center; 
    padding: 0; 
    background: transparent; 
}

.part-card img {
    width: 100%;
    height: 450px; /* Altura fija grande */
    object-fit: cover;
    border-radius: 20px; /* Bordes redondeados */
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    display: block;
}

.part-card h3 { 
    font-size: 1.8rem; 
    font-weight: 800; 
    color: #000; 
    margin: 0; 
}/* =========================================
   ESTILOS: APOYO ROBO REFACCIONES (FINAL)
   ========================================= */

/* --- 1. HERO BANNER --- */
.robo-hero {
    position: relative;
    height: 70vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    color: #fff;
    background-color: #000;
}
.hero-bg {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.8;
}
.hero-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%);
    z-index: 1;
}
.hero-content {
    position: relative; z-index: 2; max-width: 600px; padding-left: 5%;
}
.hero-content .pretitle {
    font-size: 0.9rem; font-weight: 700; letter-spacing: 1px; margin-bottom: 10px;
}
.hero-content h1 {
    font-size: 3.5rem; font-weight: 800; line-height: 1.1; margin-bottom: 20px;
}
.hero-content .description {
    font-size: 1.1rem; line-height: 1.5;
}

/* --- 2. SECCIÓN PRINCIPAL --- */
.parts-section {
    padding: 80px 0;
    background-color: #fff;
}
.text-center { text-align: center; max-width: 800px; margin: 0 auto 40px auto; }

.section-pretitle { color: #EB0A1E; font-weight: 700; font-size: 0.8rem; letter-spacing: 1px; margin-bottom: 5px; }
.section-title { font-size: 2.5rem; margin: 0 0 10px 0; color: #000; font-weight: 700; }
.section-desc { color: #555; }

/* --- PESTAÑAS (TABS) --- */
.tabs-container {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 50px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 0;
}

.tab-btn {
    background: none; 
    border: none;
    font-size: 1rem; 
    font-weight: 700; 
    color: #999; 
    padding: 15px 10px; 
    cursor: pointer;
    position: relative;
    top: 2px; /* Truco visual para la línea activa */
    border-bottom: 4px solid transparent; 
    transition: all 0.3s;
    text-transform: uppercase;
    font-family: inherit;
    letter-spacing: 1px;
}

.tab-btn:hover { color: #555; }

.tab-btn.active {
    color: #000; 
    border-bottom: 4px solid #EB0A1E; 
}

/* Contenedor de Pestañas */
.tab-content { 
    display: none; 
    width: 100%;
    opacity: 0;
    transition: opacity 0.4s ease-in;
    padding-top: 40px;
}
.tab-content.active { 
    display: block; 
    opacity: 1;
}

/* --- CARRUSEL (IMAGEN GRANDE) --- */
.single-view-carousel {
    max-width: 1000px; 
    margin: 0 auto;    
    position: relative;
    padding: 0 20px;
}

/* Imagen limpia */
.single-view-carousel img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    display: block;
}

/* --- PIE DE CARRUSEL (CONTROLES INFERIORES) --- */
.carousel-footer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 30px; 
    gap: 20px;
}

/* Título de la pieza */
.active-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: #000;
    margin: 0;
    white-space: nowrap;
}

/* Línea separadora */
.separator-line {
    flex-grow: 1; 
    height: 1px;
    background-color: #ddd;
}

/* Grupo de botones */
.glide__arrows {
    display: flex;
    gap: 15px;
}

/* Estilo Base de Botones Redondos */
.nav-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease, transform 0.2s;
    outline: none;
}

/* Botón Anterior (Gris) */
.nav-btn.btn-prev {
    background-color: #cccccc; 
    color: #fff;
}
.nav-btn.btn-prev:hover { background-color: #b3b3b3; }

/* Botón Siguiente (Rojo) */
.nav-btn.btn-next {
    background-color: #EB0A1E; 
    color: #fff;
}
.nav-btn.btn-next:hover { background-color: #b80818; }

/* Iconos SVG de los botones */
.nav-btn svg {
    stroke: currentColor;
    width: 16px;
    height: 16px;
}

/* --- 3. ACORDEÓN --- */
.faq-section { 
    max-width: 900px; 
    margin: 0 auto 80px auto; 
    padding: 0 20px; 
}
.faq-item { border-bottom: 1px solid #eee; }

.faq-header {
    width: 100%; background: none; border: none; text-align: left;
    padding: 25px 0; font-size: 1.2rem; font-weight: 700; color: #000;
    cursor: pointer; display: flex; justify-content: space-between;
    transition: color 0.3s;
}
.faq-header:hover { color: #EB0A1E; }
.faq-header .icon { font-size: 1.5rem; font-weight: 300; }

.faq-content { 
    max-height: 0; overflow: hidden; transition: max-height 0.3s ease-out; 
    color: #555; padding-left: 10px; 
}
.faq-content ul { padding-left: 20px; margin: 10px 0 20px 0; }
.faq-content p { margin: 10px 0; line-height: 1.6; }

/* --- 4. BANNER FINAL --- */
.locator-banner { background-color: #f4f4f4; padding: 80px 0; }
.banner-flex { display: flex; justify-content: space-between; align-items: center; max-width: 1000px; margin: 0 auto; padding: 0 20px;}
.banner-text h2 { margin: 0 0 5px 0; font-size: 2rem; font-weight: 700; }
.banner-text p { margin: 0; color: #555; font-size: 1.1rem; }

.btn-rojo {
    background-color: #EB0A1E; color: #fff; padding: 14px 40px;
    border-radius: 50px; text-decoration: none; font-weight: 700;
    font-size: 0.9rem; transition: background 0.3s; white-space: nowrap;
}
.btn-rojo:hover { background-color: #b80818; }

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .single-view-carousel img { height: 250px; }
    
    .carousel-footer-row { flex-wrap: wrap; justify-content: center; text-align: center; }
    .separator-line { display: none; } /* En móvil ocultamos la línea */
    .active-title { width: 100%; margin-bottom: 10px; }
    .glide__arrows { width: 100%; justify-content: center; }
    
    .hero-content h1 { font-size: 2.5rem; }
    .banner-flex { flex-direction: column; text-align: center; gap: 20px; }
}