/* =========================================================
   HERRAMIENTAS - ESTILOS GENERALES
   ========================================================= */

* {
    box-sizing: border-box;
}

body {
    background: #ffffff;
    color: #1f2937;
}


/* =========================================================
   NAVEGACIÓN
   ========================================================= */

.navigation {
    width: 100%;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    position: relative;
    z-index: 100;
}

.navigation-container {
    max-width: 1280px;
    margin: 0 auto;
    min-height: 70px;
    padding: 0 24px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navigation-brand {
    display: flex;
    align-items: center;
    gap: 10px;

    color: #111827;
    text-decoration: none;

    font-size: 20px;
    font-weight: 700;
}

.navigation-brand:hover {
    color: #111827;
}

.navigation-brand-icon {
    font-size: 23px;
}

.navigation-menu {
    display: flex;
    align-items: center;
    gap: 8px;
}

.navigation-link {
    border: 0;
    background: transparent;

    padding: 10px 14px;

    color: #4b5563;
    text-decoration: none;

    font-size: 15px;
    font-weight: 500;

    border-radius: 8px;

    cursor: pointer;

    transition: all 0.2s ease;
}

.navigation-link:hover {
    background: #f3f4f6;
    color: #111827;
}

.navigation-dropdown {
    position: relative;
}

.navigation-dropdown-button {
    display: flex;
    align-items: center;
    gap: 6px;
}

.dropdown-arrow {
    font-size: 15px;
}


/* =========================================================
   DROPDOWN
   ========================================================= */

.navigation-dropdown-menu {
    position: absolute;

    top: calc(100% + 8px);
    right: 0;

    width: 220px;

    background: #ffffff;

    border: 1px solid #e5e7eb;
    border-radius: 10px;

    padding: 8px;

    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);

    opacity: 0;
    visibility: hidden;
    transform: translateY(-5px);

    transition: all 0.2s ease;
}

.navigation-dropdown:hover .navigation-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.navigation-dropdown-item {
    display: block;

    padding: 10px 12px;

    border-radius: 7px;

    color: #374151;
    text-decoration: none;

    font-size: 14px;

    transition: background 0.2s ease;
}

.navigation-dropdown-item:hover {
    background: #f3f4f6;
    color: #111827;
}


/* =========================================================
   HERO
   ========================================================= */

.tools-hero {
    padding: 80px 24px 70px;

    text-align: center;

    background: #ffffff;
}

.tools-hero-content {
    max-width: 850px;
    margin: 0 auto;
}

.tools-badge {
    display: inline-block;

    margin-bottom: 18px;

    padding: 7px 14px;

    border-radius: 50px;

    background: #f3f4f6;
    color: #4b5563;

    font-size: 13px;
    font-weight: 600;
}

.tools-hero h1 {
    margin: 0;

    color: #111827;

    font-size: clamp(38px, 6vw, 64px);
    line-height: 1.08;
    font-weight: 800;
    letter-spacing: -2px;
}

.tools-hero h1 span {
    display: block;
    color: #309ee1;
}

.tools-hero p {
    max-width: 680px;

    margin: 24px auto 0;

    color: #6b7280;

    font-size: 18px;
    line-height: 1.7;
}


/* =========================================================
   SECCIÓN DE HERRAMIENTAS
   ========================================================= */

.tools-section {
    max-width: 1200px;

    margin: 0 auto;

    padding: 40px 24px 80px;
}

.tools-section-header {
    margin-bottom: 30px;
}

.tools-section-header h2 {
    margin: 0 0 8px;

    color: #111827;

    font-size: 28px;
    font-weight: 750;
}

.tools-section-header p {
    margin: 0;

    color: #6b7280;

    font-size: 15px;
}


/* =========================================================
   GRID
   ========================================================= */

.tools-grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 18px;
}


/* =========================================================
   TARJETAS
   ========================================================= */

.tool-card {
    position: relative;

    display: flex;
    align-items: flex-start;
    gap: 15px;

    min-height: 150px;

    padding: 22px;

    background: #ffffff;

    border: 1px solid #e5e7eb;
    border-radius: 12px;

    text-decoration: none;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}

.tool-card:hover {
    transform: translateY(-3px);

    border-color: #d1d5db;

    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.07);
}

.tool-card-icon {
    width: 46px;
    height: 46px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #f3f4f6;

    border-radius: 10px;

    font-size: 22px;
}

.tool-card-content {
    padding-right: 20px;
}

.tool-card-content h3 {
    margin: 2px 0 7px;

    color: #111827;

    font-size: 17px;
    font-weight: 700;
}

.tool-card-content p {
    margin: 0;

    color: #6b7280;

    font-size: 14px;
    line-height: 1.55;
}

.tool-card-arrow {
    position: absolute;

    right: 18px;
    bottom: 18px;

    color: #9ca3af;

    font-size: 18px;

    transition: transform 0.2s ease;
}

.tool-card:hover .tool-card-arrow {
    transform: translateX(4px);
    color: #309ee1;
}


/* =========================================================
   CTA
   ========================================================= */

.tools-cta {
    max-width: 1200px;

    margin: 0 auto 70px;

    padding: 55px 30px;

    text-align: center;

    background: #f9fafb;

    border: 1px solid #e5e7eb;

    border-radius: 16px;
}

.tools-cta h2 {
    margin: 0 0 10px;

    color: #111827;

    font-size: 26px;
    font-weight: 750;
}

.tools-cta p {
    margin: 0;

    color: #6b7280;

    font-size: 15px;
}


/* =========================================================
   FOOTER
   ========================================================= */

.footer-custom-container {
    max-width: 1200px;

    margin: 0 auto;

    padding: 0 24px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    color: #6b7280;

    font-size: 14px;
}





/* =========================================
   SEO DE HERRAMIENTAS
   ========================================= */

.herramienta-seo {
    margin-top: 3rem;
    padding: 2rem;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .04);
}

.herramienta-seo-title {
    display: flex;
    align-items: center;
    gap: .8rem;
    margin-top: 2rem;
    margin-bottom: .8rem;
}

.herramienta-seo-title:first-child {
    margin-top: 0;
}

.herramienta-seo-title h2 {
    margin: 0;
    color: #111827;
    font-size: 1.2rem;
}

.herramienta-seo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    font-size: 1.3rem;
}

.herramienta-seo p {
    margin: 0 0 1rem;
    color: #6b7280;
    line-height: 1.7;
}

.herramienta-seo-formula,
.herramienta-seo-ejemplo {
    margin: 1.2rem 0;
    padding: 1rem 1.2rem;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    color: #111827;
    font-weight: 700;
    text-align: center;
}





/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 900px) {

    .tools-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}


@media (max-width: 640px) {

    .navigation-container {
        min-height: 62px;
        padding: 0 16px;
    }

    .navigation-brand {
        font-size: 18px;
    }

    .navigation-menu {
        display: none;
    }

    .tools-hero {
        padding: 60px 20px 50px;
    }

    .tools-hero h1 {
        font-size: 40px;
        letter-spacing: -1.5px;
    }

    .tools-hero p {
        font-size: 16px;
    }

    .tools-section {
        padding: 30px 16px 60px;
    }

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

    .tools-cta {
        margin: 0 16px 50px;
        padding: 40px 20px;
    }

    .footer-custom-container {
        flex-direction: column;
        text-align: center;
    }

}