:root {
    --c-brand: #D92525;
    --c-brand-hover: #ef3333;
    --bg-main: #0b0c10;
    --bg-darker: #13151b;
    --bg-card: #1c1f28;
    --border-color: rgba(255, 255, 255, 0.12);
    --text-main: #f8fafc;
    --text-secondary: #cbd5e1; /* Gris claro de alta legibilidad */
    --text-muted: #94a3b8;     /* Muted legible en fondos oscuros */
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: 'Inter', system-ui, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

/* SOBRESCRIBIR CLASES DE BOOTSTRAP PARA MODO OSCURO */
.text-muted {
    color: var(--text-secondary) !important;
}

h1, h2, h3, h4, h5, h6, .hero-title, .section-title {
    font-family: 'Inter', sans-serif;
    letter-spacing: -0.5px;
    color: #ffffff;
}

.text-brand { color: var(--c-brand) !important; }
.btn-brand {
    background-color: var(--c-brand);
    border-color: var(--c-brand);
    color: #ffffff !important;
    transition: all 0.3s ease;
}
.btn-brand:hover {
    background-color: var(--c-brand-hover);
    border-color: var(--c-brand-hover);
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(217, 37, 37, 0.4);
}

.section-padding { padding: 95px 0; }
.bg-dark { background-color: var(--bg-main) !important; }
.bg-darker { background-color: var(--bg-darker) !important; }

/* NAVBAR */
.custom-navbar {
    background: rgba(11, 12, 16, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
    padding: 15px 0;
}
.custom-navbar .nav-link {
    color: #e2e8f0;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 8px 14px !important;
    transition: color 0.2s ease;
}
.custom-navbar .nav-link:hover,
.custom-navbar .nav-link.active {
    color: var(--c-brand);
}

/* HERO */
.hero-section {
    background: url('../img/bg-inicio.jpg') center/cover no-repeat;
    min-height: 100vh;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(11, 12, 16, 0.96) 0%, rgba(11, 12, 16, 0.82) 50%, rgba(11, 12, 16, 0.94) 100%);
}
.hero-title {
    font-weight: 900;
    line-height: 1.1;
}
.hero-lead {
    color: #e2e8f0;
    font-size: 1.25rem;
    max-width: 700px;
}
.badge-pill {
    display: inline-block;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-color);
    color: #f1f5f9;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* STATS */
.stats-section {
    background: #141720;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}
.stat-card { padding: 20px 10px; }
.stat-num { font-size: 3rem; line-height: 1; margin-bottom: 8px; }
.stat-label { color: #cbd5e1; font-size: 0.95rem; font-weight: 600; text-transform: uppercase; }

/* HEADERS SECCIONES */
.sub-title {
    color: #ff4d4d;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    display: block;
    margin-bottom: 10px;
}
.section-title {
    font-weight: 800;
    font-size: 2.4rem;
    color: #ffffff;
    margin-bottom: 15px;
}
.section-lead {
    color: #cbd5e1;
    max-width: 720px;
    margin: 0 auto;
    font-size: 1.1rem;
}

/* CARDS: FEATURES & SERVICIOS */
.feature-card, .service-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 35px 28px;
    transition: all 0.3s ease;
}
.feature-card p, .service-box p {
    color: #cbd5e1 !important;
    font-size: 0.95rem;
    line-height: 1.6;
}
.feature-card:hover, .service-box:hover {
    border-color: rgba(217, 37, 37, 0.5);
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
}
.feature-icon, .service-icon {
    font-size: 2.2rem;
    color: var(--c-brand);
    margin-bottom: 18px;
}

/* PORTFOLIO / OBRAS */
.portfolio-filters .filter-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-color);
    color: #e2e8f0;
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s;
}
.portfolio-filters .filter-btn:hover,
.portfolio-filters .filter-btn.active {
    background: var(--c-brand);
    border-color: var(--c-brand);
    color: #ffffff;
}

.work-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all 0.3s;
}
.work-card:hover {
    border-color: rgba(217, 37, 37, 0.6);
    transform: translateY(-6px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.5);
}
.work-img-wrap {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
    background: #000;
}
.work-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.work-card:hover .work-img { transform: scale(1.06); }
.work-cat-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(11, 12, 16, 0.88);
    backdrop-filter: blur(5px);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
    border: 1px solid var(--border-color);
}
.work-actions {
    position: absolute;
    bottom: 12px;
    right: 12px;
}
.work-body { flex: 1; display: flex; flex-direction: column; }
.work-title { color: #ffffff; font-size: 1.3rem; }
.work-desc { color: #cbd5e1 !important; line-height: 1.5; }
.work-meta { color: #94a3b8; margin-top: auto; border-top: 1px solid var(--border-color) !important; }

/* CLIENTES */
.client-logo-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}
.client-logo-box:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.25);
}
.client-logo {
    max-height: 48px;
    max-width: 100%;
    filter: grayscale(100%) brightness(0.85);
    transition: all 0.3s;
}
.client-logo-box:hover .client-logo {
    filter: grayscale(0%) brightness(1);
    transform: scale(1.05);
}

/* CONTACTO */
.contact-icon {
    width: 48px;
    height: 48px;
    background: rgba(217, 37, 37, 0.15);
    border: 1px solid rgba(217, 37, 37, 0.3);
    color: var(--c-brand);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}
.contact-form-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
}
.contact-form-card label {
    color: #e2e8f0 !important;
    font-weight: 500;
}
.form-control-dark {
    background: #111319;
    border: 1px solid var(--border-color);
    color: #ffffff;
    padding: 12px 14px;
    border-radius: 8px;
}
.form-control-dark::placeholder {
    color: #64748b;
}
.form-control-dark:focus {
    background: #0f1117;
    border-color: var(--c-brand);
    color: #ffffff;
    box-shadow: 0 0 0 0.25rem rgba(217, 37, 37, 0.25);
}
select.form-control-dark option {
    background-color: #1a1d26;
    color: #ffffff;
}

/* WHATSAPP FLOAT */
.whatsapp-float {
    position: fixed;
    width: 58px;
    height: 58px;
    bottom: 25px;
    right: 25px;
    background-color: #25d366;
    color: #ffffff;
    border-radius: 50%;
    font-size: 30px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
}
.whatsapp-float:hover {
    color: #ffffff;
    transform: scale(1.12);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.5);
}