/* =========================================================
   NEXOS MARKETING SOLUTIONS — RESPONSIVE
   Breakpoints organized by viewport and component
   ========================================================= */


/* =========================================================
   1. LARGE DESKTOP
   1600px and above
   ========================================================= */

@media (min-width: 1600px) {

    /* HERO */

    .hero__layout {
        padding-block: 75px 85px;
    }
}


/* =========================================================
   2. COMPACT DESKTOP / LAPTOP
   1150px and below
   ========================================================= */

@media (max-width: 1150px) {

    /* -----------------------------------------------------
       GENERAL LAYOUT
       ----------------------------------------------------- */

    .container {
        width: calc(100% - 72px);
    }


    /* -----------------------------------------------------
       NAVIGATION
       ----------------------------------------------------- */

    .navbar__links {
        gap: 17px;
    }

    .navbar__menu {
        gap: 20px;
    }

    /* -----------------------------------------------------
       HERO
       ----------------------------------------------------- */

    .hero__title {
        font-size: clamp(56px, 6.4vw, 75px);
    }

    .hero__actions {
        flex-wrap: wrap;
    }

    .core-tag {
        width: 132px;
        padding: 10px;
    }

    .core-tag b {
        font-size: 12px;
    }


    /* -----------------------------------------------------
       SHARED SECTION LAYOUTS
       ----------------------------------------------------- */

    .about__layout,
    .capabilities__layout,
    .testimonials__layout,
    .contact__layout {
        gap: 50px;
    }


    /* -----------------------------------------------------
       SERVICES / CAPABILITIES
       ----------------------------------------------------- */

    .capability-item {
        padding: 18px;
    }

    .capability-item h3 {
        font-size: 20px;
    }

    .strategy-map {
        right: 4%;
        width: 45%;
    }

    .strategy-map span {
        padding-inline: 10px;
        font-size: 9px;
    }


    /* -----------------------------------------------------
       FOOTER
       ----------------------------------------------------- */

    .footer__main {
        gap: 30px;
    }
}


/* =========================================================
   3. TABLET
   950px and below
   ========================================================= */

@media (max-width: 950px) {

    /* -----------------------------------------------------
       NAVIGATION
       ----------------------------------------------------- */

    .site-header {
        left: 20px;
        right: 20px;
        top: 16px;
    }

    .navbar.container {
        padding: 12px 17px;
    }

    .navbar__brand {
        width: 175px;
        height: 52px;
    }

    .navbar__subtitle {
        font-size: 6px;
    }

    .navbar__toggle {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 5px;

        width: 44px;
        height: 44px;

        border: 1px solid var(--line);
        border-radius: 6px;

        background: var(--deep);
    }

    .navbar__toggle span {
        width: 18px;
        height: 1px;

        background: var(--ice);

        transition:
            transform .2s,
            opacity .2s;
    }

    .navbar__toggle[aria-expanded="true"] span:nth-child(1) {
        transform: translateY(6px) rotate(45deg);
    }

    .navbar__toggle[aria-expanded="true"] span:nth-child(2) {
        opacity: 0;
    }

    .navbar__toggle[aria-expanded="true"] span:nth-child(3) {
        transform: translateY(-6px) rotate(-45deg);
    }

    .navbar__menu {
        display: none;
        position: absolute;
        top: calc(100% + 9px);
        left: 0;
        right: 0;

        max-height: calc(100dvh - 115px);
        overflow-y: auto;

        padding: 20px;

        border: 1px solid var(--line);
        border-radius: 10px;

        background: rgba(255, 255, 255, .98);
        box-shadow: 0 20px 50px rgba(17, 19, 24, .16);
    }

    .navbar__menu.is-open {
        display: flex;
        flex-direction: column;
        align-items: stretch;
    }

    .navbar__links {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .navbar__links a {
        padding: 12px 10px;
        font-size: 15px;
    }

    .navbar__links a::after {
        left: 10px;
        right: auto;
        width: 20px;
    }


    /* -----------------------------------------------------
       HERO
       ----------------------------------------------------- */

    .hero {
        padding-top: 134px;
    }

    .hero.section {
        padding-top: 134px;
        padding-bottom: 0;
    }

    .hero__edition {
        font-size: 8px;
    }

    .hero__edition > span:last-child {
        letter-spacing: 0;
    }

    .hero__layout {
        padding-top: 50px;
        padding-bottom: 45px;
    }

    .hero__title {
        font-size: 58px;
    }

    .hero__description {
        font-size: 14px;
    }

    .hero__actions {
        gap: 10px;
    }

    .hero__actions .btn {
        min-height: 47px;
        padding: 12px 16px;
    }

    .hero__visual-label {
        padding: 0;
        font-size: 7px;
    }

    .hero__visual-caption {
        padding-inline: 0;
        font-size: 7px;
    }

    .core-tag {
        width: 117px;
    }

    .core-tag > span {
        font-size: 6px;
    }

    .core-tag b {
        font-size: 10px;
    }

    .hero__bottom {
        gap: 24px;
        font-size: 8px;
    }


    /* -----------------------------------------------------
       SERVICES TICKER
       ----------------------------------------------------- */

    .services-ticker__items {
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px 22px;
        font-size: 12px;
    }

    .services-ticker__items > [aria-hidden] {
        font-size: 15px;
    }


    /* -----------------------------------------------------
       GENERAL SECTIONS
       ----------------------------------------------------- */

    .section {
        padding-block: 80px;
    }

    .section-title {
        font-size: 37px;
    }

    .section-description {
        font-size: 15px;
    }

    .section-heading--split {
        gap: 30px;
    }

    .section-heading--split .section-description {
        max-width: 230px;
        font-size: 13px;
    }


    /* -----------------------------------------------------
       ABOUT
       ----------------------------------------------------- */

    .about__layout {
        gap: 40px;
    }

    .about__graphic {
        height: 460px;
    }

    .about__plane {
        width: 85%;
        height: 125px;
        padding: 18px;
    }

    .about__plane > span {
        font-size: 24px;
    }

    .about__plane--two {
        top: 153px;
    }

    .about__plane--three {
        top: 285px;
    }

    .about__graphic-label {
        font-size: 6px;
    }


    /* -----------------------------------------------------
       SERVICES
       ----------------------------------------------------- */

    .service-card {
        padding: 26px;
    }

    .service-card h3 {
        font-size: 21px;
    }

    .service-card--featured {
        min-height: 310px;
    }

    .service-card--featured p {
        max-width: 45%;
    }

    .strategy-map {
        width: 44%;
        right: 4%;
    }

    .strategy-map span {
        padding-inline: 7px;
        font-size: 7px;
    }

    .strategy-map i {
        min-width: 8px;
    }


    /* -----------------------------------------------------
       PROCESS / METHODOLOGY
       ----------------------------------------------------- */

    .process__grid {
        column-gap: 70px;
    }

    .process-card::before {
        right: -42px;
    }

    .process-card::after {
        width: 29px;
        right: -30px;
    }

    .process-card:nth-child(even)::before {
        left: -42px;
    }

    .process-card:nth-child(even)::after {
        left: -30px;
    }


    /* -----------------------------------------------------
       PROJECTS
       ----------------------------------------------------- */

    .projects__grid {
        grid-template-columns: 1fr 1fr;
        gap: 22px;
    }

    .project-card__visual {
        height: 300px;
        padding: 20px 15px;
    }

    .project-card__content {
        padding: 20px;
    }

    .project-card__content h3 {
        font-size: 18px;
    }

    .mock-browser {
        padding: 16px;
    }

    .mock-browser strong {
        font-size: 36px;
    }

    .mock-browser__orbit {
        width: 80px;
        height: 100px;
        right: 5px;
    }

    .mock-browser small {
        font-size: 5px;
    }

    .project-card__art--campaign {
        inset: 65px 25px 25px;
        padding: 20px 15px;
    }

    .campaign-orbit {
        width: 95px;
        height: 95px;
        right: 15px;
        border-width: 15px;
    }


    /* -----------------------------------------------------
       CAPABILITIES
       ----------------------------------------------------- */

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

    .capabilities__intro {
        max-width: 550px;
    }

    .capability-item {
        min-height: 185px;
        padding: 25px;
    }

    .capability-item h3 {
        font-size: 24px;
    }


    /* -----------------------------------------------------
       TEAM
       ----------------------------------------------------- */

    .team__portraits {
        gap: 15px;
    }

    .portrait-slot {
        height: 255px;
        padding: 17px;
    }

    .portrait-slot small {
        left: 17px;
        font-size: 7px;
    }


    /* -----------------------------------------------------
       TESTIMONIALS
       ----------------------------------------------------- */

    .testimonials__layout {
        gap: 40px;
    }

    .testimonials__content {
        padding-left: 25px;
    }

    .testimonials__content > p {
        font-size: 18px;
    }


    /* -----------------------------------------------------
       CONTACT
       ----------------------------------------------------- */

    .contact__layout {
        grid-template-columns: 1fr;
        gap: 45px;
    }

    .contact__intro {
        max-width: 550px;
    }

    .contact__info {
        max-width: none;
        margin-top: 25px;
    }


    /* -----------------------------------------------------
       FOOTER
       ----------------------------------------------------- */

    .footer__main {
        grid-template-columns: 1.2fr 1fr;
        gap: 45px;
    }
}


/* =========================================================
   4. MOBILE
   650px and below
   ========================================================= */

@media (max-width: 650px) {

    /* -----------------------------------------------------
       GENERAL LAYOUT
       ----------------------------------------------------- */

    html {
        scroll-padding-top: 100px;
    }

    .container {
        width: calc(100% - 40px);
    }

    .section {
        padding-block: 65px;
    }

    .section-title {
        font-size: clamp(32px, 8.5vw, 42px);
    }

    .eyebrow {
        margin-bottom: 20px;
        font-size: 9px;
    }

    .section-heading {
        margin-bottom: 35px;
    }


    /* -----------------------------------------------------
       NAVIGATION
       ----------------------------------------------------- */

    .site-header {
        left: 12px;
        right: 12px;
        top: 12px;
    }

    .navbar.container {
        padding: 10px 12px;
    }

    .navbar__brand {
        width: 140px;
        height: 43px;
    }

    .navbar__subtitle {
        font-size: 5px;
        letter-spacing: .34em;
    }


    /* -----------------------------------------------------
       HERO
       ----------------------------------------------------- */

    .hero.section {
        padding-top: 112px;
    }

    .hero__edition {
        font-size: 8px;
    }

    .hero__edition > span:last-child {
        display: none;
    }

    .hero__layout {
        grid-template-columns: 1fr;
        gap: 45px;
        padding-top: 34px;
        padding-bottom: 28px;
    }

    .hero__content .eyebrow {
        margin-bottom: 23px;
        font-size: 8px;
    }

    .hero__title {
        font-size: clamp(54px, 14vw, 80px);
    }

    .hero__description {
        max-width: 340px;
        margin-top: 23px;
        font-size: 14px;
    }

    .hero__actions {
        flex-wrap: nowrap;
        gap: 9px;
        margin-top: 25px;
    }

    .hero__actions .btn {
        gap: 8px;
        padding: 13px 12px;
        font-size: 10px;
    }

    .hero__visual {
        width: min(100%, 440px);
        justify-self: center;
    }

    .hero__visual-label,
    .hero__visual-caption {
        font-size: 7px;
    }

    .connection-core {
        margin: 0;
        transform: none;
    }

    .core-tag {
        width: 113px;
        padding: 10px;
        animation: none;
    }

    .core-tag b {
        font-size: 10px;
    }

    .core-orbits,
    .core-satellite,
    .core-crystal {
        animation: none;
    }

    .hero__bottom {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 15px 20px;
        padding-block: 23px;
        font-size: 8px;
    }

    .hero__bottom span:last-child {
        margin-left: 0;
    }


    /* -----------------------------------------------------
       SERVICES TICKER
       ----------------------------------------------------- */

    .services-ticker__items {
        gap: 10px 14px;
        padding-block: 16px;
        font-size: 10px;
    }

    .services-ticker__items > [aria-hidden] {
        display: none;
    }


    /* -----------------------------------------------------
       ABOUT
       ----------------------------------------------------- */

    .about__layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about__content {
        grid-row: 1;
    }

    .about__graphic {
        max-width: 410px;
        margin-inline: auto;
    }

    .about__plane {
        width: 78%;
    }

    .about__plane > span {
        font-size: 29px;
    }

    .about__graphic-label {
        font-size: 7px;
    }

    .about__content > p {
        margin-top: 20px;
    }


    /* -----------------------------------------------------
       SERVICES
       ----------------------------------------------------- */

    .services__grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .service-card,
    .service-card:nth-child(2n + 3) {
        min-height: 0;
        margin-top: 0;
    }

    .service-card {
        padding: 26px;
    }

    .service-card h3 {
        font-size: 23px;
    }

    .service-card--featured {
        padding-bottom: 26px;
    }

    .service-card--featured p,
    .service-card:last-child p {
        max-width: none;
    }

    .service-card--featured > a {
        width: 100%;
    }

    .strategy-map {
        position: relative;
        top: auto;
        right: auto;
        width: 100%;
        margin: 35px 0;
        transform: rotate(-6deg);
    }

    .strategy-map span {
        padding-inline: 9px;
        font-size: 8px;
    }

    .service-card:last-child .service-card__icon {
        float: none;
        margin: 0 0 25px;
        font-size: 30px;
    }


    /* -----------------------------------------------------
       PROCESS / METHODOLOGY
       ----------------------------------------------------- */

    .process .section-heading {
        text-align: left;
    }

    .process .eyebrow {
        justify-content: start;
    }

    .process__grid {
        grid-template-columns: 1fr;
        gap: 23px;
        padding-left: 27px;
    }

    .process__grid::before {
        left: 3px;
    }

    .process-card:nth-child(n) {
        grid-column: 1;
        grid-row: auto;
        padding: 25px 22px;
    }

    .process-card:nth-child(n)::before {
        right: auto;
        left: -30px;
    }

    .process-card:nth-child(n)::after {
        right: auto;
        left: -23px;
        width: 22px;
    }


    /* -----------------------------------------------------
       SECTION HEADINGS
       ----------------------------------------------------- */

    .section-heading--split {
        display: block;
    }

    .section-heading--split .section-description {
        max-width: none;
        font-size: 14px;
    }


    /* -----------------------------------------------------
       PROJECTS
       ----------------------------------------------------- */

    .projects__grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .project-card:nth-child(2) {
        margin-top: 0;
    }

    .project-card__visual {
        height: 310px;
    }

    .mock-browser strong {
        font-size: 43px;
    }

    .mock-browser__orbit {
        width: 100px;
        height: 125px;
        right: 15px;
    }

    .project-card__art--campaign > span {
        font-size: 43px;
    }


    /* -----------------------------------------------------
       CAPABILITIES
       ----------------------------------------------------- */

    .capabilities__layout {
        gap: 30px;
    }

    .capabilities__list {
        align-items: stretch;
        gap: 12px;
    }

    .capability-item {
        min-height: 160px;
        padding: 17px 14px;
    }

    .capability-item h3 {
        font-size: 19px;
    }

    .capability-item p {
        font-size: 12px;
    }


    /* -----------------------------------------------------
       TEAM
       ----------------------------------------------------- */

    .team__portraits {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .portrait-slot {
        height: 270px;
    }

    .portrait-slot:nth-child(n + 2) {
        display: none;
    }

    .portrait-slot small {
        font-size: 8px;
    }


    /* -----------------------------------------------------
       TESTIMONIALS
       ----------------------------------------------------- */

    .testimonials__layout {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .testimonials__content {
        padding-left: 25px;
    }


    /* -----------------------------------------------------
       CTA
       ----------------------------------------------------- */

    .cta-section {
        padding-top: 0;
        padding-bottom: 25px;
    }

    .cta-panel {
        padding: 60px 22px;
    }

    .cta-panel .eyebrow {
        font-size: 7px;
        letter-spacing: .08em;
    }

    .cta-panel h2 {
        font-size: clamp(30px, 8vw, 42px);
    }

    .cta-panel p {
        font-size: 14px;
    }

    .cta-panel::before,
    .cta-panel::after {
        opacity: .5;
        animation: none;
    }


    /* -----------------------------------------------------
       CONTACT
       ----------------------------------------------------- */

    .contact-form {
        grid-template-columns: 1fr;
        gap: 21px;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px;
    }

    .contact-form > .btn {
        width: 100%;
    }


    /* -----------------------------------------------------
       FOOTER
       ----------------------------------------------------- */

    .footer {
        padding-top: 50px;
    }

    .footer__main {
        gap: 35px 20px;
    }

    .footer__brand {
        grid-column: 1 / -1;
    }

    .footer__brand p {
        max-width: 270px;
    }

    .footer__column:last-child {
        grid-column: 1 / -1;
    }

    .footer__bottom {
        flex-direction: column;
        gap: 15px;
        margin-top: 35px;
        padding-right: 35px;
        font-size: 9px;
    }

    .floating-top {
        right: 12px;
        bottom: 12px;
    }
}


/* =========================================================
   5. SMALL MOBILE
   359px and below
   ========================================================= */

@media (max-width: 359px) {

    /* GENERAL */

    .container {
        width: calc(100% - 32px);
    }


    /* HERO */

    .hero__title {
        font-size: 50px;
    }

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

    .hero__actions .btn {
        font-size: 12px;
    }

    .core-tag {
        width: 102px;
        padding: 8px;
    }

    .core-tag b {
        font-size: 9px;
    }

    .core-tag > span {
        font-size: 5px;
    }

    .hero__visual-caption {
        font-size: 6px;
        letter-spacing: .04em;
    }


    /* CAPABILITIES */

    .capability-item {
        padding: 16px 11px;
    }

    .capability-item h3 {
        font-size: 17px;
    }


    /* PROJECTS */

    .project-card__art--campaign > span {
        font-size: 36px;
    }
}


/* =========================================================
   6. REDUCED MOTION
   Accessibility preference
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }

    /* Ensure reveal content remains visible without animation. */

    .reveal.is-pending {
        opacity: 1;
        transform: none;
    }

    .connection-core {
        transform: none;
    }
}

/* ============================================================
   NEXOS — AJUSTES RESPONSIVE PARA TARJETAS CONECTADAS
   ============================================================ */
@media (max-width:1150px) {
  .hero__visual .connection-core .core-tag {
    width:24.375%; height:12%; padding:1.25% 1.5%;
  }
  .hero__visual .connection-core .core-tag > span {
    font-size:clamp(5px,.65vw,7px);
    margin-bottom:4px;
  }
  .hero__visual .connection-core .core-tag b {
    font-size:clamp(8px,1vw,12px);
  }
}
@media (max-width:650px) {
  .hero__visual .connection-core {
    width:100%; aspect-ratio:640/600; margin:0; transform:none;
  }
  .hero__visual .connection-core .core-tag {
    width:24.375%; height:12%; padding:2% 1.4%;
    border-radius:5px; animation:none;
  }
  .hero__visual .connection-core .core-tag > span {
    margin-bottom:2px; font-size:clamp(4px,1.15vw,6px);
    letter-spacing:0;
  }
  .hero__visual .connection-core .core-tag b {
    font-size:clamp(7px,1.8vw,10px); gap:2px;
  }
  .hero__visual .connection-core .core-tag i {
    font-size:clamp(9px,2.3vw,13px);
  }
}
@media (prefers-reduced-motion:reduce) {
  .core-crystal, .core-orbits, .core-satellite { animation:none !important; }
  .core-crystal-rotation { transform:none !important; }
}
