/* ==========================================
   RESET BÁSICO Y CONFIGURACIÓN GENERAL
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

html, body {
    max-width: 100%;
    overflow-x: hidden;
    background-color: #2c2c2c;
    color: #ffffff;
}

/* ==========================================
   HEADER Y NAVEGACIÓN
   ========================================== */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 4%;
    background-color: #231f20;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 3px solid #d7171f;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
}

.logo img {
    max-height: 80px;
    width: auto;
    object-fit: contain;
    display: block;
}

.nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
    transition: 0.3s;
}

.nav a:hover {
    color: #fbc02d;
}

.btn-nav-tienda {
    background-color: #d7171f;
    padding: 8px 16px;
    border-radius: 4px;
}

.btn-nav-tienda:hover {
    background-color: #b51219 !important;
}

/* ==========================================
   BANNER PRINCIPAL (HERO CON VIDEO)
   ========================================== */
.hero {
    position: relative;
    width: 100%;
    min-height: 60vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 40px 20px;
    overflow: hidden;
    background-color: #8d1414;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%);
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.55);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
}

.titulo-animado {
    font-size: 60px;
    font-weight: 900;
    letter-spacing: 3px;
    text-shadow: 0 4px 15px rgba(0,0,0,0.9);
    line-height: 1.1;
}

.subtitulo-animado {
    font-size: 22px;
    color: #fbc02d;
    font-weight: 700;
    margin: 20px 0 30px 0;
    text-shadow: 0 2px 10px rgba(0,0,0,0.9);
}

.hero-botones {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.btn {
    padding: 16px 32px;
    font-weight: 900;
    font-size: 15px;
    text-decoration: none;
    border-radius: 5px;
    transition: 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}

.btn-rojo {
    background-color: #d7171f;
    color: #ffffff;
}

.btn-rojo:hover {
    background-color: #b51219;
    transform: translateY(-3px);
}

.btn-azul {
    background-color: #1d395a;
    color: #ffffff;
}

.btn-azul:hover {
    background-color: #142840;
    transform: translateY(-3px);
}

/* ==========================================
   SECCIÓN MARCAS
   ========================================== */
.marcas {
    padding: 70px 20px;
    text-align: center;
    background: #181818;
}

.titulo-seccion {
    font-size: 28px;
    font-weight: 900;
    text-align: center;
    margin-bottom: 30px;
    color: #ffffff;
}

.titulo-seccion::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: #d7171f;
    margin: 8px auto 0 auto;
}

.grid-marcas {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
    flex-wrap: wrap;
    max-width: 1100px;
    margin: 0 auto;
}

.marca-card {
    width: 220px;
    height: 110px;
    background-color: #231f20;
    border: 1px solid #333333;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.marca-card:hover {
    border-color: #d7171f;
    transform: translateY(-3px);
}

.marca-card img {
    max-width: 80%;
    max-height: 70%;
    object-fit: contain;
}

.texto-destacado-marcas {
    color: #ffffff;
    margin-top: 20px;
    font-weight: 700;
}

/* ==========================================
   SECCIÓN SERVICIOS
   ========================================== */
.servicios {
    padding: 70px 20px;
    text-align: center;
    background-color: #2c2c2c;
}

.subtitulo-servicios {
    color: #fbc02d;
    max-width: 900px;
    margin: 0 auto 40px auto;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.6;
}

.lista-servicios-contenedor {
    display: flex;
    justify-content: center;
    gap: 40px;
    max-width: 1100px;
    margin: 0 auto;
    text-align: left;
    flex-wrap: wrap;
}

.columna-servicios {
    flex: 1;
    min-width: 300px;
    list-style: none;
}

.columna-servicios li {
    font-size: 16px;
    font-weight: 400;
    margin-bottom: 15px;
    position: relative;
    padding-left: 20px;
    color: #ffffff;
}

.columna-servicios li::before {
    content: "■";
    color: #d7171f;
    font-size: 12px;
    position: absolute;
    left: 0;
    top: 0;
}

/* ==========================================
   GALERÍA DE OBRAS
   ========================================== */
.galeria-obras {
    display: flex;
    justify-content: center;
    gap: 20px;
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    flex-wrap: wrap;
}

.foto-obra {
    flex: 1;
    min-width: 250px;
    height: 350px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.7);
}

.foto-obra img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.foto-obra img:hover {
    transform: scale(1.04);
}

/* ==========================================
   SECCIÓN CAPACITACIONES BOSCH
   ========================================== */
.capacitaciones-section {
    background-color: #1f1f1f;
    color: #ffffff;
    padding: 60px 20px;
    text-align: center;
}

.capacitaciones-container {
    max-width: 1200px;
    margin: 0 auto;
}

.badge-gratis {
    background-color: #a82727;
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 800;
    padding: 6px 16px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    margin-bottom: 15px;
}

.capacitaciones-header h2 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.linea-decorativa {
    width: 60px;
    height: 4px;
    background-color: #ffffff;
    margin: 10px auto 20px;
    border-radius: 2px;
}

.capacitaciones-intro {
    max-width: 800px;
    margin: 0 auto 40px;
    font-size: 1.1rem;
    color: #cccccc;
    line-height: 1.6;
}

.capacitaciones-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

.card-capacitacion {
    background-color: #1e1e1e;
    border: 1px solid #333333;
    border-radius: 12px;
    padding: 30px 20px;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.card-capacitacion:hover {
    transform: translateY(-5px);
    border-color: #e20015;
}

.card-capacitacion .icon-box i {
    font-size: 2.5rem;
    color: #e20015;
    margin-bottom: 15px;
}

.card-capacitacion h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
    color: #ffffff;
}

.card-capacitacion p {
    font-size: 0.95rem;
    color: #aaaaaa;
    line-height: 1.5;
}

.fotos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.foto-card {
    overflow: hidden;
    border-radius: 10px;
    border: 1px solid #333;
    height: 380px;
    background-color: #2a2a2a;
}

.foto-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.foto-card:hover img {
    transform: scale(1.05);
}

.capacitaciones-cta {
    margin-top: 50px;
    padding: 30px;
    background: linear-gradient(135deg, #1e1e1e, #2a2a2a);
    border-radius: 12px;
    border: 1px solid #333;
}

.capacitaciones-cta p {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 18px;
    color: #f8f8f8;
}

.btn-agendar {
    display: inline-block;
    background-color: #d32525;
    color: #ffffff;
    padding: 14px 28px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 8px;
    font-size: 1rem;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-agendar:hover {
    background-color: #1ebc57;
    transform: scale(1.03);
}

/* ==========================================
   SECCIÓN POR QUÉ ELEGIRNOS
   ========================================== */
.elegirnos {
    padding: 70px 20px;
    text-align: center;
    background: #181818;
}

.grid-elegirnos {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
    max-width: 1100px;
    margin: 0 auto;
}

.item-elegirnos {
    background: #231f20;
    border: 1px solid #333;
    padding: 25px 20px;
    border-radius: 8px;
    width: 220px;
}

.item-elegirnos .icono {
    font-size: 28px;
    margin-bottom: 10px;
}

.item-elegirnos h3 {
    color: #fbc02d;
    font-size: 15px;
    margin-bottom: 6px;
}

.item-elegirnos p {
    font-size: 11px;
    font-weight: 700;
    color: #ccc;
}

/* ==========================================
   FOOTER (PIE DE PÁGINA)
   ========================================== */
.footer-principal {
    background-color: #0d0d0d;
    border-top: 3px solid #e20015;
    padding: 50px 20px 20px 20px;
    color: #ffffff;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: #ffffff;
}

.footer-col p {
    font-size: 0.95rem;
    color: #cccccc;
    margin-bottom: 12px;
    line-height: 1.5;
}

.footer-col i {
    color: #e20015;
    margin-right: 8px;
}

.direccion-destacada {
    color: #ffcc00 !important;
    font-weight: 700;
}

.instagram-link a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.instagram-link a:hover {
    color: #e20015;
}

.btn-footer {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.85rem;
    text-decoration: none;
    margin-top: 10px;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.btn-whatsapp-footer {
    background-color: #25d366;
    color: #ffffff;
}

.btn-rojo-footer {
    background-color: #e20015;
    color: #ffffff;
}

.btn-footer:hover {
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid #222222;
    padding-top: 20px;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: #666666;
}

/* ==========================================
   DISEÑO RESPONSIVE (CELULARES)
   ========================================== */
@media (max-width: 768px) {
    .header {
        padding: 10px 15px;
        flex-direction: column;
        gap: 15px;
    }

    .nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    .nav a {
        font-size: 0.8rem;
    }

    .titulo-animado {
        font-size: 32px;
    }

    .subtitulo-animado {
        font-size: 16px;
    }

    .hero-botones {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
        text-align: center;
    }
}