/* ============================================
   TAXI SONRISAS - Responsive global
   Extraido de styles.css. Cargar DESPUES de styles.css.
   Breakpoints: 1024px (tablet) - 768px (mobile) - 480px (compacto)
   ============================================ */

/* ============================================
   RESPONSIVE
   Breakpoints:
   - 1024px: tablets / laptops pequeñas
   - 768px: mobile / menú hamburguesa
   - 480px: mobile compacto
   ============================================ */

/* --- TABLET / MEDIUM --- */
@media (max-width: 1024px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .affiliates-grid { grid-template-columns: repeat(2, 1fr); }
    .footer__grid { grid-template-columns: repeat(3, 1fr); }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .conv-layout { grid-template-columns: 1fr; }

    .cta-block {
        grid-template-columns: 1fr 1fr;
        padding: 44px 40px;
        gap: 36px;
    }

    .cta-block__title { font-size: 34px; }
}

/* --- MOBILE / SMALL --- */
@media (max-width: 768px) {
	
	:root {
    --top-bar-height: var(--mobile-top-bar-height);
    --header-height: var(--mobile-header-height);
    --site-header-height: var(--mobile-site-header-height);
	}

    /* Top bar */
    .top-bar,
    .top-bar__inner {
        height: 33px;
    }

    .top-bar {
        font-size: 12px;
    }

    .top-bar__inner {
        padding: 0 16px;
        gap: 12px;
    }

    .top-bar__socials span {
        display: none;
    }

    .top-bar__socials {
        gap: 10px;
    }

    .top-bar__socials svg {
        width: 14px;
        height: 14px;
    }

    /* Header */
    .header {
        padding: 0 16px;
    }

	.header.header--scrolled {
		transform: translateY(calc(-1 * var(--top-bar-height)));
	}

    .header__inner {
        height: 64px;
        gap: 16px;
    }

    .header__logo img {
        height: 34px;
    }

    .menu-toggle {
        display: flex;
    }

    .header__nav {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;

        margin-left: 0;
        padding: 20px 24px 24px;

        background: rgba(255,255,255,0.96);
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);

        flex-direction: column;
        align-items: flex-start;
        gap: 16px;

        border-bottom: 1px solid rgba(0,0,0,0.06);
        box-shadow: 0 12px 24px rgba(0,0,0,0.08);
    }

    .header__nav.open {
        display: flex;
    }

    .header__nav a {
        padding: 4px 0;
        font-size: 15px;
    }

    .header__nav a::after {
        left: 0;
        right: 0;
        bottom: -6px;
        height: 2px;
    }

    .header__cta {
        min-width: 118px;
        height: 40px;
        padding: 0 18px;
        font-size: 13px;
        border-radius: 10px;
    }

    /* Hero */
    .hero {
        min-height: 100vh;
        margin-top: 0;
        padding-top: 0;
        align-items: flex-start;
    }

    .hero__bg {
        background-position: 62% center;
    }

    .hero__bg::after {
        background: linear-gradient(
            90deg,
            rgba(255,255,255,0.88) 0%,
            rgba(255,255,255,0.68) 52%,
            rgba(255,255,255,0.24) 100%
        );
    }

    .hero__content {
        max-width: 100%;
        padding: 150px 0 72px;
    }

    .hero__title {
        font-size: 42px;
        line-height: 1.08;
        max-width: 360px;
        margin-bottom: 18px;
    }

    .hero__subtitle {
        font-size: 18px;
        line-height: 1.55;
        max-width: 360px;
    }

    .hero__microcopy {
        font-size: 16px;
        line-height: 1.5;
        max-width: 360px;
        margin-bottom: 28px;
    }

    .hero__buttons {
        flex-direction: column;
        gap: 14px;
        max-width: 360px;
    }

    .hero__buttons .btn--store {
        width: 100%;
        height: 58px;
        min-height: 58px;
        padding: 0 22px;
        justify-content: center;
        align-items: center;
    }

    .hero__buttons .btn--store .btn__label-sm {
        font-size: 12px;
        line-height: 1.1;
    }

    .hero__buttons .btn--store .btn__label-lg {
        font-size: 22px;
        line-height: 1.15;
    }

    /* Store buttons fuera del hero */
    .btn--store {
        width: auto;
        height: 52px;
        min-height: 52px;
        padding: 0 20px;
    }

    .btn--store .btn__label-sm {
        font-size: 10px;
        line-height: 1;
    }

    .btn--store .btn__label-lg {
        font-size: 16px;
        line-height: 1.2;
    }

    .btn--store + .btn--store {
        margin-left: 12px;
    }

    /* Sections */
    .section {
        padding: 56px 0;
    }

    .section__title {
        font-size: 28px;
    }

    .page-hero__title {
        font-size: 28px;
    }

    .services-grid { grid-template-columns: 1fr; }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .affiliates-grid { grid-template-columns: 1fr; }

    .two-col {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .two-col--reverse {
        direction: ltr;
    }

    /* CTA block */
    .cta-block {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 36px 28px;
        border-radius: 20px;
        text-align: left;
    }

    .cta-block__title {
        font-size: 30px;
        margin-bottom: 16px;
    }

    .cta-block__text {
        font-size: 15px;
        line-height: 1.7;
    }

    .cta-block__micro {
        font-size: 13px;
    }

    /* Stats */
    .stats-section__content {
        justify-content: center;
    }

    .stats-section__box {
        padding: 32px 24px;
    }

    .stats-section__title {
        font-size: 28px;
    }

    /* Footer */
    .footer__grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer__bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* --- MOBILE COMPACT --- */
@media (max-width: 480px) {

    .header__logo img {
        height: 32px;
    }

    .header__cta {
        min-width: 108px;
        height: 38px;
        padding: 0 16px;
        font-size: 13px;
    }

    .hero__content {
        padding: 140px 0 64px;
    }

    .hero__title {
        font-size: 38px;
    }

    .hero__subtitle {
        font-size: 17px;
    }

    .hero__microcopy {
        font-size: 15px;
    }

    .hero__buttons .btn--store {
        width: 100%;
        height: 58px;
        min-height: 58px;
    }

    /* Botones store fuera del hero en columna */
    .btn--store {
        width: 100%;
        max-width: 360px;
        height: 52px;
        min-height: 52px;
    }

    .btn--store + .btn--store {
        margin-left: 0 !important;
        margin-top: 12px;
    }

    .hero__buttons .btn--store + .btn--store {
        margin-top: 0;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .cta-block {
        padding: 32px 22px;
        border-radius: 18px;
    }

    .cta-block__title {
        font-size: 28px;
    }

    .cta-block .btn {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .error-page__title {
        font-size: 40px;
        line-height: 1.1;
    }
}

@media (max-width: 480px) {
    .error-page__title {
        font-size: 34px;
    }
}
