/* =========================================================
   AB-ENGINEER
   STYLES.CSS — Desktop + Mobile
   Diseñado específicamente para index.html
   ========================================================= */

/* =========================
   01. VARIABLES
   ========================= */

:root {
    --blue: #2563eb;
    --blue-dark: #1747b8;
    --blue-soft: #eff5ff;
    --ink: #101828;
    --ink-soft: #243247;
    --text: #526173;
    --muted: #7a8798;
    --white: #ffffff;
    --surface: #f7f9fc;
    --surface-2: #eef3f9;
    --border: #dfe6ef;

    --container: 1180px;

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;

    --shadow-sm: 0 8px 24px rgba(16, 24, 40, .06);
    --shadow-md: 0 18px 45px rgba(16, 24, 40, .09);
    --shadow-lg: 0 28px 70px rgba(16, 24, 40, .12);

    --ease: 220ms ease;
}

/* =========================
   02. RESET / BASE
   ========================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    margin: 0;
    min-width: 320px;
    overflow-x: hidden;
    background: var(--white);
    color: var(--text);
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

::selection {
    background: var(--blue);
    color: var(--white);
}

/* =========================
   03. LAYOUT
   ========================= */

.container {
    width: min(calc(100% - 48px), var(--container));
    margin-inline: auto;
}

.section-header {
    max-width: 720px;
    margin-bottom: 44px;
}

.section-label {
    display: inline-block;
    margin-bottom: 14px;
    color: var(--blue);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .18em;
    line-height: 1.2;
    text-transform: uppercase;
}

.section-header h2,
.about-preview-content h2,
.home-cta-content h2 {
    margin: 0;
    color: var(--ink);
    font-size: clamp(34px, 4vw, 48px);
    font-weight: 750;
    line-height: 1.12;
    letter-spacing: -.035em;
}

.section-header p {
    max-width: 650px;
    margin: 18px 0 0;
    color: var(--text);
    font-size: 16px;
    line-height: 1.8;
}

/* =========================
   04. HEADER
   ========================= */

.site-header {
    position: relative;
    z-index: 100;
    width: 100%;
    border-bottom: 1px solid rgba(223, 230, 239, .9);
    background: rgba(255, 255, 255, .96);
}

.header-container {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.logo {
    display: inline-flex;
    align-items: baseline;
    flex-shrink: 0;
    white-space: nowrap;
}

.logo-ab {
    color: var(--blue);
    font-size: 25px;
    font-weight: 850;
    line-height: 1;
    letter-spacing: -.06em;
}

.logo-name {
    color: var(--ink);
    font-size: 20px;
    font-weight: 650;
    letter-spacing: -.025em;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-left: auto;
}

.nav-link {
    position: relative;
    padding: 8px 0;
    color: var(--muted);
    font-size: 12px;
    font-weight: 750;
    letter-spacing: .08em;
    transition: color var(--ease);
}

.nav-link:hover,
.nav-link.active {
    color: var(--ink);
}

.nav-link.active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    border-radius: 99px;
    background: var(--blue);
}

.header-icon {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--blue);
    font-size: 10px;
    font-weight: 850;
    letter-spacing: -.04em;
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--white);
    color: var(--ink);
}

.menu-icon {
    font-size: 20px;
    line-height: 1;
}

/* =========================
   05. HERO
   ========================= */

.hero {
    position: relative;
    min-height: 680px;
    overflow: hidden;
    background:
        radial-gradient(circle at 82% 50%, rgba(37, 99, 235, .065), transparent 28%),
        linear-gradient(180deg, #fff 0%, #f9fbfe 100%);
}

.hero-container {
    position: relative;
    min-height: 680px;
    display: flex;
    align-items: center;
}

.hero-content {
    position: relative;
    z-index: 5;
    width: 54%;
    padding: 70px 0;
}

.hero-content .section-label {
    margin-bottom: 24px;
    font-size: 12px;
    letter-spacing: .32em;
}

.hero-content h1 {
    max-width: 650px;
    margin: 0;
    color: var(--ink);
    font-size: clamp(52px, 6vw, 78px);
    font-weight: 800;
    line-height: .98;
    letter-spacing: -.055em;
}

.hero-content h2 {
    margin: 20px 0 0;
    color: var(--ink-soft);
    font-size: clamp(21px, 2.2vw, 29px);
    font-weight: 550;
    line-height: 1.3;
    letter-spacing: -.025em;
}

.hero-content h2 span {
    margin-inline: 7px;
    color: var(--blue);
    font-weight: 800;
}

.hero-description {
    max-width: 610px;
    margin: 28px 0 30px;
    color: var(--text);
    font-size: 16px;
    line-height: 1.8;
}

.hero-skills,
.about-preview-skills,
.services-tech,
.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hero-skills {
    max-width: 640px;
}

.hero-skills span,
.services-tech span,
.project-tech span,
.about-preview-skills span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 5px 10px;
    border: 1px solid var(--border);
    border-radius: 7px;
    background: rgba(255, 255, 255, .78);
    color: var(--text);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
}

.hero-skills span {
    background: rgba(255, 255, 255, .9);
}

.hero-skills span:hover,
.about-preview-skills span:hover,
.services-tech span:hover,
.project-tech span:hover {
    border-color: rgba(37, 99, 235, .3);
    color: var(--blue);
}

.hero-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 34px;
}

.btn {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 0 19px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 750;
    transition:
        transform var(--ease),
        background var(--ease),
        border-color var(--ease),
        box-shadow var(--ease),
        color var(--ease);
}

.btn span {
    font-size: 16px;
    line-height: 1;
}

.btn-primary {
    border: 1px solid var(--blue);
    background: var(--blue);
    color: var(--white);
    box-shadow: 0 9px 24px rgba(37, 99, 235, .18);
}

.btn-primary:hover {
    transform: translateY(-2px);
    border-color: var(--blue-dark);
    background: var(--blue-dark);
    box-shadow: 0 14px 30px rgba(37, 99, 235, .23);
}

.btn-secondary {
    border: 1px solid var(--border);
    background: var(--white);
    color: var(--ink-soft);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    border-color: rgba(37, 99, 235, .35);
    color: var(--blue);
    box-shadow: var(--shadow-sm);
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: 5px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 750;
    transition: color var(--ease), transform var(--ease);
}

.social-link:hover {
    color: var(--blue);
    transform: translateX(2px);
}

.social-icon {
    display: grid;
    place-items: center;
    width: 8px;
    height: 8px;
    color: var(--blue);
    font-size: 8px;
}

/* HERO VISUAL */

.hero-visual {
    position: absolute;
    top: 0;
    right: -4%;
    width: 57%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.hero-image-wrapper {
    position: relative;
    z-index: 2;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image {
    width: min(108%, 730px);
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 25px 45px rgba(16, 24, 40, .12));
}

.hero-shape {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.hero-shape-one {
    width: 430px;
    height: 430px;
    top: 50%;
    left: 50%;
    transform: translate(-36%, -50%);
    background: rgba(37, 99, 235, .05);
    filter: blur(34px);
}

.hero-shape-two {
    width: 170px;
    height: 170px;
    top: 15%;
    right: 9%;
    border: 1px solid rgba(37, 99, 235, .13);
    background: rgba(255, 255, 255, .35);
}

.hero-shape-three {
    width: 72px;
    height: 72px;
    bottom: 17%;
    left: 10%;
    border: 1px solid rgba(37, 99, 235, .14);
}

.hero-side-text {
    position: absolute;
    top: 50%;
    right: -12px;
    z-index: 4;
    display: flex;
    gap: 18px;
    transform: translateY(-50%) rotate(90deg);
    color: #9aa8b9;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .35em;
    white-space: nowrap;
}

.hero-ab {
    position: absolute;
    right: 17%;
    bottom: 8%;
    z-index: 4;
    color: rgba(37, 99, 235, .1);
    font-size: 72px;
    font-weight: 850;
    line-height: 1;
    letter-spacing: -.08em;
}

.hero-visual::before {
    content: "";
    position: absolute;
    width: 480px;
    height: 480px;
    top: 50%;
    left: 50%;
    transform: translate(-35%, -50%);
    border-radius: 50%;
    background: rgba(37, 99, 235, .035);
    filter: blur(65px);
}

/* =========================
   06. SERVICES / WHAT I ENGINEER
   ========================= */

.services-section {
    padding: 115px 0;
    background: var(--surface);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.service-card {
    position: relative;
    min-height: 380px;
    display: flex;
    flex-direction: column;
    padding: 30px;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--white);
    transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease);
}

.service-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--blue);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--ease);
}

.service-card:hover {
    transform: translateY(-6px);
    border-color: rgba(37, 99, 235, .22);
    box-shadow: var(--shadow-md);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-number,
.pillar-number,
.process-number {
    color: var(--blue);
    font-size: 11px;
    font-weight: 850;
    letter-spacing: .16em;
}

.service-number {
    margin-bottom: 70px;
}

.service-card h3 {
    margin: 0 0 14px;
    color: var(--ink);
    font-size: 21px;
    line-height: 1.25;
    letter-spacing: -.025em;
}

.service-card p {
    margin: 0;
    color: var(--text);
    font-size: 14px;
    line-height: 1.75;
}

.services-tech {
    margin-top: 22px;
}

.service-link,
.project-link {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: auto;
    padding-top: 24px;
    color: var(--blue);
    font-size: 12px;
    font-weight: 800;
    transition: gap var(--ease), color var(--ease);
}

.service-link:hover,
.project-link:hover {
    gap: 11px;
    color: var(--ink);
}

/* =========================
   07. ENGINEERING PILLARS
   ========================= */

.engineering-pillars-section {
    padding: 115px 0;
    background: var(--white);
}

.pillars-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.pillar-card {
    min-width: 0;
    padding: 30px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--white);
    transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease);
}

.pillar-card:hover {
    transform: translateY(-5px);
    border-color: rgba(37, 99, 235, .2);
    box-shadow: var(--shadow-md);
}

.pillar-header {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 22px;
}

.pillar-number {
    flex: 0 0 auto;
    padding-top: 3px;
}

.pillar-title {
    min-width: 0;
}

.pillar-label,
.pillar-subtitle,
.process-label,
.project-category {
    display: block;
    color: var(--blue);
    font-size: 9px;
    font-weight: 850;
    letter-spacing: .16em;
    line-height: 1.3;
    text-transform: uppercase;
}

.pillar-title h3 {
    margin: 7px 0 0;
    color: var(--ink);
    font-size: 20px;
    line-height: 1.25;
    letter-spacing: -.025em;
}

.pillar-subtitle {
    margin: -4px 0 17px 30px;
    color: var(--muted);
}

.pillar-description {
    margin: 0 0 24px;
    color: var(--text);
    font-size: 13px;
    line-height: 1.75;
}

.pillar-list {
    display: grid;
    gap: 7px;
}

.pillar-list li {
    min-height: 38px;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 6px 8px;
    border-radius: 8px;
    color: var(--text);
    font-size: 12px;
    transition: background var(--ease), color var(--ease);
}

.pillar-list li:hover {
    background: var(--blue-soft);
    color: var(--ink);
}

.pillar-list li i {
    width: 23px;
    flex: 0 0 23px;
    text-align: center;
    font-size: 17px;
}

.pillar-icon-text {
    min-width: 23px;
    display: inline-grid;
    place-items: center;
    color: var(--blue);
    font-size: 8px;
    font-weight: 850;
    letter-spacing: .02em;
}

/* =========================
   08. ENGINEERING PROCESS
   ========================= */

.intro-section {
    padding: 115px 0;
    background: var(--surface);
}

.engineering-process {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    border-top: 1px solid var(--border);
    border-left: 1px solid var(--border);
    background: var(--white);
}

.process-step {
    position: relative;
    min-height: 180px;
    display: grid;
    grid-template-columns: 54px 1fr;
    gap: 16px;
    padding: 28px;
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    transition: background var(--ease);
}

.process-step:hover {
    background: #fbfcff;
}

.process-number {
    display: grid;
    place-items: start center;
    width: 38px;
    height: 38px;
    padding-top: 8px;
    border: 1px solid rgba(37, 99, 235, .22);
    border-radius: 50%;
    background: var(--blue-soft);
}

.process-label {
    margin-bottom: 8px;
}

.process-content h3 {
    margin: 0 0 8px;
    color: var(--ink);
    font-size: 18px;
    line-height: 1.3;
}

.process-content p {
    max-width: 450px;
    margin: 0;
    color: var(--text);
    font-size: 13px;
    line-height: 1.7;
}

/* =========================
   09. FEATURED PROJECTS
   ========================= */

.featured-projects-section {
    padding: 115px 0;
    background: var(--white);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.project-card {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--white);
    transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease);
}

.project-card:hover {
    transform: translateY(-5px);
    border-color: rgba(37, 99, 235, .2);
    box-shadow: var(--shadow-md);
}

.project-card-featured {
    grid-column: span 2;
}

.project-image {
    position: relative;
    height: 235px;
    overflow: hidden;
    background: var(--surface-2);
}

.project-card-featured .project-image {
    height: 280px;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 500ms ease;
}

.project-card:hover .project-image img {
    transform: scale(1.035);
}

.project-number {
    position: absolute;
    top: 15px;
    right: 15px;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(255, 255, 255, .7);
    border-radius: 50%;
    background: rgba(255, 255, 255, .88);
    color: var(--blue);
    font-size: 10px;
    font-weight: 850;
}

.project-content {
    min-height: 270px;
    display: flex;
    flex-direction: column;
    padding: 25px;
}

.project-category {
    margin-bottom: 9px;
}

.project-content h3 {
    margin: 0 0 11px;
    color: var(--ink);
    font-size: 20px;
    line-height: 1.3;
    letter-spacing: -.025em;
}

.project-content p {
    margin: 0;
    color: var(--text);
    font-size: 13px;
    line-height: 1.75;
}

.project-tech {
    margin-top: 18px;
}

.project-tech span {
    min-height: 27px;
    padding: 4px 8px;
    font-size: 10px;
}

.projects-more {
    display: flex;
    justify-content: center;
    margin-top: 38px;
}

/* =========================
   10. ABOUT PREVIEW
   ========================= */

.about-preview-section {
    padding: 115px 0;
    background: var(--surface);
}

.about-preview-container {
    display: grid;
    grid-template-columns: minmax(300px, .8fr) minmax(0, 1.2fr);
    align-items: center;
    gap: 80px;
}

.about-preview-image {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-xl);
    background: var(--surface-2);
}

.about-preview-image::after {
    content: "";
    position: absolute;
    inset: 14px;
    border: 1px solid rgba(255, 255, 255, .5);
    border-radius: calc(var(--radius-xl) - 10px);
    pointer-events: none;
}

.about-preview-image img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
}

.about-preview-content h2 {
    max-width: 620px;
}

.about-preview-content > p {
    max-width: 630px;
    margin: 18px 0 0;
    color: var(--text);
    font-size: 15px;
    line-height: 1.8;
}

.about-preview-skills {
    margin: 26px 0 30px;
}

.about-preview-skills span {
    background: var(--white);
}

/* =========================
   11. COLLABORATION
   ========================= */

.collaboration-section {
    padding: 115px 0;
    background: var(--white);
}

.collaboration-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.collaboration-card {
    min-height: 350px;
    display: flex;
    flex-direction: column;
    padding: 35px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--white);
    transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease);
}

.collaboration-card:hover {
    transform: translateY(-5px);
    border-color: rgba(37, 99, 235, .2);
    box-shadow: var(--shadow-md);
}

.collaboration-card .service-number {
    margin-bottom: 55px;
}

.collaboration-card .section-label {
    margin-bottom: 9px;
}

.collaboration-card h3 {
    margin: 0 0 13px;
    color: var(--ink);
    font-size: 25px;
    line-height: 1.25;
    letter-spacing: -.03em;
}

.collaboration-card p {
    max-width: 570px;
    margin: 0;
    color: var(--text);
    font-size: 14px;
    line-height: 1.8;
}

.collaboration-card .btn {
    align-self: flex-start;
    margin-top: auto;
}

/* =========================
   12. FINAL CTA
   ========================= */

.home-cta {
    padding: 105px 0;
    background:
        radial-gradient(circle at 85% 30%, rgba(37, 99, 235, .16), transparent 25%),
        var(--ink);
}

.home-cta-content {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
}

.home-cta-content .section-label {
    color: #73a1ff;
}

.home-cta-content h2 {
    color: var(--white);
}

.home-cta-content p {
    max-width: 580px;
    margin: 18px auto 28px;
    color: #b7c2d1;
    font-size: 15px;
    line-height: 1.8;
}

/* =========================
   13. FOOTER
   ========================= */

.site-footer {
    border-top: 1px solid #263247;
    background: var(--ink);
}

.footer-inner {
    min-height: 125px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 30px;
}

.footer-brand .logo-name {
    color: var(--white);
}

.footer-brand p {
    margin: 7px 0 0;
    color: #8f9caf;
    font-size: 11px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.footer-links a {
    color: #aeb8c7;
    font-size: 10px;
    font-weight: 750;
    letter-spacing: .08em;
    text-transform: uppercase;
    transition: color var(--ease);
}

.footer-links a:hover {
    color: var(--white);
}

.footer-copy {
    justify-self: end;
    margin: 0;
    color: #758297;
    font-size: 10px;
    text-align: right;
}

/* =========================
   14. ACCESSIBILITY / MOTION
   ========================= */

:focus-visible {
    outline: 3px solid rgba(37, 99, 235, .35);
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}

/* =========================================================
   15. MOBILE
   Solo teléfono — no tablet ni laptop
   ========================================================= */

@media (max-width: 767px) {

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

    /* HEADER */

    .site-header {
        position: sticky;
        top: 0;
    }

    .header-container {
        min-height: 66px;
        gap: 12px;
    }

    .logo-ab {
        font-size: 23px;
    }

    .logo-name {
        font-size: 18px;
    }

    .main-nav {
        position: absolute;
        top: calc(100% + 1px);
        left: 16px;
        right: 16px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        margin: 0;
        padding: 8px;
        border: 1px solid var(--border);
        border-radius: 12px;
        background: rgba(255, 255, 255, .98);
        box-shadow: var(--shadow-md);
    }

    /* Compatible con un JS que agregue .open o .active al menú */
    .main-nav.open,
    .main-nav.active {
        display: flex;
    }

    .nav-link {
        padding: 13px 12px;
        border-radius: 7px;
        font-size: 11px;
    }

    .nav-link:hover {
        background: var(--blue-soft);
    }

    .nav-link.active::after {
        display: none;
    }

    .menu-toggle {
        display: grid;
        place-items: center;
    }

    .header-icon {
        display: none;
    }

    /* GLOBAL SECTIONS */

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

    .section-header h2,
    .about-preview-content h2,
    .home-cta-content h2 {
        font-size: 32px;
    }

    .section-header p {
        margin-top: 14px;
        font-size: 14px;
        line-height: 1.7;
    }

    /* HERO */

    .hero {
        min-height: auto;
        background:
            radial-gradient(circle at 80% 52%, rgba(37, 99, 235, .07), transparent 40%),
            #fafcff;
    }

    .hero-container {
        min-height: auto;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        padding-top: 52px;
    }

    .hero-content {
        width: 100%;
        padding: 0;
    }

    .hero-content .section-label {
        margin-bottom: 18px;
        font-size: 10px;
        letter-spacing: .24em;
    }

    .hero-content h1 {
        font-size: clamp(39px, 12vw, 54px);
        line-height: 1;
        letter-spacing: -.055em;
    }

    .hero-content h2 {
        margin-top: 15px;
        font-size: 19px;
        line-height: 1.35;
    }

    .hero-content h2 span {
        margin-inline: 4px;
    }

    .hero-description {
        margin: 20px 0 24px;
        font-size: 14px;
        line-height: 1.7;
    }

    .hero-skills {
        gap: 6px;
    }

    .hero-skills span,
    .about-preview-skills span,
    .services-tech span,
    .project-tech span {
        min-height: 28px;
        padding: 5px 8px;
        font-size: 10px;
    }

    .hero-actions {
        align-items: stretch;
        gap: 9px;
        margin-top: 26px;
    }

    .hero-actions .btn {
        min-height: 44px;
        padding-inline: 15px;
    }

    .social-link {
        width: 100%;
        margin: 3px 0 0;
    }

    .hero-visual {
        position: relative;
        top: auto;
        right: auto;
        width: 100%;
        height: 350px;
        min-height: 0;
        margin-top: 8px;
    }

    .hero-image {
        width: 112%;
        max-width: 600px;
    }

    .hero-shape-one {
        width: 300px;
        height: 300px;
    }

    .hero-shape-two {
        width: 115px;
        height: 115px;
        top: 12%;
        right: 4%;
    }

    .hero-shape-three {
        width: 55px;
        height: 55px;
        bottom: 13%;
        left: 5%;
    }

    .hero-side-text {
        display: none;
    }

    .hero-ab {
        right: 8%;
        bottom: 7%;
        font-size: 52px;
    }

    .hero-visual::before {
        width: 330px;
        height: 330px;
    }

    /* SERVICES */

    .services-section,
    .engineering-pillars-section,
    .intro-section,
    .featured-projects-section,
    .about-preview-section,
    .collaboration-section {
        padding: 78px 0;
    }

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

    .service-card {
        min-height: 0;
        padding: 26px;
    }

    .service-number {
        margin-bottom: 48px;
    }

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

    .service-card p {
        font-size: 13px;
    }

    /* PILLARS */

    .pillars-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .pillar-card {
        padding: 25px;
    }

    .pillar-title h3 {
        font-size: 19px;
    }

    .pillar-description {
        font-size: 13px;
    }

    /* PROCESS */

    .engineering-process {
        grid-template-columns: 1fr;
    }

    .process-step {
        min-height: 0;
        grid-template-columns: 45px 1fr;
        gap: 12px;
        padding: 23px 20px;
    }

    .process-number {
        width: 34px;
        height: 34px;
        font-size: 9px;
    }

    .process-content h3 {
        font-size: 17px;
    }

    .process-content p {
        font-size: 12px;
    }

    /* PROJECTS */

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .project-card-featured {
        grid-column: auto;
    }

    .project-image,
    .project-card-featured .project-image {
        height: 220px;
    }

    .project-content {
        min-height: 0;
        padding: 22px;
    }

    .project-content h3 {
        font-size: 19px;
    }

    /* ABOUT */

    .about-preview-container {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .about-preview-image {
        max-width: 520px;
        margin-inline: auto;
    }

    .about-preview-image img {
        aspect-ratio: 4 / 3;
    }

    .about-preview-content > p {
        font-size: 14px;
    }

    /* COLLABORATION */

    .collaboration-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .collaboration-card {
        min-height: 0;
        padding: 27px;
    }

    .collaboration-card .service-number {
        margin-bottom: 42px;
    }

    .collaboration-card h3 {
        font-size: 22px;
    }

    /* CTA */

    .home-cta {
        padding: 76px 0;
    }

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

    /* FOOTER */

    .footer-inner {
        min-height: 0;
        grid-template-columns: 1fr;
        gap: 22px;
        padding-top: 32px;
        padding-bottom: 32px;
        text-align: center;
    }

    .footer-brand,
    .footer-copy {
        justify-self: center;
    }

    .footer-links {
        gap: 13px 17px;
    }

    .footer-copy {
        text-align: center;
    }
}

/* =========================
   VERY SMALL PHONES
   ========================= *//* =========================================================
   07. SOFTWARE ENGINEERING
   ========================================================= */

.engineering-section {
    position: relative;
    padding: 110px 0;
}

.engineering-software {
    background: var(--white);
}

.engineering-stack-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.engineering-stack-card {
    min-height: 245px;

    padding: 28px;

    border: 1px solid var(--border);
    border-radius: var(--radius-lg);

    background:
        linear-gradient(
            145deg,
            #ffffff 0%,
            #fbfdff 70%,
            #f3f7ff 100%
        );

    box-shadow: var(--shadow-sm);

    transition:
        transform var(--ease),
        box-shadow var(--ease),
        border-color var(--ease);
}

.engineering-stack-card:hover {
    transform: translateY(-4px);

    border-color: #cbd9ed;

    box-shadow: var(--shadow-md);
}

.engineering-stack-card-header {
    display: flex;
    align-items: flex-start;
    gap: 15px;

    margin-bottom: 25px;
}

.engineering-stack-number {
    width: 38px;
    height: 38px;

    flex: 0 0 38px;

    display: grid;
    place-items: center;

    border-radius: 10px;

    color: var(--blue);

    font-size: 11px;
    font-weight: 850;

    background: var(--blue-soft);
}

.engineering-stack-label {
    display: block;

    margin-bottom: 4px;

    color: var(--blue);

    font-size: 10px;
    font-weight: 800;
    letter-spacing: .13em;
}

.engineering-stack-card h3 {
    margin: 0;

    color: var(--ink);

    font-size: 21px;
    font-weight: 760;
    line-height: 1.2;
    letter-spacing: -.025em;
}

.technology-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.technology-list span {
    min-height: 35px;

    display: inline-flex;
    align-items: center;
    gap: 7px;

    padding: 0 10px;

    border: 1px solid #dce5f0;
    border-radius: 8px;

    color: #40526a;

    font-size: 11px;
    font-weight: 650;

    background: #ffffff;
}

.technology-list i {
    color: var(--blue);
    font-size: 15px;
}


/* =========================================================
   08. AUTOMATION
   ========================================================= */

.engineering-automation {
    background:
        radial-gradient(
            circle at 10% 40%,
            rgba(37, 99, 235, .09),
            transparent 28%
        ),
        linear-gradient(
            135deg,
            #f7faff 0%,
            #eef5ff 100%
        );
}

.engineering-feature-container {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    align-items: center;
    gap: 75px;
}

.engineering-feature-content {
    max-width: 560px;
}

.engineering-feature-content h2 {
    margin: 0;

    color: var(--ink);

    font-size: clamp(36px, 4vw, 52px);
    font-weight: 760;
    line-height: 1.08;
    letter-spacing: -.045em;
}

.engineering-feature-content > p {
    margin: 20px 0 0;

    color: var(--text);

    font-size: 16px;
    line-height: 1.8;
}

.engineering-capability-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;

    margin-top: 31px;
}

.capability-item {
    min-height: 58px;

    display: flex;
    align-items: center;
    gap: 12px;

    padding: 10px 13px;

    border: 1px solid rgba(210, 222, 239, .9);
    border-radius: 10px;

    background: rgba(255,255,255,.70);
}

.capability-item span {
    color: var(--blue);

    font-size: 10px;
    font-weight: 850;
}

.capability-item strong {
    color: var(--ink-soft);

    font-size: 12px;
    font-weight: 700;
}

.engineering-feature-visual {
    min-height: 310px;

    display: grid;
    place-items: center;
}

.automation-diagram {
    width: 100%;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.diagram-node {
    width: 145px;
    min-height: 120px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    padding: 18px 12px;

    border: 1px solid #d6e3f4;
    border-radius: 17px;

    background: rgba(255,255,255,.88);
    box-shadow: var(--shadow-sm);

    text-align: center;
}

.diagram-node span {
    margin-bottom: 9px;

    color: var(--blue);

    font-size: 10px;
    font-weight: 850;
    letter-spacing: .1em;
}

.diagram-node strong {
    color: var(--ink);

    font-size: 13px;
    font-weight: 750;
}

.diagram-node-final {
    border-color: #a9c7fa;

    background:
        linear-gradient(
            145deg,
            #ffffff,
            #edf5ff
        );
}

.diagram-arrow {
    flex: 0 0 auto;

    color: var(--blue);

    font-size: 22px;
    font-weight: 500;
}


/* =========================================================
   09. HARDWARE & ELECTRONICS
   ========================================================= */

.engineering-hardware {
    background: var(--white);
}

.engineering-capabilities-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 15px;
}

.capability-card {
    min-height: 190px;

    padding: 24px;

    border: 1px solid var(--border);
    border-radius: 16px;

    background: #ffffff;

    transition:
        transform var(--ease),
        box-shadow var(--ease),
        border-color var(--ease);
}

.capability-card:hover {
    transform: translateY(-4px);

    border-color: #c9d8ec;

    box-shadow: var(--shadow-md);
}

.capability-icon {
    width: 38px;
    height: 38px;

    display: grid;
    place-items: center;

    margin-bottom: 24px;

    border-radius: 10px;

    color: var(--blue);

    font-size: 10px;
    font-weight: 850;

    background: var(--blue-soft);
}

.capability-card h3 {
    margin: 0;

    color: var(--ink);

    font-size: 17px;
    font-weight: 750;
    line-height: 1.2;
    letter-spacing: -.02em;
}

.capability-card p {
    margin: 10px 0 0;

    color: var(--text);

    font-size: 12px;
    line-height: 1.6;
}


/* =========================================================
   10. IoT
   ========================================================= */

.engineering-iot {
    overflow: hidden;

    background:
        linear-gradient(
            135deg,
            #101f3e 0%,
            #123c82 55%,
            #2563eb 100%
        );

    color: var(--white);
}

.engineering-iot .section-label {
    color: #8fbcff;
}

.engineering-iot .section-header h2 {
    color: var(--white);
}

.engineering-iot .section-header p {
    color: rgba(255,255,255,.72);
}

.iot-flow {
    position: relative;

    display: flex;
    align-items: stretch;
    justify-content: center;

    gap: 7px;

    padding: 12px 0;
}

.iot-step {
    position: relative;

    flex: 1 1 0;

    min-width: 0;
    min-height: 145px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    padding: 18px 9px;

    border: 1px solid rgba(167, 203, 255, .23);
    border-radius: 14px;

    background: rgba(255,255,255,.08);

    text-align: center;

    transition:
        background var(--ease),
        transform var(--ease),
        border-color var(--ease);
}

.iot-step:hover {
    transform: translateY(-4px);

    border-color: rgba(167, 203, 255, .48);

    background: rgba(255,255,255,.13);
}

.iot-step-number {
    width: 31px;
    height: 31px;

    display: grid;
    place-items: center;

    margin-bottom: 13px;

    border: 1px solid rgba(167, 203, 255, .30);
    border-radius: 50%;

    color: #9bc4ff;

    font-size: 9px;
    font-weight: 850;
}

.iot-step strong {
    color: var(--white);

    font-size: 10px;
    font-weight: 800;
    line-height: 1.35;
    letter-spacing: .07em;
}

.iot-step small {
    margin-top: 7px;

    color: rgba(255,255,255,.55);

    font-size: 9px;
}

.iot-step-final {
    border-color: rgba(164, 202, 255, .52);

    background:
        linear-gradient(
            145deg,
            rgba(37,99,235,.45),
            rgba(255,255,255,.10)
        );
}

.iot-connector {
    align-self: center;

    flex: 0 0 auto;

    color: #75aaff;

    font-size: 18px;
}


/* =========================================================
   11. 3D ENGINEERING
   ========================================================= */

.engineering-3d {
    background:
        radial-gradient(
            circle at 12% 50%,
            rgba(37, 99, 235, .07),
            transparent 30%
        ),
        #f8faff;
}

.engineering-3d-visual {
    min-height: 340px;
}

.engineering-3d-card {
    width: min(100%, 470px);
    min-height: 285px;

    position: relative;

    display: flex;
    flex-direction: column;
    justify-content: flex-end;

    padding: 35px;

    overflow: hidden;

    border: 1px solid #d5e2f4;
    border-radius: 25px;

    background:
        linear-gradient(
            145deg,
            #ffffff 0%,
            #f1f6ff 100%
        );

    box-shadow: var(--shadow-md);
}

.engineering-3d-card::before,
.engineering-3d-card::after {
    content: "";

    position: absolute;

    border: 1px solid rgba(37,99,235,.16);

    transform: rotate(30deg);
}

.engineering-3d-card::before {
    width: 230px;
    height: 230px;

    top: -100px;
    right: -55px;

    border-radius: 30px;
}

.engineering-3d-card::after {
    width: 145px;
    height: 145px;

    top: -48px;
    right: 30px;

    border-radius: 20px;
}

.engineering-3d-mark {
    position: absolute;

    top: 34px;
    left: 35px;

    width: 75px;
    height: 75px;

    display: grid;
    place-items: center;

    border-radius: 18px;

    color: var(--white);

    font-size: 19px;
    font-weight: 850;
    letter-spacing: -.04em;

    background:
        linear-gradient(
            135deg,
            #2563eb,
            #123b88
        );

    box-shadow: 0 15px 35px rgba(37,99,235,.25);
}

.engineering-3d-card > div {
    position: relative;
    z-index: 2;
}

.engineering-3d-card h3 {
    max-width: 330px;

    margin: 7px 0 0;

    color: var(--ink);

    font-size: 25px;
    font-weight: 760;
    line-height: 1.18;
    letter-spacing: -.035em;
}

.software-tools {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;

    margin-top: 28px;
}

.software-tool {
    padding: 17px;

    border: 1px solid var(--border);
    border-radius: 12px;

    background: rgba(255,255,255,.85);
}

.software-tool strong {
    display: block;

    color: var(--ink);

    font-size: 13px;
    font-weight: 750;
}

.software-tool span {
    display: block;

    margin-top: 5px;

    color: var(--text);

    font-size: 11px;
    line-height: 1.55;
}


/* =========================================================
   12. PROJECT ENGINEERING
   ========================================================= */

.engineering-project {
    background: var(--white);
}

.project-engineering-flow {
    display: flex;
    align-items: stretch;
    justify-content: center;

    gap: 5px;

    margin-top: 12px;
}

.project-flow-step {
    flex: 1 1 0;

    min-width: 0;
    min-height: 145px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    padding: 17px 8px;

    border: 1px solid var(--border);
    border-radius: 13px;

    background: #ffffff;

    text-align: center;

    transition:
        transform var(--ease),
        border-color var(--ease),
        box-shadow var(--ease);
}

.project-flow-step:hover {
    transform: translateY(-4px);

    border-color: #bfd1eb;

    box-shadow: var(--shadow-sm);
}

.project-flow-step > span {
    width: 30px;
    height: 30px;

    display: grid;
    place-items: center;

    margin-bottom: 11px;

    border-radius: 50%;

    color: var(--blue);

    font-size: 9px;
    font-weight: 850;

    background: var(--blue-soft);
}

.project-flow-step strong {
    color: var(--ink-soft);

    font-size: 9px;
    font-weight: 800;
    line-height: 1.35;
    letter-spacing: .04em;
}

.project-flow-step small {
    margin-top: 6px;

    color: var(--muted);

    font-size: 9px;
    line-height: 1.35;
}

.project-flow-final {
    border-color: #aac8f8;

    background:
        linear-gradient(
            145deg,
            #ffffff,
            #eff6ff
        );
}

.project-flow-final > span {
    color: var(--white);
    background: var(--blue);
}

.project-flow-arrow {
    align-self: center;

    flex: 0 0 auto;

    color: var(--blue);

    font-size: 17px;
}

.project-engineering-capabilities {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;

    margin-top: 35px;
}

.project-capability {
    min-height: 145px;

    padding: 19px;

    border-top: 2px solid #dbe7f7;

    background: #f9fbfe;
}

.project-capability > span {
    color: var(--blue);

    font-size: 9px;
    font-weight: 850;
}

.project-capability strong {
    display: block;

    margin-top: 12px;

    color: var(--ink);

    font-size: 13px;
    line-height: 1.25;
}

.project-capability p {
    margin: 8px 0 0;

    color: var(--text);

    font-size: 10px;
    line-height: 1.55;
}


/* =========================================================
   13. ENGINEERING SUMMARY
   ========================================================= */

.engineering-summary {
    position: relative;

    padding: 105px 0;

    overflow: hidden;

    background:
        linear-gradient(
            135deg,
            #eef5ff 0%,
            #f9fbff 60%,
            #ffffff 100%
        );
}

.engineering-summary::after {
    content: "";

    position: absolute;

    width: 420px;
    height: 420px;

    top: -210px;
    right: -110px;

    border-radius: 50%;

    background: rgba(37,99,235,.07);
}

.engineering-summary-inner {
    position: relative;
    z-index: 2;

    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, .65fr);
    align-items: end;
    gap: 80px;
}

.engineering-summary h2 {
    max-width: 690px;

    margin: 0;

    color: var(--ink);

    font-size: clamp(36px, 4vw, 55px);
    font-weight: 780;
    line-height: 1.05;
    letter-spacing: -.05em;
}

.engineering-summary-inner > p {
    margin: 0;

    color: var(--text);

    font-size: 15px;
    line-height: 1.85;
}


/* =========================================================
   14. FOOTER
   ========================================================= */

.site-footer {
    padding: 55px 0 28px;

    border-top: 1px solid var(--border);

    background: #0d1728;
    color: rgba(255,255,255,.70);
}

.footer-inner {
    display: grid;
    grid-template-columns: 1.25fr .75fr;
    gap: 45px;
}

.footer-brand-main {
    display: flex;
    align-items: center;
    gap: 18px;
}

.footer-brand-image {
    width: 72px;
    height: 72px;

    flex: 0 0 72px;

    overflow: hidden;

    border: 1px solid rgba(255,255,255,.14);
    border-radius: 16px;

    background: rgba(255,255,255,.06);
}

.footer-brand-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}

.site-footer .logo-ab {
    color: #5d93ff;
}

.site-footer .logo-name {
    color: var(--white);
}

.footer-brand p {
    max-width: 410px;

    margin: 9px 0 0;

    color: rgba(255,255,255,.55);

    font-size: 12px;
    line-height: 1.65;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(2, max-content);
    justify-content: end;
    gap: 11px 32px;

    align-content: center;
}

.footer-links a {
    color: rgba(255,255,255,.58);

    font-size: 11px;
    font-weight: 650;

    transition: color var(--ease);
}

.footer-links a:hover {
    color: var(--white);
}

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

    display: flex;
    justify-content: space-between;
    gap: 20px;

    padding-top: 23px;
    margin-top: 10px;

    border-top: 1px solid rgba(255,255,255,.10);

    color: rgba(255,255,255,.38);

    font-size: 10px;
}


/* =========================================================
   15. ACCESSIBILITY / MOTION
   ========================================================= */

a:focus-visible,
button:focus-visible {
    outline: 3px solid rgba(37,99,235,.35);
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
    }
}


/* =========================================================
   16. MOBILE
   Solo teléfono
   ========================================================= */

@media (max-width: 767px) {

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


    /* HEADER */

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

    .main-nav {
        position: absolute;

        top: calc(100% + 1px);
        left: 16px;
        right: 16px;

        display: flex;
        flex-direction: column;
        align-items: stretch;

        gap: 0;

        margin: 0;
        padding: 9px;

        border: 1px solid var(--border);
        border-radius: 14px;

        background: rgba(255,255,255,.98);
        box-shadow: var(--shadow-lg);

        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px);

        transition:
            opacity var(--ease),
            transform var(--ease),
            visibility var(--ease);
    }

    .main-nav.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .nav-link {
        display: flex;
        align-items: center;

        min-height: 45px;

        padding: 0 13px;

        border-radius: 8px;

        font-size: 11px;
    }

    .nav-link:hover,
    .nav-link.active {
        background: var(--blue-soft);
    }

    .nav-link.active::after {
        left: auto;
        right: 11px;
        top: 50%;
        bottom: auto;

        width: 4px;
        height: 4px;

        transform: translateY(-50%);

        border-radius: 50%;
    }

    .menu-toggle {
        display: flex;
    }

    .header-icon {
        display: none;
    }


    /* HERO */

    .engineering-hero {
        min-height: 700px;

        align-items: flex-start;
    }

    .engineering-hero-container {
        min-height: 700px;

        align-items: flex-start;
    }

    .engineering-hero-content {
        width: 100%;

        max-width: 620px;

        padding: 55px 0 70px;
    }

    .engineering-hero-content h1 {
        max-width: 570px;

        font-size: clamp(48px, 13vw, 70px);
        line-height: .94;
    }

    .engineering-hero-description {
        max-width: 520px;

        margin-top: 22px;

        font-size: 14px;
        line-height: 1.7;
    }

    .engineering-hero-tags {
        max-width: 500px;

        gap: 7px;

        margin-top: 22px;
    }

    .engineering-hero-tags span {
        min-height: 29px;

        padding: 0 9px;

        font-size: 9px;
    }

    .engineering-hero-visual {
        top: 165px;
        right: -8%;

        width: 118%;
        height: 535px;

        opacity: .32;
    }

    .engineering-hero-image {
        width: 100%;
        height: 100%;

        object-fit: contain;
        object-position: center;
    }

    .engineering-hero-visual::after {
        background:
            linear-gradient(
                180deg,
                rgba(255,255,255,.98) 0%,
                rgba(255,255,255,.82) 20%,
                rgba(255,255,255,.24) 58%,
                rgba(255,255,255,0) 100%
            );
    }


    /* GENERAL SECTIONS */

    .engineering-section {
        padding: 78px 0;
    }

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

    .section-header h2,
    .engineering-feature-content h2 {
        font-size: 37px;
    }

    .section-header p,
    .engineering-feature-content > p {
        font-size: 14px;
        line-height: 1.7;
    }


    /* SOFTWARE */

    .engineering-stack-grid {
        grid-template-columns: 1fr;
        gap: 13px;
    }

    .engineering-stack-card {
        min-height: auto;

        padding: 22px;
    }

    .engineering-stack-card-header {
        margin-bottom: 19px;
    }

    .engineering-stack-card h3 {
        font-size: 19px;
    }

    .technology-list span {
        min-height: 33px;

        padding: 0 9px;

        font-size: 10px;
    }


    /* AUTOMATION */

    .engineering-feature-container {
        grid-template-columns: 1fr;
        gap: 42px;
    }

    .engineering-capability-list {
        gap: 8px;
    }

    .capability-item {
        min-height: 53px;
    }

    .engineering-feature-visual {
        min-height: auto;
    }

    .automation-diagram {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .diagram-node {
        width: 100%;
        min-height: 105px;
    }

    .diagram-arrow {
        display: none;
    }


    /* HARDWARE */

    .engineering-capabilities-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .capability-card {
        min-height: 165px;

        padding: 18px;
    }

    .capability-icon {
        margin-bottom: 18px;
    }

    .capability-card h3 {
        font-size: 15px;
    }


    /* IOT */

    .iot-flow {
        display: grid;
        grid-template-columns: 1fr;
        gap: 7px;
    }

    .iot-step {
        min-height: 82px;

        display: grid;
        grid-template-columns: 34px 1fr auto;
        align-items: center;

        padding: 12px 14px;

        text-align: left;
    }

    .iot-step-number {
        margin: 0;
    }

    .iot-step strong {
        font-size: 10px;
    }

    .iot-step small {
        margin: 0;

        font-size: 9px;
        text-align: right;
    }

    .iot-connector {
        display: flex;
        align-items: center;
        justify-content: center;

        height: 9px;

        font-size: 0;
    }

    .iot-connector::before {
        content: "↓";

        color: #75aaff;

        font-size: 15px;
    }


    /* 3D */

    .engineering-3d-card {
        min-height: 260px;

        padding: 25px;
    }

    .engineering-3d-mark {
        top: 25px;
        left: 25px;

        width: 64px;
        height: 64px;
    }

    .engineering-3d-card h3 {
        font-size: 22px;
    }

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


    /* PROJECT ENGINEERING */

    .project-engineering-flow {
        display: grid;
        grid-template-columns: 1fr;
        gap: 7px;
    }

    .project-flow-step {
        min-height: 78px;

        display: grid;
        grid-template-columns: 35px 1fr auto;
        align-items: center;

        padding: 12px 14px;

        text-align: left;
    }

    .project-flow-step > span {
        margin: 0;
    }

    .project-flow-step strong {
        font-size: 10px;
    }

    .project-flow-step small {
        margin: 0;

        font-size: 9px;
        text-align: right;
    }

    .project-flow-arrow {
        display: flex;
        justify-content: center;

        height: 7px;

        font-size: 0;
    }

    .project-flow-arrow::before {
        content: "↓";

        color: var(--blue);

        font-size: 14px;
    }

    .project-engineering-capabilities {
        grid-template-columns: 1fr 1fr;
        gap: 9px;

        margin-top: 25px;
    }

    .project-capability {
        min-height: 130px;

        padding: 15px;
    }


    /* SUMMARY */

    .engineering-summary {
        padding: 78px 0;
    }

    .engineering-summary-inner {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .engineering-summary h2 {
        font-size: 38px;
    }


    /* FOOTER */

    .site-footer {
        padding: 45px 0 24px;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-links {
        justify-content: start;
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-copy {
        grid-column: auto;

        flex-direction: column;
        gap: 5px;

        margin-top: 0;
    }
}


/* =========================================================
   17. VERY SMALL PHONES
   ========================================================= *//* =========================================================
   HERO UNIFICADO — INDEX + ENGINEERING
   Una sola estructura visual para ambas páginas.
   ========================================================= */

.hero,
.engineering-hero {
    position: relative;
    min-height: 680px;
    overflow: hidden;
    background:
        radial-gradient(circle at 82% 45%, rgba(37,99,235,.11), transparent 34%),
        linear-gradient(110deg, #ffffff 0%, #f8fbff 52%, #edf4ff 100%);
}

.hero-container,
.engineering-hero-container {
    position: relative;
    width: min(calc(100% - 48px), var(--container));
    min-height: 680px;
    margin-inline: auto;
    display: flex;
    align-items: center;
}

.hero-content,
.engineering-hero-content {
    position: relative;
    z-index: 5;
    width: 54%;
    max-width: 630px;
    padding: 72px 0;
}

.hero-content h1,
.engineering-hero-content h1 {
    max-width: 660px;
    margin: 0;
    color: var(--ink);
    font-size: clamp(52px, 5.8vw, 80px);
    font-weight: 800;
    line-height: .96;
    letter-spacing: -.06em;
}

.hero-content h1 span,
.engineering-hero-content h1 span {
    display: block;
    color: var(--blue);
}

.hero-description,
.engineering-hero-description {
    max-width: 590px;
    margin: 27px 0 0;
    color: var(--text);
    font-size: 16px;
    line-height: 1.8;
}

.hero-skills,
.engineering-hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 27px;
}

.hero-skills span,
.engineering-hero-tags span {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 5px 11px;
    border: 1px solid #d5e1ef;
    border-radius: 8px;
    color: #40536c;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.2;
    background: rgba(255,255,255,.88);
}

.hero-actions {
    position: relative;
    z-index: 6;
}

.hero-visual,
.engineering-hero-visual {
    position: absolute;
    z-index: 2;
    top: 0;
    right: -5%;
    width: 70%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.hero-image-wrapper,
.engineering-hero-image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image,
.engineering-hero-image {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: contain;
    object-position: center;
    border-radius: 0;
    filter: drop-shadow(0 25px 50px rgba(16,24,40,.10));
}

.hero-visual::after,
.engineering-hero-visual::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(
            90deg,
            #ffffff 0%,
            rgba(255,255,255,.96) 8%,
            rgba(255,255,255,.70) 23%,
            rgba(255,255,255,.18) 46%,
            rgba(255,255,255,0) 70%
        );
}

/* La página Engineering usa la misma geometría, sin una segunda estructura. */
.engineering-page-hero .hero-visual {
    right: -5%;
    width: 70%;
}

/* =========================================================
   MOBILE — ÚNICO BREAKPOINT
   ========================================================= */

@media (max-width: 767px) {

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

    .hero,
    .engineering-hero {
        min-height: 720px;
    }

    .hero-container,
    .engineering-hero-container {
        width: min(calc(100% - 32px), var(--container));
        min-height: 720px;
        align-items: flex-start;
    }

    .hero-content,
    .engineering-hero-content {
        width: 100%;
        max-width: none;
        padding: 48px 0 60px;
    }

    .hero-content h1,
    .engineering-hero-content h1 {
        max-width: 100%;
        font-size: clamp(46px, 12.5vw, 68px);
        line-height: .96;
    }

    .hero-content h2 {
        font-size: 20px;
    }

    .hero-description,
    .engineering-hero-description {
        max-width: 540px;
        font-size: 14px;
        line-height: 1.75;
    }

    .hero-actions {
        gap: 9px;
    }

    .hero-actions .btn {
        min-height: 44px;
    }

    .hero-visual,
    .engineering-hero-visual,
    .engineering-page-hero .hero-visual {
        top: 175px;
        right: -12%;
        width: 124%;
        height: 520px;
        opacity: .30;
    }

    .hero-image,
    .engineering-hero-image {
        width: 100%;
        height: 100%;
        object-fit: contain;
        object-position: center;
    }

    .hero-visual::after,
    .engineering-hero-visual::after {
        background:
            linear-gradient(
                180deg,
                rgba(255,255,255,.98) 0%,
                rgba(255,255,255,.91) 22%,
                rgba(255,255,255,.55) 55%,
                rgba(255,255,255,.08) 100%
            );
    }

    .hero-side-text,
    .hero-ab {
        display: none;
    }

    .menu-toggle {
        display: grid;
        place-items: center;
    }

    .main-nav {
        position: absolute;
        top: calc(100% + 1px);
        left: 16px;
        right: 16px;
        z-index: 200;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        margin: 0;
        padding: 10px;
        border: 1px solid var(--border);
        border-radius: 14px;
        background: rgba(255,255,255,.98);
        box-shadow: var(--shadow-lg);
    }

    .main-nav.open,
    .main-nav.active {
        display: flex;
    }

    .nav-link {
        display: block;
        padding: 13px 12px;
        border-radius: 8px;
    }

    .nav-link.active::after {
        display: none;
    }

    .nav-link:hover,
    .nav-link.active {
        background: var(--blue-soft);
    }

    .header-icon {
        display: none;
    }

    .services-section,
    .engineering-pillars-section,
    .intro-section,
    .featured-projects-section,
    .about-preview-section,
    .collaboration-section,
    .engineering-section {
        padding: 78px 0;
    }

    .services-grid,
    .pillars-grid,
    .projects-grid,
    .collaboration-grid,
    .engineering-stack-grid,
    .engineering-capabilities-grid {
        grid-template-columns: 1fr;
    }

    .project-card-featured {
        grid-column: auto;
    }

    .engineering-feature-container,
    .engineering-summary-inner,
    .about-preview-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .engineering-capability-list,
    .project-engineering-capabilities,
    .software-tools {
        grid-template-columns: 1fr 1fr;
    }

    .automation-diagram,
    .project-engineering-flow,
    .iot-flow {
        display: grid;
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .diagram-arrow,
    .project-flow-arrow {
        display: none;
    }

    .diagram-node,
    .project-flow-step,
    .iot-step {
        width: 100%;
    }

    .project-flow-step,
    .iot-step {
        min-height: 76px;
        display: grid;
        grid-template-columns: 34px 1fr auto;
        align-items: center;
        text-align: left;
    }

    .project-flow-step > span,
    .iot-step-number {
        margin: 0;
    }

    .project-flow-step small,
    .iot-step small {
        margin: 0;
        text-align: right;
    }

    .iot-connector,
    .project-flow-arrow {
        height: 7px;
        display: flex;
        justify-content: center;
        font-size: 0;
    }

    .iot-connector::before,
    .project-flow-arrow::before {
        content: "↓";
        font-size: 14px;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        padding: 30px 0;
        text-align: left;
    }

    .footer-links {
        justify-content: flex-start;
    }

    .footer-copy {
        justify-self: start;
        text-align: left;
    }
}

/* =========================================================
   ACCESIBILIDAD
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}


/* =========================================================
   PROJECTS.HTML
   Estilos específicos de la página de proyectos
   ========================================================= */





/* =========================================================
   02. INTRODUCCIÓN
   ========================================================= */

.projects-intro {
    padding: 90px 0 55px;
    background: var(--white);
}

.projects-intro .section-header {
    max-width: 850px;
}

.projects-intro .section-header p {
    max-width: 760px;
    margin-top: 18px;
    color: var(--text);
    font-size: 1.05rem;
    line-height: 1.8;
}


/* =========================================================
   03. SECCIÓN DE PROYECTOS
   ========================================================= */

.projects-section {
    padding: 35px 0 100px;
    background: var(--surface);
}


/* =========================================================
   04. FILTROS
   ========================================================= */

.project-filters {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 42px;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--border);
}

.project-filter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 8px 16px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--white);
    color: var(--text);
    font-family: inherit;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
    transition:
        background 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

.project-filter:hover {
    border-color: var(--blue);
    color: var(--blue);
    transform: translateY(-1px);
}

.project-filter.active {
    border-color: var(--blue);
    background: var(--blue);
    color: var(--white);
}


/* =========================================================
   05. GRID DE PROYECTOS
   ========================================================= */

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
}


/* =========================================================
   06. TARJETA DE PROYECTO
   ========================================================= */

.project-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--white);
    box-shadow: 0 8px 24px rgba(16, 24, 40, 0.05);
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    border-color: #cbd5e1;
    box-shadow: 0 18px 38px rgba(16, 24, 40, 0.10);
}


/* =========================================================
   07. PROYECTO DESTACADO
   ========================================================= */

.project-card-featured {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
}


/* =========================================================
   08. IMAGEN DEL PROYECTO
   ========================================================= */

.project-image {
    position: relative;
    min-height: 280px;
    overflow: hidden;
    background: var(--surface-2);
}

.project-card-featured .project-image {
    min-height: 100%;
}

.project-image img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 280px;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.035);
}


/* Capa de información sobre imagen */

.project-image-overlay {
    position: absolute;
    top: 18px;
    left: 18px;
    right: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.project-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 30px;
    padding: 0 10px;
    border-radius: 5px;
    background: rgba(2, 16, 35, 0.88);
    color: var(--white);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.project-category {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 6px 11px;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.94);
    color: var(--ink);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}


/* =========================================================
   09. CONTENIDO DEL PROYECTO
   ========================================================= */

.project-content {
    display: flex;
    flex-direction: column;
    padding: 32px;
}

.project-card-featured .project-content {
    padding: 38px;
}

.project-content h3 {
    margin: 0;
    color: var(--ink);
    font-size: 1.55rem;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.project-summary {
    margin: 12px 0 26px;
    color: var(--text);
    font-size: 0.96rem;
    line-height: 1.7;
}


/* =========================================================
   10. INFORMACIÓN TÉCNICA
   ========================================================= */

.project-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 24px;
    margin-top: 4px;
}

.project-detail {
    padding-top: 15px;
    border-top: 1px solid var(--border);
}

.project-detail strong {
    display: block;
    margin-bottom: 7px;
    color: var(--ink);
    font-size: 0.71rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.project-detail p {
    margin: 0;
    color: var(--text);
    font-size: 0.87rem;
    line-height: 1.65;
}


/* =========================================================
   11. TECNOLOGÍAS
   ========================================================= */

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 25px;
}

.project-tech span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 9px;
    border: 1px solid var(--border);
    border-radius: 4px;
    background: var(--surface);
    color: var(--ink-soft);
    font-size: 0.69rem;
    font-weight: 650;
}


/* =========================================================
   12. RESULTADO
   ========================================================= */

.project-result {
    margin-top: 25px;
    padding: 16px 18px;
    border-left: 3px solid var(--blue);
    background: var(--blue-soft);
}

.project-result strong {
    display: block;
    margin-bottom: 6px;
    color: var(--blue-dark);
    font-size: 0.71rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.project-result p {
    margin: 0;
    color: var(--ink-soft);
    font-size: 0.88rem;
    line-height: 1.6;
}


/* =========================================================
   13. DIAGRAMA DEL SISTEMA
   ========================================================= */

.project-system-diagram {
    margin-top: 28px;
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
}

.project-system-diagram > strong {
    display: block;
    margin-bottom: 16px;
    color: var(--ink);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.system-flow {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 10px;
}

.system-flow-box {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 58px;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--white);
    color: var(--ink);
    font-size: 0.73rem;
    font-weight: 750;
    text-align: center;
}

.system-flow-arrow {
    color: var(--blue);
    font-size: 1.1rem;
    font-weight: 800;
}


/* =========================================================
   14. ENLACE DEL PROYECTO
   ========================================================= */

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    margin-top: 24px;
    color: var(--blue);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-decoration: none;
    text-transform: uppercase;
}

.project-link span {
    transition: transform 0.2s ease;
}

.project-link:hover span {
    transform: translateX(4px);
}


/* =========================================================
   15. MÉTODO DE INGENIERÍA
   ========================================================= */

.projects-method {
    padding: 100px 0;
    background: var(--white);
}

.projects-method .section-header {
    max-width: 760px;
    margin-bottom: 55px;
}

.projects-method .section-header p {
    margin-top: 15px;
    color: var(--text);
    line-height: 1.75;
}


/* =========================================================
   16. PROCESO DE INGENIERÍA
   ========================================================= */

.engineering-process {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 14px;
}

.process-step {
    position: relative;
    min-height: 175px;
    padding: 22px 18px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
}

.process-step-number {
    display: block;
    margin-bottom: 22px;
    color: var(--blue);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.process-step h3 {
    margin: 0 0 9px;
    color: var(--ink);
    font-size: 0.95rem;
}

.process-step p {
    margin: 0;
    color: var(--text);
    font-size: 0.79rem;
    line-height: 1.55;
}


/* =========================================================
   17. CTA
   ========================================================= */

.projects-section + .projects-method + .home-cta {
    margin-top: 0;
}


/* =========================================================
   18. ESTADOS DE FILTRADO
   ========================================================= */

.project-card.is-hidden {
    display: none;
}


/* =========================================================
   19. MOBILE
   Solo teléfono
   ========================================================= */

@media (max-width: 767px) {

    /* HERO */

    .projects-hero {
        min-height: auto;
    }

    .projects-hero .hero-container {
        display: flex;
        flex-direction: column;
    }

    .projects-hero .hero-content {
        max-width: 100%;
    }

    .projects-hero .hero-skills {
        gap: 7px;
        margin-top: 22px;
    }

    .projects-hero .hero-skills span {
        min-height: 31px;
        padding: 6px 10px;
        font-size: 0.7rem;
    }

    .projects-hero .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .projects-hero .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .projects-hero .hero-visual {
        min-height: 280px;
        margin-top: 25px;
    }

    .projects-hero .hero-image-wrapper {
        position: relative;
        min-height: 280px;
        justify-content: flex-start;
    }

    .projects-hero .hero-image {
        width: 100%;
        height: 280px;
        object-fit: cover;
        object-position: left center;
    }


    /* INTRO */

    .projects-intro {
        padding: 65px 0 35px;
    }

    .projects-intro .section-header p {
        font-size: 0.92rem;
        line-height: 1.7;
    }


    /* PROJECTS */

    .projects-section {
        padding: 30px 0 70px;
    }


    /* FILTROS */

    .project-filters {
        flex-wrap: nowrap;
        overflow-x: auto;
        margin-bottom: 28px;
        padding-bottom: 14px;
        scrollbar-width: none;
    }

    .project-filters::-webkit-scrollbar {
        display: none;
    }

    .project-filter {
        flex: 0 0 auto;
        min-height: 36px;
        padding: 7px 13px;
        font-size: 0.68rem;
    }


    /* GRID */

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


    /* PROYECTO DESTACADO */

    .project-card-featured {
        grid-column: auto;
        display: flex;
        flex-direction: column;
    }

    .project-card-featured .project-image {
        min-height: 240px;
    }


    /* IMAGEN */

    .project-image {
        min-height: 220px;
    }

    .project-image img {
        min-height: 220px;
    }

    .project-image-overlay {
        top: 12px;
        left: 12px;
        right: 12px;
    }


    /* CONTENIDO */

    .project-content,
    .project-card-featured .project-content {
        padding: 24px 20px;
    }

    .project-content h3 {
        font-size: 1.3rem;
    }

    .project-summary {
        margin-bottom: 22px;
        font-size: 0.88rem;
    }


    /* DETALLES */

    .project-details {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .project-detail {
        padding-top: 13px;
    }


    /* DIAGRAMA */

    .project-system-diagram {
        padding: 15px;
        margin-top: 22px;
    }

    .system-flow {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .system-flow-box {
        min-height: 48px;
        font-size: 0.69rem;
    }

    .system-flow-arrow {
        display: flex;
        justify-content: center;
        transform: rotate(90deg);
    }


    /* MÉTODO */

    .projects-method {
        padding: 70px 0;
    }

    .projects-method .section-header {
        margin-bottom: 35px;
    }


    /* PROCESO */

    .engineering-process {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .process-step {
        min-height: auto;
        padding: 20px;
    }

    .process-step-number {
        margin-bottom: 12px;
    }

}

/* =========================================================
   ABOUT.HTML
   ========================================================= */

.about-profile {
    padding: 90px 0;
    background: var(--white);
}

.about-profile-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 28px;
    margin-top: 45px;
}

.about-profile-main,
.about-approach {
    padding: 35px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface);
}

.about-profile-main h3,
.about-approach h3 {
    margin: 10px 0 16px;
    color: var(--ink);
    font-size: 1.55rem;
    line-height: 1.3;
}

.about-profile-main p,
.about-approach p {
    margin: 0;
    color: var(--text);
    font-size: 0.95rem;
    line-height: 1.8;
}

.about-overline {
    color: var(--blue);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}


/* =========================================================
   EDUCATION
   ========================================================= */

.about-education {
    padding: 100px 0;
    background: var(--surface);
}

.education-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin-top: 50px;
}

.education-card {
    display: flex;
    gap: 20px;
    min-height: 230px;
    padding: 28px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--white);
}

.education-number {
    color: var(--blue);
    font-size: 0.72rem;
    font-weight: 800;
}

.education-type {
    color: var(--muted);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.07em;
}

.education-content h3 {
    margin: 12px 0;
    color: var(--ink);
    font-size: 1.15rem;
    line-height: 1.4;
}

.education-content p {
    margin: 0;
    color: var(--text);
    font-size: 0.84rem;
    line-height: 1.7;
}


/* =========================================================
   EXPERIENCE
   ========================================================= */

.about-experience {
    padding: 100px 0;
    background: var(--white);
}

.experience-timeline {
    max-width: 900px;
    margin: 55px auto 0;
}

.experience-item {
    display: grid;
    grid-template-columns: 90px 28px 1fr;
    gap: 20px;
    min-height: 145px;
}

.experience-year {
    padding-top: 3px;
    color: var(--blue);
    font-size: 0.9rem;
    font-weight: 800;
}

.experience-line {
    position: relative;
    display: flex;
    justify-content: center;
}

.experience-line::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 1px;
    background: var(--border);
}

.experience-line span {
    position: relative;
    z-index: 2;
    width: 10px;
    height: 10px;
    margin-top: 5px;
    border: 2px solid var(--blue);
    border-radius: 50%;
    background: var(--white);
}

.experience-content {
    padding-bottom: 35px;
}

.experience-type {
    color: var(--muted);
    font-size: 0.67rem;
    font-weight: 800;
    letter-spacing: 0.07em;
}

.experience-content h3 {
    margin: 8px 0;
    color: var(--ink);
    font-size: 1.15rem;
}

.experience-content p {
    margin: 0;
    color: var(--text);
    font-size: 0.86rem;
    line-height: 1.65;
}

.experience-note {
    display: inline-block;
    margin-top: 10px;
    color: var(--blue);
    font-size: 0.73rem;
    font-weight: 700;
}


/* =========================================================
   CAPABILITIES
   ========================================================= */

.about-capabilities {
    padding: 100px 0;
    background: var(--surface);
}

.capabilities-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-top: 50px;
}

.capability-card {
    padding: 28px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--white);
}

.capability-number {
    display: block;
    margin-bottom: 25px;
    color: var(--blue);
    font-size: 0.7rem;
    font-weight: 800;
}

.capability-card h3 {
    margin: 0 0 20px;
    color: var(--ink);
    font-size: 1.05rem;
}

.capability-card ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.capability-card li {
    position: relative;
    padding-left: 15px;
    color: var(--text);
    font-size: 0.82rem;
}

.capability-card li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--blue);
}


/* =========================================================
   CV
   ========================================================= */

.about-cv {
    padding: 100px 0;
    background: var(--white);
}

.cv-card {
    display: grid;
    grid-template-columns: 1fr 280px;
    overflow: hidden;
    border-radius: 12px;
    background: var(--ink);
}

.cv-content {
    padding: 55px;
}

.cv-content .section-label {
    color: #8fb9ff;
}

.cv-content h2 {
    max-width: 650px;
    margin: 16px 0;
    color: var(--white);
    font-size: 2rem;
    line-height: 1.25;
}

.cv-content p {
    max-width: 600px;
    margin: 0;
    color: #b8c4d3;
    font-size: 0.92rem;
    line-height: 1.75;
}

.cv-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.cv-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--blue);
}

.cv-mark {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--white);
}

.cv-mark span {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -0.08em;
}

.cv-mark small {
    margin-top: 4px;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.2em;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767px) {

    /* PROFILE */

    .about-profile {
        padding: 65px 0;
    }

    .about-profile-grid {
        grid-template-columns: 1fr;
        margin-top: 35px;
    }

    .about-profile-main,
    .about-approach {
        padding: 25px 20px;
    }


    /* EDUCATION */

    .about-education {
        padding: 70px 0;
    }

    .education-grid {
        grid-template-columns: 1fr;
        margin-top: 35px;
    }

    .education-card {
        min-height: auto;
        padding: 24px 20px;
    }


    /* EXPERIENCE */

    .about-experience {
        padding: 70px 0;
    }

    .experience-timeline {
        margin-top: 40px;
    }

    .experience-item {
        grid-template-columns: 55px 22px 1fr;
        gap: 10px;
        min-height: 150px;
    }

    .experience-year {
        font-size: 0.78rem;
    }

    .experience-content {
        padding-bottom: 28px;
    }


    /* CAPABILITIES */

    .about-capabilities {
        padding: 70px 0;
    }

    .capabilities-grid {
        grid-template-columns: 1fr;
        margin-top: 35px;
    }

    .capability-card {
        padding: 24px 20px;
    }


    /* CV */

    .about-cv {
        padding: 70px 0;
    }

    .cv-card {
        grid-template-columns: 1fr;
    }

    .cv-content {
        padding: 35px 24px;
    }

    .cv-content h2 {
        font-size: 1.55rem;
    }

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

    .cv-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .cv-visual {
        min-height: 180px;
    }

}/* =========================================================
   SERVICES.HTML
   ========================================================= */


/* =========================================================
   01. HERO
   ========================================================= */

.services-hero {
    position: relative;
    overflow: hidden;
}

.services-hero .hero-content {
    max-width: 620px;
}

.services-hero .hero-description {
    max-width: 590px;
}

.services-hero .hero-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
}

.services-hero .hero-skills span {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 7px 14px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.82);
    color: var(--ink-soft);
    font-size: 0.78rem;
    font-weight: 600;
}

.services-hero .hero-actions {
    margin-top: 30px;
}

.services-hero .hero-visual {
    position: relative;
    min-height: 480px;
}

.services-hero .hero-image-wrapper {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.services-hero .hero-image {
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: right center;
}


/* =========================================================
   02. INTRO
   ========================================================= */

.services-intro {
    padding: 90px 0 50px;
    background: var(--white);
}

.services-intro .section-header {
    max-width: 820px;
}

.services-intro .section-header p {
    max-width: 720px;
    margin-top: 16px;
    color: var(--text);
    line-height: 1.8;
}


/* =========================================================
   03. SERVICES LIST
   ========================================================= */

.services-list {
    padding: 45px 0 100px;
    background: var(--surface);
}


/* =========================================================
   04. SERVICE CARD
   ========================================================= */

.service-card {
    display: grid;
    grid-template-columns: 70px minmax(0, 1fr) 250px;
    gap: 30px;
    min-height: 360px;
    margin-bottom: 22px;
    padding: 35px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--white);
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}

.service-card:last-child {
    margin-bottom: 0;
}

.service-card:hover {
    transform: translateY(-3px);
    border-color: #cbd5e1;
    box-shadow: 0 15px 32px rgba(16, 24, 40, 0.08);
}


/* =========================================================
   05. NUMBER
   ========================================================= */

.service-number {
    color: var(--blue);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}


/* =========================================================
   06. CONTENT
   ========================================================= */

.service-content {
    min-width: 0;
}

.service-label {
    display: block;
    margin-bottom: 10px;
    color: var(--muted);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.service-content h2 {
    margin: 0;
    color: var(--ink);
    font-size: 1.65rem;
    line-height: 1.25;
}

.service-content h3 {
    margin: 8px 0 15px;
    color: var(--blue-dark);
    font-size: 0.95rem;
    font-weight: 700;
}

.service-description {
    max-width: 680px;
    margin: 0;
    color: var(--text);
    font-size: 0.9rem;
    line-height: 1.7;
}


/* =========================================================
   07. SERVICE LIST
   ========================================================= */

.service-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px 25px;
    margin: 25px 0 0;
    padding: 0;
    list-style: none;
}

.service-list li {
    position: relative;
    padding-left: 15px;
    color: var(--ink-soft);
    font-size: 0.81rem;
    line-height: 1.5;
}

.service-list li::before {
    content: "";
    position: absolute;
    top: 0.55em;
    left: 0;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--blue);
}


/* =========================================================
   08. IDEAL / ENFOQUE
   ========================================================= */

.service-ideal {
    max-width: 650px;
    margin-top: 25px;
    padding: 14px 17px;
    border-left: 3px solid var(--blue);
    background: var(--blue-soft);
}

.service-ideal strong {
    display: block;
    margin-bottom: 4px;
    color: var(--blue-dark);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.service-ideal p {
    margin: 0;
    color: var(--ink-soft);
    font-size: 0.8rem;
    line-height: 1.55;
}


/* =========================================================
   09. VISUAL
   ========================================================= */

.service-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 220px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background:
        linear-gradient(
            135deg,
            var(--surface),
            var(--surface-2)
        );
}

.service-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 120px;
    border: 1px solid rgba(37, 99, 235, 0.25);
    border-radius: 12px;
    background: var(--white);
    box-shadow: 0 10px 25px rgba(16, 24, 40, 0.06);
}

.service-icon span {
    color: var(--blue);
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}


/* =========================================================
   10. CTA
   ========================================================= */

.services-cta {
    padding: 100px 0;
}

.services-cta .cta-content {
    max-width: 760px;
}

.services-cta .cta-content h2 {
    max-width: 700px;
}

.services-cta .cta-content p {
    max-width: 650px;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767px) {

    /* HERO */

    .services-hero .hero-content {
        max-width: 100%;
    }

    .services-hero .hero-skills {
        gap: 7px;
        margin-top: 22px;
    }

    .services-hero .hero-skills span {
        min-height: 31px;
        padding: 6px 10px;
        font-size: 0.7rem;
    }

    .services-hero .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .services-hero .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .services-hero .hero-visual {
        min-height: 280px;
        margin-top: 25px;
    }

    .services-hero .hero-image-wrapper {
        position: relative;
        min-height: 280px;
        justify-content: flex-start;
    }

    .services-hero .hero-image {
        width: 100%;
        height: 280px;
        object-fit: cover;
        object-position: left center;
    }


    /* INTRO */

    .services-intro {
        padding: 65px 0 35px;
    }


    /* SERVICES */

    .services-list {
        padding: 30px 0 70px;
    }


    /* CARDS */

    .service-card {
        grid-template-columns: 1fr;
        gap: 18px;
        min-height: auto;
        margin-bottom: 18px;
        padding: 24px 20px;
    }


    /* NUMBER */

    .service-number {
        margin-bottom: -5px;
    }


    /* CONTENT */

    .service-content h2 {
        font-size: 1.35rem;
    }

    .service-description {
        font-size: 0.86rem;
    }


    /* LIST */

    .service-list {
        grid-template-columns: 1fr;
        gap: 8px;
        margin-top: 22px;
    }


    /* VISUAL */

    .service-visual {
        min-height: 170px;
    }

    .service-icon {
        width: 90px;
        height: 90px;
    }


    /* IDEAL */

    .service-ideal {
        margin-top: 22px;
    }


    /* CTA */

    .services-cta {
        padding: 70px 0;
    }

}

/* =========================================================
   CONTACT PAGE
========================================================= */


/* =========================================================
   01. CONTACT HERO
========================================================= */

.contact-hero {
    position: relative;
    overflow: hidden;
}


.contact-hero .hero-content {
    position: relative;
    z-index: 2;
}


.contact-hero .hero-visual {
    position: relative;
    z-index: 1;
}


/* =========================================================
   02. CONTACT SECTION
========================================================= */

.contact-section {
    padding: 110px 0;
    background: var(--white);
}


.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 90px;
    align-items: start;
}


/* =========================================================
   03. CONTACT INFORMATION
========================================================= */

.contact-info {
    max-width: 560px;
}


.contact-info h2 {
    margin: 18px 0 22px;
    font-size: clamp(2.3rem, 4vw, 3.7rem);
    line-height: 1.05;
    letter-spacing: -0.04em;
    color: var(--ink);
}


.contact-info h2 span {
    color: var(--blue);
}


.contact-info > p {
    max-width: 520px;
    margin: 0 0 42px;
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text);
}


/* =========================================================
   04. CONTACT DETAILS
========================================================= */

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
}


.contact-item {
    display: flex;
    align-items: center;
    gap: 18px;

    padding: 17px 18px;

    text-decoration: none;

    border: 1px solid var(--border);
    border-radius: 8px;

    background: var(--white);

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


.contact-item:hover {
    border-color: rgba(37, 99, 235, 0.35);
    background: var(--surface);
    transform: translateX(4px);
}


.contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 44px;

    width: 44px;
    height: 44px;

    border-radius: 6px;

    background: var(--blue-soft);

    color: var(--blue);

    font-size: 1.15rem;
    font-weight: 600;
}


.contact-item div {
    display: flex;
    flex-direction: column;
    gap: 4px;

    min-width: 0;
}


.contact-item small {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.14em;

    color: var(--muted);
}


.contact-item strong {
    font-size: 0.94rem;
    font-weight: 600;

    color: var(--ink-soft);

    overflow-wrap: anywhere;
}


/* =========================================================
   05. CONTACT FORM WRAPPER
========================================================= */

.contact-form-wrapper {
    width: 100%;

    padding: 42px;

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

    background: var(--surface);

    box-shadow:
        0 18px 50px rgba(16, 24, 40, 0.06);
}


/* =========================================================
   06. CONTACT FORM
========================================================= */

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}


.form-group {
    display: flex;
    flex-direction: column;
    gap: 9px;
}


.form-group label {
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.02em;

    color: var(--ink);
}


.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;

    padding: 14px 16px;

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

    background: var(--white);

    color: var(--ink);

    font-family: inherit;
    font-size: 0.95rem;

    outline: none;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}


.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--muted);
}


.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover {
    border-color: #c8d3e0;
}


.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--blue);

    box-shadow:
        0 0 0 3px rgba(37, 99, 235, 0.10);
}


.form-group select {
    cursor: pointer;
}


.form-group textarea {
    min-height: 170px;

    resize: vertical;

    line-height: 1.6;
}


/* =========================================================
   07. SUBMIT BUTTON
========================================================= */

.contact-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 100%;

    padding: 15px 22px;

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

    background: var(--blue);
    color: var(--white);

    font-family: inherit;
    font-size: 0.92rem;
    font-weight: 700;

    cursor: pointer;

    transition:
        background 0.25s ease,
        border-color 0.25s ease,
        transform 0.25s ease,
        box-shadow 0.25s ease;
}


.contact-submit:hover {
    background: var(--blue-dark);
    border-color: var(--blue-dark);

    transform: translateY(-2px);

    box-shadow:
        0 8px 20px rgba(37, 99, 235, 0.18);
}


.contact-submit:active {
    transform: translateY(0);
}


.contact-submit:disabled {
    opacity: 0.65;

    cursor: not-allowed;

    transform: none;
    box-shadow: none;
}


/* =========================================================
   08. FORM STATUS
========================================================= */

.form-status {
    min-height: 22px;
    margin: 0;

    font-size: 0.86rem;
    line-height: 1.5;

    text-align: center;
    color: var(--text);
}


/* =========================================================
   09. CONTACT CTA
========================================================= */

.contact-cta {
    padding: 100px 0;

    background:
        linear-gradient(
            135deg,
            var(--ink) 0%,
            #142b4a 100%
        );

    text-align: center;
}


.contact-cta .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}


.contact-cta .section-label {
    color: #9db4d1;
}


.contact-cta h2 {
    margin: 18px 0 30px;

    font-size: clamp(2.2rem, 4vw, 3.5rem);
    line-height: 1.08;
    letter-spacing: -0.04em;

    color: var(--white);
}


.contact-cta h2 span {
    color: #72a7ff;
}


.contact-cta .btn {
    min-width: 220px;
}


/* =========================================================
   10. MOBILE
========================================================= */

@media (max-width: 767px) {


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

    .contact-hero {
        min-height: auto;
    }


    .contact-hero .hero-content {
        width: 100%;
    }


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

    .contact-section {
        padding: 70px 0;
    }


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


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

    .contact-info {
        max-width: none;
    }


    .contact-info h2 {
        margin-top: 14px;
        font-size: 2.35rem;
    }


    .contact-info > p {
        margin-bottom: 30px;

        font-size: 0.98rem;
        line-height: 1.7;
    }


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

    .contact-details {
        gap: 10px;
    }


    .contact-item {
        padding: 14px;
        gap: 14px;
    }


    .contact-icon {
        flex-basis: 40px;

        width: 40px;
        height: 40px;
    }


    .contact-item strong {
        font-size: 0.86rem;
    }


    /* -----------------------------------------------------
       FORM
    ----------------------------------------------------- */

    .contact-form-wrapper {
        padding: 24px 20px;
        border-radius: 8px;
    }


    .contact-form {
        gap: 21px;
    }


    .form-group textarea {
        min-height: 150px;
    }


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

    .contact-cta {
        padding: 75px 0;
    }


    .contact-cta h2 {
        margin-bottom: 26px;

        font-size: 2.2rem;
    }


    .contact-cta .btn {
        width: 100%;
        max-width: 280px;
    }

}















.services-section {
    padding: 115px 0;
    background: var(--surface);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.services-card {
    position: relative;
    min-height: 380px;
    display: flex;
    flex-direction: column;
    padding: 30px;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--white);
    transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease);
}

.services-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--blue);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--ease);
}

.services-card:hover {
    transform: translateY(-6px);
    border-color: rgba(37, 99, 235, .22);
    box-shadow: var(--shadow-md);
}

.services-card:hover::before {
    transform: scaleX(1);
}

.services-number, .pillar-number, .process-number {
    color: var(--blue);
    font-size: 11px;
    font-weight: 850;
    letter-spacing: .16em;
}

.services-number {
    margin-bottom: 70px;
}

.services-card h3 {
    margin: 0 0 14px;
    color: var(--ink);
    font-size: 21px;
    line-height: 1.25;
    letter-spacing: -.025em;
}

.services-card p {
    margin: 0;
    color: var(--text);
    font-size: 14px;
    line-height: 1.75;
}

.services-tech {
    margin-top: 22px;
}

.services-link, .project-link {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: auto;
    padding-top: 24px;
    color: var(--blue);
    font-size: 12px;
    font-weight: 800;
    transition: gap var(--ease), color var(--ease);
}

.services-link:hover, .project-link:hover {
    gap: 11px;
    color: var(--ink);
}