/* =========================================================
   guiapbas.pro — responsive.css
   Cargar SIEMPRE después de style.css
   Breakpoints: 320 / 375 / 390 / 414 / 768 / 1024 / 1440 / 1920
   ========================================================= */

/* ---------------------------------------------------------
   PANTALLAS MUY GRANDES — 1920px+
   --------------------------------------------------------- */
@media (min-width: 1920px) {
    :root {
        --maxw: 1280px;
        --maxw-narrow: 820px;
        --gutter: 32px;
    }

    body {
        font-size: 1.0625rem;
    }
}

/* ---------------------------------------------------------
   ESCRITORIO AMPLIO — 1440px+
   --------------------------------------------------------- */
@media (min-width: 1440px) {
    :root {
        --gutter: 28px;
    }

    .hero-inner {
        max-width: 840px;
    }
}

/* ---------------------------------------------------------
   ESCRITORIO PEQUEÑO / LAPTOP — hasta 1180px
   --------------------------------------------------------- */
@media (max-width: 1180px) {
    .nav-list a {
        padding-inline: 0.58rem;
        font-size: 0.885rem;
    }

    .site-nav {
        gap: 1rem;
    }
}

/* ---------------------------------------------------------
   TABLET HORIZONTAL — hasta 1024px
   --------------------------------------------------------- */
@media (max-width: 1024px) {
    :root {
        --header-h: 66px;
    }

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

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

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

    .contact-layout {
        grid-template-columns: minmax(0, 1fr);
    }

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

    .footer-about {
        grid-column: 1 / -1;
    }
}

/* ---------------------------------------------------------
   MENÚ MÓVIL + TABLET VERTICAL — hasta 900px
   --------------------------------------------------------- */
@media (max-width: 900px) {
    .nav-toggle {
        display: block;
    }

    .site-nav {
        position: fixed;
        top: var(--header-h);
        left: 0;
        right: 0;
        max-height: calc(100svh - var(--header-h));
        overflow-y: auto;
        display: block;
        padding: 1.1rem var(--gutter) 2rem;
        background-color: #0A0C14;
        background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 45%);
        border-bottom: 1px solid var(--line-strong);
        box-shadow: var(--shadow-lg);
        transform: translateY(-14px);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 240ms var(--ease), transform 240ms var(--ease), visibility 240ms var(--ease);
    }

    .site-nav.is-open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .nav-list {
        display: block;
        margin-bottom: 1.15rem;
    }

    .nav-list li {
        border-bottom: 1px solid var(--line);
    }

    .nav-list li:last-child {
        border-bottom: 0;
    }

    .nav-list a {
        padding: 0.95rem 0.35rem;
        font-size: 1rem;
        border-radius: var(--r-xs);
    }

    .btn-nav {
        display: flex;
        width: 100%;
        padding: 0.9rem 1.25rem;
        font-size: 1rem;
    }

    .lang-switch {
        display: flex;
        width: 100%;
        margin-bottom: 0.9rem;
    }

    .lang-switch a {
        flex: 1 1 0;
        text-align: center;
        padding-block: 0.6rem;
        font-size: 0.85rem;
    }

    body.nav-open {
        overflow: hidden;
    }

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

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

    .hero-home {
        min-height: 0;
        padding-block: clamp(3rem, 9vw, 5rem);
    }
}

/* ---------------------------------------------------------
   MÓVIL GRANDE / TABLET — hasta 768px
   --------------------------------------------------------- */
@media (max-width: 768px) {
    :root {
        --gutter: 18px;
    }

    body {
        background-image:
            radial-gradient(680px 420px at 50% -12%, rgba(255, 107, 0, 0.14), transparent 65%),
            radial-gradient(560px 400px at 100% 6%, rgba(95, 209, 255, 0.06), transparent 62%);
        background-attachment: scroll;
    }

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: minmax(0, 1fr);
    }

    .hero-foot {
        gap: 0.7rem;
    }

    .hero-foot-sep {
        display: none;
    }

    .compare-table th,
    .compare-table td {
        padding: 0.8rem 0.95rem;
    }

    .footer-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }

    .cookie-banner {
        bottom: 12px;
        padding: 1.1rem 1.15rem;
    }

    .subscribe-form {
        max-width: none;
    }

    .error-page {
        min-height: 0;
    }

    .cookie-actions .btn {
        flex: 1 1 auto;
    }
}

/* ---------------------------------------------------------
   MÓVIL — hasta 640px
   --------------------------------------------------------- */
@media (max-width: 640px) {
    .steps {
        grid-template-columns: minmax(0, 1fr);
    }

    .hero h1 {
        letter-spacing: -0.03em;
    }

    .hero-cta .btn {
        width: 100%;
    }

    .btn-row {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-row .btn {
        width: 100%;
    }

    .prose {
        max-width: none;
    }

    .eyebrow::before {
        display: none;
    }

    .legal-meta {
        flex-direction: column;
        gap: 0.35rem;
    }
}

/* ---------------------------------------------------------
   MÓVIL ESTÁNDAR — 414px / 390px / 375px
   --------------------------------------------------------- */
@media (max-width: 430px) {
    :root {
        --gutter: 16px;
        --header-h: 62px;
    }

    .brand-mark {
        width: 34px;
        height: 34px;
        font-size: 1.05rem;
    }

    .brand-name {
        font-size: 0.98rem;
        letter-spacing: 0.1em;
    }

    .brand-sub {
        font-size: 0.6rem;
        letter-spacing: 0.16em;
    }

    .bonus-card {
        border-radius: var(--r-lg);
    }

    .bonus-head {
        flex-direction: column;
        gap: 0.9rem;
    }

    .faq-question {
        padding: 1rem 1.05rem;
        font-size: var(--t-base);
    }

    .faq-answer {
        padding: 0 1.05rem 1.15rem;
    }

    .compare-table {
        min-width: 540px;
    }

    .card {
        border-radius: var(--r-md);
    }
}

/* ---------------------------------------------------------
   MÓVIL PEQUEÑO — 320px / 360px
   --------------------------------------------------------- */
@media (max-width: 380px) {
    :root {
        --gutter: 14px;
    }

    body {
        font-size: 0.96rem;
    }

    .brand-sub {
        display: none;
    }

    .btn {
        padding: 0.85rem 1.2rem;
        font-size: 0.94rem;
    }

    .btn-lg {
        padding: 0.98rem 1.35rem;
        font-size: 1rem;
    }

    .bonus-card {
        padding: 1.25rem 1.1rem;
    }

    .bonus-amount {
        font-size: 1.42rem;
    }

    .verify-strip {
        flex-direction: column;
        gap: 0.75rem;
    }

    .form-success {
        flex-direction: column;
        gap: 0.85rem;
    }

    .cookie-actions {
        flex-direction: column;
    }

    .cookie-actions .btn {
        width: 100%;
    }

    .compare-table {
        min-width: 480px;
        font-size: 0.82rem;
    }

    .table-scroll {
        border-radius: var(--r-md);
    }
}

/* ---------------------------------------------------------
   ALTURA REDUCIDA (móvil apaisado)
   --------------------------------------------------------- */
@media (max-height: 520px) and (orientation: landscape) {
    .hero-home {
        min-height: 0;
        padding-block: 2.5rem;
    }

    .site-nav {
        max-height: calc(100svh - var(--header-h));
    }
}

/* ---------------------------------------------------------
   IMPRESIÓN
   --------------------------------------------------------- */
@media print {
    body {
        background: #fff;
        color: #000;
    }

    .site-header,
    .site-footer,
    .cookie-banner,
    .nav-toggle,
    .skip-link,
    .btn {
        display: none !important;
    }

    .faq-answer[hidden] {
        display: block !important;
    }

    a::after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
        color: #444;
    }
}
