/* =========================================================
   NEXORA DIGITAL
   Archivo: css/responsive.css
   Responsive Design
   Compatible con la nueva arquitectura comercial
   ========================================================= */


/* =========================================================
   01. PANTALLAS GRANDES — 1200px o menos
   ========================================================= */

@media (max-width: 1200px) {

    :root {
        --container-width: 1060px;
    }

    .nav {
        gap: 22px;
    }

    .solution-card {
        padding: 34px 28px;
    }

    .approach-card,
    .process-grid-six > div {
        padding: 30px 28px;
    }

    .about::after {
        right: -3%;
    }
}


/* =========================================================
   02. LAPTOP / TABLET HORIZONTAL — 1024px o menos
   ========================================================= */

@media (max-width: 1024px) {

    :root {
        --header-height: 78px;
        --section-space: 100px;
    }

    .navbar {
        min-height: var(--header-height);
        gap: 22px;
    }

    .nav {
        gap: 18px;
    }

    .nav > a {
        font-size: 0.75rem;
    }

    .nav > .nav-cta {
        padding-inline: 15px;
    }

    .logo img {
        max-width: 160px;
        max-height: 54px;
    }


    /* HERO */

    .hero {
        min-height: 92svh;

        padding-top:
            calc(var(--header-height) + 64px);

        padding-bottom: 96px;

        background-position: 58% center;
    }

    .hero-content,
    .hero-content h1 {
        max-width: 800px;
    }

    .hero-description {
        max-width: 640px;
    }


    /* PROBLEMA */

    .presence-layout {
        grid-template-columns:
            minmax(0, 0.9fr)
            minmax(360px, 1.1fr);

        gap: 60px;
    }

    .presence-content {
        top: calc(var(--header-height) + 42px);
    }


    /* SOLUCIONES */

    .solutions-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .solution-card {
        min-height: 610px;
    }

    .solution-card:last-child {
        grid-column: 1 / -1;

        min-height: auto;
    }


    /* ENFOQUE */

    .approach-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }


    /* PROCESO */

    .process-grid-six {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .process-grid-six > div {
        min-height: 250px;
    }


    /* PROYECTOS */

    .projects-grid {
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
    }

    .project-card {
        min-height: 460px;
    }


    /* SOBRE NEXORA */

    .about::after {
        right: -6%;

        font-size: 22rem;
    }


    /* COTIZACIÓN */

    .contact {
        padding: 120px 0;
    }

    .contact-grid {
        grid-template-columns:
            minmax(0, 0.82fr)
            minmax(390px, 1.18fr);

        gap: 56px;
    }
}


/* =========================================================
   03. TABLET — 900px o menos
   ========================================================= */

@media (max-width: 900px) {

    :root {
        --header-height: 76px;
        --section-space: 92px;
    }

    .container {
        width: min(100% - 40px, var(--container-width));
    }


    /* HEADER */

    .header {
        background: rgba(8, 11, 11, 0.93);

        backdrop-filter: blur(18px);
        -webkit-backdrop-filter: blur(18px);
    }

    .navbar {
        min-height: var(--header-height);
        gap: 20px;
    }

    .logo img {
        max-width: 148px;
        max-height: 43px;
    }

    .menu-toggle {
        display: flex;
        flex-shrink: 0;
    }


    /* MENÚ MÓVIL */

    .nav {
        position: absolute;

        top: calc(100% + 12px);
        right: 0;

        width: min(360px, calc(100vw - 40px));

        display: flex;
        flex-direction: column;
        align-items: stretch;

        gap: 0;

        padding: 12px;

        background: rgba(13, 16, 16, 0.985);

        border: 1px solid rgba(247, 247, 245, 0.085);

        box-shadow:
            0 24px 65px rgba(0, 0, 0, 0.42);

        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);

        opacity: 0;
        visibility: hidden;

        transform: translateY(-8px);

        pointer-events: none;

        transition:
            opacity 0.25s ease,
            visibility 0.25s ease,
            transform 0.25s ease;
    }

    .header.nav-open .nav {
        opacity: 1;
        visibility: visible;

        transform: translateY(0);

        pointer-events: auto;
    }

    .nav > a {
        width: 100%;

        display: flex;
        align-items: center;

        min-height: 52px;

        padding: 0 14px;

        color: rgba(247, 247, 245, 0.68);

        border-bottom: 1px solid rgba(247, 247, 245, 0.055);

        font-size: 0.88rem;
    }

    .nav > a:not(.nav-cta)::after {
        display: none;
    }

    .nav > a:not(.nav-cta):hover,
    .nav > a.active:not(.nav-cta) {
        color: var(--color-white);

        background: rgba(247, 247, 245, 0.025);
    }

    .nav > .nav-cta {
        min-height: 50px;

        justify-content: center;

        margin-top: 12px;
        padding: 0 18px;

        color: var(--color-black);

        background: var(--color-gold);

        border-color: var(--color-gold);

        font-size: 0.82rem;
    }

    .nav > .nav-cta:hover {
        color: var(--color-black);

        background: var(--color-gold-light);

        transform: none;
    }


    /* HERO */

    .hero {
        min-height: 88svh;

        padding-top:
            calc(var(--header-height) + 64px);

        padding-bottom: 90px;

        background-position: 62% center;
    }

    .hero-content {
        max-width: 720px;
    }

    .hero::after {
        right: 6%;

        height: 48%;
    }


    /* DESCRIPCIONES DE SECCIÓN */

    .section-description {
        max-width: 660px;

        margin-top: -28px;
        margin-bottom: 50px;
    }


    /* PROBLEMA */

    .presence {
        padding-top: 105px;
        padding-bottom: 100px;
    }

    .presence::before {
        display: none;
    }

    .presence-layout {
        grid-template-columns: 1fr;

        gap: 72px;
    }

    .presence-content {
        position: static;

        max-width: 720px;
    }

    .presence-description {
        max-width: 660px;
    }

    .presence-path {
        max-width: 650px;
    }

    .presence-statement {
        margin-top: 80px;
    }


    /* SOLUCIONES */

    .solutions-grid {
        grid-template-columns: 1fr;
    }

    .solution-card,
    .solution-card:last-child {
        grid-column: auto;

        min-height: auto;

        padding: 36px 32px;
    }

    .service-features {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));

        gap: 10px 24px;
    }


    /* ENFOQUE */

    .approach-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .approach::after {
        right: -10%;

        font-size: 25rem;
    }


    /* PROCESO */

    .process-grid-six {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }


    /* PROYECTOS */

    .projects-grid {
        grid-template-columns: 1fr;
    }



    /* SOBRE NEXORA */

    .about::after {
        right: -13%;

        font-size: 19rem;
    }


    /* COTIZACIÓN */

    .contact-grid {
        grid-template-columns: 1fr;

        gap: 54px;
    }

    .contact-intro {
        position: static;

        max-width: 720px;
    }

    .quote-form {
        max-width: 780px;
    }


    /* CTA FINAL */

    .final-cta h2 {
        max-width: 800px;
    }


    /* FOOTER */

    .footer .container {
        flex-wrap: wrap;
    }
}


/* =========================================================
   04. TABLET VERTICAL / MÓVILES GRANDES — 768px o menos
   ========================================================= */

@media (max-width: 768px) {

    :root {
        --header-height: 72px;
        --section-space: 86px;

        --shadow-card:
            0 15px 40px rgba(0, 0, 0, 0.15);

        --shadow-hover:
            0 18px 45px rgba(0, 0, 0, 0.22);
    }

    .container {
        width: min(100% - 36px, var(--container-width));
    }


    /* TIPOGRAFÍA */

    h1 {
        font-size: clamp(3rem, 11vw, 4.8rem);

        letter-spacing: -0.045em;
    }

    h2 {
        font-size: clamp(2.25rem, 8vw, 3.4rem);
    }

    h3 {
        font-size: 1.18rem;
    }

    .section-label,
    .eyebrow {
        margin-bottom: 23px;

        font-size: 0.68rem;
        letter-spacing: 0.16em;
    }

    .section-label::before,
    .eyebrow::before {
        width: 26px;
    }

    .section-description {
        margin-top: -22px;
        margin-bottom: 44px;

        font-size: 0.97rem;
    }


    /* HEADER */

    .navbar {
        min-height: var(--header-height);
    }

    .logo img {
        max-width: 145px;
        max-height: 42px;
    }


    /* HERO */

    .hero {
        min-height: 100svh;

        padding-top:
            calc(var(--header-height) + 56px);

        padding-bottom: 80px;

        background-position: 65% center;
    }

    .hero-content h1 {
        margin-bottom: 26px;
    }

    .hero-description {
        max-width: 560px;

        margin-bottom: 34px;

        font-size: 1rem;
        line-height: 1.75;
    }

    .hero-buttons {
        gap: 12px;
    }

    .hero::after {
        display: none;
    }

    .btn {
        min-height: 52px;

        padding: 0 24px;
    }


    /* PROBLEMA */

    .presence-content h2 {
        margin-bottom: 26px;
    }

    .presence-description {
        font-size: 0.97rem;
    }


    /* SOLUCIONES */

    .services > .container > h2 {
        margin-bottom: 50px;
    }

    .solution-card {
        padding: 32px 28px;
    }

    .service-features {
        grid-template-columns: 1fr;
    }

    .service-number {
        margin-bottom: 24px;
    }


    /* ENFOQUE */

    .approach h2 {
        margin-bottom: 50px;
    }

    .approach-grid {
        grid-template-columns: 1fr;
    }

    .approach-card {
        min-height: auto;

        padding: 30px 28px;
    }

    .approach-card > span {
        margin-bottom: 28px;
    }

    .approach::after {
        top: auto;
        right: -65px;
        bottom: -20px;

        transform: none;

        font-size: 17rem;
    }


    /* PROCESO */

    .process h2 {
        margin-bottom: 52px;
    }

    .process-grid-six {
        grid-template-columns: 1fr;
    }

    .process-grid-six > div {
        min-height: auto;

        padding: 28px;

        border-right: 1px solid var(--border-dark);
    }

    .process-grid-six > div > span {
        margin-bottom: 24px;
    }

    .process-grid-six p {
        max-width: 540px;
    }


    /* PROYECTOS */

    .projects h2 {
        margin-bottom: 48px;
    }

    .project-image {
        min-height: 360px;

        padding: 26px;
    }

    .project-image img {
    max-height: 310px;
    }

    .project-info {
        padding: 30px 28px;
    }

    .project-meta {
        gap: 14px;
    }


    /* SOBRE NEXORA */

    .about h2 {
        margin-bottom: 30px;
    }

    .about p:not(.section-label):not(.about-highlight) {
        font-size: 1rem;
    }

    .about::after {
        top: auto;
        right: -50px;
        bottom: -30px;

        transform: none;

        font-size: 16rem;
    }


    /* COTIZACIÓN */

    .contact {
        padding: 100px 0;
    }

    .contact-intro h2 {
        margin-bottom: 24px;
    }

    .quote-form-grid {
        grid-template-columns: 1fr;
    }

    .form-field-full {
        grid-column: auto;
    }

    .quote-form-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .quote-form-footer .btn {
        width: 100%;
    }

    .quote-form-note {
        max-width: none;
    }


    /* CTA FINAL */

    .final-cta {
        padding: 100px 0;
    }

    .final-cta::before {
        right: 6%;
    }


    /* FOOTER */

    .footer {
        padding: 36px 0;
    }

    .footer .container {
        flex-direction: column;
        align-items: flex-start;

        gap: 18px;
    }
}


/* =========================================================
   05. MÓVILES — 600px o menos
   ========================================================= */

@media (max-width: 600px) {

    :root {
        --header-height: 70px;
        --section-space: 76px;
    }

    .container {
        width: calc(100% - 32px);
    }


    /* TIPOGRAFÍA */

    h1 {
        font-size: clamp(2.85rem, 13vw, 4rem);

        line-height: 1.02;
    }

    h2 {
        font-size: clamp(2.15rem, 10vw, 3rem);

        line-height: 1.08;
    }

    .section-description {
        margin-top: -18px;
        margin-bottom: 40px;

        font-size: 0.94rem;
        line-height: 1.75;
    }


    /* HEADER */

    .navbar {
        min-height: var(--header-height);
    }

    .logo img {
        max-width: 135px;
        max-height: 40px;
    }

    .menu-toggle {
        width: 42px;
        height: 42px;
    }

    .nav {
        width: calc(100vw - 32px);
    }


    /* HERO */

    .hero {
        min-height: auto;

        padding-top:
            calc(var(--header-height) + 48px);

        padding-bottom: 82px;

        background:
            linear-gradient(
                90deg,
                rgba(8, 11, 11, 0.97) 0%,
                rgba(8, 11, 11, 0.90) 50%,
                rgba(8, 11, 11, 0.62) 100%
            ),
            url("../img/hero/portada-nexora.jpg");

        background-size: cover;
        background-position: 68% center;
    }

    .hero-content {
        width: 100%;
    }

    .hero-content h1 {
        margin-bottom: 24px;
    }

    .hero-description {
        margin-bottom: 32px;

        font-size: 0.96rem;
    }

    .hero-buttons {
        display: grid;
        grid-template-columns: 1fr;

        width: 100%;
    }

    .hero-buttons .btn {
        width: 100%;

        min-height: 54px;
    }


    /* PROBLEMA */

    .presence {
        padding-top: 82px;
        padding-bottom: 82px;
    }

    .presence-layout {
        gap: 58px;
    }

    .presence-content h2 {
        margin-bottom: 26px;
    }

    .presence-description {
        font-size: 0.95rem;
    }

    .presence-step {
        grid-template-columns: 34px 1fr;

        gap: 20px;

        padding-bottom: 48px;
    }

    .presence-path-line {
        left: 16px;
    }

    .presence-number {
        width: 34px;
        height: 34px;

        font-size: 0.57rem;
    }

    .presence-step h3 {
        font-size: 1.2rem;
    }

    .presence-step > div > p:last-child {
        font-size: 0.88rem;
    }

    .presence-statement {
        align-items: flex-start;

        gap: 16px;

        margin-top: 64px;
        padding-top: 28px;
    }

    .presence-statement-line {
        width: 28px;

        margin-top: 12px;
    }

    .presence-statement p {
        font-size: 0.95rem;
        line-height: 1.7;
    }


    /* SOLUCIONES */

    .services > .container > h2 {
        margin-bottom: 42px;
    }

    .solution-card {
        padding: 30px 24px;
    }

    .solution-card h3 {
        margin-bottom: 14px;

        font-size: 1.42rem;
    }

    .service-intro {
        font-size: 0.95rem;
    }

    .solution-card > p:not(.service-type):not(.service-intro) {
        font-size: 0.89rem;
    }

    .service-features {
        padding-top: 20px;

        margin-bottom: 28px;
    }


    /* ENFOQUE */

    .approach-card {
        padding: 28px 24px;
    }

    .approach-card p {
        font-size: 0.88rem;
    }


    /* PROCESO */

    .process h2 {
        margin-bottom: 44px;
    }

    .process-grid-six > div {
        padding: 28px 24px;
    }


    /* PROYECTOS */

    .projects h2 {
        margin-bottom: 42px;
    }

    .project-image {
        min-height: auto;

        padding: 20px;
    }

    .project-image img {
        width: 100%;

        max-height: none;
    }

    .project-info {
        padding: 26px 24px;
    }

    .project-meta {
        flex-direction: column;
        align-items: flex-start;

        gap: 8px;

        margin-bottom: 24px;
    }

    

    /* SOBRE NEXORA */

    .about::after {
        right: -65px;
        bottom: -20px;

        font-size: 13rem;
    }

    .about-highlight {
        font-size: 1.35rem;
    }


    /* COTIZACIÓN */

    .contact {
        padding: 86px 0;
    }

    .contact-grid {
        gap: 44px;
    }

    .quote-form {
        padding: 26px 22px;
    }

    .form-field input,
    .form-field select {
        min-height: 52px;
    }

    .send-method-options {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .send-method-option {
        justify-content: center;
    }

    .quote-form-footer {
        margin-top: 26px;
    }


    /* CTA FINAL */

    .final-cta {
        padding: 84px 0;
    }

    .final-cta h2 {
        margin-bottom: 24px;
    }

    .final-cta p:not(.section-label) {
        margin-bottom: 32px;

        font-size: 0.95rem;
    }

    .final-cta .btn {
        width: 100%;
    }


    /* FOOTER */

    .footer {
        padding: 32px 0;
    }

    .footer p,
    .footer a {
        font-size: 0.76rem;
    }
}


/* =========================================================
   06. MÓVILES PEQUEÑOS — 420px o menos
   ========================================================= */

@media (max-width: 420px) {

    .container {
        width: calc(100% - 28px);
    }

    .logo img {
        max-width: 125px;
    }

    .nav {
        right: -14px;

        width: calc(100vw - 28px);
    }


    /* HERO */

    .hero {
        padding-top:
            calc(var(--header-height) + 42px);

        padding-bottom: 74px;

        background-position: 70% center;
    }

    .hero-content h1 {
        font-size: clamp(2.6rem, 13.5vw, 3.45rem);
    }

    .hero-description {
        font-size: 0.93rem;
    }


    /* SOLUCIONES */

    .solution-card {
        padding: 27px 22px;
    }

    .service-features li {
        font-size: 0.79rem;
    }


    /* ENFOQUE Y PROCESO */

    .approach-card,
    .process-grid-six > div {
        padding-left: 22px;
        padding-right: 22px;
    }


    /* PROYECTOS */

    .project-info {
    padding-left: 22px;
    padding-right: 22px;
    }


    /* COTIZACIÓN */

    .quote-form {
        padding: 24px 18px;
    }

    .send-method-options {
        grid-template-columns: 1fr;
    }

    .send-method-option {
        justify-content: flex-start;
    }


    /* CTA FINAL */

    .final-cta::before {
        display: none;
    }


    /* MARCAS DE FONDO */

    .about::after,
    .approach::after {
        right: -70px;

        font-size: 11rem;
    }
}


/* =========================================================
   07. DISPOSITIVOS SIN HOVER REAL
   ========================================================= */

@media (hover: none) {

    .solution-card:hover,
    .approach-card:hover,
    .process-grid-six > div:hover,
    .project-card:hover,
    .btn:hover {
        transform: none;
    }

    .project-card:hover .project-image img {
        transform: none;
    }
}


/* =========================================================
   08. ORIENTACIÓN HORIZONTAL EN MÓVILES
   ========================================================= */

@media (max-height: 550px) and (orientation: landscape) {

    .hero {
        min-height: auto;

        padding-top:
            calc(var(--header-height) + 40px);

        padding-bottom: 60px;
    }

    .hero-content {
        max-width: 760px;
    }

    .hero-content h1 {
        font-size: clamp(2.8rem, 7vw, 4.2rem);
    }

    .hero::after {
        display: none;
    }
}
