/* ============================= */
/* VOLANTE LUBRICENTRO - CSS PRINCIPAL */
/* ============================= */

/* Variables CSS */
:root {
    --primary-color: #ED3237;
    --secondary-color: #2A7BBE;
    --dark-color: #222222;
    --gray-light: #f8f9fa;
    --gray-medium: #6c757d;
    --gray-dark: #565656;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --border-radius: 8px;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

/* Fuentes */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@100;300;400;500;700;900&family=Raleway:wght@300;400;500;600;700&display=swap');

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    color: #333;
    background-color: #fff;
    overflow-x: hidden;
    line-height: 1.6;
}

/* ============================= */
/* UTILIDADES */
/* ============================= */
.section-margin {margin-top: 80px}
.section-padding { padding: 80px 0; }
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 1rem;
    font-family: 'Raleway', sans-serif;
}
.section-subtitle {
    font-size: 1.1rem;
    color: var(--gray-medium);
    margin-bottom: 2rem;
}
.text-primary { color: var(--primary-color) !important; }
.bg-primary { background-color: var(--primary-color) !important; }

/* ============================= */
/* TOP BAR */
/* ============================= */
.top-bar {
    background: var(--dark-color);
    color: white;
    padding: 8px 0;
    font-size: 0.9rem;
}
.top-bar .contact-info span {
    margin-right: 1.5rem;
    display: inline-block;
}
.top-bar .contact-info i {
    margin-right: 5px;
}
.top-bar .social-links a {
    color: white;
    margin-left: 10px;
    transition: var(--transition);
    text-decoration: none;
}
.top-bar .social-links a:hover {
    color: var(--primary-color);
}

/* ============================= */
/* NAVBAR */
/* ============================= */
.navbar {
    background: linear-gradient(135deg, var(--primary-color) 0%, #c02328 100%);
    padding: 1rem 0;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.navbar-logo {
    height: 48px;
    width: auto;
    transition: var(--transition);
}

.navbar-nav .nav-link {
    color: white !important;
    font-weight: 500;
    margin: 0 8px;
    padding: 10px 15px !important;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.navbar-nav .nav-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.navbar-toggler {
    border-color: white;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Navbar scrolled effect */
.navbar-scrolled {
    padding: 0.5rem 0 !important;
    background: rgba(237, 50, 55, 0.95) !important;
    backdrop-filter: blur(10px);
}

/* ============================= */
/* HERO SECTION */
/* ============================= */
.hero-section {
    height: 100vh;
    min-height: 600px;
    position: relative;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
    font-family: 'Raleway', sans-serif;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
}

.hero-buttons {
    margin-top: 2rem;
}

.hero-logo {
    max-width: 300px;
    height: auto;
    filter: drop-shadow(0 0 20px rgba(237, 50, 55, 0.3));
}

/* ============================= */
/* SERVICIOS */
/* ============================= */
.service-card {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
    text-align: center;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.service-icon img {
    filter: brightness(0) invert(1);
    width: 40px;
    height: 40px;
}

.service-card h4 {
    color: var(--dark-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.service-features ul {
    text-align: left;
    margin-top: 1rem;
}

.additional-service {
    text-align: center;
    padding: 2rem 1rem;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
}

.additional-service:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* ============================= */
/* PRODUCTOS */
/* ============================= */
.product-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.product-image {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: var(--gray-light);
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
    transition: var(--transition);
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-info h5 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.product-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.nav-pills .nav-link {
    color: var(--dark-color);
    background: var(--gray-light);
    border-radius: 20px;
    padding: 8px 20px;
    transition: var(--transition);
    border: none;
}

.nav-pills .nav-link:hover {
    background: #e9ecef;
}

.nav-pills .nav-link.active {
    background: var(--primary-color);
    color: white;
}

/* ============================= */
/* CONTACTO */
/* ============================= */
.contact-section {
    background: var(--gray-light);
    padding: 80px 0;
}

.contact-form-wrapper {
    background: white;
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
}

.contact-info-item {
    padding: 2rem 1rem;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
}

.contact-info-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(237, 50, 55, 0.25);
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* ============================= */
/* FOOTER */
/* ============================= */
.footer {
    background: var(--dark-color);
    color: white;
    padding: 3rem 0 1rem;
}

.footer-logo {
    max-width: 200px;
    height: auto;
}

.footer-section h5 {
    color: white;
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: white;
    transform: translateX(5px);
}

.social-icons a {
    color: white;
    margin-right: 15px;
    font-size: 1.5rem;
    transition: var(--transition);
}

.social-icons a:hover {
    color: var(--primary-color);
    transform: scale(1.2);
}

.footer-divider {
    border-color: rgba(255, 255, 255, 0.1);
    margin: 2rem 0;
}

.copyright,
.powered-by {
    margin: 0;
    color: rgba(255, 255, 255, 0.7);
}

/* ============================= */
/* WHATSAPP BUTTON */
/* ============================= */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: white;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: var(--transition);
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #128c7e;
    color: white;
    text-decoration: none;
}

/* ============================= */
/* BACK TO TOP */
/* ============================= */
.back-to-top {
    position: fixed;
    bottom: 40px;
    left: 40px;
    background: var(--primary-color);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--dark-color);
    transform: scale(1.1);
    color: white;
    text-decoration: none;
}

/* ============================= */
/* BLOG PREVIEW */
/* ============================= */
.blog-preview {
    background: var(--gray-light);
    padding: 80px 0;
}

.blog-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.blog-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary-color);
    color: white;
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.blog-content {
    padding: 1.5rem;
}

.blog-content h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

/* ============================= */
/* ANIMACIONES */
/* ============================= */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 20px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* ============================= */
/* RESPONSIVE */
/* ============================= */
@media (max-width: 991px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .top-bar .contact-info span {
        margin-right: 1rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 768px) {
    .hero-section {
        height: 70vh;
        min-height: 500px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .section-padding {
        padding: 60px 0;
    }
    
    .navbar-logo {
        height: 40px;
    }
    
    .top-bar {
        display: none;
    }
    
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 25px;
    }
    
    .back-to-top {
        bottom: 20px;
        left: 20px;
        width: 45px;
        height: 45px;
    }
    
    .hero-buttons .btn {
        margin-bottom: 10px;
    }
    
    .contact-form-wrapper {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .hero-buttons .btn {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .contact-form-wrapper {
        padding: 1.5rem;
    }
}

/* ============================= */
/* HERO SECTION LIMPIO - ESTILO CAPTURA */
/* Agregar al final de css/main.css */
/* ============================= */

.hero-section-clean {
    position: relative;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-overlay-clean {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg, 
        rgba(0, 0, 0, 0.6) 0%, 
        rgba(0, 0, 0, 0.3) 50%, 
        rgba(0, 0, 0, 0.4) 100%
    );
    z-index: 2;
}

.hero-content-clean {
    position: relative;
    z-index: 3;
    color: white;
    max-width: 600px;
}

.hero-title-clean {
    font-family: 'Raleway', sans-serif;
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.text-red {
    color: #ED3237 !important;
}

.hero-subtitle-clean {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
    font-weight: 400;
}

.hero-buttons-clean {
    margin-top: 2rem;
}

.hero-buttons-clean .btn {
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    margin-bottom: 10px;
}

.hero-buttons-clean .btn-primary {
    background: #ED3237;
    border-color: #ED3237;
    box-shadow: 0 4px 15px rgba(237, 50, 55, 0.3);
}

.hero-buttons-clean .btn-primary:hover {
    background: #c02328;
    border-color: #c02328;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(237, 50, 55, 0.4);
}

.hero-buttons-clean .btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.8);
    color: white;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.hero-buttons-clean .btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: white;
    color: white;
    transform: translateY(-2px);
}

/* Fallback si no hay imagen */
.hero-section-clean::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #ED3237 0%, #2A7BBE 100%);
    z-index: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section-clean {
        height: 70vh;
        min-height: 500px;
    }
    
    .hero-title-clean {
        font-size: 2.5rem;
    }
    
    .hero-subtitle-clean {
        font-size: 1rem;
    }
    
    .hero-buttons-clean .btn {
        width: 100%;
        margin-bottom: 10px;
    }
}

@media (max-width: 480px) {
    .hero-title-clean {
        font-size: 2rem;
    }
    
    .hero-subtitle-clean {
        font-size: 0.9rem;
    }
}

/* ============================= */
/* MEJORAS FINALES PARA HERO Y DISEÑO */
/* Agregar al final de main.css */
/* ============================= */

/* Mejorar legibilidad del hero */
.hero-section .hero-overlay {
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.7) 0%,
        rgba(0, 0, 0, 0.5) 50%,
        rgba(0, 0, 0, 0.6) 100%
    );
    z-index: 1;
}

/* Mejorar contraste del texto */
.hero-content {
    position: relative;
    z-index: 3;
    color: white;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 3px 3px 10px rgba(0, 0, 0, 0.9);
    font-family: 'Raleway', sans-serif;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.8);
    /* background: rgba(0, 0, 0, 0.3); */
    padding: 15px 20px;
    border-radius: 10px;
    backdrop-filter: blur(5px);
    /* border: 1px solid rgba(255, 255, 255, 0.1); */
}

/* Mejorar botones del hero */
.hero-buttons .btn {
    padding: 15px 30px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    margin-bottom: 10px;
    font-size: 1.1rem;
    text-shadow: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.hero-buttons .btn-primary {
    background: linear-gradient(135deg, #ED3237, #c02328);
    border: none;
}

.hero-buttons .btn-primary:hover {
    background: linear-gradient(135deg, #c02328, #a01e23);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(237, 50, 55, 0.4);
}

.hero-buttons .btn-outline-light {
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
}

.hero-buttons .btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: white;
    transform: translateY(-3px);
}

/* Mejorar logo del hero */
.hero-logo {
    max-width: 280px;
    height: auto;
    filter: drop-shadow(3px 3px 15px rgba(0, 0, 0, 0.8)) 
            drop-shadow(0 0 30px rgba(255, 255, 255, 0.3));
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Efecto glassmorphism para el logo */
.hero-logo-container {
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.1),
        rgba(255, 255, 255, 0.05)
    );
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    padding: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* ============================= */
/* SECCIÓN DE MAPA ANTES DEL FOOTER */
/* ============================= */
.map-section {
    background: #f8f9fa;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.map-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(237, 50, 55, 0.02) 0%,
        rgba(42, 123, 190, 0.02) 100%
    );
    z-index: 1;
}

.map-container {
    position: relative;
    z-index: 2;
}

.map-content {
    text-align: center;
    margin-bottom: 3rem;
}

.map-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 1rem;
    font-family: 'Raleway', sans-serif;
}

.map-subtitle {
    font-size: 1.2rem;
    color: var(--gray-medium);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.map-embed {
    width: 100%;
    height: 450px;
    border: none;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.map-embed:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Información de contacto junto al mapa */
.map-info {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    margin-top: 2rem;
}

.map-info h4 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
    font-family: 'Raleway', sans-serif;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    padding: 10px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: rgba(237, 50, 55, 0.05);
    transform: translateX(5px);
}

.contact-item i {
    width: 25px;
    color: var(--primary-color);
    margin-right: 15px;
    font-size: 1.2rem;
}

.contact-item a {
    color: var(--dark-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: var(--primary-color);
}

/* ============================= */
/* MEJORAS WHATSAPP */
/* ============================= */
.whatsapp-float {
    position: fixed;
    width: 65px;
    height: 65px;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: white;
    border-radius: 50%;
    text-align: center;
    font-size: 32px;
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.4);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    animation: whatsapp-pulse 2s infinite;
    border: 3px solid rgba(255, 255, 255, 0.9);
}

.whatsapp-float:hover {
    transform: scale(1.15);
    background: linear-gradient(135deg, #128c7e, #0a6b5e);
    color: white;
    text-decoration: none;
    animation: none;
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.6);
}

/* Animación mejorada para WhatsApp */
@keyframes whatsapp-pulse {
    0% {
        box-shadow: 0 6px 25px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 6px 25px rgba(37, 211, 102, 0.4), 0 0 0 15px rgba(37, 211, 102, 0.15);
    }
    100% {
        box-shadow: 0 6px 25px rgba(37, 211, 102, 0.4);
    }
}

/* ============================= */
/* EFECTOS ADICIONALES */
/* ============================= */

/* Efecto parallax sutil en el hero */
.hero-bg {
    transform: scale(1.1);
    transition: transform 8s ease-out;
}

.hero-section.loaded .hero-bg {
    transform: scale(1);
}

/* Mejora del navbar */
.navbar {
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive mejorado */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.8rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        padding: 12px 15px;
    }
    
    .hero-logo {
        max-width: 200px;
        padding: 15px;
    }
    
    .map-section {
        padding: 60px 0;
    }
    
    .map-title {
        font-size: 2rem;
    }
    
    .map-embed {
        height: 350px;
    }
    
    .whatsapp-float {
        width: 55px;
        height: 55px;
        bottom: 25px;
        right: 25px;
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        padding: 10px 12px;
    }
    
    .hero-buttons .btn {
        width: 100%;
        margin-bottom: 10px;
        padding: 12px 20px;
        font-size: 1rem;
    }
    
    .map-title {
        font-size: 1.8rem;
    }
    
    .map-embed {
        height: 300px;
    }
}



/* ============================= */
/* SOMBRA SOLO EN EL LOGO - SIN CUADRADO */
/* Reemplazar en main.css la sección del navbar-logo */
/* ============================= */

/* Logo con sombra limpia */
.navbar-logo {
    height: 49px;
    width: auto;
    transition: all 0.3s ease;
    /* Sombras múltiples para destacar sobre rojo */
    filter: 
        drop-shadow(6px 7px 3px rgba(0, 0, 0, 0.3))
        drop-shadow(5px 4px 2px rgba(255, 255, 255, 0.6))
        drop-shadow(0 0 10px rgba(255, 255, 255, 0.5))
}

/* Efecto hover en el logo */
.navbar-logo:hover {
    filter: 
        drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.7))
        drop-shadow(-1px -1px 3px rgba(255, 255, 255, 0.5))
        drop-shadow(0 0 15px rgba(255, 255, 255, 0.4));
    transform: scale(1.05);
}

/* ELIMINAR el fondo del navbar-brand */
.navbar-brand {
    padding: 0; /* Sin padding extra */
    background: none; /* Sin fondo */
    border-radius: 0; /* Sin border-radius */
    backdrop-filter: none; /* Sin blur */
    border: none; /* Sin borde */
    transition: all 0.3s ease;
}

/* Opcional: Hover sutil solo en el contenedor */
.navbar-brand:hover {
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 768px) {
    .navbar-logo {
        height: 40px;
        filter: 
        drop-shadow(6px 7px 3px rgba(0, 0, 0, 0.3))
                drop-shadow(5px 4px 2px rgba(255, 255, 255, 0.6))
                drop-shadow(0 0 10px rgba(255, 255, 255, 0.5))
    }
}



.brands-slider {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.brand-item {
    width: 120px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s ease;
}

.brand-item:hover {
    filter: grayscale(0%);
    opacity: 1;
}

.brand-item img {
    max-width: 100%;
    max-height: 100%;
}

/* ================================================
   MEJORAS RESPONSIVE PARA BLOG
   ================================================ */

/* Blog Cards Mejoradas */
.blog-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.blog-image {
    overflow: hidden;
    position: relative;
    padding-top: 60%; /* Aspect ratio 5:3 */
}

.blog-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2A7BBE;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.blog-excerpt {
    flex: 1;
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
}

/* ================================================
   RESPONSIVE MÓVIL
   ================================================ */

@media (max-width: 768px) {
    /* Hero Section */
    .hero-title {
        font-size: 2rem !important;
    }
    
    .hero-subtitle {
        font-size: 1rem !important;
    }
    
    /* Blog Cards */
    .blog-card {
        margin-bottom: 1.5rem;
    }
    
    .blog-image {
        padding-top: 56.25%; /* Aspect ratio 16:9 en móvil */
    }
    
    .blog-title {
        font-size: 1.1rem;
    }
    
    .blog-excerpt {
        font-size: 0.9rem;
    }
    
    /* Secciones */
    section {
        padding: 3rem 0 !important;
    }
    
    .section-title h2 {
        font-size: 1.75rem !important;
    }
    
    /* Botones */
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    /* Navbar */
    .navbar-nav {
        text-align: center;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
    }
    
    /* Cards de servicios */
    .service-card, .product-card {
        margin-bottom: 1.5rem;
    }
    
    /* Tablas */
    .table-responsive {
        font-size: 0.85rem;
    }
    
    /* Footer */
    footer .col-md-4 {
        margin-bottom: 2rem;
        text-align: center !important;
    }
}

@media (max-width: 576px) {
    /* Ajustes para móviles pequeños */
    .hero-title {
        font-size: 1.75rem !important;
    }
    
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    /* Blog en móvil */
    .blog-card {
        margin-bottom: 1rem;
    }
    
    .blog-content {
        padding: 1rem !important;
    }
    
    .blog-title {
        font-size: 1rem;
    }
    
    /* Botones más grandes para tocar */
    .btn {
        min-height: 44px;
        padding: 0.65rem 1.25rem;
    }
    
    /* Formularios */
    .form-control, .form-select {
        min-height: 44px;
        font-size: 16px; /* Evita zoom en iOS */
    }
    
    /* Modal en móvil */
    .modal-dialog {
        margin: 0.5rem;
    }
}

/* ================================================
   OPTIMIZACIÓN DE IMÁGENES
   ================================================ */

/* Lazy loading para imágenes */
img {
    max-width: 100%;
    height: auto;
}

img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s;
}

img[loading="lazy"].loaded {
    opacity: 1;
}

/* Placeholder para imágenes */
.image-placeholder {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* ================================================
   ADMIN PANEL RESPONSIVE
   ================================================ */

@media (max-width: 768px) {
    /* Sidebar en móvil */
    .sidebar {
        width: 100% !important;
        position: relative !important;
        min-height: auto !important;
    }
    
    .main-content {
        margin-left: 0 !important;
        padding: 15px !important;
    }
    
    .nav-link {
        padding: 10px 15px !important;
        margin: 2px 10px !important;
    }
    
    /* Tablas admin en móvil */
    .table-responsive {
        border: none;
    }
    
    .table {
        font-size: 0.8rem;
    }
    
    .table th, .table td {
        padding: 0.5rem;
        white-space: nowrap;
    }
    
    /* Ocultar columnas menos importantes en móvil */
    .table .d-none.d-md-table-cell {
        display: none !important;
    }
    
    /* Botones de acción en móvil */
    .btn-group-sm .btn {
        padding: 0.25rem 0.4rem;
        font-size: 0.75rem;
    }
    
    /* Cards del dashboard */
    .stats-card {
        margin-bottom: 1rem;
    }
}

/* ================================================
   MEJORAS DE ACCESIBILIDAD
   ================================================ */

/* Focus visible para navegación por teclado */
*:focus {
    outline: 2px solid #ED3237;
    outline-offset: 2px;
}

/* Mejorar contraste de enlaces */
a {
    color: #2A7BBE;
    text-decoration: none;
}

a:hover {
    color: #1e5a8a;
    text-decoration: underline;
}

/* Botones accesibles */
.btn:focus {
    box-shadow: 0 0 0 0.25rem rgba(237, 50, 55, 0.25);
}

/* ================================================
   ANIMACIONES SUAVES
   ================================================ */

/* Reducir animaciones para usuarios que prefieran menos movimiento */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ================================================
   PRINT STYLES (para imprimir)
   ================================================ */

@media print {
    .navbar,
    .sidebar,
    .btn,
    footer,
    .no-print {
        display: none !important;
    }
    
    .main-content {
        margin-left: 0 !important;
    }
    
    a[href]:after {
        content: " (" attr(href) ")";
    }
}

/* ================================================
   ESTILOS ESPECÍFICOS DEL BLOG
   ================================================ */

/* Sección del blog en index.php */
#blog {
    background: #f8f9fa;
}

#blog .section-title h2 {
    color: #2A7BBE;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

#blog .section-title p {
    color: #666;
    font-size: 1.1rem;
}

/* Blog Card completa */
.blog-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* Imagen del blog */
.blog-image {
    position: relative;
    overflow: hidden;
    height: 250px;
    background: #f0f0f0;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-image img {
    transform: scale(1.1);
}

/* Overlay en hover */
.blog-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 50%, rgba(0,0,0,0.3));
    opacity: 0;
    transition: opacity 0.3s;
}

.blog-card:hover .blog-image::after {
    opacity: 1;
}

/* Contenido del blog */
.blog-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2A7BBE;
    margin-bottom: 1rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s;
}

.blog-card:hover .blog-title {
    color: #ED3237;
}

.blog-excerpt {
    flex: 1;
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Metadata del blog */
.blog-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
}

.blog-date {
    color: #999;
    font-size: 0.875rem;
}

.blog-date i {
    margin-right: 0.5rem;
}

/* Botón de leer más */
.btn-read-more {
    background: transparent;
    border: 2px solid #ED3237;
    color: #ED3237;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-read-more:hover {
    background: #ED3237;
    color: white;
    transform: translateX(5px);
}

.btn-read-more i {
    margin-left: 0.5rem;
    transition: transform 0.3s;
}

.btn-read-more:hover i {
    transform: translateX(5px);
}

/* ================================================
   PÁGINA DE DETALLE DEL BLOG
   ================================================ */

.blog-detail-container {
    max-width: 900px;
    margin: 0 auto;
}

.blog-detail-header {
    margin-bottom: 2rem;
}

.blog-detail-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2A7BBE;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.blog-detail-meta {
    display: flex;
    gap: 2rem;
    color: #666;
    font-size: 0.95rem;
    padding: 1rem 0;
    border-top: 1px solid #e9ecef;
    border-bottom: 1px solid #e9ecef;
}

.blog-detail-meta i {
    margin-right: 0.5rem;
    color: #ED3237;
}

.blog-detail-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 12px;
    margin: 2rem 0;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.blog-detail-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
}

.blog-detail-content h3 {
    color: #2A7BBE;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.blog-detail-content p {
    margin-bottom: 1.5rem;
}

.blog-detail-content ul,
.blog-detail-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.blog-detail-content li {
    margin-bottom: 0.5rem;
}

.blog-detail-content strong {
    color: #ED3237;
    font-weight: 600;
}

/* Posts relacionados */
.related-posts {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 2px solid #e9ecef;
}

.related-posts h3 {
    color: #2A7BBE;
    font-weight: 700;
    margin-bottom: 2rem;
}

/* ================================================
   ESTADOS ESPECIALES
   ================================================ */

/* Estado de carga */
.blog-card.loading {
    pointer-events: none;
    opacity: 0.6;
}

.blog-card.loading .blog-image {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

/* Sin imagen */
.blog-card .no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 3rem;
}

/* ================================================
   RESPONSIVE ESPECÍFICO PARA BLOG
   ================================================ */

@media (max-width: 992px) {
    .blog-detail-title {
        font-size: 2rem;
    }
    
    .blog-detail-image {
        height: 300px;
    }
    
    .blog-detail-content {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .blog-card {
        margin-bottom: 1.5rem;
    }
    
    .blog-image {
        height: 200px;
    }
    
    .blog-content {
        padding: 1.25rem;
    }
    
    .blog-title {
        font-size: 1.1rem;
    }
    
    .blog-excerpt {
        font-size: 0.9rem;
    }
    
    .blog-detail-title {
        font-size: 1.75rem;
    }
    
    .blog-detail-image {
        height: 250px;
        margin: 1.5rem 0;
    }
    
    .blog-detail-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .blog-detail-content {
        font-size: 0.95rem;
    }
}

@media (max-width: 576px) {
    .blog-image {
        height: 180px;
    }
    
    .blog-content {
        padding: 1rem;
    }
    
    .blog-title {
        font-size: 1rem;
    }
    
    .blog-detail-title {
        font-size: 1.5rem;
    }
    
    .blog-detail-image {
        height: 200px;
    }
    
    .btn-read-more {
        padding: 0.4rem 1rem;
        font-size: 0.875rem;
    }
}

/* ================================================
   MEJORAS DE PERFORMANCE
   ================================================ */

/* Optimizar imágenes con will-change */
.blog-image img {
    will-change: transform;
}

/* Mejorar rendering */
.blog-card {
    contain: layout style paint;
}