/* ==========================================================================
   TEMPLATE_1.CSS - Estética "Classic Law" (Blue & Professional)
   VERSIÓN CORREGIDA PARA FORMULARIOS Y GALERÍA
   ========================================================================== */

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

/* 2. Top Bar */
.tpl-1 .top-bar {
    background: #002e5b;
    color: #ffffff;
}

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

.tpl-1 .main-nav a {
    color: #002e5b;
    font-weight: 700;
}

.tpl-1 .main-nav a:hover {
    color: #0056b3;
}

/* 4. Hero Section */
.tpl-1 .hero {
    background: linear-gradient(rgba(0, 46, 91, 0.8), rgba(0, 46, 91, 0.8)), 
                url('https://images.unsplash.com/photo-1505664194779-8beaceb93744?q=80&w=2070&auto=format&fit=crop');
    color: white;
}

.tpl-1 .hero h1 {
    font-weight: 900;
    text-transform: uppercase;
}

/* 5. Stats Bar */
.tpl-1 .stats-bar {
    background: #ffffff;
    border-top: 5px solid #002e5b;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.tpl-1 .stat-item h2 {
    color: #002e5b;
}

/* 6. Cards Globales */
.tpl-1 .card {
    background: #ffffff;
    border: 1px solid #eee;
    border-radius: 4px;
}

.tpl-1 .card i {
    color: #002e5b;
}

.tpl-1 .card:hover {
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

/* 7. Publicaciones y Galería */
.tpl-1 .grid-publications::-webkit-scrollbar-thumb {
    background: #002e5b;
}

.tpl-1 .btn-read {
    color: #002e5b !important;
    text-decoration: underline !important;
}

/* 8. FORMULARIO Y CONTACTO (Corrección de alineación) */
.tpl-1 .contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    align-items: stretch;
}

.tpl-1 #contacto form {
    display: flex;
    flex-direction: column;
    gap: 15px; /* Espacio vertical entre inputs */
    width: 100%;
}

.tpl-1 .form-control {
    width: 100% !important;
    display: block !important;
    padding: 12px !important;
    border: 1px solid #ccc !important;
    border-radius: 4px !important;
    background: #fff !important;
    color: #333 !important;
}

.tpl-1 .form-control:focus {
    border-color: #002e5b !important;
    box-shadow: 0 0 5px rgba(0, 46, 91, 0.2);
    outline: none;
}

/* 9. Botones */
.tpl-1 .btn-primary {
    background: #002e5b;
    color: #ffffff;
    padding: 15px;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    text-transform: uppercase;
    width: 100%;
    cursor: pointer;
    transition: 0.3s;
}

.tpl-1 .btn-primary:hover {
    background: #004488;
    transform: translateY(-2px);
}

/* 10. Footer */
.tpl-1 .main-footer {
    background: #001a33;
    padding: 40px 0;
}