/* ==========================================================
   ESTILOS DE LA PÁGINA DE INICIO (HOME) - FINAL OPTIMIZADO
   ========================================================== */

/* --- TÍTULO PRINCIPAL (ToolsProDev) --- */
#main-title-bar h1 {
    font-size: 2.5rem !important;
    font-weight: 800;
    letter-spacing: -1px;
    background: linear-gradient(135deg, #2563eb, #00d4ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 5px;
    text-align: center;
}

/* Hero Section */
.hero-home {
    text-align: center;
    padding: 40px 20px;
    border-bottom: 1px solid var(--border-color, #eee);
    margin-bottom: 40px;
    background: linear-gradient(to bottom, transparent, rgba(0,123,255,0.05));
}

.hero-home h2 {
    font-size: 1.8rem;
    color: #1f2937;
    margin-bottom: 15px;
    font-weight: 800;
}

.hero-home p {
    font-size: 1.1rem;
    color: #4b5563;
    max-width: 650px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Cuadrícula de Herramientas */
.home-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin: 20px 0 50px 0;
}

/* Tarjeta de Herramienta (Card) */
.tool-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.tool-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    border-color: #3b82f6;
}

/* Iconos de las tarjetas */
.card-icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
    filter: drop-shadow(0 4px 3px rgba(0,0,0,0.1));
}

/* Colores de Iconos Individuales */
.fa-code { color: #2563eb; }          /* JSON - Azul */
.fa-link { color: #10b981; }          /* URL - Verde */
.fa-file-code { color: #f59e0b; }     /* XML - Naranja */
.fa-microchip { color: #8b5cf6; }     /* Base64 - Púrpura */
.fa-shield-halved, .fa-shield-alt { color: #ef4444; } /* Hash - Rojo */
.fa-markdown { color: #06b6d4; }      /* Marker - Cian */
.fa-lightbulb, .fa-plus-circle { color: #facc15; } /* Sugerencias - Amarillo */

.tool-card h2 {
    color: #1e40af;
    font-size: 1.25rem;
    margin-bottom: 12px;
    font-weight: 700;
}

/* Etiquetas COMING SOON (Píldora) */
.tool-card h3 {
    font-size: 0.7rem;
    text-transform: uppercase !important;
    color: #d97706 !important;
    background: #fef3c7;
    padding: 4px 12px;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 15px;
    font-weight: 800;
    letter-spacing: 0.8px;
    border: 1px solid #fcd34d;
}

.tool-card p {
    font-size: 0.95rem;
    color: #4b5563;
    line-height: 1.5;
    margin: 0;
}

/* --- Tarjeta Especial de Sugerencias (Dashed) --- */
.suggest-card {
    border-style: dashed !important;
    background: rgba(59, 130, 246, 0.03) !important;
    border-color: #cbd5e1 !important;
    justify-content: center;
}

.suggest-card:hover {
    border-color: #3b82f6 !important;
    background: rgba(59, 130, 246, 0.06) !important;
    transform: none !important; /* No se eleva para diferenciarla */
}

.suggest-btn {
    margin-top: 15px;
    padding: 8px 18px;
    background: #2563eb;
    color: white !important;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s;
}

.suggest-btn:hover {
    background: #1d4ed8;
}

/* --- Fix para Páginas Estáticas (About/Contact) --- */
.static-page-wrapper .text-center-fix,
.contact-container-header p {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 25px auto;
}

/* ==========================================================
   MODO OSCURO (DARK MODE)
   ========================================================== */

html.dark #main-title-bar h1 {
    background: linear-gradient(135deg, #60a5fa, #a5f3fc);
    -webkit-background-clip: text;
}

html.dark .hero-home h2 { color: #f3f4f6; }
html.dark .hero-home p { color: #9ca3af; }

html.dark .tool-card {
    background: #1f2937;
    border-color: #374151;
}

html.dark .tool-card h2 { color: #60a5fa; }
html.dark .tool-card p { color: #9ca3af; }

html.dark .tool-card h3 {
    color: #fbbf24 !important; 
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.3);
}

html.dark .suggest-card {
    background: rgba(96, 165, 250, 0.05) !important;
    border-color: #4b5563 !important;
}

/* Responsive */
@media (max-width: 640px) {
    #main-title-bar h1 { font-size: 2rem !important; }
    .hero-home h2 { font-size: 1.5rem; }
    .home-grid { grid-template-columns: 1fr; }
}

#main-title-bar h1 a:hover {
    filter: brightness(1.2);
    cursor: pointer;
}