/* ===== TOOLS-PAGE.CSS - Estilos para páginas de herramientas ===== */

/* Page Header */
.page-header {
    text-align: center;
    margin-bottom: var(--section-spacing);
    padding: 40px 0;
    background: linear-gradient(135deg, var(--background-light) 0%, rgba(255, 255, 255, 0.8) 100%);
    margin: 0 -20px 80px -20px;
}

.page-header .container {
    padding: 40px 20px;
}

/* Tools Section */
.tools-section {
    margin-bottom: var(--section-spacing);
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.tool-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    padding: 0;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.tool-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(47, 54, 69, 0.15);
    border-color: var(--primary-color);
}

.tool-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: var(--background-light);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.tool-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    transform: scaleX(0);
    transition: var(--transition);
    transform-origin: left;
}

.tool-card:hover .tool-image::after {
    transform: scaleX(1);
}

.tool-image img {
    height: 80%;
    width: auto;
    max-width: 75%;
    object-fit: contain;
    transition: var(--transition);
}

.tool-card:hover .tool-image img {
    transform: scale(1.05);
}

.tool-content {
    padding: 32px;
}

.tool-header {
    display: flex;
    align-items: flex-start;
    margin-bottom: 24px;
    gap: 16px;
}

.tool-icon {
    width: 48px;
    height: 48px;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-size: 20px;
    font-weight: 700;
    color: var(--white);
    border-radius: var(--border-radius);
    flex-shrink: 0;
    transition: var(--transition);
}

.tool-card:hover .tool-icon {
    transform: scale(1.05);
}

.tool-header-content {
    flex: 1;
}

.tool-title {
    font-family: var(--font-mono);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 4px;
    transition: var(--transition);
}

.tool-card:hover .tool-title {
    color: var(--secondary-color);
}

.tool-status {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--secondary-color);
    background: var(--background-light);
    padding: 4px 8px;
    border-radius: var(--border-radius);
    display: inline-block;
    font-weight: 500;
    transition: var(--transition);
}

.tool-status.available {
    color: #28a745;
    background: rgba(40, 167, 69, 0.1);
}

.tool-status.development {
    color: #ffc107;
    background: rgba(255, 193, 7, 0.1);
}

.tool-status.planned {
    color: var(--text-muted);
    background: var(--background-light);
}

.tool-description {
    font-size: 1rem;
    color: var(--primary-color);
    line-height: 1.6;
    margin-bottom: 24px;
}

.tool-features {
    list-style: none;
    margin-bottom: 24px;
    display: grid;
    gap: 8px;
}

.tool-features li {
    font-size: 0.9rem;
    color: var(--text-muted);
    padding: 8px 0 8px 20px;
    position: relative;
    padding-left: 16px;
    transition: var(--transition);
}

.tool-features li:before {
    content: "▸";
    color: var(--primary-color);
    position: absolute;
    left: -8px;
    font-weight: bold;
    background: var(--white);
    width: 16px;
    text-align: center;
}


.tool-action {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.tool-button {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--primary-color);
    text-decoration: none;
    border: 1px solid var(--primary-color);
    padding: 12px 20px;
    transition: var(--transition);
    background: none;
    cursor: pointer;
    border-radius: var(--border-radius);
    display: inline-block;
    text-align: center;
}

.tool-button:hover {
    background: var(--secondary-color);
    color: var(--white);
    border-color: var(--secondary-color);
    transform: translateY(-1px);
}

.tool-button.primary {
    background: var(--primary-color);
    color: var(--white);
}

.tool-button.primary:hover {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
}

.tool-button:disabled,
.tool-button.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: var(--background-light);
    color: var(--text-muted);
    border-color: var(--border-color);
}

.tool-button:disabled:hover,
.tool-button.disabled:hover {
    transform: none;
    background: var(--background-light);
    color: var(--text-muted);
    border-color: var(--border-color);
}

/* SEO Content Section */
.seo-section {
    background: var(--background-light);
    padding: 40px;
    margin-bottom: 60px;
    border-radius: var(--border-radius);
    position: relative;
    overflow: hidden;
}

.seo-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

.seo-title {
    font-family: var(--font-mono);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 24px;
    text-align: center;
}

.seo-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.seo-item {
    background: var(--white);
    padding: 24px;
    border-left: 3px solid var(--primary-color);
    border-radius: var(--border-radius);
    transition: var(--transition);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.seo-item:hover {
    border-left-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(47, 54, 69, 0.1);
}

.seo-item h3 {
    font-family: var(--font-mono);
    font-size: 1rem;
    color: var(--primary-color);
    margin-bottom: 12px;
    font-weight: 600;
    transition: var(--transition);
}

.seo-item:hover h3 {
    color: var(--secondary-color);
}

.seo-item p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Coming Soon Section */
.coming-soon {
    opacity: 0.8;
}

.coming-soon .tool-card {
    background: linear-gradient(135deg, var(--background-light) 0%, rgba(255, 255, 255, 0.8) 100%);
}

.coming-soon .tool-image {
    background: linear-gradient(135deg, var(--background-light) 0%, #D4D2C8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.coming-soon .tool-image-placeholder {
    font-size: 4rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-weight: 700;
}

.coming-soon .tool-card:hover {
    transform: translateY(-2px);
    opacity: 1;
}

/* Responsive para páginas de herramientas */
@media (max-width: 768px) {
    .page-header {
        margin: 0 -16px 60px -16px;
    }

    .tools-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .tool-content {
        padding: 24px;
    }

    .tool-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .tool-header-content {
        width: 100%;
    }

    .tool-action {
        flex-direction: column;
        align-items: stretch;
    }

    .tool-button {
        text-align: center;
    }

    .seo-section {
        padding: 24px;
        margin: 0 -16px 40px -16px;
    }

    .seo-content {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

@media (max-width: 600px) {
    .tools-grid {
        grid-template-columns: 1fr;
    }

    .tool-image {
        height: 160px;
    }
}


/* ===== CSS ADICIONAL para sección de introducción ===== */
/* Agregar esto al final de tools-page.css o crear un archivo separado */

.intro-section {
    margin-bottom: var(--section-spacing);
    padding: 40px 0;
    background: linear-gradient(135deg, var(--background-light) 0%, rgba(255, 255, 255, 0.8) 100%);
    margin: 0 -20px 80px -20px;
}

.intro-content {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.intro-text {
    max-width: 900px;
    margin: 0 auto;
}

.intro-text p {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 20px;
    text-align: justify;
}

.intro-text strong {
    color: var(--primary-color);
    font-weight: 600;
}

@media (max-width: 768px) {
    .intro-section {
        margin: 0 -16px 60px -16px;
        padding: 24px 0;
    }

    .intro-content {
        padding: 0 16px;
    }

    .intro-text p {
        text-align: left;
        font-size: 0.95rem;
    }
}