/* =========================================
   VARIABLES Y BASE (BOSCH BRAND UI)
   ========================================= */
:root {
    --bosch-red: #e20015;
    --bosch-red-hover: #b80011;
    --bosch-blue: #005691;
    --bosch-blue-hover: #003e6b;
    --bg-white: #ffffff;
    --bg-light: #f5f7fa;
    --text-dark: #1a1a1a;
    --text-p: #4a4a4a;
    --border-gray: #e5e7eb;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Inter', sans-serif; }
body { background-color: var(--bg-white); color: var(--text-p); line-height: 1.6; overflow-x: hidden; }
a { text-decoration: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.text-red { color: var(--bosch-red); }
.text-blue { color: var(--bosch-blue); }
.text-center { text-align: center; }
.bg-light { background-color: var(--bg-light); border-top: 1px solid var(--border-gray); border-bottom: 1px solid var(--border-gray); }

/* BOTONES */
.btn-red { background: var(--bosch-red); color: #fff; padding: 14px 28px; border-radius: 4px; font-weight: 700; font-size: 15px; transition: 0.2s; border: 2px solid var(--bosch-red); display: inline-flex; justify-content: center; }
.btn-red:hover { background: var(--bosch-red-hover); border-color: var(--bosch-red-hover); box-shadow: 0 5px 15px rgba(226, 0, 21, 0.3); }
.btn-outline-blue { background: transparent; color: var(--bosch-blue); border: 2px solid var(--bosch-blue); padding: 14px 28px; border-radius: 4px; font-weight: 700; font-size: 15px; transition: 0.2s; display: inline-flex; justify-content: center; }
.btn-outline-blue:hover { background: var(--bosch-blue); color: #fff; }

/* =========================================
   HERO
   ========================================= */
.hero-industrial { 
    position: relative; padding: 140px 0; background: #e5e7eb; /* Background image placeholder */
}
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(90deg, rgba(255,255,255,1) 0%, rgba(255,255,255,0.7) 50%, transparent 100%); z-index: 1; }
.hero-content { position: relative; z-index: 2; max-width: 650px; }
.badge-red { display: inline-block; background: var(--bosch-red); color: #fff; padding: 6px 14px; font-size: 12px; font-weight: 800; text-transform: uppercase; border-radius: 4px; margin-bottom: 20px; letter-spacing: 1px; }
.hero-content h1 { font-size: 48px; font-weight: 900; color: var(--text-dark); line-height: 1.1; margin-bottom: 20px; letter-spacing: -1px; }
.hero-content p { font-size: 18px; margin-bottom: 35px; color: #333; font-weight: 500;}
.hero-buttons { display: flex; gap: 15px; }

/* =========================================
   SECCIONES GLOBALES
   ========================================= */
.section-pad { padding: 90px 0; }
.section-title { text-align: center; margin-bottom: 50px; }
.section-title h2 { font-size: 36px; font-weight: 900; color: var(--text-dark); margin-bottom: 10px; letter-spacing: -0.5px; }
.section-title p { font-size: 16px; color: var(--text-p); }

/* NOSOTROS */
.about-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 60px; align-items: center; }
.about-text h2 { font-size: 34px; font-weight: 900; color: var(--text-dark); margin-bottom: 20px; line-height: 1.2; }
.about-text p { font-size: 16px; margin-bottom: 20px; }
.check-list { list-style: none; margin-top: 25px; }
.check-list li { margin-bottom: 12px; font-size: 15px; display: flex; align-items: flex-start; gap: 12px; }
.check-list li i { margin-top: 4px; font-size: 14px; }
.check-list li strong { color: var(--text-dark); }

.about-stats { display: flex; flex-direction: column; gap: 20px; }
.stat-card { background: #fff; border: 1px solid var(--border-gray); padding: 25px; border-radius: 6px; box-shadow: 0 4px 15px rgba(0,0,0,0.03); border-left: 4px solid var(--bosch-blue); transition: 0.3s; }
.stat-card:nth-child(2) { border-left-color: var(--bosch-red); }
.stat-card:hover { transform: translateX(5px); box-shadow: 0 8px 25px rgba(0,0,0,0.08); }
.stat-card i { font-size: 24px; margin-bottom: 10px; }
.stat-card h3 { font-size: 18px; font-weight: 800; color: var(--text-dark); margin-bottom: 5px; }
.stat-card p { font-size: 14px; margin: 0; }

/* SERVICIOS GRID */
.services-grid-ind { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.service-card-ind { border: 1px solid var(--border-gray); padding: 40px 30px; border-radius: 6px; transition: 0.3s; background: #fff; text-align: center; }
.service-card-ind:hover { border-color: var(--bosch-blue); box-shadow: 0 10px 30px rgba(0, 86, 145, 0.1); transform: translateY(-5px); }
.svc-icon { width: 70px; height: 70px; background: var(--bg-light); color: var(--bosch-blue); font-size: 28px; display: flex; justify-content: center; align-items: center; border-radius: 50%; margin: 0 auto 20px; transition: 0.3s; }
.service-card-ind:hover .svc-icon { background: var(--bosch-blue); color: #fff; }
.service-card-ind h3 { font-size: 20px; font-weight: 800; color: var(--text-dark); margin-bottom: 12px; }
.service-card-ind p { font-size: 14px; }

/* BLOG GRID */
.border-top-blue { border-top: 4px solid var(--bosch-blue); }
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.blog-card { background: #fff; border: 1px solid var(--border-gray); border-radius: 6px; overflow: hidden; transition: 0.3s; }
.blog-card:hover { box-shadow: 0 10px 30px rgba(0,0,0,0.05); transform: translateY(-5px); }
.blog-img { height: 180px; background: #e5e7eb; display: flex; justify-content: center; align-items: center; font-size: 40px; color: #a0aec0; border-bottom: 1px solid var(--border-gray); }
.blog-content { padding: 25px; }
.blog-date { font-size: 12px; font-weight: 700; color: var(--bosch-red); text-transform: uppercase; letter-spacing: 1px; display: block; margin-bottom: 10px; }
.blog-content h3 { font-size: 18px; font-weight: 800; color: var(--text-dark); margin-bottom: 10px; line-height: 1.3; }
.blog-content p { font-size: 14px; margin-bottom: 20px; display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
.blog-link { font-size: 14px; font-weight: 700; color: var(--bosch-blue); display: flex; align-items: center; gap: 8px; transition: 0.2s; }
.blog-link:hover { color: var(--bosch-red); gap: 12px; }

/* RESEÑAS */
.reviews-grid-ind { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.review-box-ind { background: #fff; border: 1px solid var(--border-gray); padding: 30px; border-radius: 6px; display: flex; flex-direction: column; transition: 0.3s; }
.rev-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.rev-stars { color: #f59e0b; font-size: 14px; }
.review-box-ind p { font-size: 14px; font-style: italic; margin-bottom: 20px; flex-grow: 1; }
.review-box-ind strong { color: var(--text-dark); font-size: 15px; border-top: 1px solid var(--border-gray); padding-top: 15px; }
.highlight-rev { border-color: var(--bosch-blue); box-shadow: 0 10px 30px rgba(0, 86, 145, 0.08); transform: scale(1.02); }

/* CONTACTO Y MAPA */
.bg-dark-ind { background-color: #1a1a1a; color: #d1d5db; }
.contact-layout-ind { display: flex; background: #2a2a2a; border-radius: 8px; overflow: hidden; box-shadow: 0 20px 50px rgba(0,0,0,0.5); }
.contact-data-ind { flex: 1; padding: 50px; }
.contact-data-ind h2 { color: #fff; font-size: 32px; font-weight: 900; margin-bottom: 15px; }
.contact-list { margin: 35px 0; display: flex; flex-direction: column; gap: 20px; }
.c-item { display: flex; gap: 15px; }
.c-item i { width: 45px; height: 45px; background: rgba(255,255,255,0.05); color: var(--bosch-red); border-radius: 4px; display: flex; justify-content: center; align-items: center; font-size: 18px; border: 1px solid rgba(255,255,255,0.1); }
.c-item span { display: block; font-size: 13px; color: #9ca3af; margin-bottom: 3px;}
.c-item strong { color: #fff; font-size: 15px; }

/* HORARIO DINÁMICO */
.schedule-box-ind { background: #1f1f1f; border: 1px solid rgba(255,255,255,0.1); border-radius: 6px; }
.sch-header { display: flex; align-items: center; gap: 10px; padding: 15px 20px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.status-indicator { width: 10px; height: 10px; border-radius: 50%; }
.schedule-box-ind.open .status-indicator { background: #22c55e; box-shadow: 0 0 10px rgba(34,197,94,0.4); }
.schedule-box-ind.open .status-text { color: #22c55e; font-weight: 700; }
.schedule-box-ind.closed .status-indicator { background: #ef4444; }
.schedule-box-ind.closed .status-text { color: #ef4444; font-weight: 700; }
.status-time { color: #9ca3af; font-size: 13px; margin-left: auto; }
.sch-body { padding: 20px; }
.sch-body ul { list-style: none; font-size: 14px; }
.sch-body li { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px dashed rgba(255,255,255,0.1); }
.sch-body li:last-child { border: none; padding-bottom: 0; }
.sch-body li span { color: #fff; font-weight: 700; }

.contact-map-ind { flex: 1; min-height: 400px; }

/* FOOTER */
.bosch-footer { padding: 40px 0; background: #111; color: #6b7280; border-top: 1px solid #333; }
.footer-content { display: flex; justify-content: space-between; align-items: center; }
.brand h3 { color: #fff; font-size: 20px; font-weight: 900; margin-bottom: 5px; }
.brand p { font-size: 14px; }
.footer-links { display: flex; gap: 20px; }
.footer-links a { color: #9ca3af; font-size: 14px; transition: 0.2s; }
.footer-links a:hover { color: #fff; }

/* WIDGET WHATSAPP ANIMADO (BOSCH STYLE) */
.wa-widget-container { position: fixed; bottom: 30px; right: 30px; z-index: 9999; }
.wa-floating-btn { width: 60px; height: 60px; background-color: #25D366; color: #fff; border: none; border-radius: 50%; font-size: 32px; cursor: pointer; box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4); display: flex; justify-content: center; align-items: center; transition: 0.3s; position: relative; }
.wa-floating-btn:hover { transform: scale(1.1); }
.wa-tooltip { position: absolute; right: 75px; background-color: #1a1a1a; color: #fff; font-size: 13px; padding: 8px 15px; border-radius: 4px; white-space: nowrap; opacity: 0; pointer-events: none; transition: 0.3s; transform: translateX(10px); }
.wa-tooltip::after { content: ''; position: absolute; right: -5px; top: 50%; transform: translateY(-50%); border-left: 5px solid #1a1a1a; border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
.wa-floating-btn:hover .wa-tooltip { opacity: 1; transform: translateX(0); }

.wa-chat-window { position: absolute; bottom: 80px; right: 0; width: 320px; background-color: #fff; border: 1px solid var(--border-gray); border-radius: 6px; box-shadow: 0 15px 40px rgba(0,0,0,0.15); overflow: hidden; opacity: 0; visibility: hidden; transform: translateY(20px) scale(0.95); transform-origin: bottom right; transition: all 0.3s ease-out; }
.wa-chat-window.active { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }

.wa-chat-header-ind { background-color: var(--bosch-blue); padding: 20px; display: flex; justify-content: space-between; align-items: center; }
.wa-header-info { display: flex; align-items: center; gap: 12px; }
.wa-avatar-ind { width: 40px; height: 40px; background-color: rgba(255,255,255,0.1); color: #fff; border-radius: 4px; display: flex; justify-content: center; align-items: center; font-size: 18px; }
.wa-header-info h4 { color: #fff; font-size: 15px; font-weight: 700; margin-bottom: 2px;}
.wa-header-info span { color: #86efac; font-size: 12px; font-weight: 600; }
.wa-close { background: none; border: none; color: rgba(255,255,255,0.7); font-size: 20px; cursor: pointer; transition: 0.2s; }
.wa-close:hover { color: #fff; }

.wa-chat-body { padding: 25px 20px; min-height: 150px; background-color: #f5f5f5; }
.wa-typing { display: flex; gap: 5px; background-color: #fff; padding: 12px 18px; border-radius: 6px; width: fit-content; border: 1px solid var(--border-gray); }
.wa-typing .dot { width: 8px; height: 8px; background-color: var(--bosch-blue); border-radius: 50%; animation: waBounce 1.4s infinite ease-in-out both; }
.wa-typing .dot:nth-child(1) { animation-delay: -0.32s; }
.wa-typing .dot:nth-child(2) { animation-delay: -0.16s; }
@keyframes waBounce { 0%, 80%, 100% { transform: scale(0); } 40% { transform: scale(1); } }

.wa-message-ind { background-color: #fff; padding: 15px; border-radius: 6px; border: 1px solid var(--border-gray); animation: fadeIn 0.4s ease; }
.wa-message-ind p { color: var(--text-p); font-size: 14px; margin-bottom: 15px; line-height: 1.5; }
.btn-wa-ind { display: flex; align-items: center; justify-content: center; gap: 8px; background-color: #25D366; color: #fff; padding: 12px; border-radius: 4px; font-weight: 700; font-size: 14px; transition: 0.2s; border: none;}
.btn-wa-ind:hover { background-color: #20b858; transform: translateY(-2px); }

/* =========================================
   PANELES DE PESTAÑAS (SERVICIOS INDUSTRIALES)
   ========================================= */
.services-layout-ind { 
    display: flex; 
    background: #fff; 
    border: 1px solid var(--border-gray); 
    border-radius: 6px; 
    overflow: hidden; 
    min-height: 450px; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}

.services-sidebar-ind { 
    width: 320px; 
    background: var(--bg-light); 
    border-right: 1px solid var(--border-gray); 
    display: flex; 
    flex-direction: column; 
}

.tab-btn-ind { 
    width: 100%; 
    text-align: left; 
    background: transparent; 
    border: none; 
    border-left: 4px solid transparent; /* Indicador Bosch */
    padding: 20px; 
    font-size: 15px; 
    font-weight: 700; 
    color: var(--text-p); 
    cursor: pointer; 
    transition: all 0.2s; 
    display: flex; 
    align-items: center; 
    gap: 12px; 
    border-bottom: 1px solid var(--border-gray);
}

.tab-btn-ind i { width: 20px; text-align: center; font-size: 18px; color: var(--text-p); transition: 0.2s;}
.tab-btn-ind:hover { background: #fff; color: var(--bosch-blue); }
.tab-btn-ind:hover i { color: var(--bosch-blue); }
.tab-btn-ind.active { background: #fff; color: var(--bosch-blue); border-left-color: var(--bosch-red); }
.tab-btn-ind.active i { color: var(--bosch-red); }

.services-content-area-ind { flex: 1; padding: 40px; }
.tab-content-ind { display: none; animation: fadeIn 0.4s ease; }
.tab-content-ind.active { display: block; }

/* Contenido Interno (Texto + Multimedia) */
.tab-flex-ind { display: flex; gap: 40px; align-items: stretch; }
.tab-text-ind { flex: 1.2; }
.tab-text-ind h3 { font-size: 26px; font-weight: 900; color: var(--text-dark); margin-bottom: 15px; line-height: 1.2; }
.tab-text-ind p { font-size: 15px; color: var(--text-p); margin-bottom: 20px; }

.numbered-list-ind { padding-left: 20px; margin-top: 15px; }
.numbered-list-ind li { font-size: 14px; margin-bottom: 10px; color: var(--text-p); }
.numbered-list-ind li strong { color: var(--text-dark); }

/* Área Multimedia */
.tab-media-ind { flex: 0.8; display: flex; align-items: center; justify-content: center; }
.image-placeholder-ind { 
    width: 100%; 
    height: 100%; 
    min-height: 250px;
    background: var(--bg-light); 
    border: 2px dashed var(--border-gray); 
    border-radius: 6px; 
    display: flex; 
    flex-direction: column;
    justify-content: center; 
    align-items: center; 
    color: #9ca3af; 
    font-size: 40px; 
    gap: 15px;
    transition: 0.3s;
}
/* Al sustituir el placeholder por una imagen real, usarás: 
.tab-media-ind img { width: 100%; height: 100%; object-fit: cover; border-radius: 6px; } 
*/
.image-placeholder-ind span { font-size: 14px; font-weight: 600; color: #6b7280;}
.image-placeholder-ind:hover { border-color: var(--bosch-blue); color: var(--bosch-blue); background: #fff; }


/* =========================================
   CAJA LEGAL (BOSCH / INDUSTRIAL UI)
   ========================================= */
.legal-box-ind {
    background: #ffffff;
    border: 1px solid var(--border-gray);
    border-top: 4px solid var(--bosch-blue);
    border-radius: 4px;
    padding: 50px;
    max-width: 900px;
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}

.legal-box-ind h3 {
    color: var(--bosch-blue);
    font-size: 22px;
    font-weight: 800;
    margin-top: 35px;
    margin-bottom: 15px;
    line-height: 1.3;
}

.legal-box-ind h3:first-child {
    margin-top: 0;
}

.legal-box-ind p {
    color: var(--text-p);
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 15px;
}

.legal-box-ind ul {
    padding-left: 20px;
    margin-bottom: 20px;
}

.legal-box-ind li {
    color: var(--text-p);
    font-size: 15px;
    margin-bottom: 8px;
}


/* =========================================
   RESPONSIVE DESIGN (Con Fixes Integrados)
   ========================================= */
@media (max-width: 992px) {
    /* Hero */
    .hero-content { text-align: center; margin: 0 auto; }
    .hero-overlay { background: rgba(255,255,255,0.85); }
    .hero-buttons { justify-content: center; }

    /* About */
    .about-grid { grid-template-columns: 1fr; text-align: center; }
    .check-list li { justify-content: center; text-align: left; }
    
    /* Grids a 1 columna */
    .services-grid-ind, .blog-grid, .reviews-grid-ind { grid-template-columns: 1fr; }
    
    /* Review Highlight Fix */
    .highlight-rev { transform: scale(1); }
    
    /* Contacto & Mapa Fix (Caja Negra) */
    .contact-layout-ind { flex-direction: column; }
    .contact-map-ind {
        flex: none; /* Quitamos comportamiento flex rebelde */
        width: 100%;
        height: 350px; /* Altura forzada */
        display: block;
    }
    .contact-map-ind iframe { width: 100% !important; height: 100% !important; display: block; }

    .services-layout-ind { flex-direction: column; }
    .services-sidebar-ind { width: 100%; border-right: none; flex-direction: row; flex-wrap: wrap; }
    .tab-btn-ind { width: 50%; border-left: none; border-bottom: 4px solid transparent; justify-content: center; text-align: center; }
    .tab-btn-ind.active { border-left-color: transparent; border-bottom-color: var(--bosch-red); }
    .tab-flex-ind { flex-direction: column; }
    .tab-media-ind { width: 100%; height: 250px; margin-top: 20px; }
}

@media (max-width: 768px) {
    .hero-content h1 { font-size: 38px; }
    .hero-buttons { flex-direction: column; width: 100%; max-width: 300px; margin: 0 auto; }
    .btn-red, .btn-outline-blue { width: 100%; }
    .footer-content { flex-direction: column; gap: 20px; text-align: center; }
    .wa-tooltip { display: none; }

    .tab-btn-ind { width: 100%; justify-content: flex-start; }
    .services-content-area-ind { padding: 30px 20px; }

    .legal-box-ind { padding: 30px 20px; }
}