/* ==========================================================================
   TEMPLATE_4.CSS - Estética "The Elite" (Black & Gold Premium)
   VERSIÓN CORREGIDA PARA FORMULARIOS Y GALERÍA
   ========================================================================== */

/* 1. Tipografía y Cuerpo */
body.tpl-4 {
    font-family: 'Playfair Display', serif;
    background-color: #050505;
    color: #d1d1d1;
}

/* 2. Top Bar */
.tpl-4 .top-bar {
    background: #000000;
    color: #c5a059;
    border-bottom: 1px solid #1a1a1a;
    letter-spacing: 1px;
}

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

.tpl-4 .main-nav a {
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 2px;
}

.tpl-4 .main-nav a:hover { color: #c5a059; }

/* Menú Móvil */
@media (max-width: 768px) {
    .tpl-4 .main-nav ul.active {
        background: #0a0a0a;
        border-bottom: 2px solid #c5a059;
    }
}

/* 4. Hero Section */
.tpl-4 .hero {
    background: linear-gradient(rgba(0,0,0,0.85), rgba(0,0,0,0.85)), 
                url('https://images.unsplash.com/photo-1589829545856-d10d557cf95f?q=80&w=2070&auto=format&fit=crop');
    background-attachment: fixed;
}

.tpl-4 .hero h1 {
    font-weight: 700;
    color: #ffffff;
}

/* 5. Stats Bar */
.tpl-4 .stats-bar {
    background: #0a0a0a;
    border: 1px solid #1a1a1a;
    box-shadow: 0 20px 40px rgba(0,0,0,0.6);
}

.tpl-4 .stat-item h2 { color: #c5a059; }

/* 6. Cards Globales (Servicios, Equipo, Publicaciones) */
.tpl-4 .card {
    background: #0a0a0a;
    border: 1px solid #1a1a1a;
    transition: all 0.5s ease;
}

.tpl-4 .card:hover {
    border-color: #c5a059;
    background: #0f0f0f;
    transform: translateY(-5px);
}

.tpl-4 .card i { color: #c5a059; }
.tpl-4 .card h3 { color: #ffffff; font-family: 'Playfair Display', serif; }

/* 7. Sección Publicaciones (Galería con Scroll) */
.tpl-4 .grid-publications::-webkit-scrollbar-thumb {
    background: #c5a059;
}

.tpl-4 .pub-card h3 { font-size: 1.2rem; }
.tpl-4 .btn-read { color: #c5a059 !important; text-transform: uppercase; font-size: 0.8rem; letter-spacing: 1px; }

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

.tpl-4 #contacto form {
    display: flex;
    flex-direction: column;
    gap: 15px; /* Separa los inputs verticalmente */
    width: 100%;
}

.tpl-4 .form-control {
    width: 100% !important;
    display: block !important;
    background: #0f0f0f !important;
    border: 1px solid #222 !important;
    color: #ffffff !important;
    padding: 12px 15px !important;
    font-family: 'Montserrat', sans-serif;
    border-radius: 0;
}

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

/* 9. Botones */
.tpl-4 .btn-primary {
    background: #c5a059;
    color: #000;
    border-radius: 0;
    text-transform: uppercase;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    letter-spacing: 2px;
    border: none;
    padding: 15px;
    width: 100%;
    transition: 0.3s;
}

.tpl-4 .btn-primary:hover {
    background: #a38446;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(197, 160, 89, 0.3);
}

/* 10. Lightbox */
.tpl-4 .lightbox-content {
    background: #0a0a0a;
    border: 2px solid #c5a059;
}

.tpl-4 #modalTitle {
    font-family: 'Playfair Display', serif;
    color: #c5a059;
}

/* 11. Footer */
.tpl-4 .main-footer {
    background: #000000;
    color: #444;
    border-top: 1px solid #1a1a1a;
}