@media (max-width: 768px) {

    :root {
        --container-padding: 20px;
        --section-space: 80px;
    }

    .site-header .container {
        min-height: 72px;
    }

    .main-nav {
        display: none;
    }

    .hero {
        min-height: calc(100svh - 72px);
    }

    .hero h1 {
        font-size: clamp(3rem, 14vw, 5rem);
    }

    .hero-text {
        font-size: 1.1rem;
    }

}
@media (max-width: 768px) {

    .site-logo img {
        width: 118px;
    }

    .hero {
        min-height: calc(100svh - 72px);

        background:
            linear-gradient(
                180deg,
                rgba(0, 0, 0, 0.82) 0%,
                rgba(0, 0, 0, 0.72) 45%,
                rgba(0, 0, 0, 0.55) 100%
            ),
            url("../img/home/hero/hero_avatar.webp");

        background-size: cover;
        background-position: 82% center;
    }
}

@media (max-width: 768px) {

    .section-header {
        margin-bottom: 40px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        min-height: auto;
        padding: 28px 24px;
    }

}

@media (max-width: 900px) {

    .approach-section .container {
        grid-template-columns: 1fr;
        gap: 48px;
    }

}

@media (max-width: 768px) {

    .problems-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .problem-card {
        padding: 28px 24px;
    }

    .problems-closing {
        margin-top: 40px;
        font-size: 1.15rem;
    }

}

@media (max-width: 900px) {

    .about-section .container {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .about-visual {
        min-height: 320px;
    }

}

@media (max-width: 900px) {

    .site-footer .container {
        grid-template-columns: 1fr 1fr;
    }

}

@media (max-width: 600px) {

    .cta-content h2 {
        font-size: clamp(2rem, 10vw, 3rem);
    }

    .contact-actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .site-footer .container {
        grid-template-columns: 1fr;
        gap: 28px;
    }

}

/* ===== Mobile refinement ===== */

@media (max-width: 768px) {

    :root {
        --container-padding: 22px;
        --section-space: 72px;
    }

    body {
        font-size: 16px;
    }

    /* Header */

    .site-header .container {
        min-height: 68px;
    }

    .site-logo img {
        width: 108px;
    }

    .language-nav {
        font-size: 0.85rem;
    }

    /* Hero */

    .hero {
        min-height: 82svh;

        background:
            linear-gradient(
                180deg,
                rgba(0, 0, 0, 0.82) 0%,
                rgba(0, 0, 0, 0.68) 50%,
                rgba(0, 0, 0, 0.78) 100%
            ),
            url("../img/home/hero/hero_avatar.webp");

        background-size: cover;
        background-position: 78% center;
    }

    .hero h1 {
        max-width: 11ch;

        font-size: clamp(2.4rem, 11vw, 3.3rem);
        line-height: 1.03;
        letter-spacing: -0.025em;
    }

    .hero-text {
        max-width: 34ch;

        margin-block: 24px;

        font-size: 1rem;
        line-height: 1.6;
    }

    .hero-eyebrow {
        margin-bottom: 18px;

        font-size: 0.72rem;
        letter-spacing: 0.12em;
    }

    .button {
        min-height: 48px;
        padding-inline: 22px;

        font-size: 0.92rem;
    }

    /* Section titles */

    .section-header h2,
    .about-content h2 {
        font-size: clamp(2rem, 9vw, 2.7rem);
        line-height: 1.08;
    }

    .section-eyebrow {
        font-size: 0.72rem;
    }

    /* Services */

    .service-card {
        padding: 30px 26px;
    }

    .service-card h3 {
        font-size: 1.35rem;
    }

    .service-card p {
        font-size: 0.98rem;
        line-height: 1.6;
    }

    /* Approach */

    .approach-section .container {
        gap: 40px;
    }

    .approach-section .section-header p:last-child {
        font-size: 1rem;
        line-height: 1.65;
    }

    .principle {
        padding: 24px 0;
    }

    .principle h3 {
        font-size: 1.2rem;
    }

    .principle p {
        font-size: 0.95rem;
    }

    /* Problems */

    .problem-card {
        padding: 28px 24px;
    }

    .problem-card h3 {
        font-size: 1.3rem;
        line-height: 1.3;
    }

    .problem-card p {
        font-size: 0.96rem;
        line-height: 1.6;
    }

    .problems-closing {
        font-size: 1.05rem;
        line-height: 1.6;
    }

    /* About */

    .about-content p {
        font-size: 1rem;
        line-height: 1.65;
    }

    .about-signature {
        font-size: 1.15rem !important;
    }

    .about-visual {
        min-height: 280px;
    }

    /* CTA */

    .cta-content h2 {
        max-width: 12ch;

        font-size: clamp(2rem, 9vw, 2.8rem);
        line-height: 1.08;
    }

    .cta-content p {
        font-size: 1rem;
        line-height: 1.6;
    }

    /* Footer */

    .site-footer {
        padding-block: 48px;
    }

    .site-footer .container {
        gap: 32px;
    }

    .footer-brand img {
        width: 128px;
    }

}

@media (max-width: 600px) {

    .site-footer .container {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 36px 24px;
    }

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

    .footer-brand img {
        width: 120px;
    }

    .footer-services,
    .footer-languages,
    .footer-social {
        gap: 12px;
    }

    .footer-services {
        grid-column: 1;
        grid-row: 2 / span 2;
    }

    .footer-languages {
        grid-column: 2;
        grid-row: 2;
    }

    .footer-social {
        grid-column: 2;
        grid-row: 3;
    }

    .site-footer a {
        font-size: 0.95rem;
        line-height: 1.4;
    }

}

@media (max-width: 600px) {

    .site-footer {
        padding-block: 44px;
    }

    .site-footer .container {
        grid-template-columns: 1.2fr 0.8fr;
        gap: 34px 28px;
    }

    .footer-brand img {
        width: 108px;
    }

    .footer-services,
    .footer-languages,
    .footer-social {
        gap: 8px;
    }

    .footer-title {
        margin-bottom: 10px;
    }

    .site-footer a {
        font-size: 0.92rem;
        line-height: 1.45;
    }

}

@media (max-width: 600px) {

    .footer-brand {
        margin-bottom: -6px;
    }

    .footer-languages {
        align-self: start;
    }

    .footer-social {
        align-self: start;
    }

    .footer-bottom {
        grid-column: 1 / -1;

        padding-top: 22px;
        margin-top: 4px;
    }

    .footer-bottom p {
        font-size: 0.78rem;
        line-height: 1.5;
    }

}

@media (max-width: 768px) {

    .site-header .container {
        min-height: 68px;
    }

    .hero {
        min-height: 100svh;
        padding-top: 68px;
    }

}

@media (max-width: 768px) {

    .language-nav {
        gap: 10px;
    }

    .language-nav a {
        font-size: 0.78rem;
    }

}

@media (max-width: 768px) {

    .cta-content h2 {
        max-width: 14ch;

        font-size: clamp(1.8rem, 8vw, 2.4rem);
    }

    .cta-content p {
        font-size: 1.08rem;
    }

}

@media (max-width: 768px) {

    .language-flag {
        font-size: 1.15rem;
    }

}

@media (max-width: 900px) {

    .about-visual img {
        object-position: center 30%;
    }

}

@media (max-width: 900px) {

    .about-section .container {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .about-visual {
        width: min(100%, 340px);
        height: 420px;

        justify-self: start;
    }

    .about-visual img {
        object-position: center 34%;
    }

}

@media (max-width: 600px) {

    .about-visual {
        width: 100%;
        max-width: 320px;
        height: 380px;
    }

}

/* =========================================================
   Internal pages responsive
   ========================================================= */

@media (max-width: 768px) {

    .internal-hero {
        min-height: auto;

        padding-top: 140px;
        padding-bottom: 72px;
    }

    .internal-hero h1 {
        font-size: clamp(2.2rem, 10vw, 3.2rem);
    }

    .internal-hero-text {
        margin-top: 24px;

        font-size: 1.15rem;
        line-height: 1.55;
    }

    .internal-hero-description {
        font-size: 1rem;
        line-height: 1.65;
    }

    .web-types-grid {
        grid-template-columns: 1fr;
    }

    .web-type-card {
        min-height: auto;
        padding: 28px 24px;
    }

    .process-step {
        grid-template-columns: 54px 1fr;
        gap: 18px;
    }

    .included-list {
        grid-template-columns: 1fr;
    }

    .included-list li,
    .included-list li:nth-child(odd),
    .included-list li:nth-child(even) {
        padding: 20px 0;

        border-left: 0;
    }

    .tailored-content p {
        font-size: 1rem;
    }

}

@media (max-width: 768px) {

    .internal-hero::before {
        background-size: 36px 36px;

        opacity: 0.6;
    }

    .internal-hero::after {
        width: 260px;
        height: 260px;

        top: 18%;
        right: -25%;
    }

}

@media (max-width: 768px) {

    .internal-page .internal-hero {
        background:
            linear-gradient(
                180deg,
                rgba(24, 24, 24, 0.94) 0%,
                rgba(24, 24, 24, 0.84) 48%,
                rgba(24, 24, 24, 0.72) 100%
            ),
            url("../img/servicios/desarrollo-web/hero-desarrollo-web.webp");

        background-size: cover;
        background-position: 72% center;
    }

}

@media (max-width: 768px) {

    .internal-page .internal-hero {
        background:
            linear-gradient(
                to bottom,
                transparent 65%,
                rgba(43, 43, 43, 0.38) 84%,
                #2b2b2b 100%
            ),
            linear-gradient(
                180deg,
                rgba(24, 24, 24, 0.94) 0%,
                rgba(24, 24, 24, 0.84) 48%,
                rgba(24, 24, 24, 0.72) 100%
            ),
            url("../img/servicios/desarrollo-web/hero-desarrollo-web.webp");

        background-size: cover;
        background-position: 72% center;
    }

}

@media (max-width: 768px) {

    .internal-page .internal-hero {
        min-height: 100svh;

        display: flex;
        align-items: center;

        padding-top: 100px;
        padding-bottom: 50px;

        background:
            linear-gradient(
                180deg,
                rgba(24, 24, 24, 0.94) 0%,
                rgba(24, 24, 24, 0.84) 48%,
                rgba(24, 24, 24, 0.72) 100%
            ),
            url("../img/servicios/desarrollo-web/hero-desarrollo-web.webp");

        background-size: cover;
        background-position: 72% center;
    }

}

@media (max-width: 768px) {

    .process-list::before {
        left: 25px;
    }

    .process-step {
        grid-template-columns: 52px 1fr;
        gap: 18px;
    }

    .process-number {
        width: 52px;
        height: 52px;

        font-size: 0.85rem;
    }

    .process-step h3 {
        margin-top: 2px;
    }

}

@media (max-width: 768px) {

    .included-section::before {
        background-size: 34px 34px;
        opacity: 0.5;
    }

    .included-list li,
    .included-list li:nth-child(odd),
    .included-list li:nth-child(even) {
        padding-left: 22px;
        padding-right: 0;
    }

    .included-list li::before,
    .included-list li:nth-child(even)::before {
        left: 0;
    }

}

@media (max-width: 768px) {

    .internal-page .cta-section::before {
        background-size: 34px 34px;
        opacity: 0.35;
    }

    .internal-page .cta-section::after {
        width: 260px;
        height: 260px;

        top: -80px;
        right: -110px;
    }

}

@media (max-width: 768px) {

    .internal-page .cta-section::before {
        background-size: 40px 40px;
        opacity: 0.45;
    }

    .internal-page .cta-section::after {
        top: -60px;
        right: -100px;

        width: 320px;
        height: 320px;
    }

}

@media (max-width: 768px) {

    .cta-section::before {
        background-size: 40px 40px;
        opacity: 0.45;
    }

}

@media (max-width: 768px) {

    .cta-section::before,
    .internal-page .cta-section::before {
        background-size: 36px 36px;
        opacity: 0.62;
    }

}

@media (max-width: 768px) {

    .digital-tools-list {
        grid-template-columns: 1fr;
    }

    .digital-tools-list > div,
    .digital-tools-list > div:nth-child(odd),
    .digital-tools-list > div:nth-child(even) {
        padding: 24px 0;

        border-left: 0;
    }

}

@media (max-width: 768px) {

    .digital-solutions-hero {
        background:
            linear-gradient(
                180deg,
                rgba(24, 24, 24, 0.96) 0%,
                rgba(24, 24, 24, 0.82) 100%
            ),
            #242424;
    }

}

@media (max-width: 768px) {

    .digital-solutions-hero {
        background:
            linear-gradient(
                180deg,
                rgba(24, 24, 24, 0.94) 0%,
                rgba(24, 24, 24, 0.82) 48%,
                rgba(24, 24, 24, 0.70) 100%
            ),
            url("../img/servicios/soluciones-digitales/hero-soluciones-digitales.webp");

        background-size: cover;
        background-position: 72% center;
    }

}

@media (max-width: 768px) {

    .internal-page .digital-solutions-hero {
        background:
            linear-gradient(
                180deg,
                rgba(24, 24, 24, 0.94) 0%,
                rgba(24, 24, 24, 0.82) 48%,
                rgba(24, 24, 24, 0.70) 100%
            ),
            url("../img/servicios/soluciones-digitales/hero-soluciones-digitales.webp");

        background-size: cover;
        background-position: 72% center;
    }

}

@media (max-width: 768px) {

    .section-eyebrow,
    .hero-eyebrow {
        font-size: 0.82rem;
        letter-spacing: 0.14em;
    }

}

@media (max-width: 768px) {

    .section-eyebrow,
    .hero-eyebrow {
        font-size: 0.92rem;
        letter-spacing: 0.14em;
    }

}

@media (max-width: 768px) {

    .internal-page .seo-hero {
        background:
            linear-gradient(
                180deg,
                rgba(24, 24, 24, 0.94) 0%,
                rgba(24, 24, 24, 0.82) 48%,
                rgba(24, 24, 24, 0.70) 100%
            ),
            url("../img/servicios/seo/hero-seo.webp");

        background-size: cover;
        background-position: 72% center;
    }

}

@media (max-width: 768px) {

    .internal-page .maintenance-hero {
        background:
            linear-gradient(
                180deg,
                rgba(24, 24, 24, 0.94) 0%,
                rgba(24, 24, 24, 0.82) 48%,
                rgba(24, 24, 24, 0.70) 100%
            ),
            url("../img/servicios/mantenimiento-web/hero-mantenimiento-web.webp");

        background-size: cover;
        background-position: 72% center;
    }

}

@media (max-width: 900px) {

    .contact-page-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

}

@media (max-width: 600px) {

    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-preference label {
        display: flex;

        margin-right: 0;
        margin-bottom: 10px;
    }

}

@media (max-width: 768px) {

    .contact-page-section {
        padding-top: 120px;
    }

}

@media (max-width: 600px) {

    .service-choice {
        grid-template-columns: 1fr;
    }

}

@media (max-width: 600px) {

    .form-field.contact-method-field {
        width: 100%;
    }

}


/* =========================================================
   MBEW MOBILE MEGA MENU
   ========================================================= */

@media (max-width: 900px) {

    .site-header-inner {
        justify-content: flex-start;
    }

    .site-logo {
        margin-right: auto;
    }

    .desktop-nav {
        display: none;
    }

    .language-switcher {
        margin-left: 0;
        margin-right: 18px;
    }

    .mobile-menu-toggle {
        display: block;

        position: relative;
        z-index: 1002;
    }


    /* OVERLAY */

    .mobile-mega-menu {
        display: block;

        position: fixed;
        inset: 0;

        z-index: 999;

        background:
            radial-gradient(
                circle at 82% 18%,
                rgba(59, 130, 246, 0.10),
                transparent 32%
            ),
            rgba(36, 36, 36, 0.86);

        backdrop-filter: blur(18px);
        -webkit-backdrop-filter: blur(18px);

        opacity: 0;
        visibility: hidden;

        pointer-events: none;

        transform: translateY(-10px);

        transition:
            opacity 0.3s ease,
            visibility 0.3s ease,
            transform 0.3s ease;
    }

    .mobile-mega-menu.is-open {
        opacity: 1;
        visibility: visible;

        pointer-events: auto;

        transform: translateY(0);
    }

    body.mobile-menu-open {
        overflow: hidden;
    }


    .mobile-mega-menu-inner {
        display: flex;
        flex-direction: column;

        min-height: 100svh;

        padding:
            clamp(120px, 17vh, 155px)
            24px
            28px;
    }


    /* SERVICE LINKS */

    .mobile-services-nav {
        display: flex;
        flex-direction: column;
    }

    .mobile-service-link {
        display: grid;

        grid-template-columns: 42px 1fr;

        gap: 14px;

        padding: 18px 0;

        border-bottom:
            1px solid rgba(255, 255, 255, 0.09);

        color: inherit;
        text-decoration: none;

        opacity: 0;
        transform: translateY(14px);

        transition:
            opacity 0.35s ease,
            transform 0.35s ease,
            border-color 0.25s ease;
    }

    .mobile-mega-menu.is-open
    .mobile-service-link {
        opacity: 1;
        transform: translateY(0);
    }

    .mobile-mega-menu.is-open
    .mobile-service-link:nth-child(1) {
        transition-delay: 0.06s;
    }

    .mobile-mega-menu.is-open
    .mobile-service-link:nth-child(2) {
        transition-delay: 0.11s;
    }

    .mobile-mega-menu.is-open
    .mobile-service-link:nth-child(3) {
        transition-delay: 0.16s;
    }

    .mobile-mega-menu.is-open
    .mobile-service-link:nth-child(4) {
        transition-delay: 0.21s;
    }

    .mobile-service-number {
        padding-top: 5px;

        color: var(--color-brand);

        font-family: "Audiowide", sans-serif;
        font-size: 0.76rem;
    }

    .mobile-service-content {
        display: flex;
        flex-direction: column;

        gap: 5px;
    }

    .mobile-service-content strong {
        color: #f5f5f5;

        font-family: "Audiowide", sans-serif;
        font-size: clamp(1.15rem, 5.5vw, 1.45rem);

        font-weight: 400;
        line-height: 1.25;
    }

    .mobile-service-content small {
        max-width: 310px;

        color: #a1a1aa;

        font-size: 0.9rem;
        line-height: 1.4;
    }


    /* SECONDARY */

    .mobile-secondary-nav {
        display: flex;
        justify-content: space-between;

        margin-top: auto;
        padding-top: 26px;

        border-top:
            1px solid rgba(255, 255, 255, 0.09);
    }

    .mobile-secondary-nav a {
        color: #f5f5f5;

        font-size: 0.95rem;
        text-decoration: none;
    }

    .mobile-menu-location {
        margin:
            18px 0
            0;

        color: #6f6f75;

        font-size: 0.78rem;
        letter-spacing: 0.08em;

        text-transform: uppercase;
    }


    /* LANGUAGE DROPDOWN ABOVE OVERLAY */

    .site-header .language-switcher {
        z-index: 1002;
    }

    .language-switcher-menu {
        top: calc(100% + 14px);
    }

}


@media (max-width: 600px) {

    .mobile-mega-menu-inner {
        padding-left: 20px;
        padding-right: 20px;
    }

    .mobile-service-link {
        padding: 16px 0;
    }

}

@media (max-width: 900px) {

    .language-switcher-menu {
        background: rgba(36, 36, 36, 0.86);

        backdrop-filter: blur(18px);
        -webkit-backdrop-filter: blur(18px);

        border: 1px solid rgba(255, 255, 255, 0.08);

        box-shadow:
            0 16px 40px rgba(0, 0, 0, 0.28);
    }

}

@media (max-width: 900px) {

    .site-footer .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px 28px;
    }

    .site-footer .footer-brand {
        grid-column: 1 / -1;
    }

    .site-footer .footer-column:last-child {
        justify-self: start;
    }

}

@media (max-width: 600px) {

    .site-footer .footer-grid {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .site-footer .footer-brand {
        grid-column: auto;
    }

}

@media (max-width: 900px) {

    .site-footer .container {
        grid-template-columns: 1fr 1fr;

        column-gap: 32px;
        row-gap: 36px;
    }

    .footer-brand-block {
        grid-column: 1 / -1;
    }

    .footer-social {
        justify-self: start;
    }

}

@media (max-width: 600px) {

    .site-footer .container {
        grid-template-columns: 1fr;
    }

    .footer-brand-block,
    .footer-bottom {
        grid-column: auto;
    }

}

@media (max-width: 600px) {

    .site-footer .container {
        grid-template-columns: 1fr;

        row-gap: 30px;
    }

    .footer-brand-block,
    .footer-social,
    .footer-bottom {
        grid-column: 1;

        justify-self: start;
    }

    .footer-social {
        margin-top: 6px;
    }

}

@media (max-width: 600px) {

    .site-footer .container {
        grid-template-columns: 1fr;

        row-gap: 30px;
    }

    .footer-brand-block,
    .footer-social,
    .footer-bottom {
        grid-column: 1;

        justify-self: start;
    }

    .footer-social {
        margin-top: 6px;
    }

}

@media (max-width: 600px) {

    .site-footer .footer-brand img {
        width: 135px;
    }

}

@media (max-width: 600px) {

    .internal-page .seo-hero h1 {
        font-size: clamp(2rem, 9vw, 2.9rem);
    }

}

@media (max-width: 600px) {

    .internal-page .seo-hero h1 {
        font-size: clamp(2rem, 9vw, 2.9rem);
    }

}

@media (max-width: 600px) {

    .service-page .tailored-content,
    .service-page .tailored-content h2,
    .service-page .tailored-content p:not(.section-eyebrow) {
        max-width: 100%;
    }

}

