/* ==========================================================
   Brand palette (night-blue direction)
   ========================================================== */
:root {
    --color-primary: #0B1F3A;
    --color-primary-hover: #123B6D;
    --color-secondary: #1E5AA8;
    --color-accent: #2F80ED;
    --color-soft: #EEF5FF;
    --color-surface: #FFFFFF;
    --color-text: #111827;
    --color-muted: #5B6472;
    --color-border: #D8E3F3;
    --color-white: #FFFFFF;
    /* Lighter tint used for links/focus rings on dark surfaces (cookie banner, age gate) */
    --color-link-on-dark: #9CC9FF;

    /* Wiring for the vendor stylesheet's theme variables (assets/css/style.css),
       previously set inline in includes/header.php with green values. */
    --theme-default-color: var(--color-secondary);
    --header-background-color: var(--color-surface);
    --footer-background-color: var(--color-soft);
    --header-text-color: var(--color-secondary);
    --header-active-text-color: var(--color-primary);
    --footer-text-color: var(--color-secondary);
    --footer-active-text-color: var(--color-primary);
    --page-background-image: url('/assets/images/bg-page.jpg');
    --target-btn_bg-color: var(--color-primary);
    --target-btn_border-color: var(--color-primary);
    --target-btn_color: var(--color-white);
    --target-btn_hover_color: var(--color-primary-hover);
    --target-btn_icon-color: var(--color-white);
    --target-btn-3d_box-shadow: #081527;
    --target-btn-3d_bg_color_hover: var(--color-secondary);
}

.gtm-noscript-frame {
    display: none;
    visibility: hidden;
}

/* The vendor "OUR SCORE" badge (light gray text on light gray background)
   fails contrast; darken the text while keeping the same badge look. */
.widget-chart-main .tooltip-rating {
    color: var(--color-text, #111827);
}

/* Custom scrollbar */
html {
    scrollbar-width: thin;
    scrollbar-color: var(--color-secondary) #e5e5e5;
}
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}
::-webkit-scrollbar-track {
    background: #e5e5e5;
}
::-webkit-scrollbar-thumb {
    background-color: var(--color-secondary);
    border-radius: 6px;
    border: 2px solid #e5e5e5;
}
::-webkit-scrollbar-thumb:hover {
    background-color: var(--color-primary-hover);
}

/* Skip link */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--color-primary);
    color: var(--color-white);
    padding: 8px 16px;
    z-index: 1000;
    text-decoration: none;
}
.skip-link:focus {
    left: 8px;
    top: 8px;
}

/* Visible keyboard focus */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* The vendor stylesheet turns off the native outline on form fields and
   relies on a border-color swap instead; restore a real focus ring on top
   of it so keyboard users still get a visible indicator. */
.form .form-control:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* Extracted inline styles */
.select-full-width {
    width: 100%;
}
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.alert-message.is-visible {
    display: block;
}

/* Hamburger / go-top buttons reset (were anchors, now real <button>s) */
.mob-hamburger-btn-google,
.go-top {
    background: none;
    border: 0;
    cursor: pointer;
}

/* Card polish: subtle depth on the panels used across every section */
.panel {
    border-radius: 10px;
    box-shadow: 0 2px 14px rgba(11, 31, 58, 0.08);
}

/* The contact form's submit button only carries the vendor's generic
   .btn-secondary (cyan) class, not .target-btn, so it needs its own
   override to follow the site's blue accent. */
.btn.btn-secondary {
    background-color: var(--color-secondary);
    border-color: var(--color-secondary);
    color: var(--color-white);
}

/* Contact / review forms (server-rendered, no Yii/CAPTCHA JS dependency) */
.form-status {
    padding: 12px 16px;
    border-radius: 4px;
    margin-bottom: 16px;
    font-size: 14px;
}
.form-status.form-status--success {
    background: var(--color-soft);
    color: var(--color-primary);
    border: 1px solid var(--color-secondary);
}
.form-status.form-status--error {
    background: #fdecea;
    color: #b12704;
    border: 1px solid #ea5b0c;
}
.honeypot-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}
.captcha-question {
    font-weight: 600;
}
.star-rating {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 4px;
}
.star-rating input {
    position: absolute;
    left: -9999px;
}
.star-rating label {
    font-size: 24px;
    color: #ccc;
    cursor: pointer;
}
.star-rating input:checked ~ label,
.star-rating label:hover,
.star-rating label:hover ~ label {
    color: #f5a623;
}

/* ==========================================================
   Header redesign
   ========================================================== */
.header-google {
    position: sticky;
    top: 0;
    z-index: 500;
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0 1px 3px rgba(11, 31, 58, 0.08);
}
.header-google .logo-header img {
    transition: opacity .2s ease;
}
.header-google .logo-header:hover img {
    opacity: .85;
}
.header-google .additional-menu li a {
    font-weight: 600;
    letter-spacing: .01em;
    transition: box-shadow .2s ease, color .2s ease;
}
.header-google .additional-menu li a:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: -3px;
}

/* Mobile hamburger button: sizing/color only, display stays under the
   vendor's own responsive rules so desktop visibility is unaffected. */
.header-google .mob-hamburger-btn-google {
    width: 44px;
    height: 44px;
    line-height: 44px;
    text-align: center;
    border-radius: 8px;
    background: var(--color-soft);
    transition: background-color .2s ease;
}
.header-google .mob-hamburger-btn-google i.fa {
    transition: transform .2s ease, color .2s ease;
}
.header-google .mob-hamburger-btn-google:hover,
.header-google .mob-hamburger-btn-google:focus-visible {
    background: var(--color-primary);
}
.header-google .mob-hamburger-btn-google:hover i.fa,
.header-google .mob-hamburger-btn-google:focus-visible i.fa {
    color: var(--color-white);
}
.header-google .mob-hamburger-btn-google.active {
    background: var(--color-primary);
}
.header-google .mob-hamburger-btn-google.active i.fa {
    color: var(--color-white);
    transform: rotate(90deg);
}
.header-google .mob-hamburger-btn-google:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

/* Mobile dropdown menu */
.header-google .mob-devices-google {
    border-top: 3px solid var(--color-primary);
    box-shadow: 0 8px 20px rgba(11, 31, 58, 0.15);
}
.header-google .mob-devices-google li a:not(.btn) {
    color: var(--color-text);
    font-weight: 600;
    transition: background-color .2s ease, color .2s ease;
}
.header-google .mob-devices-google li a:not(.btn):hover,
.header-google .mob-devices-google li a:not(.btn):focus-visible {
    background: var(--color-soft);
    color: var(--color-primary);
}

/* ==========================================================
   Footer redesign
   ========================================================== */
.footer--redesigned {
    text-align: left;
    padding: 0;
    box-shadow: none;
    border-top: 1px solid var(--color-border);
}
.footer__grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 32px;
    padding-top: 40px;
    padding-bottom: 32px;
}
.footer__col--brand .logo-footer {
    margin-bottom: 14px;
}
.footer__tagline {
    color: var(--color-muted);
    font-size: .875rem;
    line-height: 1.5;
    max-width: 30ch;
    margin: 0;
}
.footer__heading {
    font-size: .8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--color-primary);
    margin: 0 0 14px;
}
.footer__address {
    font-style: normal;
    font-size: .875rem;
    color: var(--color-muted);
    line-height: 1.6;
}
.footer__address p {
    margin: 0 0 6px;
}
.footer__address a {
    color: var(--footer-text-color);
}
.footer__address a:hover {
    color: var(--footer-active-text-color);
}
.footer-nav.footer-nav--stacked {
    display: block;
}
.footer-nav--stacked li {
    display: block;
    padding: 0 0 10px;
    font-size: .875rem;
}
.footer-nav--stacked a {
    line-height: 1.4;
}
.footer-disclaimer {
    border-top: 1px solid var(--color-border);
    padding: 20px 0;
    text-align: left;
}
.footer-disclaimer p {
    font-size: .75rem;
    color: var(--color-muted);
    line-height: 1.6;
}
.footer__bottom {
    border-top: 1px solid var(--color-border);
    padding: 16px 0;
    text-align: center;
}
.footer__copyright {
    margin: 0;
    font-size: .8125rem;
    color: var(--color-muted);
}
@media (max-width: 780px) {
    .footer__grid {
        grid-template-columns: 1fr 1fr;
        gap: 28px 20px;
    }
}
@media (max-width: 480px) {
    .footer__grid {
        grid-template-columns: 1fr;
        gap: 28px;
        padding-top: 32px;
    }
}

/* ==========================================================
   Button system
   ========================================================== */
/* Neutral/outline buttons: the vendor's plain .btn is the base every
   button or CTA link shares; .target-btn layers a filled variant on top. */
.btn {
    border-color: var(--color-border);
    color: var(--color-primary);
    font-weight: 600;
    transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.btn:hover {
    background-color: var(--color-soft);
    border-color: var(--color-secondary);
}
.btn:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}
.btn:disabled,
.btn.disabled,
.target-btn:disabled,
.target-btn.disabled {
    opacity: .55;
    cursor: not-allowed;
    pointer-events: none;
}

/* Filled primary CTA buttons (target-btn / btn-primary-3d combos) */
.target-btn:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}
.target-btn:not(.btn-primary-3d):hover {
    background-color: var(--color-primary-hover) !important;
    border-color: var(--color-primary-hover) !important;
}
.target-btn:not(.btn-primary-3d):active {
    background-color: var(--color-primary) !important;
    border-color: var(--color-primary) !important;
}

/* Secondary filled button (contact form submit) */
.btn.btn-secondary:hover {
    background-color: var(--color-primary-hover);
    border-color: var(--color-primary-hover);
}
.btn.btn-secondary:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

/* Articles slider prev/next controls: these were plain anchors with a fake
   javascript:void(0) href; main.js now renders them as real <button>s, so
   reset the default button chrome to keep the same look, plus widen the
   clickable box a little for touch. */
.controls button.slick-arrow {
    background: none;
    border: 0;
    margin: 0;
    padding: 0 8px;
    min-height: 44px;
    cursor: pointer;
}
.controls button.slick-arrow:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Review-page score tabs: were <a href="javascript:void(0)">, now real
   <button>s (see reviews/*/index.php); match the previous anchor styling. */
.brand-score-nav button {
    display: block;
    width: 100%;
    padding: 11px 0;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    color: inherit;
    background: none;
    border: 0;
    border-bottom: 3px solid transparent;
    text-align: left;
    cursor: pointer;
}
.brand-score-nav button:hover,
.brand-score-nav button:focus-visible {
    border-bottom-color: var(--theme-default-color, #18adcb);
}
.brand-score-nav button:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

/* "Leer más" article links sit inline in a paragraph; widen their tap area
   without shifting surrounding text. */
.article-text a {
    display: inline-block;
    padding: 6px 4px;
    margin: -6px -4px;
}

/* Footer link lists: give list-style nav links a taller tap target. */
.footer-nav--stacked a {
    display: inline-block;
    padding: 8px 0;
}

/* ==========================================================
   Age gate (merged from assets/css/age-gate.css to cut a
   render-blocking request; content unchanged)
   ========================================================== */
.age-gate {
    position: fixed;
    inset: 0;
    z-index: 1000000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, .88);
    padding: 16px;
}
.age-gate[hidden] {
    display: none;
}
.age-gate__inner {
    background: #1f1f1f;
    color: #fff;
    border-radius: 8px;
    padding: 32px 28px;
    max-width: 420px;
    width: 100%;
    text-align: center;
    box-shadow: 0 4px 24px rgba(0, 0, 0, .5);
}
.age-gate__question {
    margin: 0 0 24px;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.4;
}
.age-gate__actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}
.age-gate__btn {
    min-width: 120px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color .2s ease, color .2s ease;
}
.age-gate__btn--yes {
    background: var(--color-secondary, #1E5AA8);
    border: 1px solid var(--color-secondary, #1E5AA8);
    color: #fff;
}
.age-gate__btn--yes:hover {
    background: var(--color-primary-hover, #123B6D);
    border-color: var(--color-primary-hover, #123B6D);
}
.age-gate__btn--no {
    background: transparent;
    border: 1px solid #fff;
    color: #fff;
}
.age-gate__btn--no:hover {
    background: #fff;
    color: var(--color-primary, #0B1F3A);
}
.age-gate :focus-visible {
    outline: 2px solid var(--color-link-on-dark, #9CC9FF);
    outline-offset: 2px;
}
@media (max-width: 480px) {
    .age-gate__inner {
        padding: 24px 20px;
    }
    .age-gate__actions {
        flex-direction: column;
    }
    .age-gate__btn {
        width: 100%;
    }
}

/* ==========================================================
   Cookie consent banner (merged from assets/css/cookie-consent.css
   to cut a render-blocking request; content unchanged)
   ========================================================== */
.cookie-consent {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999;
    background: #1f1f1f;
    color: #fff;
    padding: 16px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, .3);
}
.cookie-consent__inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    justify-content: space-between;
}
.cookie-consent__text {
    flex: 1 1 320px;
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
}
.cookie-consent__text a {
    color: var(--color-link-on-dark, #9CC9FF);
    text-decoration: underline;
}
.cookie-consent__actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.cookie-consent .btn-secondary {
    background: transparent;
    border: 1px solid #fff;
    color: #fff;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color .2s ease;
}
.cookie-consent .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
}
.cookie-consent .btn-primary {
    background: var(--color-secondary, #1E5AA8);
    border: 1px solid var(--color-secondary, #1E5AA8);
    color: #fff;
    font-weight: 600;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color .2s ease, border-color .2s ease;
}
.cookie-consent .btn-primary:hover {
    background: var(--color-primary-hover, #123B6D);
    border-color: var(--color-primary-hover, #123B6D);
}
.cookie-consent :focus-visible {
    outline: 2px solid var(--color-link-on-dark, #9CC9FF);
    outline-offset: 2px;
}
@media (max-width: 600px) {
    .cookie-consent__inner {
        flex-direction: column;
        align-items: stretch;
    }
    .cookie-consent__actions {
        justify-content: flex-end;
    }
}

/* ==========================================================
   Collapsible text ("Leer más" / "Ocultar")
   Collapsed height is set here, in the server-rendered markup's
   class list, so the block already renders collapsed on first paint -
   no JS-driven resize after load, so no layout shift.
   ========================================================== */
.description-text.js-collapsible-text {
    position: relative;
    max-height: 5.5rem;
    overflow: hidden;
}
.description-text.js-collapsible-text::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2.5rem;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, .95));
    pointer-events: none;
}
.description-text.js-collapsible-text.is-expanded {
    max-height: none;
    overflow: visible;
}
.description-text.js-collapsible-text.is-expanded::after {
    content: none;
}
.collapsible-text-actions {
    padding: 0 30px 20px;
}
@media screen and (max-width: 800px) {
    .collapsible-text-actions {
        padding: 0 10px 15px;
    }
}
.collapsible-text-toggle {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 8px 4px;
    background: none;
    border: 0;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--color-secondary, #1E5AA8);
    cursor: pointer;
    text-decoration: underline;
}
.collapsible-text-toggle:hover {
    color: var(--color-primary-hover, #123B6D);
}
