/* =========================================================
   HERO — ANALIZADOR DE META TAGS
========================================================= */

.meta-hero {
    padding: 145px 0 52px;
    background:
        radial-gradient(
            circle at 88% 15%,
            rgba(242, 138, 26, 0.13),
            transparent 30%
        ),
        #f7f5f1;
    border-bottom: 1px solid #e7e2da;
}

.meta-container {
    width: min(1160px, calc(100% - 36px));
    margin-inline: auto;
}

.meta-hero__eyebrow {
    display: block;
    margin-bottom: 10px;
    color: var(--td-orange, #f28a1a);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.meta-hero h1 {
    margin: 0 0 14px;
    color: #191713;
    font-size: clamp(2rem, 4.5vw, 3.6rem);
    line-height: 1.05;
    letter-spacing: -0.045em;
}

.meta-hero p {
    max-width: 720px;
    margin: 0;
    color: #68645e;
    font-size: clamp(0.98rem, 1.7vw, 1.12rem);
    line-height: 1.7;
}


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

@media (max-width: 760px) {

    .meta-hero {
        padding: 112px 0 40px;
    }

    .meta-hero p {
        line-height: 1.6;
    }

}
/* =========================================================
   FORMULARIO — ANALIZAR URL
========================================================= */

.meta-search {
    padding: 48px 0 68px;
    background: #ffffff;
}

.meta-search__box {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    align-items: center;
    gap: clamp(30px, 6vw, 78px);
    padding: clamp(26px, 5vw, 52px);
    background: #ffffff;
    border: 1px solid #e7e2da;
    border-radius: 24px;
    box-shadow: 0 24px 70px rgba(35, 29, 20, 0.08);
}

.meta-search__step {
    display: block;
    margin-bottom: 10px;
    color: var(--td-green, #2f9b57);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.meta-search__content h2 {
    margin: 0 0 14px;
    color: #191713;
    font-size: clamp(1.55rem, 3vw, 2.35rem);
    line-height: 1.15;
    letter-spacing: -0.035em;
}

.meta-search__content p {
    max-width: 480px;
    margin: 0;
    color: #68645e;
    font-size: 0.96rem;
    line-height: 1.7;
}


/* FORMULARIO */

.meta-search__form label {
    display: block;
    margin-bottom: 10px;
    color: #191713;
    font-size: 0.84rem;
    font-weight: 700;
}

.meta-search__field {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    padding: 7px;
    background: #f7f5f1;
    border: 1px solid #dcd6cd;
    border-radius: 15px;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.meta-search__field:focus-within {
    border-color: var(--td-orange, #f28a1a);
    box-shadow: 0 0 0 4px rgba(242, 138, 26, 0.13);
}

.meta-search__icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    color: var(--td-orange, #f28a1a);
    font-size: 1.15rem;
    font-weight: 700;
}

.meta-search__field input {
    width: 100%;
    min-width: 0;
    padding: 13px 8px;
    background: transparent;
    border: 0;
    outline: 0;
    color: #191713;
    font-family: inherit;
    font-size: 0.94rem;
}

.meta-search__field input::placeholder {
    color: #99938a;
}

.meta-search__field button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 48px;
    padding: 0 22px;
    background: var(--td-orange, #f28a1a);
    border: 0;
    border-radius: 10px;
    color: #ffffff;
    font-family: inherit;
    font-size: 0.87rem;
    font-weight: 700;
    cursor: pointer;
    transition:
        background-color 0.2s ease,
        transform 0.2s ease;
}

.meta-search__field button:hover {
    background: #df7910;
    transform: translateY(-1px);
}

.meta-search__form small {
    display: block;
    margin-top: 11px;
    color: #777169;
    font-size: 0.76rem;
    line-height: 1.55;
}


/* =========================================================
   MENSAJES DEL FORMULARIO
========================================================= */

.meta-search__message {
    margin-top: 16px;
    padding: 14px 16px;
    border-radius: 12px;
    font-size: 0.86rem;
    line-height: 1.55;
}

.meta-search__message--error {
    color: #8b2929;
    background: #fff1f1;
    border: 1px solid #efcaca;
}

.meta-search__message--loading {
    color: #6c4b14;
    background: #fff8e9;
    border: 1px solid #ecd7a7;
}


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

@media (max-width: 860px) {

    .meta-search__box {
        grid-template-columns: 1fr;
        gap: 28px;
    }

}

@media (max-width: 640px) {

    .meta-search {
        padding: 32px 0 50px;
    }

    .meta-search__box {
        padding: 24px 18px;
        border-radius: 18px;
    }

    .meta-search__field {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .meta-search__field button {
        grid-column: 1 / -1;
        width: 100%;
        margin-top: 5px;
    }

}
.meta-search__message--success {
    color: #216c3d;
    background: #edf9f1;
    border: 1px solid #bfe2ca;
}
/* =========================================================
   REPORTE SEO
========================================================= */

.meta-report {
    padding: clamp(55px, 8vw, 95px) 0;
    background: #ffffff;
    scroll-margin-top: 110px;
}


/* ENCABEZADO */

.meta-report__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    margin-bottom: 28px;
}

.meta-report__eyebrow {
    display: block;
    margin-bottom: 9px;
    color: var(--td-orange, #f28a1a);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.meta-report__title h2 {
    margin: 0 0 6px;
    color: #191713;
    font-size: clamp(1.9rem, 4vw, 3.2rem);
    line-height: 1.1;
    letter-spacing: -0.045em;
}

.meta-report__title p {
    max-width: 720px;
    margin: 0;
    color: #716c65;
    font-size: 0.85rem;
    overflow-wrap: anywhere;
}


/* PUNTUACIÓN */

.meta-score {
    display: grid;
    min-width: 165px;
    padding: 20px 25px;
    border-radius: 19px;
    color: #ffffff;
}

.meta-score--excellent {
    background: #2f9b57;
}

.meta-score--medium {
    background: #b8750a;
}

.meta-score--low {
    background: #aa3f35;
}

.meta-score__number {
    display: flex;
    align-items: baseline;
}

.meta-score__number strong {
    font-size: 2.7rem;
    line-height: 1;
}

.meta-score__number span {
    margin-left: 3px;
    opacity: 0.78;
}

.meta-score small {
    margin-top: 7px;
    font-size: 0.76rem;
    font-weight: 600;
    opacity: 0.92;
}


/* ESTADO TÉCNICO */

.meta-status {
    display: grid;
    grid-template-columns: 1.4fr repeat(3, 1fr);
    margin-bottom: 24px;
    background: #f7f5f1;
    border: 1px solid #e7e2da;
    border-radius: 16px;
    overflow: hidden;
}

.meta-status > div {
    min-width: 0;
    padding: 17px 20px;
    border-right: 1px solid #e7e2da;
}

.meta-status > div:last-child {
    border-right: 0;
}

.meta-status > div:first-child {
    display: flex;
    align-items: center;
    gap: 10px;
}

.meta-status p {
    margin: 0;
    font-size: 0.85rem;
    font-weight: 700;
}

.meta-status span {
    display: block;
    color: #777169;
    font-size: 0.7rem;
}

.meta-status strong {
    display: block;
    margin-top: 4px;
    font-size: 0.95rem;
}

.meta-status__indicator {
    width: 9px;
    height: 9px;
    background: #2f9b57;
    border-radius: 50%;
    box-shadow:
        0 0 0 5px rgba(47, 155, 87, 0.13);
}


/* VISTA PREVIA GOOGLE */

.meta-google {
    max-width: 820px;
    margin-bottom: 28px;
    padding: clamp(22px, 4vw, 32px);
    background: #ffffff;
    border: 1px solid #e7e2da;
    border-radius: 20px;
    box-shadow:
        0 18px 55px rgba(30, 25, 18, 0.07);
}

.meta-google__header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 20px;
    border-bottom: 1px solid #ece8e1;
}

.meta-google__icon {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    color: #ffffff;
    background: #4285f4;
    border-radius: 50%;
    font-family: Arial, sans-serif;
    font-weight: 700;
}

.meta-google__header strong,
.meta-google__header small {
    display: block;
}

.meta-google__header strong {
    font-size: 0.86rem;
}

.meta-google__header small {
    margin-top: 2px;
    color: #777169;
    font-size: 0.72rem;
}

.meta-google__result {
    padding-top: 22px;
    font-family: Arial, sans-serif;
}

.meta-google__site {
    display: block;
    margin-bottom: 5px;
    color: #202124;
    font-size: 0.82rem;
}

.meta-google__result h3 {
    margin: 0 0 5px;
    color: #1a0dab;
    font-family: Arial, sans-serif;
    font-size: 1.28rem;
    font-weight: 400;
    line-height: 1.3;
}

.meta-google__url {
    display: block;
    margin-bottom: 7px;
    color: #137333;
    font-size: 0.78rem;
    overflow-wrap: anywhere;
}

.meta-google__result p {
    max-width: 680px;
    margin: 0;
    color: #4d5156;
    font-size: 0.88rem;
    line-height: 1.5;
}


/* DIAGNÓSTICO */

.meta-diagnostics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.meta-diagnostic {
    display: flex;
    gap: 15px;
    padding: 20px;
    background: #ffffff;
    border: 1px solid #e7e2da;
    border-radius: 16px;
}

.meta-diagnostic__icon {
    display: grid;
    place-items: center;
    flex: 0 0 34px;
    height: 34px;
    border-radius: 50%;
    color: #ffffff;
    font-weight: 800;
}

.meta-diagnostic--good
.meta-diagnostic__icon {
    background: #2f9b57;
}

.meta-diagnostic--warning
.meta-diagnostic__icon {
    background: #b8750a;
}

.meta-diagnostic__content {
    min-width: 0;
    flex: 1;
}

.meta-diagnostic__heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.meta-diagnostic h3 {
    margin: 2px 0 6px;
    color: #191713;
    font-size: 0.96rem;
}

.meta-diagnostic__heading strong {
    padding: 4px 8px;
    background: #f7f5f1;
    border-radius: 7px;
    color: #625d56;
    font-size: 0.69rem;
    white-space: nowrap;
}

.meta-diagnostic p {
    margin: 0;
    color: #716c65;
    font-size: 0.82rem;
    line-height: 1.55;
}


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

@media (max-width: 780px) {

    .meta-report__header {
        align-items: flex-start;
        flex-direction: column;
    }

    .meta-score {
        min-width: 150px;
    }

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

    .meta-status > div:nth-child(2) {
        border-right: 0;
    }

    .meta-status > div:nth-child(-n + 2) {
        border-bottom: 1px solid #e7e2da;
    }

    .meta-diagnostics {
        grid-template-columns: 1fr;
    }

}

@media (max-width: 480px) {

    .meta-status {
        grid-template-columns: 1fr;
    }

    .meta-status > div {
        border-right: 0;
        border-bottom: 1px solid #e7e2da;
    }

    .meta-status > div:last-child {
        border-bottom: 0;
    }

    .meta-diagnostic__heading {
        flex-direction: column;
        gap: 2px;
    }

}
.meta-report {
    color: #191713;
}

.meta-status p,
.meta-status strong,
.meta-google__header strong,
.meta-diagnostic__content,
.meta-diagnostic__content p {
    color: #191713;
}.meta-google__icon {
    color: #191713;
}
/* =========================================================
   VISTA PREVIA — TWITTER / X CARD
========================================================= */

.meta-social-preview {
    margin-bottom: 20px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #d9dfe4;
    border-radius: 15px;
}

.meta-social-preview img {
    display: block;
    width: 30%;
    height: auto;
    object-fit: contain;
    background: #ffffff;
}

.meta-social-preview__content {
    padding: 15px 17px;
}

.meta-social-preview__content strong {
    display: block;
    margin-bottom: 6px;
    color: #0f1419;
    font-size: 0.9rem;
    line-height: 1.4;
}

.meta-social-preview__content p {
    display: -webkit-box;
    margin: 0 0 8px;
    overflow: hidden;
    color: #536471;
    font-size: 0.78rem;
    line-height: 1.5;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.meta-social-preview__content small {
    display: block;
    color: #536471;
    font-size: 0.72rem;
}