/* ==========================================================================
   TEMPLATE_3.CSS - Estética "The Litigator" (Black & Red)
   ========================================================================== */

/* 1. Tipografía y Cuerpo */
body.tpl-3 {
    font-family: 'Raleway', sans-serif;
    background-color: #0a0a0a;
    color: #eeeeee;
}

/* 2. Top Bar */
.tpl-3 .top-bar {
    background: #000000;
    color: #e63946; /* Rojo impacto */
    border-bottom: 1px solid #1a1a1a;
}

/* 3. Navegación */
.tpl-3 .main-nav {
    background: #000000;
    border-bottom: 1px solid #333;
}

.tpl-3 .nav-list a {
    color: #ffffff;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 2px;
}

.tpl-3 .nav-list a:hover {
    color: #e63946;
}

/* Ajuste móvil para que el fondo sea negro al desplegar */
@media (max-width: 768px) {
    .tpl-3 .nav-list {
        background: #000000;
        border-bottom: 3px solid #e63946;
    }
    .tpl-3 .nav-list li {
        border-bottom: 1px solid #1a1a1a;
    }
}

/* 4. Hero */
.tpl-3 .hero {
    background: linear-gradient(rgba(0,0,0,0.8), rgba(0,0,0,0.8)), 
                url('https://images.unsplash.com/photo-1505664194779-8beaceb93744?q=80&w=2070&auto=format&fit=crop');
    background-attachment: fixed;
    border-bottom: 5px solid #e63946;
}

.tpl-3 .hero h1 {
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -1px;
    color: #ffffff;
}

.tpl-3 .hero p {
    color: #cccccc;
    font-weight: 300;
}

/* 5. Stats Bar */
.tpl-3 .stats-bar {
    background: #111111;
    border: 1px solid #333;
}

.tpl-3 .stat-item h2 {
    color: #e63946;
    font-weight: 900;
}

.tpl-3 .stat-item p {
    color: #888;
    font-weight: 700;
}

/* 6. Cards y Servicios */
.tpl-3 .card {
    background: #111111;
    border: 1px solid #222;
    transition: all 0.4s ease;
}

.tpl-3 .card i {
    color: #e63946;
}

.tpl-3 .card h3 {
    color: #ffffff;
}

.tpl-3 .card p {
    color: #aaaaaa;
}

/* Efecto hover agresivo */
.tpl-3 .card:hover {
    background: #e63946;
    border-color: #e63946;
    transform: translateY(-10px);
}

.tpl-3 .card:hover h3, 
.tpl-3 .card:hover p, 
.tpl-3 .card:hover i {
    color: #ffffff;
}

/* 7. Galería de Publicaciones (Ajuste para Scroll) */
.tpl-3 .grid-publications::-webkit-scrollbar-thumb {
    background: #e63946;
}

.tpl-3 .btn-read {
    color: #e63946 !important;
    font-weight: 900 !important;
}

/* 8. Botones y Form (CORRECCIÓN DE ALINEACIÓN) */
.tpl-3 .contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    align-items: stretch;
}

.tpl-3 #contacto form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
}

.tpl-3 .btn-primary {
    background: #e63946;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 15px;
    border: none;
    font-weight: bold;
    width: 100%;
    cursor: pointer;
}

.tpl-3 .btn-primary:hover {
    background: #b22d37;
}

.tpl-3 .form-control {
    background: #000000 !important;
    border: 1px solid #333 !important;
    color: #ffffff !important;
    width: 100% !important;
    display: block !important;
    padding: 12px !important;
}

.tpl-3 .form-control:focus {
    border-color: #e63946 !important;
    outline: none;
}

/* 9. Footer */
.tpl-3 .main-footer {
    background: #000000;
    border-top: 2px solid #e63946;
    color: #666666;
}