/* ===================================================
   PLANTILLA MECHANIC-ONE | TALLER MECÁNICO AUTOMOTRIZ
   =================================================== */

600;700;800&family=Poppins:wght@300;400;500;600&display=swap');

:root {
    --primary: #0f1e36;
    --primary-light: #1a2f50;
    --accent: #341f97;
    --accent-hover: #261674;
    --secondary: #4a5568;
    --dark: #121721;
    --darker: #0a0e17;
    --light-bg: #f4f7fb;
    --white: #ffffff;
    --border: #e2e8f0;
    --text-color: #334155;
    --text-muted: #64748b;
    --transition: all 0.3s ease;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .navbar-brand {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: var(--dark);
}

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

.text-accent { color: var(--accent) !important; }
.bg-primary-dark { background-color: var(--primary) !important; }
.bg-light-custom { background-color: var(--light-bg) !important; }

.section-title {
    margin-bottom: 3rem;
}

.section-subtitle {
    color: var(--accent);
    text-transform: uppercase;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
    display: block;
}

.divider-accent, .divider-red {
    width: 60px;
    height: 4px;
    background-color: var(--accent);
    margin: 1rem 0;
    border-radius: 2px;
}

.divider-accent.mx-auto, .divider-red.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

/* 1. Top Bar */
.top-bar {
    background-color: var(--darker);
    color: #94a3b8;
    font-size: 0.85rem;
    padding: 0.55rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-bar a {
    color: #94a3b8;
}

.top-bar a:hover {
    color: var(--white);
}

.top-bar-emergency {
    background-color: var(--accent);
    color: var(--white) !important;
    padding: 0.25rem 0.8rem;
    border-radius: 4px;
    font-weight: 600;
}

/* 2. Navbar */
.navbar {
    background-color: var(--white);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    padding: 0.9rem 0;
    transition: var(--transition);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary) !important;
    letter-spacing: -0.5px;
}

.navbar-brand span {
    color: var(--accent);
}

.nav-link {
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--primary) !important;
    padding: 0.5rem 0.9rem !important;
    transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
    color: var(--accent) !important;
}

/* Botones */
.btn-accent {
    background-color: var(--accent);
    color: var(--white);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.7rem 1.6rem;
    border-radius: 4px;
    border: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-accent:hover {
    background-color: var(--accent-hover);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(52, 31, 151, 0.35);
}

.btn-outline-white {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.65rem 1.5rem;
    border-radius: 4px;
    transition: var(--transition);
}

.btn-outline-white:hover {
    background-color: var(--white);
    color: var(--primary);
    transform: translateY(-2px);
}

.btn-outline-accent {
    background-color: transparent;
    color: var(--accent);
    border: 2px solid var(--accent);
    font-weight: 600;
    padding: 0.5rem 1.2rem;
    border-radius: 4px;
    transition: var(--transition);
}

.btn-outline-accent:hover {
    background-color: var(--accent);
    color: var(--white);
}

/* 3. Hero Carousel */
.carousel-item {
    height: 600px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.carousel-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(15, 30, 54, 0.9) 0%, rgba(15, 30, 54, 0.7) 60%, rgba(15, 30, 54, 0.4) 100%);
}

.hero-caption {
    position: relative;
    z-index: 10;
    color: var(--white);
    max-width: 650px;
}

.hero-caption h1 {
    font-size: 3rem;
    font-weight: 800;
    color: var(--white);
    line-height: 1.15;
    margin-bottom: 1.2rem;
}

.hero-caption p {
    font-size: 1.1rem;
    color: #e2e8f0;
    margin-bottom: 2rem;
}

/* 4. Barra de Características Rápidas */
.feature-box {
    background-color: var(--white);
    border-radius: 8px;
    padding: 1.8rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border-bottom: 4px solid var(--accent);
    transition: var(--transition);
    height: 100%;
}

.feature-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 1rem;
}

/* 5. Sección Nosotros */
.about-img {
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    width: 100%;
    height: 420px;
    object-fit: cover;
}

.check-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
    color: var(--primary);
    margin-bottom: 0.8rem;
}

.check-item i {
    color: var(--accent);
    font-size: 1.2rem;
}

/* 6. Tarjetas de Servicios */
.service-card {
    background-color: var(--white);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 2rem 1.5rem;
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    border-color: var(--accent);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.service-icon-wrap {
    width: 60px;
    height: 60px;
    border-radius: 6px;
    background-color: #f1eeff;
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 1.2rem;
}

.service-card h4 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.92rem;
    margin-bottom: 1.2rem;
    flex-grow: 1;
}

/* 7. Galería de Trabajos */
.gallery-img {
    height: 240px;
    width: 100%;
    object-fit: cover;
    border-radius: 6px;
    transition: var(--transition);
}

.gallery-img:hover {
    transform: scale(1.03);
}

/* 8. Tarjetas de Precios y Paquetes */
.pricing-card {
    background-color: var(--white);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.pricing-card.featured {
    border: 2px solid var(--accent);
    box-shadow: 0 10px 30px rgba(52, 31, 151, 0.15);
    position: relative;
}

.pricing-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--accent);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 0.3rem 1rem;
    border-radius: 20px;
}

.pricing-price {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--primary);
    margin: 1.2rem 0;
}

.pricing-price span {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 400;
}

.pricing-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
    text-align: left;
    font-size: 0.92rem;
    flex-grow: 1;
}

.pricing-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f1f5f9;
    color: var(--secondary);
}

.pricing-list li i {
    color: var(--accent);
    margin-right: 0.5rem;
}

/* 9. Testimonios */
.testimonial-item {
    background-color: var(--white);
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    height: 100%;
}

.testimonial-stars {
    color: #f59e0b;
    margin-bottom: 1rem;
}

/* 10. Formulario de Contacto & Citas */
.contact-form-box {
    background-color: var(--white);
    border-radius: 8px;
    padding: 2.5rem;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
}

.form-control, .form-select {
    padding: 0.75rem 1rem;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    font-size: 0.95rem;
}

.form-control:focus, .form-select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 0.2rem rgba(52, 31, 151, 0.18);
}

/* 11. Botón Flotante de WhatsApp */
.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background-color: #25d366;
    color: var(--white);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: var(--transition);
}

.whatsapp-float:hover {
    color: var(--white);
    transform: scale(1.1);
}

/* 12. Footer */
.footer {
    background-color: var(--darker);
    color: #94a3b8;
    padding: 4rem 0 2rem;
    font-size: 0.92rem;
}

.footer h5 {
    color: var(--white);
    font-size: 1.15rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer h5::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 35px;
    height: 2px;
    background-color: var(--accent);
}

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

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: #94a3b8;
}

.footer-links a:hover {
    color: var(--white);
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    margin-top: 3rem;
    font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 768px) {
    .carousel-item {
        height: 480px;
    }
    
    .hero-caption h1 {
        font-size: 2.1rem;
    }
    
    .contact-form-box {
        padding: 1.5rem;
    }
}

/* ===================================================
   PÁGINA DE CATÁLOGO DE SERVICIOS (servicios.html)
   =================================================== */

.page-banner {
    background: linear-gradient(rgba(15, 30, 54, 0.88), rgba(15, 30, 54, 0.88)), url('../images/hero-workshop.jpg');
    background-size: cover;
    background-position: center;
    padding: 4.5rem 0 3.5rem;
    color: var(--white);
    margin-bottom: 2.5rem;
}

.page-banner h1 {
    color: var(--white);
    font-size: 2.6rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.page-banner p {
    color: #cbd5e1;
    font-size: 1.05rem;
    margin-bottom: 0;
}

.breadcrumb-custom {
    font-size: 0.88rem;
    color: #94a3b8;
    margin-bottom: 1rem;
}

.breadcrumb-custom a {
    color: #cbd5e1;
}

.breadcrumb-custom a:hover {
    color: var(--white);
}

/* Filtros y Buscador */
.filter-controls {
    background-color: var(--white);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.25rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    margin-bottom: 2.5rem;
}

.filter-btn {
    background-color: #f1f5f9;
    color: var(--secondary);
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 0.45rem 1.1rem;
    font-size: 0.88rem;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    white-space: nowrap;
}

.filter-btn:hover {
    background-color: #e2e8f0;
    color: var(--dark);
}

.filter-btn.active {
    background-color: var(--accent);
    color: var(--white);
    border-color: var(--accent);
    box-shadow: 0 2px 8px rgba(52, 31, 151, 0.25);
}

.search-input-wrap {
    position: relative;
}

.search-input-wrap i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1rem;
}

.search-input-wrap input {
    padding-left: 2.5rem;
    border-radius: 20px;
    border: 1px solid #cbd5e1;
    font-size: 0.9rem;
}

.badge-category {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    padding: 0.25rem 0.65rem;
    border-radius: 4px;
    background-color: #f1eeff;
    color: var(--accent);
    display: inline-block;
    margin-bottom: 0.75rem;
}

.service-meta-time {
    font-size: 0.82rem;
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.service-item {
    transition: var(--transition);
}

.service-item.d-none {
    display: none !important;
}

.empty-results {
    padding: 4rem 1rem;
    text-align: center;
    color: var(--text-muted);
}

/* ===================================================
   PÁGINAS INTERNAS (about.html, page.html, single.html)
   =================================================== */

/* Sidebar Widgets */
.sidebar-widget {
    background-color: var(--white);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.8rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.sidebar-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1.2rem;
    position: relative;
    padding-bottom: 0.6rem;
}

.sidebar-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 35px;
    height: 3px;
    background-color: var(--accent);
    border-radius: 2px;
}

.sidebar-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-links li {
    border-bottom: 1px solid #f1f5f9;
}

.sidebar-links li:last-child {
    border-bottom: none;
}

.sidebar-links a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    color: var(--secondary);
    font-size: 0.92rem;
    font-weight: 500;
}

.sidebar-links a:hover, .sidebar-links a.active {
    color: var(--accent);
    padding-left: 5px;
}

/* Pasos del Proceso (single.html) */
.process-step-item {
    display: flex;
    gap: 1.2rem;
    margin-bottom: 1.5rem;
}

.step-badge {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 50%;
    background-color: var(--accent);
    color: var(--white);
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: 0 4px 10px rgba(52, 31, 151, 0.25);
}

/* Callout Box */
.callout-box {
    background-color: #f8fafc;
    border-left: 4px solid var(--accent);
    border-radius: 0 8px 8px 0;
    padding: 1.4rem 1.6rem;
    margin: 1.8rem 0;
}

.single-service-img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* ===================================================
   LOADER Y TRANSICIÓN DE PÁGINAS
   =================================================== */
.page-loader {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background-color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.page-loader.fade-out {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.page-loader.active {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

.loader-content {
    text-align: center;
}

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #e2e8f0;
    border-top: 4px solid var(--accent);
    border-radius: 50%;
    margin: 0 auto 1rem;
    animation: loaderSpin 0.8s linear infinite;
}

.loader-brand {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.5px;
    margin-bottom: 0.2rem;
}

.loader-brand span {
    color: var(--accent);
}

.loader-text {
    font-size: 0.82rem;
    color: var(--text-muted);
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 500;
}

@keyframes loaderSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}



