﻿/* === Fuentes (añado 'bold' del segundo bloque) === */
@font-face {
    font-family: Arial, sans-serif;
    src: url('https://recursos.march.es/web/fonts/brown-std/BrownStd-Regular.woff');
}

@font-face {
    font-family: Arial, sans-serif;
    src: url('https://recursos.march.es/web/fonts/brown-std/BrownStd-Light.otf');
}

@font-face {
    font-family: 'BrownSTD-bold';
    src: url('https://recursos.march.es/web/fonts/brown-std/BrownStd-Bold.woff');
}

@font-face {
    font-family: 'BrownSTD-regular';
    src: url('https://fjmwebdata.blob.core.windows.net/web/fonts/brown-std/BrownStd-Regular.woff');
}
/* ===== Tokens (tomados del 2º bloque) ===== */ :root {
    --bg: #ffffff;
    --text: #1f2937;
    --muted: #475569; /* del 2º bloque */
    --brand: #0d6efd;
    --color-beta: #00a651;
    --chip-bg: #eef2ff;
    --chip-text: #333E55;
    --surface: #FAFCFE;
    --link: #0A78C4;
    --link2: #006e87;
    --surface2: /*#d5f8ff*/ #f3f7f8;
    --border: #e5e7eb;
    --radius: 6px; /* del 2º bloque */
    --radius-sm: 10px; /* del 2º bloque */
    --shadow: 0 1px 2px rgba(0, 0, 0, .02), 1px 1px 4px rgba(0, 0, 0, .02);
    --container: 960px;
    /* breakpoints (del 2º bloque) */
    --bp-mobile: 640px; /* <=640: 1 columna */
    --bp-tablet: 1024px; /* 641–1024: 2 columnas */
}


input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
input[type="url"],
input[type="tel"],
input[type="number"],
textarea {
    background-color: transparent;
    border: 0;
    box-shadow: none;
    line-height: normal;
}



/* Reset útil para medidas coherentes */
*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    height: 100%
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #fff;
    font-size: 1.20rem;
    line-height: 1.4;
    margin: 0;
}
/* Tipografía base (ajustado al 2º bloque) */
a, a.more {
    font-family: Arial, sans-serif;
    color: var(--link) !important;
    text-decoration: none;
    font-size: 0.8rem;
    line-height: 110%
}

a.moreM {font-size: 18px;}

    a:hover {
        text-decoration: underline;
    }

.container {
    max-width: var(--container);
    margin-inline: auto;
    padding: 24px clamp(16px, 3vw, 24px);
}

h2#relacionados-title {
    font-size: 23px;
    font-weight: 100;
}

.loader {
    display: block;
    border: 8px solid #f3f3f3;
    border-top: 8px solid #3498db;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}
/* Header */
header {
    padding-top: 8px;
    padding-bottom: 24px;
    text-align: center;
}

.brand {
    font-weight: 500;
    font-size: 15px;
    line-height: 24px;
    letter-spacing: 2px;
    font-family: 'BrownSTD-regular';
    color: #222;
    margin-top: 30px;
}

.top-actions {
    margin-top: 10px;
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .5rem 1rem;
    border-radius: 2px;
    background: #f3f7f8;
    /*border: 1px solid var(--border);*/
    /* box-shadow: var(--shadow); */
    font-size: 12px;
    color: #000;
    user-select: none;
    border-radius: 30px;
}

    .badge .dot {
        width: .45rem;
        height: .45rem;
        border-radius: 50%;
        background: var(--brand);
        box-shadow: 0 0 0 3px color-mix(in oklab, var(--brand) 25%, transparent);
    }

    .badge .icon {
        width: 1rem;
        height: 1rem;
        opacity: .75;
    }

    .badge a {
        font-size: 13px;
        color: #000 !important;
    }
/* Hero (tamaños del 2º bloque) */
.hero {
    text-align: center;
    padding: 0 0 8px;
}

    .hero h1 {
        font-size: 3rem; /* del 2º bloque */
        margin: 0 0 .5rem;
        font-weight: 500;
        font-family: Arial, sans-serif;
        letter-spacing: 0.5px;
    }

    .hero h2 {
        font-size: 2.5rem;
        font-weight: 300;
        line-height: 1.2;
        margin: 0 0 40px 0;
        text-align: center;
        text-transform: none;
    }

    .hero p {
        margin: 0 auto 35px;
        color: #000;
        max-width: 57ch;
        font-family: Arial, sans-serif;
        font-weight: 300;
        font-size: 19px;
        line-height: 24px;
    }

ul.further-more a {
    font-size: 17px;
    line-height: 21px;
}
/* Search */
.search-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 4rem;
}

.search {
    display: flex;
    align-items: center;
    gap: .6rem;
    width: min(720px, 100%);
    background: #ffffff;
    border: 1px solid #cccccc;
    border-radius: 6px;
    padding: .65rem .65rem .65rem 1rem;
}

    .search input, .search textarea {
        flex: 1;
        border: 0;
        outline: 0;
        background: transparent;
        color: var(--text);
        font-size: 1rem;
        font-family: Arial, sans-serif;
        font-size: 18px;
        line-height: 24px;
       
    }

    .search button {
        border: 0;
        background: #e9eefc;
        color: #1f3b78;
        border-radius: 10px;
        width: 38px;
        height: 38px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
    }

        .search button svg {
            width: 18px;
            height: 18px
        }
/* Suggestions */
.suggestions {
    max-width: min(880px, 100%);
    margin-inline: auto;
}

    .suggestions h2 {
        font-size: 1.6rem;
        text-align: center !important;
        display: block;
        color: #424242;
        font-weight: 100;
    }
/* Chips con FLEX: 2 columnas (desktop) -> 1 columna (móvil) */
.grid {
    display: flex;
    flex-wrap: wrap;
    gap: .8rem;
    align-items: stretch;
}

    .grid > * {
        flex: 0 1 calc((100% - .8rem) / 2);
        min-width: 0;
    }

.summary .h3-tri {
    position: relative;
    padding-left: 1.4em; /* espacio para el triángulo a la izquierda */
    line-height: 1.2;
}

    .summary .h3-tri::before {
        content: "";
        position: absolute;
        left: 0;
        top: 0.15em;
        width: 0.9em;
        aspect-ratio: 1 / 1;
        background: #000;
        clip-path: polygon(100% 50%, 0 0, 0 100%);
        /* Triángulo equilátero apuntando a la izquierda (punta en sentido contrario) */
    }
/* Chip */
.chip {
    background: #e9fbff;
    border: 0px solid var(--border);
    border-radius: 6px;
    padding: 1.2rem;
    color: var(--chip-text);
    box-shadow: 0;
    font-size: 16px;
    line-height: 20px;
}

    .chip a {
        display: inline-block;
        white-space: normal;
        word-break: break-word;
        color: #000 !important;
        font-size: 19px;
        line-height: 27px;
    }

#secSugestionsAnteriores .chip {
    background: var(--surface2);
}
/* Footer */
footer {
    margin-top: min(2vh, 34px);
   /* border-top: 1px solid var(--border);*/
    color: var(--muted);
    font-size: .92rem;
}

    footer .container {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: .5rem;
        text-align: center;
    }
/* resultados */
.card {
    flex: 0 1 calc((100% - 32px) / 3);
    max-width: calc((100% - 32px) / 3);
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    /* box-shadow: var(--shadow); */
    /* border: 1px solid var(--surface); */
    display: flex;
    flex-direction: column;
    margin: 1rem 0;
}

img.beta {
    display: inline-block;
    vertical-align: middle;
}

.eyebrow a {
    display: block;
    font-weight: 400;
    font-size: 19px;
    color: #000 !important;
    margin-bottom: 6px;
    line-height: 24px;
}

.more {
    margin-top: auto;
    padding: 20px 14px 16px 14px;
    border-top: 1px solid var(--border);
    font-weight: 400;
    color: #0d6efd;
    letter-spacing: 0.5px;
    font-size: 15px;
    text-transform: uppercase;
}

.resultado img {
    width: auto;
    height: auto;
    display: block;
    max-height: 290px;
}

.card .hero {
    height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 800;
    font-size: 20px;
}

.feedback {
    display: flex;
    align-items: center;
    justify-content: right;
    background: #fff;
    border-radius: var(--radius);
    padding: 2px 0 2px 16px;
    margin-bottom: 24px;
    margin-top: 50px;
}

.summary {
    background: var(--surface2);
    border: none;
    border-radius: var(--radius);
    padding: 20px 20px 40px 20px;
    margin-bottom: 16px;
    font-size: 17px;
    line-height: 21px;
    margin-top: 30px;
}

.meta {
    display: flex;
    gap: 10px;
    font-size: 15px;
    color: var(--muted);
    margin: 6px 0;
}

.card .body {
    padding: 14px;
}

.feedback p {
    margin: 0;
    font-size: 16px;
    font-family: Arial, sans-serif;
}

.feedback-buttons {
    display: flex;
    gap: 0;
}

.feedback button {
    width: 42px;
    height: 42px;
    background: #fff;
    font-size: 22px;
    cursor: pointer;
    transition: all .2s ease;
    border: none;
}

    .feedback button:hover {
        background: #eef2ff;
        color: #0d6efd;
        transform: scale(1.05);
    }

.search-head {
    display:;
    align-items: center;
    justify-content: space-between;
    margin: 8px 0 16px;
}

.search-title {
    font-size: 26px;
    font-weight: 400;
    text-align: center;
    width: 90%;
    margin: 0 auto;
    line-height: 120%;
}
/*
        .search-actions {
        display: flex;
    align-items: center;
    gap: 4px;
    width: 200px;
    margin: 0 auto;
    margin-bottom: 40px;
    padding: 10px 20px;
    border: 1px solid #cccccc;
    border-radius: 6px;
    padding: .65rem .65rem .65rem 1rem;
    color: #000 !important;

     transition: 
              box-shadow 160ms ease, 
              border-color 160ms ease,
              transform 160ms ease;
   
        }

        .search-actions a {font-size: 14px;
    font-weight: 400;
    color: #000 !important;
    text-transform: uppercase;
   
        }

          .search-actions:hover {
  border:solid 1px #a9e6f2;

        }
           .search-actions a:hover {text-decoration: none;} */
.search-actions {
    display: flex;
    align-items: center;
    gap: 4px;
    width: 210px;
    height: 50px;
    margin: 0 auto 40px;
    padding: .65rem .65rem .65rem 1rem;
    border: 1px solid #cccccc;
    border-radius: 6px;
    color: #000 !important;
    transition: box-shadow 160ms ease, border-color 160ms ease, transform 160ms ease;
}
    /* El link se estira hasta los bordes disponibles */
    .search-actions a.link {
        flex: 1; /* ocupa todo el espacio posible */
        display: flex; /* para alinear verticalmente si quieres */
        align-items: center;
        height: 40px;
        width: 280px; /* asegura área completa en altura */
        padding: 10px 16px 10px 2px; /* opcional: más zona clicable vertical */
        font-size: 14px;
        font-weight: 400;
        color: #000 !important;
        text-transform: uppercase;
        text-decoration: none;
        box-sizing: border-box;
    }
        /* Hover sin subrayado */
        .search-actions a.link:hover {
            text-decoration: none;
        }
    /* Sombra sutil para el botón */
    .search-actions .icon-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: .35rem;
        border-radius: 6px;
        border: 1px solid rgba(0, 0, 0, 0.06);
        background: transparent;
        cursor: pointer;
        /* relieve casi imperceptible */
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06), 0 0 0 1px rgba(255, 255, 255, 0.6) inset;
        transition: box-shadow 160ms ease, transform 160ms ease, border-color 160ms ease;
    }

    .search-actions:hover {
        border: solid 1px #a9e6f2;
    }
    /* Un micro-efecto al pasar por encima del botón (muy sutil) */
    .search-actions .icon-btn:hover {
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(255, 255, 255, 0.7) inset;
        transform: translateY(-0.5px);
    }

.link {
    color: #0d6efd;
    font-size: 18px;
    font-family: Arial, sans-serif;
}

.icon-btn {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: #fff;
    color: var(--muted);
}

.summary h3 {
    color: var(--muted);
    margin: 20px 0 10px 0;
    font-size: 16px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-family: 'BrownSTD-bold';
}

.answer-result {
    text-transform: none;
    font-size: 14px;
    text-align: center;
    padding: 0 0 40px 0;
    font-weight: 500;
}

.summary p {
    margin: 0;
    color: #1f2937;
    font-size: 17px;
    line-height: 21px;
}

a.enlaceArticulo {
    text-decoration: underline;
    color: #000087;
    font-size: 17px;
    line-height: 21px;
}

div#pnlComentario {
    width: 100%;
}

button#btnEnviarComentario {
    width: 96px;
    color: #3079e5;
    font-size: 14px;
    font-family: Arial, sans-serif;
    height: 32px;
    margin-left: 4px;
    width: 210px;
    height: 50px;
    text-transform: uppercase;
    margin: 44px auto 19px;
    padding: .65rem .65rem .65rem 1rem;
    border: 1px solid #cccccc;
    border-radius: 4px;
    color: #000 !important;
    transition: box-shadow 160ms ease, border-color 160ms ease, transform 160ms ease;
}

div#loader {
    margin-bottom: 30px;
}


#pnlConsultado {
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 25px;
    display: flex;
}

#txtcomentariotexto {
    width: 90%;
    font-family: Arial, sans-serif;
    background: var(--bg);
    border: none;
    /* color: var(--text); *
    /* border-width: 1px; */
    /* border-color: lightgray; */
    /* border-style: solid; */
    /* padding-top: 8px; */
    /* padding-bottom: 5px; */
    /* padding-left: 8px; */
    margin: 0 auto;
    padding: 0 30px;
    border: solid 1px #fff !important;
    min-height: 8rem;
    display: block; /* ✅ no flex en textarea */
    align-items: initial; /* por si hereda */
    justify-content: initial;
}

.color-beta {
    color: var(--color-beta)
}

span.avisoIA {
    margin-top: 26px;
    display: block;
    text-align: right;
    font-weight: 300;
    font-size: 12px;
    border-right: solid 10px #eee;
    padding-right: 10px;
}
/* Formato Error */
span.tituloerror {
    display: block;
    font-weight: bold;
    color: #db0707;
    font-size: 18px;
    font-family: Arial, sans-serif;
}

#mensajeError {
    margin-bottom: 41px;
    padding: 13px;
    border-style: solid;
    border-width: 1px;
    border-radius: 5px;
    background: #ffffaa;
    font-size: 15px;
}

.auto-grow-css {
    width: 300px;
    resize: none;
    min-height: 21px;
    field-sizing: content;
    line-height: 24px;
}


#loader {
    display: inline-block;
}

.snippet {
    display: inline-block;
}

.contenedoEspera {
    background: #d9e8f5;
    padding: 6px 39px 6px 20px;
    border-radius: 5px;
}

#lblEstado {
    font-size: 14px;
    margin-left: 20px;
    margin-right: 20px;
    font-weight: 600;
}

section#pnlInfoError {
    text-align: center;
}
/* Animacion tres puntos*/
.dot-flashing {
    position: relative;
    width: 10px;
    height: 10px;
    border-radius: 5px;
    background-color: #0092f4;
    color: #0092f4;
    animation: dot-flashing 1s infinite linear alternate;
    animation-delay: 0.5s;
}

    .dot-flashing::before, .dot-flashing::after {
        content: "";
        display: inline-block;
        position: absolute;
        top: 0;
    }

    .dot-flashing::before {
        left: -15px;
        width: 10px;
        height: 10px;
        border-radius: 5px;
        background-color: #0092f4;
        color: #0092f4;
        animation: dot-flashing 1s infinite alternate;
        animation-delay: 0s;
    }

    .dot-flashing::after {
        left: 15px;
        width: 10px;
        height: 10px;
        border-radius: 5px;
        background-color: #0092f4;
        color: #0092f4;
        animation: dot-flashing 1s infinite alternate;
        animation-delay: 1s;
    }

#pnlcomentario {
    background: var(--surface2);
    padding: 10px 10px 30px 10px;
    font-size: 17px;
    line-height: 21px;
    text-align: center;
    margin: 50px 0 30px 0;
    border-radius: 6px;
}

@keyframes dot-flashing {
    0% {
        background-color: #0092f4;
    }

    50%, 100% {
        background-color: rgba(152, 128, 255, 0.2);
    }
}
/*resaltar row*/
.resaltar {
    animation: flash 1s linear 3;
}

@keyframes flash {
    0% {
        background-color: #fbf8f8;
    }

    50% {
        background-color: #e7e3e3;
    }

    100% {
        background-color: #fbf8f8;
    }
}
/* ======= RESPONSIVE ======= */
/* TABLET: 2 columnas (641px–1024px aprox.) */
@media (min-width: 641px) and (max-width: 1024px) {
    .card, .cards-grid .card {
        flex-basis: calc((100% - 16px) / 2);
        max-width: calc((100% - 16px) / 2);
    }

    .search-title {
        font-size: 22px;
        font-weight: 700;
    }

    .hero p {
        font-size: 15px;
        line-height: 22px;
    }

    .hero h1 {
        font-size: 28px;
        line-height: 34px;
    }

    .summary p {
        font-size: 15px;
        line-height: 24px;
    }

    .summary h3 {
        font-size: 13px;
    }

    .eyebrow a {
        font-size: 28px;
        line-height: 34px;
    }

    .more {
        padding: 20px 14px 16px 14px;
    }

    .meta {
        font-size: 21px;
        line-height: 26px
    }

    .feedback {
        font-size: 24px;
        line-height: 26px
    }
}
/* ✅ MÓVIL: 1 columna (≤640px) FORZADA */
@media (max-width: 640px) {
    /* fuerza a que CUALQUIER hijo de .grid sea 100% */
    .grid > * {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
    /* fuerza específicamente las cards */
    .card, .cards-grid .card {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }

    .search-title {
        font-size: 21px;
        line-height: 130%;
    }

    hero p {
        font-size: 17px;
        line-height: 24px;
    }

    .search-head {
        align-items: flex-start;
        gap: 10px;
        flex-direction: column;
    }

    .hero h1 {
        font-size: 28px;
        line-height: 34px;
    }
}


/* SOBRE EL PROYECTO */

.items-superior {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 40px;
    margin-bottom: 40px;
    flex-wrap: wrap; /* permite que pasen a 2 líneas en pantallas pequeñas */
}

    .items-superior .item-imagen {
        flex: 0 0 185px;
        max-width: 250px;
    }

        .items-superior .item-imagen img {
            display: block;
            width: 100%;
            height: auto;
        }

.items-textos .item-texto strong {
    font-size: 1.6rem;
    text-align: center !important;
    display: block;
    color: #424242;
    font-weight: 100;
}
/************* ACCORDION ***************/

.accordion {
    max-width: 920px;
    margin: 20px auto 5px auto;
    border-radius: 0;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border: solid 1px #f2f2f2;
}

.accordion-item + .accordion-item {
    border-top: 1px solid #e4e4e4;
}
/* Ocultamos los radios */
.accordion-input {
    display: none;
}

.accordion-title {
    display: block;
    padding: 14px 10px;
    cursor: pointer;
    font-weight: 300;
    position: relative;
    user-select: none;
    font-size: 1.30rem;
    line-height: 1.4;
    margin: 0;
}

    .accordion-title::after {
        content: "▾";
        position: absolute;
        right: 16px;
        transition: transform 0.2s ease;
    }

.accordion-content {
    max-height: 0;
    overflow: hidden;
    padding: 0 16px;
    font-size: 18px;
    line-height: 1.5;
    background: #fafafa;
    transition: max-height 0.25s ease, padding-bottom 0.25s ease;
}
/* Estado abierto */
.accordion-input:checked + .accordion-title {
    background: #f0f0f0;
}

    .accordion-input:checked + .accordion-title::after {
        transform: rotate(-180deg);
    }

    .accordion-input:checked + .accordion-title + .accordion-content {
        max-height: 900px;
        padding: 20px 40px;
    }

.accordion-content ul li {
    margin: 30px 0
}

.accordion-content ul.type-questions li {
    margin: 3px 0;
}


@media (max-width: 580px) {

    .items-superior .item-imagen img {
        display: block;
        width: 100%;
        height: auto;
    }

    .items-superior .item-imagen:nth-child(2) img,
    .items-superior .item-imagen:nth-child(3) img {
        display: none;
    }

    .items-superior .item-imagen {
        flex: 0 0 100%;
        max-width: 350px;
    }


    .items-superior {
        max-height: 325px;
    }

    .items-textos .item-texto strong {
        font-size: 1.8rem;
        line-height: 120%;
    }

    h2 {
        font-size: 2.2rem;
        font-weight: 300;
        line-height: 1.2;
        margin: 0 0 20px 0;
        text-align: center;
        text-transform: none;
    }

    .accordion {
        max-width: 920px;
        margin: 40px auto 5px auto;
    }

    .accordion-input:checked + .accordion-title + .accordion-content {
        max-height: 1300px;
        padding: 20px 10px;
    }
}
