/* WHATSAPP LINK TOOL */
/* Archivo: assets/css/tools/whatsapp-link.css */

/* HEADER CLARO SOLO EN HERRAMIENTAS */

.site-header-light {
    background: #ffffff;
    color: #000000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.site-header-light .brand,
.site-header-light .nav-item > a {
    color: #000000;
}

.site-header-light .btn-dark {
    background: #eeeeee;
    color: #000000;
}

.site-header-light .btn-light {
    background: #000000;
    color: #ffffff;
}

.site-header-light .menu-toggle {
    background: #f2f2f2;
}

.site-header-light .menu-toggle span {
    background: #000000;
}

.site-header-light .dropdown {
    background: #ffffff;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.site-header-light .dropdown::after {
    background: rgba(255, 255, 255, 0.52);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
}

.site-header-light .dropdown a {
    color: rgba(0, 0, 0, 0.78);
}

.site-header-light .dropdown a:hover {
    color: #000000;
}

.site-header-light .dropdown-cta {
    background: #000000 !important;
    color: #ffffff !important;
}

/* BASE */

.whatsapp-link-page [hidden] {
    display: none !important;
}

.tool-page {
    background: #ffffff;
    color: #000000;
    min-height: 100vh;
    letter-spacing: 0.055em;
}

.tool-hero {
    padding: 26px 28px 14px;
    background: #ffffff;
}

.tool-hero-inner {
    width: min(100%, 1080px);
    margin: 0 auto;
    text-align: center;
}

.tool-kicker {
    margin: 0 0 10px;
    color: rgba(0, 0, 0, 0.48);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.tool-hero h1 {
    margin: 0;
    color: #000000;
    font-size: clamp(1.7rem, 3vw, 3.3rem);
    line-height: 1.05;
    font-weight: 700;
    letter-spacing: 0.045em;
}

.tool-hero p {
    width: min(100%, 680px);
    margin: 10px auto 0;
    color: rgba(0, 0, 0, 0.62);
    font-size: 0.88rem;
    line-height: 1.6;
    font-weight: 500;
    letter-spacing: 0.045em;
}

.tool-workspace-section {
    padding: 10px 28px 70px;
    background: #ffffff;
}

.tool-workspace-layout {
    width: min(100%, 1240px);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 34px;
    align-items: start;
}

.tool-main-column {
    min-width: 0;
}

.tool-side-column {
    position: sticky;
    top: 118px;
}

/* CARD */

.whatsapp-card {
    display: grid;
    grid-template-columns: minmax(360px, 0.92fr) minmax(360px, 1.08fr);
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.14);
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.08);
}

.whatsapp-form-panel,
.whatsapp-preview-panel {
    padding: 24px;
    min-width: 0;
}

.whatsapp-form-panel {
    background: #ffffff;
}

.whatsapp-preview-panel {
    background: #f6f6f6;
    border-left: 1px solid rgba(0, 0, 0, 0.1);
}

.step-heading {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 18px;
}

.step-heading span {
    color: rgba(0, 0, 0, 0.42);
    font-size: 0.82rem;
    font-weight: 700;
}

.step-heading h2 {
    margin: 0;
    color: #000000;
    font-size: 1rem;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: 0.055em;
}

/* FORM */

.wa-field-group {
    display: grid;
    gap: 8px;
    margin-bottom: 16px;
}

.wa-field-group label,
.wa-result label {
    color: rgba(0, 0, 0, 0.72);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.055em;
}

.wa-field-group input,
.wa-field-group select,
.wa-field-group textarea,
.wa-result input {
    width: 100%;
    min-height: 46px;
    padding: 0 14px;
    border: 1px solid rgba(0, 0, 0, 0.16);
    border-radius: 14px;
    background: #ffffff;
    color: #000000;
    font-family: inherit;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.035em;
    outline: none;
}

.wa-field-group textarea {
    min-height: 116px;
    padding: 14px;
    line-height: 1.55;
    resize: vertical;
}

.wa-field-group input:focus,
.wa-field-group select:focus,
.wa-field-group textarea:focus {
    border-color: rgba(0, 0, 0, 0.5);
}

.wa-phone-grid {
    display: grid;
    grid-template-columns: 112px 1fr;
    gap: 12px;
}

.wa-dial-box input {
    background: #f4f4f4;
    font-weight: 800;
}

.wa-example-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 16px;
}

.wa-example-row button {
    min-height: 38px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 12px;
    background: #f7f7f7;
    color: #000000;
    font-family: inherit;
    font-size: 0.64rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    cursor: pointer;
}

.tool-primary-button {
    min-height: 50px;
    width: 100%;
    border: 0;
    border-radius: 16px;
    background: #000000;
    color: #ffffff;
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.055em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    cursor: pointer;
    transition:
        transform 0.18s ease,
        opacity 0.18s ease;
}

.tool-primary-button:hover {
    transform: translateY(-1px);
}

.tool-primary-button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
}

.tool-note,
.tool-status {
    margin: 12px 0 0;
    color: rgba(0, 0, 0, 0.52);
    font-size: 0.62rem;
    line-height: 1.55;
    font-weight: 500;
    letter-spacing: 0.035em;
}

.tool-status[data-status="error"] {
    color: #b00020;
}

.tool-status[data-status="success"] {
    color: #067a46;
}

/* RESULT */

.wa-result {
    margin-top: 18px;
    padding: 16px;
    border-radius: 18px;
    background: #f4f4f4;
    display: grid;
    gap: 10px;
}

.wa-result-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
}

.wa-result-row button {
    min-width: 92px;
    border: 0;
    border-radius: 14px;
    background: #000000;
    color: #ffffff;
    font-family: inherit;
    font-size: 0.72rem;
    font-weight: 800;
    cursor: pointer;
}

.wa-result a {
    color: #000000;
    font-size: 0.72rem;
    font-weight: 800;
}

/* PHONE MOCKUP */

.phone-mockup {
    position: relative;
    width: min(100%, 360px);
    min-height: 620px;
    margin: 0 auto;
    padding: 14px;
    border-radius: 42px;
    background: #101010;
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.22),
        inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.phone-notch {
    position: absolute;
    top: 10px;
    left: 50%;
    width: 92px;
    height: 24px;
    border-radius: 0 0 16px 16px;
    background: #000000;
    transform: translateX(-50%);
    z-index: 4;
}

.wa-mobile-header {
    height: 72px;
    padding: 24px 16px 12px;
    border-radius: 30px 30px 0 0;
    background: #075e54;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.wa-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    display: grid;
    place-items: center;
    font-size: 1.25rem;
}

.wa-mobile-header strong {
    display: block;
    font-size: 0.78rem;
    line-height: 1.2;
}

.wa-mobile-header small {
    display: block;
    margin-top: 3px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.62rem;
}

.wa-chat-bg {
    min-height: 468px;
    padding: 22px 14px;
    background:
        radial-gradient(circle at 20% 20%, rgba(0, 0, 0, 0.05) 0 2px, transparent 2px 18px),
        radial-gradient(circle at 80% 30%, rgba(0, 0, 0, 0.04) 0 2px, transparent 2px 20px),
        linear-gradient(135deg, #efe7dd, #e5ddd5);
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
}

.wa-message-bubble {
    max-width: 82%;
    padding: 12px 14px;
    border-radius: 14px 14px 3px 14px;
    background: #dcf8c6;
    color: #111111;
    font-size: 0.78rem;
    line-height: 1.5;
    font-weight: 500;
    letter-spacing: 0.02em;
    white-space: pre-wrap;
    word-break: break-word;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.wa-mobile-input {
    height: 58px;
    padding: 9px;
    border-radius: 0 0 30px 30px;
    background: #efe7dd;
    display: grid;
    grid-template-columns: 1fr 42px;
    gap: 8px;
}

.wa-mobile-input span {
    border-radius: 999px;
    background: #ffffff;
    color: rgba(0, 0, 0, 0.38);
    display: flex;
    align-items: center;
    padding: 0 16px;
    font-size: 0.7rem;
    font-weight: 700;
}

.wa-mobile-input strong {
    border-radius: 50%;
    background: #25d366;
    color: #ffffff;
    display: grid;
    place-items: center;
}

/* ADS */

.ad-slot {
    background:
        repeating-linear-gradient(
            -45deg,
            #f2f2f2 0,
            #f2f2f2 8px,
            #e9e9e9 8px,
            #e9e9e9 16px
        );
    border: 1px solid rgba(0, 0, 0, 0.08);
    color: rgba(0, 0, 0, 0.52);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
}

.ad-slot span {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
}

.ad-slot strong {
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.04em;
}

.ad-slot-horizontal {
    width: 100%;
    min-height: 90px;
    margin: 28px 0;
    border-radius: 14px;
}

.ad-slot-vertical {
    width: 300px;
    min-height: 600px;
    border-radius: 18px;
}

/* INFO / AEO / FAQ / MORE */

.tool-info-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 20px;
    overflow: hidden;
    background: #ffffff;
}

.tool-info-card {
    min-height: 150px;
    padding: 22px;
    border-right: 1px solid rgba(0, 0, 0, 0.1);
}

.tool-info-card:last-child {
    border-right: 0;
}

.tool-info-card span {
    width: 34px;
    height: 34px;
    margin-bottom: 14px;
    border-radius: 50%;
    background: #f1f1f1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #000000;
    font-size: 1rem;
}

.tool-info-card h2 {
    margin: 0 0 10px;
    color: #000000;
    font-size: 0.88rem;
    line-height: 1.35;
    font-weight: 700;
    letter-spacing: 0.045em;
}

.tool-info-card p {
    margin: 0;
    color: rgba(0, 0, 0, 0.56);
    font-size: 0.66rem;
    line-height: 1.65;
    font-weight: 500;
    letter-spacing: 0.035em;
}

.tool-aeo-block,
.tool-faq {
    margin-top: 0;
    padding: 28px;
    border-radius: 22px;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.12);
}

.tool-aeo-block {
    margin-bottom: 26px;
}

.tool-aeo-block h2,
.tool-faq h2,
.more-tools h2 {
    margin: 0 0 18px;
    color: #000000;
    font-size: clamp(1.2rem, 2vw, 1.8rem);
    line-height: 1.25;
    font-weight: 700;
    text-align: center;
    letter-spacing: 0.055em;
}

.tool-aeo-block p {
    margin: 0 0 14px;
    color: rgba(0, 0, 0, 0.62);
    font-size: 0.78rem;
    line-height: 1.75;
    font-weight: 300;
    letter-spacing: 0.035em;
}

.tool-aeo-block p:last-child {
    margin-bottom: 0;
}

.faq-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 18px;
}

.faq-list details {
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 14px;
    background: #fafafa;
    overflow: hidden;
}

.faq-list summary {
    min-height: 46px;
    padding: 13px 44px 13px 15px;
    color: #000000;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: 0.04em;
    cursor: pointer;
    position: relative;
    list-style: none;
}

.faq-list summary::-webkit-details-marker {
    display: none;
}

.faq-list summary::after {
    content: "+";
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #000000;
    font-size: 1rem;
    font-weight: 700;
}

.faq-list details[open] summary::after {
    content: "−";
}

.faq-list p {
    margin: 0;
    padding: 0 15px 15px;
    color: rgba(0, 0, 0, 0.56);
    font-size: 0.66rem;
    line-height: 1.6;
    font-weight: 500;
    letter-spacing: 0.035em;
}

.more-tools {
    margin-top: 26px;
}

.more-tools-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.more-tools-grid a {
    min-height: 96px;
    padding: 18px;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.12);
    color: #000000;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 14px;
}

.more-tools-grid span {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: #f2f2f2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
}

.more-tools-grid em {
    font-style: normal;
    font-size: 1.1rem;
}

/* RESPONSIVE */

@media (max-width: 1180px) {
    .tool-workspace-layout {
        grid-template-columns: 1fr;
    }

    .tool-side-column {
        display: none;
    }

    .tool-info-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tool-info-card:nth-child(2) {
        border-right: 0;
    }

    .tool-info-card:nth-child(1),
    .tool-info-card:nth-child(2) {
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    }
}

@media (max-width: 900px) {
    .site-header-light,
    body.menu-open .site-header-light,
    body.menu-open .site-header-light .main-nav,
    .site-header-light .main-nav {
        background: #ffffff;
    }

    .site-header-light .nav-item > a {
        color: #000000;
    }

    .site-header-light .dropdown a {
        color: rgba(0, 0, 0, 0.74);
    }

    .tool-hero {
        padding: 24px 18px 12px;
    }

    .tool-workspace-section {
        padding: 8px 18px 54px;
    }

    .whatsapp-card {
        grid-template-columns: 1fr;
    }

    .whatsapp-preview-panel {
        border-left: 0;
        border-top: 1px solid rgba(0, 0, 0, 0.1);
    }

    .phone-mockup {
        min-height: 560px;
    }

    .wa-chat-bg {
        min-height: 408px;
    }

    .faq-list {
        grid-template-columns: 1fr;
    }

    .more-tools-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

@media (max-width: 560px) {
    .tool-page {
        letter-spacing: 0.045em;
    }

    .tool-hero {
        padding-top: 18px;
    }

    .tool-hero h1 {
        font-size: clamp(1.4rem, 7.5vw, 2rem);
    }

    .tool-hero p {
        font-size: 0.72rem;
    }

    .whatsapp-card {
        border-radius: 18px;
    }

    .whatsapp-form-panel,
    .whatsapp-preview-panel {
        padding: 16px;
    }

    .wa-phone-grid,
    .wa-example-row,
    .wa-result-row {
        grid-template-columns: 1fr;
    }

    .phone-mockup {
        width: 100%;
        min-height: 500px;
        border-radius: 34px;
    }

    .wa-chat-bg {
        min-height: 350px;
    }

    .tool-info-grid {
        grid-template-columns: 1fr;
        border-radius: 18px;
    }

    .tool-info-card {
        min-height: auto;
        padding: 17px;
        border-right: 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    }

    .tool-info-card:last-child {
        border-bottom: 0;
    }

    .tool-aeo-block,
    .tool-faq {
        padding: 18px;
        border-radius: 18px;
    }

    .tool-aeo-block h2,
    .tool-faq h2,
    .more-tools h2 {
        text-align: left;
        font-size: 1.05rem;
    }

    .tool-aeo-block p,
    .faq-list p {
        font-size: 0.62rem;
    }

    .faq-list summary {
        font-size: 0.66rem;
    }
}
/* COUNTRY FLAG VISUAL */

.wa-country-picker {
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 10px;
    align-items: center;
}

.wa-country-flag {
    width: 56px;
    height: 46px;
    border-radius: 14px;
    background: #f4f4f4;
    border: 1px solid rgba(0, 0, 0, 0.16);
    display: grid;
    place-items: center;
    overflow: hidden;
}

.wa-country-flag img {
    width: 34px;
    height: 24px;
    display: block;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18);
}

.wa-country-picker select {
    margin: 0;
}

.wa-avatar img {
    width: 26px;
    height: 18px;
    display: block;
    object-fit: cover;
    border-radius: 3px;
}
/* EMOJI PICKER FULL */

.wa-label-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.wa-emoji-toggle {
    min-height: 34px;
    padding: 0 11px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 999px;
    background: #f7f7f7;
    color: #000000;
    font-family: inherit;
    font-size: 0.64rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    cursor: pointer;
    transition:
        transform 0.18s ease,
        background 0.18s ease,
        border-color 0.18s ease;
}

.wa-emoji-toggle:hover,
.wa-emoji-toggle.is-open {
    transform: translateY(-1px);
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.28);
}

.wa-emoji-toggle strong {
    font-size: 1rem;
    line-height: 1;
}

.wa-emoji-panel {
    margin-top: 2px;
    margin-bottom: 10px;
    padding: 10px;
    border-radius: 18px;
    background: #f7f7f7;
    border: 1px solid rgba(0, 0, 0, 0.12);
    overflow: hidden;
}

.wa-emoji-panel emoji-picker {
    width: 100%;
    height: 360px;
    max-height: 52vh;
    --border-color: transparent;
    --border-radius: 16px;
    --background: #ffffff;
    --input-border-color: rgba(0, 0, 0, 0.12);
    --input-border-radius: 12px;
    --input-font-color: #000000;
    --input-placeholder-color: rgba(0, 0, 0, 0.42);
    --category-emoji-size: 1.15rem;
    --emoji-size: 1.35rem;
    --emoji-padding: 0.35rem;
    --indicator-color: #000000;
    --outline-color: rgba(0, 0, 0, 0.22);
}

@media (max-width: 560px) {
    .wa-label-action {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .wa-emoji-panel {
        padding: 8px;
    }

    .wa-emoji-panel emoji-picker {
        height: 330px;
        max-height: 58vh;
        --emoji-size: 1.25rem;
        --emoji-padding: 0.32rem;
    }
}
.tool-workspace-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: clamp(24px, 4vw, 48px);
    align-items: start;
}

.tool-main-column {
    min-width: 0;
}

.tool-side-column {
    display: block;
}

.tool-side-sticky {
    position: sticky;
    top: 110px;
}

.ad-label {
    font-size: 10px;
    line-height: 1;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(0, 0, 0, 0.45);
    margin-bottom: 10px;
    text-align: center;
}

.ad-slot-vertical {
    width: 300px;
    min-height: 600px;
    margin: 0 auto;
    border-radius: 24px;
    overflow: hidden;
}

.ad-slot-adsense {
    display: block;
    background: transparent;
}

@media (max-width: 1100px) {
    .tool-workspace-layout {
        grid-template-columns: 1fr;
    }

    .tool-side-column {
        display: none;
    }
}
.ad-section-horizontal {
    width: 100%;
    margin: clamp(28px, 5vw, 56px) auto;
}

.ad-section-horizontal .ad-label {
    margin-bottom: 10px;
}

.ad-slot-horizontal {
    width: 100%;
    min-height: 90px;
    display: block;
    border-radius: 18px;
    overflow: hidden;
}

.ad-slot-horizontal .adsbygoogle {
    display: block;
    width: 100%;
    min-height: 90px;
}

@media (max-width: 768px) {
    .ad-slot-horizontal {
        min-height: 250px;
    }

    .ad-slot-horizontal .adsbygoogle {
        min-height: 250px;
    }
}
/* READABILITY PATCH - HERRAMIENTAS */

.tool-page p {
    font-size: 0.88rem;
    line-height: 1.75;
    font-weight: 500;
}

/* Textos largos SEO / AEO */
.tool-aeo-block p {
    font-size: 0.9rem;
    line-height: 1.8;
    font-weight: 500;
}

/* Cards informativas */
.tool-info-card p {
    font-size: 0.78rem;
    line-height: 1.7;
    font-weight: 500;
}

/* FAQs */
.faq-list p {
    font-size: 0.78rem;
    line-height: 1.7;
    font-weight: 500;
}

/* Notas y estados, siguen pequeños pero legibles */
.tool-status,
.tool-note,
.bg-edit-help,
.bg-privacy-note {
    font-size: 0.74rem;
    line-height: 1.6;
    font-weight: 500;
}
@media (max-width: 560px) {
    .tool-page p {
        font-size: 0.82rem;
        line-height: 1.7;
    }

    .tool-aeo-block p,
    .faq-list p,
    .tool-info-card p {
        font-size: 0.78rem;
    }

    .tool-status,
    .tool-note,
    .bg-edit-help,
    .bg-privacy-note {
        font-size: 0.7rem;
    }
}