/* ─── Global resets (Desktop / Tablet) ──────────────────────────── */
/* Hamburger & overlay: visibles solo en móvil */
.menu-toggle,
.nav-overlay {
    display: none;
}

/* Desktop: nav en flujo normal con float derecho */
@media screen and (min-width: 769px) {
    #main-nav {
        position: static;
        top: auto;
        right: auto;
        width: auto;
        height: auto;
        background: transparent;
        box-shadow: none;
        padding: var(--space-6) 0 0 0;
        z-index: auto;
        float: right;
        transition: none;
        display: block;
    }
}

/* Tablet */
@media screen and (max-width: 1024px) {

    html,
    body {
        min-width: auto;
    }

    .main {
        width: 100%;
        margin: 0 auto;
    }

    .container_12 {
        width: 100%;
        padding: 0 15px;
        box-sizing: border-box;
    }

    .main-indents {
        padding: 30px 0;
    }

    header {
        width: 100%;
        padding: 10px 20px;
    }

    .logo {
        margin: 0 0 0 20px;
    }

    nav {
        padding: 16px 20px 0 0;
    }

    .mp-slider {
        width: 100%;
        height: auto;
    }

    .mp-slider .banner {
        font-size: 36px;
        line-height: 42px;
    }

    .mp-slider .row-2 {
        font-size: 56px;
        line-height: 62px;
    }

    .content-box {
        padding: 20px;
        margin: 0 5px;
    }

    .col-1,
    .col-2,
    .col-3,
    .col-4,
    .col-5,
    .col-6,
    .col-7,
    .col-8,
    .col-9,
    .col-10,
    .col-11,
    .col-12 {
        width: 100%;
        margin: 0 0 20px 0;
        float: none;
    }

    .img-indent {
        float: none;
        display: block;
        margin: 0 auto 20px;
    }
}

/* Mobile */
@media screen and (max-width: 768px) {
    body {
        font-size: 13px;
        line-height: 22px;
        min-width: auto;
    }

    .main {
        width: 100%;
        border-radius: 0;
    }

    .main-indents {
        padding: 10px 0;
    }

    header {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        flex-wrap: nowrap !important;
        width: 100%;
        padding: 10px 15px;
        overflow: visible;
    }

    .logo {
        float: none !important;
        flex: 0 0 auto;
        margin: 0;
        z-index: 1001;
    }

    /* Hamburger Button — siempre al extremo derecho */
    .menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        flex: 0 0 30px;
        /* no crece ni se encoge */
        width: 30px;
        height: 24px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
        z-index: 1001;
        order: 99;
        /* último elemento */
    }

    .menu-toggle span {
        width: 30px;
        height: 3px;
        background: #5e2ced;
        border-radius: 10px;
        transition: all 0.3s linear;
        position: relative;
        transform-origin: 1px;
    }

    .menu-toggle.is-active span:first-child {
        transform: rotate(45deg);
    }

    .menu-toggle.is-active span:nth-child(2) {
        opacity: 0;
        transform: translateX(20px);
    }

    .menu-toggle.is-active span:nth-child(3) {
        transform: rotate(-45deg);
    }

    /* Mobile Nav Drawer */
    #main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: #fff;
        padding: 80px 20px 40px;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transition: right 0.4s ease-in-out;
        z-index: 1000;
        display: block !important;
        float: none;
    }

    #main-nav.is-open {
        right: 0;
    }

    .nav-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 999;
    }

    .nav-overlay.is-visible {
        opacity: 1;
        visibility: visible;
    }

    .sf-menu {
        float: none;
        width: 100%;
        display: flex;
        flex-direction: column;
    }

    .sf-menu>li {
        width: 100%;
        margin: 0;
        float: none;
        border-bottom: 1px solid #f0f0f0;
    }

    .sf-menu>li>a {
        font-size: 18px;
        font-weight: 600;
        padding: 15px 0;
        color: #1a1a2e;
        display: block;
    }

    .sf-menu>li.current>a {
        color: #5e2ced;
    }

    /* Dropdown in mobile: show inline, without !important hacks */
    .sf-menu ul {
        position: static;
        box-shadow: none;
        background: transparent;
        padding-left: 15px;
        margin-top: -5px;
        margin-bottom: 10px;
        width: auto;
        min-width: 0;
    }

    .sf-menu ul li a {
        padding: 8px 0;
        font-size: 15px;
    }


    .mp-slider {
        width: 100%;
        height: auto;
    }

    .mp-slider img {
        width: 100%;
        height: auto;
    }

    .mp-slider .banner {
        font-size: 24px;
        line-height: 30px;
        left: 15px;
        right: 15px;
        bottom: 20px;
    }

    .mp-slider .row-2 {
        font-size: 36px;
        line-height: 42px;
    }

    .mp-prev,
    .mp-next {
        bottom: 50px;
    }

    .mp-prev {
        left: 10px;
    }

    .mp-next {
        right: 10px;
    }

    section#content {
        padding: 20px 0 0 0;
    }

    .content-box {
        padding: 15px;
        margin: 0;
    }

    .welcome {
        font-size: 36px;
        line-height: 42px;
        margin: 0 0 -10px 0;
    }

    h3 {
        font-size: 20px;
        line-height: 26px;
    }

    .a1,
    .a2 {
        margin: 0 5px;
    }

    .img-indent {
        float: none;
        display: block;
        margin: 0 auto 15px;
        max-width: 100%;
    }

    footer {
        padding: 20px 15px;
        margin: 0 5px;
    }

    .new_footer_top .row {
        flex-direction: column;
    }

    .col-lg-3,
    .col-lg-6,
    .col-md-6,
    .col-sm-5,
    .col-sm-7 {
        width: 100%;
        max-width: 100%;
        padding: 10px 0;
    }

    .text-right {
        text-align: left !important;
    }

    .f_widget {
        padding-left: 0 !important;
    }

    .f_social_icon a {
        margin: 0 8px 8px 0;
    }
}

/* Small Mobile */
@media screen and (max-width: 480px) {
    body {
        font-size: 12px;
    }

    .logo a {
        width: 200px;
        height: 70px;
        background-size: contain;
    }

    .sf-menu>li {
        display: block;
        margin: 5px 0;
    }

    .mp-slider .banner {
        font-size: 18px;
        line-height: 24px;
    }

    .mp-slider .row-2 {
        font-size: 28px;
        line-height: 34px;
    }

    .welcome {
        font-size: 28px;
        line-height: 34px;
    }

    h3 {
        font-size: 18px;
        line-height: 24px;
    }

    h5 {
        font-size: 16px;
    }
}

/* Print Styles */
@media print {

    .mp-prev,
    .mp-next,
    nav,
    .f_social_icon {
        display: none;
    }

    body {
        background: white;
    }

    .main {
        width: 100%;
    }
}

/* Quick Fixes for index.html Sections */
.diferenciadores-strip {
    background: linear-gradient(135deg, #0d0d1a, #1a1a2e);
    padding: 60px 40px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

@media (max-width: 900px) {
    .diferenciadores-strip {
        grid-template-columns: repeat(2, 1fr);
        padding: 40px 20px;
    }

    .diferenciadores-strip .dif-last {
        border-left: none !important;
    }
}

@media (max-width: 600px) {
    .diferenciadores-strip {
        grid-template-columns: 1fr;
    }

    .content-box {
        padding: 0 10px !important;
    }
}

/* Experience Intro Box */
.experience-intro-box {
    text-align: center;
    max-width: 800px;
    margin: 60px auto 70px;
    padding: 0 20px;
}

@media (max-width: 768px) {
    .experience-intro-box {
        margin: 20px auto 30px;
        padding: 0 15px;
    }
}