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

/* 1. Tipografía y Cuerpo */
body.tpl-2 {
    font-family: 'Montserrat', sans-serif;
    background-color: #ffffff;
    color: #2d3436;
}

/* 2. Top Bar */
.tpl-2 .top-bar {
    background: #f8f9fa;
    color: #636e72;
    border-bottom: 1px solid #e1e1e1;
}

/* 3. Navegación */
.tpl-2 .main-nav {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #f1f2f6;
}

.tpl-2 .main-nav a {
    color: #2d3436;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* 4. Hero Section (Con Parallax) */
.tpl-2 .hero {
    background: linear-gradient(135deg, rgba(245, 247, 250, 0.85) 0%, rgba(195, 207, 226, 0.75) 100%), 
                url('https://images.unsplash.com/photo-1589829545856-d10d557cf95f?q=80&w=2070&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.tpl-2 .hero h1 { color: #0984e3; font-weight: 800; }

/* 5. Stats Bar */
.tpl-2 .stats-bar {
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.tpl-2 .stat-item h2 { color: #0984e3; }

/* 6. Cards Globales (Servicios, Equipo, Publicaciones) */
.tpl-2 .card {
    border-radius: 20px; /* Bordes muy redondeados */
    background: #ffffff;
    border: 1px solid #f1f2f6;
    transition: all 0.4s ease;
}

.tpl-2 .card:hover {
    border-color: #0984e3;
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(9, 132, 227, 0.1);
}

/* 7. Galería de Publicaciones */
.tpl-2 .grid-publications::-webkit-scrollbar-thumb {
    background: #0984e3;
    border-radius: 10px;
}

.tpl-2 .btn-read {
    color: #0984e3 !important;
    font-weight: 700 !important;
}

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

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

.tpl-2 .form-control {
    width: 100% !important;
    display: block !important;
    background: #fdfdfd !important;
    border: 1px solid #e1e1e1 !important;
    border-radius: 12px !important; /* Estilo redondeado */
    padding: 14px !important;
    color: #2d3436 !important;
}

.tpl-2 .form-control:focus {
    border-color: #0984e3 !important;
    box-shadow: 0 0 0 4px rgba(9, 132, 227, 0.1) !important;
    outline: none;
}

/* 9. Botones */
.tpl-2 .btn-primary {
    background: #0984e3;
    color: #ffffff;
    border-radius: 50px; /* Botón cápsula */
    padding: 15px;
    border: none;
    font-weight: 700;
    width: 100%;
    box-shadow: 0 4px 15px rgba(9, 132, 227, 0.3);
    cursor: pointer;
    transition: 0.3s;
}

.tpl-2 .btn-primary:hover {
    background: #0773c5;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(9, 132, 227, 0.4);
}

/* 10. Footer */
.tpl-2 .main-footer {
    background: #2d3436;
    color: #dfe6e9;
    border-radius: 30px 30px 0 0; /* Footer curvo arriba */
}