/* ==========================================
   Management Group S.A. - Main Stylesheet
   Fonts:
   - Montserrat: Used for Titles, Stats & Headings
   - Arboria (Fallback: Montserrat, sans-serif): Used for Navigation, Body & Labels
   ========================================== */

:root {
    --primary-bg: #be272c;
    --primary-bg-dark: #7b161f;
    --footer-bg: #242625;
    --accent-light: #f3d2d5;
    --accent-gold: #f8d7da;
    --text-white: #ffffff;
    --text-muted: #f8d7da;
    --card-bg: rgba(255, 255, 255, 0.08);
    --card-border: rgba(255, 255, 255, 0.18);
    --font-heading: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-body: 'Arboria', 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --transition: all 0.3s ease;
    --container-max-width: 1240px;
}

/* Reset & Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

html.page-home {
    zoom: 1;
}

html.page-erp {
    zoom: 1;
}

body {
    background-color: #ffffff;
    color: #333333;
    font-family: var(--font-body);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

.main-content {
    flex: 1;
}

.container {
    width: 100%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 24px;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

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

/* Typography */
h1, h2, h3, h4, h5, h6, .stat-number {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

/* Header Styles */
.site-header {
    background: linear-gradient(to right, #a10001, #ff0000);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Offset page-level 0.9 zoom so the shared header matches the homepage. */
html:not(.page-home) .site-header {
    zoom: 1.1111111111111112;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand-logo img {
    height: 72px;
    width: auto;
}

/* Navigation */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 28px;
    align-items: center;
}

.nav-link {
    font-family: var(--font-body);
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--text-white);
    padding: 6px 0;
    position: relative;
    opacity: 0.9;
}

.nav-link:hover,
.nav-link.active {
    opacity: 1;
    color: #ffffff;
}

.nav-link.active::after,
.nav-link:hover::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #ffffff;
    border-radius: 2px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 24px;
    border-radius: 30px;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    border: 2px solid transparent;
    transition: var(--transition);
}

.btn-outline {
    border-color: rgba(255, 255, 255, 0.8);
    color: var(--text-white);
    background-color: transparent;
}

.btn-outline:hover {
    background-color: var(--text-white);
    color: var(--primary-bg);
}

.btn-primary {
    background-color: #ffffff;
    color: var(--primary-bg);
}

.btn-primary:hover {
    background-color: var(--accent-light);
    color: var(--primary-bg-dark);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.hamburger {
    display: block;
    width: 26px;
    height: 3px;
    background-color: var(--text-white);
    position: relative;
    transition: var(--transition);
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 26px;
    height: 3px;
    background-color: var(--text-white);
    left: 0;
    transition: var(--transition);
}

.hamburger::before { top: -8px; }
.hamburger::after { top: 8px; }

/* Hero Section */
.hero-section {
    padding: 60px 0 40px;
    background: #f1f2f3;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.hero-subtitle {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--primary-bg);
    font-weight: 700;
    margin-bottom: 12px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
    color: var(--primary-bg);
}

.hero-description {
    font-size: 1.1rem;
    color: #666666;
    margin-bottom: 32px;
    max-width: 520px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    align-items: center;
}

.hero-cta {
    background-color: var(--primary-bg);
    color: var(--text-white);
}

.hero-cta:hover {
    background-color: var(--primary-bg-dark);
    color: var(--text-white);
}

/* Hero Media Block */
.hero-media-wrapper {
    position: relative;
}

.hero-image-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border: 1px solid #e6e6e8;
    background: #ffffff;
}

.hero-image-card img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    display: block;
}

/* Schedule Overlay Badge on Hero */
.schedule-badge {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: calc(100% - 40px);
    max-width: 420px;
    transform: translateX(-50%);
    background: #ffffff;
    color: var(--primary-bg-dark);
    padding: 14px 22px;
    border-radius: 14px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    z-index: 10;
}

.schedule-icon {
    width: 30px;
    height: 30px;
    background-color: var(--primary-bg);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.schedule-info h4 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #666;
    margin-bottom: 2px;
}

.schedule-info p {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 900;
    color: var(--primary-bg-dark);
}

/* Stats Section */
.stats-section {
    padding: 50px 0 70px;
    background: #e7e8ea;
}

.stats-card {
    background: #f8f8f9;
    border: 1px solid #d5d7da;
    border-radius: 16px;
    padding: 36px 24px;
    backdrop-filter: blur(5px);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    align-items: center;
}

.stat-item {
    text-anchor: center;
    text-align: center;
    padding: 0 16px;
    position: relative;
}

.stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 15%;
    height: 70%;
    width: 1px;
    background-color: #d8d8db;
}

.stat-number {
    font-size: 3.2rem;
    font-weight: 900;
    color: var(--primary-bg);
    margin-bottom: 6px;
    line-height: 1;
}

.stat-label {
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 500;
    color: #666666;
}

/* Services Page */
.about-page {
    padding: 76px 0 88px;
    background: #ffffff;
    color: #333333;
}

.about-intro {
    display: grid;
    grid-template-columns: minmax(250px, 0.8fr) minmax(0, 1.2fr);
    align-items: center;
    gap: clamp(40px, 7vw, 88px);
    max-width: 1080px;
    margin: 0 auto 96px;
}

.about-video-frame {
    width: min(100%, 360px);
    aspect-ratio: 9 / 16;
    justify-self: center;
    overflow: hidden;
    border-radius: 12px;
    background: #251c1d;
    box-shadow: 0 18px 42px rgba(51, 7, 12, 0.22);
}

.about-video-frame video,
.about-video-frame iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.about-video-frame iframe {
    width: calc(100% + 18px);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.about-video-frame iframe.is-loaded {
    opacity: 1;
}

.about-copy {
    max-width: 570px;
}

.about-eyebrow {
    display: block;
    margin-bottom: 10px;
    color: #666666;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-align: center;
    text-transform: uppercase;
}

.about-copy h1,
.about-section-heading h2 {
    color: #be272c;
    font-size: clamp(1.9rem, 3.3vw, 2.65rem);
    line-height: 1.15;
    text-align: center;
}

.about-copy h1 {
    color: #be272c;
}

.about-copy > p {
    margin: 22px 0 18px;
    color: #777777;
    font-size: 1.08rem;
    line-height: 1.4;
    text-align: justify;
}

.about-benefits {
    display: grid;
    gap: 8px;
    margin: 0 0 28px;
    color: #777777;
    font-size: 1.12rem;
    font-weight: 600;
    list-style: none;
}

.about-benefits li {
    display: flex;
    align-items: center;
    gap: 10px;
}

.about-benefits li::before {
    display: grid;
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    place-items: center;
    border: 2px solid #ed302d;
    border-radius: 50%;
    color: #ed302d;
    content: "\2713";
    font-size: 0.88rem;
    line-height: 1;
}

.about-contact-button {
    display: block;
    width: fit-content;
    margin: 0 auto;
    border-radius: 30px;
    background: #be272c;
    color: #ffffff;
    font-size: 1.05rem;
}

.about-contact-button:hover {
    background: var(--primary-bg-dark);
    color: #ffffff;
}

.about-commitment-section {
    margin: 0 auto 72px;
}

.about-commitment-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
    max-width: 1050px;
    margin: 0 auto;
}

.about-commitment-card {
    display: flex;
    min-height: 260px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 28px 24px;
    border-radius: 30px;
    background: #be272c;
    color: #ffffff;
    text-align: center;
}

.about-commitment-card img {
    width: 88px;
    height: 88px;
    object-fit: contain;
}

.about-commitment-card p {
    max-width: 260px;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.4;
}

.awards-section {
    margin: 0 -24px;
    padding: 56px 24px 64px;
}

.about-section-heading {
    margin: 0 auto 38px;
    text-align: center;
}

.about-section-heading h2 {
    font-size: clamp(1.8rem, 3vw, 2.35rem);
}

.awards-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 28px;
    max-width: 1100px;
    margin: 0 auto;
}

.award-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.award-card img {
    width: min(100%, 196px);
    aspect-ratio: 1;
    margin-bottom: 22px;
    border-radius: 50%;
    object-fit: cover;
}

.award-card h3 {
    margin-bottom: 12px;
    color: #ed302d;
    font-family: var(--font-heading);
    font-size: 1.18rem;
    line-height: 1.2;
}

.award-card p {
    max-width: 230px;
    color: #777777;
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.25;
}

.clients-reviews-section {
    overflow: hidden;
    margin: 64px auto 0;
}

.clients-reviews-section .clients-section-heading {
    margin-bottom: 28px;
}

.clients-reviews-section .clients-section-heading .clients-eyebrow {
    color: #777777;
}

.clients-reviews-section .clients-section-heading h2 {
    color: #be272c;
}

.client-review-card {
    width: 630px;
    min-height: 270px;
    flex-basis: 630px;
    flex-direction: row;
    align-items: center;
    gap: 28px;
    padding: 26px 30px;
}

.client-review-logo {
    display: grid;
    width: 160px;
    height: 180px;
    flex: 0 0 160px;
    place-items: center;
    border: 1px dashed #c9b8b8;
    border-radius: 8px;
    background: #f7f5f5;
    color: #8c7779;
    font-family: var(--font-heading);
    font-size: 0.88rem;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
}

.client-review-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.client-review-content {
    display: flex;
    min-height: 210px;
    flex: 1;
    flex-direction: column;
}

.client-review-content .review-quote-mark {
    height: 28px;
    color: #ff0000;
}

.clients-reviews-section .client-review-content blockquote {
    margin: 4px 0 14px;
    color: #777777;
    font-family: var(--font-heading);
    font-size: 1.02rem;
    font-style: italic;
    font-weight: 600;
    line-height: 1.4;
    text-align: center;
}

.client-review-content .review-attribution {
    margin-top: auto;
    text-align: center;
}

.services-page {
    padding: 38px 0 40px;
    background: #ffffff;
    color: #333333;
}

.services-intro {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(220px, 0.75fr);
    align-items: center;
    gap: 40px;
    max-width: 1040px;
    margin: 0 auto 28px;
}

.services-heading {
    text-align: center;
}

.services-eyebrow {
    display: block;
    margin-bottom: 8px;
    color: #666666;
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    text-transform: uppercase;
}

.services-heading h1 {
    color: var(--primary-bg);
    font-size: clamp(1.8rem, 3vw, 2.45rem);
    line-height: 1.15;
}

.services-lead {
    border-left: 3px solid var(--primary-bg);
    padding: 4px 0 4px 24px;
    color: #777777;
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 600;
    line-height: 1.25;
    text-align: center;
}

.services-showcase {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
    gap: 36px;
    align-items: stretch;
    max-width: 1040px;
    margin: 0 auto;
}

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

.service-card {
    display: flex;
    min-height: 204px;
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 22px;
    border: 0;
    border-radius: 9px;
    background: #f5f5f6;
    color: var(--primary-bg);
    cursor: pointer;
    font: inherit;
    text-align: left;
    transition: var(--transition);
}

.service-card:hover,
.service-card.is-selected {
    background: #e00613;
    color: #ffffff;
}

.service-card:focus-visible {
    outline: 3px solid #e5a0a6;
    outline-offset: 3px;
}

.service-icon {
    display: grid;
    width: 66px;
    height: 66px;
    margin-bottom: 10px;
    place-items: center;
    border-radius: 9px;
    background: #df0613;
    color: #ffffff;
    transition: var(--transition);
}

.service-icon img {
    width: 44px;
    height: 44px;
    object-fit: contain;
}

.service-card-copy {
    display: grid;
    gap: 5px;
}

.service-card-copy strong {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    line-height: 1.3;
}

.service-card-copy > span {
    font-size: 0.91rem;
    font-weight: 500;
    line-height: 1.18;
}

.services-visual {
    position: relative;
    min-height: 432px;
    overflow: hidden;
    border-radius: 9px;
    background: #f5f5f6;
}

.services-visual img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    min-height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: scale(1.025);
    transition: opacity 350ms ease, transform 500ms ease;
}

.services-visual img.is-active {
    opacity: 1;
    transform: scale(1);
}

.services-visual img.services-general-image {
    object-position: center 35%;
}

.services-visual img[hidden],
.services-visual figcaption[hidden] {
    display: none;
}

.services-visual figcaption {
    position: absolute;
    right: 16px;
    bottom: 16px;
    left: 16px;
    padding: 12px 16px;
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.94);
    color: var(--primary-bg);
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
}

.services-more {
    max-width: 1040px;
    margin: 24px auto 0;
    text-align: center;
}

.services-more-toggle {
    display: inline-flex;
    min-width: 156px;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 12px 20px;
    border: 1px solid var(--primary-bg);
    border-radius: 999px;
    background: linear-gradient(135deg, #d83a40, var(--primary-bg));
    box-shadow: 0 7px 18px rgba(191, 39, 45, 0.24);
    color: #ffffff;
    cursor: pointer;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 800;
    text-transform: uppercase;
    transition: transform 200ms ease, box-shadow 200ms ease, background 200ms ease;
}

.services-more-toggle::after {
    width: 8px;
    height: 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    content: "";
    transform: rotate(45deg) translateY(-2px);
    transition: transform 200ms ease;
}

.services-more-toggle[aria-expanded="true"]::after {
    transform: rotate(225deg) translate(-2px, -1px);
}

.services-more-toggle:hover,
.services-more-toggle:focus-visible {
    background: linear-gradient(135deg, var(--primary-bg), var(--primary-bg-dark));
    box-shadow: 0 10px 24px rgba(123, 22, 31, 0.3);
    transform: translateY(-2px);
}

.services-more-toggle:focus-visible {
    outline: 3px solid #e5a0a6;
    outline-offset: 3px;
}

.services-more-toggle:active {
    transform: translateY(0);
}

.services-more-panel {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    scroll-margin-top: 100px;
    transform: translateY(-10px);
    transition: max-height 550ms ease, opacity 350ms ease, transform 350ms ease;
}

.services-more-panel[hidden] {
    display: none;
}

.services-more-panel.is-expanded {
    opacity: 1;
    transform: translateY(0);
}

.services-more-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 24px;
    padding: 20px 6px 6px;
}

.services-more-card {
    display: flex;
    grid-column: span 2;
    min-height: 204px;
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 22px;
    border: 0;
    border-radius: 9px;
    background: #f5f5f6;
    color: var(--primary-bg);
    text-align: left;
    transition: var(--transition);
}

.services-more-card:nth-child(4) {
    grid-column: 2 / span 2;
}

.services-more-card:nth-child(5) {
    grid-column: 4 / span 2;
}

.services-more-card:hover {
    background: #e00613;
    color: #ffffff;
}

.services-more-card > span {
    display: grid;
    width: 56px;
    height: 56px;
    margin-bottom: 10px;
    place-items: center;
    border-radius: 9px;
    background: var(--primary-bg);
    color: #ffffff;
    transition: var(--transition);
}

.services-more-card > span img {
    width: 44px;
    height: 44px;
    object-fit: contain;
}

.services-more-card h2 {
    margin-bottom: 5px;
    color: inherit;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    line-height: 1.3;
}

.services-more-card p {
    color: inherit;
    font-size: 0.91rem;
    font-weight: 500;
    line-height: 1.18;
}

.services-cta {
    padding: 20px 18px 64px;
    background: #ffffff;
}

.services-cta-banner {
    position: relative;
    display: flex;
    max-width: 1400px;
    min-height: 140px;
    align-items: center;
    gap: 16px;
    margin: 0 auto;
    padding: 16px 23% 16px 5%;
    border-radius: 26px;
    background: #e00613;
    color: #ffffff;
}

.services-cta-icon {
    display: grid;
    width: 92px;
    min-width: 92px;
    height: 74px;
    place-items: center;
    border-right: 2px solid rgba(255, 255, 255, 0.85);
    padding-right: 16px;
}

.services-cta-icon svg {
    width: 70px;
    height: 70px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 4;
}

.services-cta-copy {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 3px;
    font-family: var(--font-heading);
}

.services-cta-copy h2 {
    margin: 0;
    color: inherit;
    font-size: clamp(1.05rem, 1.6vw, 1.4rem);
    line-height: 1.25;
}

.services-cta-copy p {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: clamp(0.95rem, 1.35vw, 1.18rem);
    font-weight: 600;
    line-height: 1.35;
}

.services-cta-action {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.services-cta-whatsapp {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    gap: 7px;
    padding: 5px 15px;
    border: 2px solid #ffffff;
    border-radius: 999px;
    background: #ffffff;
    color: #e00613;
    font-weight: 700;
    white-space: nowrap;
    transition: transform 200ms ease, box-shadow 200ms ease;
}

.services-cta-hint {
    position: absolute;
    top: 50%;
    left: calc(100% + 100px);
    display: flex;
    width: 96px;
    align-items: center;
    color: #ffffff;
    font-size: 0.78rem;
    font-style: italic;
    font-weight: 600;
    line-height: 1.15;
    transform: translateY(-50%);
}

.services-cta-hint svg {
    position: absolute;
    top: -5px;
    left: -80px;
    width: 148px;
    height: 48px;
    overflow: visible;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
    filter: drop-shadow(0 1px 2px rgba(125, 0, 0, 0.6));
}

.services-cta-hint > span {
    position: absolute;
    top: -28px;
    left: 70px;
    display: block;
    width: max-content;
    white-space: nowrap;
    transform: rotate(-12deg);
}

.services-cta-whatsapp:hover {
    box-shadow: 0 5px 14px rgba(80, 0, 0, 0.25);
    transform: translateY(-2px);
}

.services-cta-whatsapp:focus-visible {
    outline: 3px solid #ffffff;
    outline-offset: 4px;
}

.services-cta-whatsapp img {
    width: 22px;
    height: 22px;
    filter: brightness(0) saturate(100%) invert(14%) sepia(93%) saturate(5524%) hue-rotate(348deg) brightness(89%) contrast(110%);
}

.services-cta-copy small {
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 500;
    line-height: 1.4;
}

.services-cta-photo {
    position: absolute;
    top: 50%;
    right: -27px;
    width: auto;
    max-width: none;
    height: calc(100% + 92px);
    object-fit: contain;
    object-position: center center;
    transform: translateY(-50%);
}

@media (max-width: 768px) {
    .services-cta {
        padding: 18px 18px 48px;
    }

    .services-cta-banner {
        min-height: 0;
        gap: 14px;
        padding: 22px 22px;
        border-radius: 24px;
    }

    .services-cta-icon {
        width: 72px;
        min-width: 72px;
        height: 68px;
        padding-right: 12px;
    }

    .services-cta-icon svg {
        width: 58px;
        height: 58px;
    }

    .services-cta-copy {
        padding-right: 20%;
    }

    .services-cta-copy p {
        display: block;
        font-size: 1rem;
    }

    .services-cta-whatsapp {
        margin-top: 8px;
        font-size: 0.95rem;
    }

    .services-cta-hint {
        display: none;
    }

    .services-cta-copy small {
        font-size: 0.72rem;
    }

    .services-cta-photo {
        right: -20px;
        width: auto;
        max-width: none;
        height: calc(100% + 48px);
        object-fit: contain;
    }
}

@media (max-width: 520px) {
    .services-cta {
        padding: 14px 14px 40px;
    }

    .services-cta-banner {
        align-items: flex-start;
        gap: 12px;
        padding: 22px 18px;
    }

    .services-cta-icon {
        width: 54px;
        min-width: 54px;
        height: 54px;
        padding-right: 8px;
    }

    .services-cta-icon svg {
        width: 44px;
        height: 44px;
    }

    .services-cta-copy {
        padding-right: 30%;
    }

    .services-cta-copy h2 {
        max-width: 220px;
        font-size: 1rem;
    }

    .services-cta-photo {
        top: 10%;
        right: -18px;
        bottom: auto;
        width: auto;
        max-width: none;
        height: 150px;
        object-fit: contain;
        opacity: 1;
        transform: translateY(-50%);
    }
}

/* ADVISOR Page */
.erp-page {
    padding: 48px 0 88px;
    background: #ffffff;
    color: #333333;
}

.erp-page > .container {
    max-width: 1440px;
}

.erp-intro {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(220px, 0.75fr);
    align-items: center;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto 48px;
}

.erp-heading {
    text-align: center;
}

.erp-heading h1 {
    color: #333333;
    font-size: clamp(1.8rem, 3vw, 2.45rem);
    line-height: 1.15;
}

.erp-heading-logo {
    display: block;
    width: min(190px, 52vw);
    height: auto;
    margin: 4px auto 0;
}

.erp-lead {
    border-left: 3px solid var(--primary-bg);
    padding: 5px 0 17px 24px;
    color: #777777;
    font-family: var(--font-heading);
    font-size: 1.10rem;
    font-weight: 600;
    line-height: 1.4;
    text-align: center;
}

.erp-showcase {
    display: grid;
    grid-template-columns: minmax(300px, 0.82fr) minmax(0, 1.38fr);
    gap: clamp(36px, 4vw, 64px);
    align-items: start;
    max-width: 1360px;
    margin: 0 auto;
}

.erp-modules {
    display: flex;
    flex-direction: column;
}

.erp-modules-heading {
    margin-bottom: 18px;
}

.erp-section-label {
    color: #777777;
    font-family: var(--font-heading);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.erp-modules-heading p {
    color: #777777;
    font-size: 0.94rem;
}

.erp-module-list {
    display: grid;
    gap: 9px;
}

.erp-module {
    overflow: hidden;
    border: 1px solid #e6e6e8;
    border-radius: 8px;
    background: #f7f7f8;
    transition: var(--transition);
}

.erp-module.is-selected {
    border-color: rgba(152, 30, 40, 0.32);
    background: #fff8f8;
    box-shadow: 0 5px 18px rgba(48, 20, 22, 0.07);
}

.erp-module-toggle {
    display: flex;
    width: 100%;
    min-height: 58px;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    border: 0;
    background: transparent;
    color: #333333;
    cursor: pointer;
    font: inherit;
    text-align: left;
}

.erp-module-toggle:focus-visible,
.erp-contact-link:focus-visible,
.erp-demo-cta:focus-visible {
    outline: 3px solid #e5a0a6;
    outline-offset: 3px;
}

.erp-module-icon {
    display: grid;
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    place-items: center;
}

.erp-module-icon img {
    display: block;
    width: 40px;
    height: 40px;
    object-fit: contain;
    filter: brightness(0) opacity(0.72);
}

.erp-module-name {
    flex: 1;
    font-family: var(--font-heading);
    font-size: 0.99rem;
    font-weight: 700;
}

.erp-module-arrow {
    color: var(--primary-bg);
    font-size: 1.35rem;
    line-height: 1;
    transition: transform 0.2s ease;
}

.erp-module.is-selected .erp-module-arrow {
    transform: rotate(45deg);
}

.erp-module-details {
    padding: 0 16px 16px 76px;
    color: #666666;
    font-size: 0.9rem;
    line-height: 1.45;
}

.erp-demo-cta {
    display: block;
    margin-top: 20px;
    border-radius: 14px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.erp-demo-cta img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: inherit;
}

.erp-demo-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(67, 26, 31, 0.18);
}

.erp-contact-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    align-self: flex-start;
    margin-top: 22px;
    color: var(--primary-bg);
    font-family: var(--font-heading);
    font-size: 0.91rem;
    font-weight: 700;
}

.erp-contact-link span {
    font-size: 1.2rem;
    transition: transform 0.2s ease;
}

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

.erp-preview {
    display: flex;
    align-self: start;
    width: 100%;
    min-width: 0;
    flex-direction: column;
    justify-content: center;
    gap: 16px;
    overflow: hidden;
    padding: 22px;
    border: 1px solid #eee3e4;
    border-radius: 12px;
    background: #fffafa;
    box-shadow: 0 18px 42px rgba(67, 26, 31, 0.12);
}

.erp-preview-module-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 8px;
    background: #ffffff;
}

.erp-preview-module-frame img {
    display: block;
    position: absolute;
    top: 18px;
    left: 18px;
    width: calc(100% - 36px);
    height: calc(100% - 36px);
    max-width: none;
    object-fit: contain;
    opacity: 0;
    transform: scale(1.025);
    transition: opacity 350ms ease, transform 500ms ease;
}

.erp-preview-module-frame img.is-active {
    opacity: 1;
    transform: scale(1);
}

.erp-preview-module-frame img[hidden] {
    display: none;
}

@media (prefers-reduced-motion: reduce) {
    .erp-preview-module-frame img {
        transition: none;
        transform: none;
    }
}

.erp-preview figcaption {
    padding: 0 4px;
    color: #686868;
    font-size: 0.86rem;
    text-align: center;
}

/* Placeholder Page Container */
.placeholder-page {
    padding: 80px 0;
    min-height: 50vh;
}

.placeholder-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 48px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.placeholder-card h1 {
    font-size: 2.2rem;
    margin-bottom: 16px;
}

.placeholder-card p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 28px;
}

/* Clients Page */
.clients-page {
    padding: 76px 0 128px;
    background: #ffffff;
    color: #333333;
}

.clients-intro {
    max-width: 760px;
    margin: 0 auto 40px;
    text-align: center;
}

.clients-intro .hero-subtitle {
    color: #777777;
}

.clients-title {
    margin-bottom: 18px;
    color: #be272c;
    font-size: clamp(2.3rem, 5vw, 3.5rem);
}

.clients-description {
    max-width: 680px;
    margin: 0 auto;
    color: #666666;
    font-size: 1.1rem;
}

.clients-section {
    overflow: hidden;
    margin: 0 -24px;
    padding: 48px 0 56px;
    border: 1px solid #e1e2e5;
    border-radius: 24px;
    background: linear-gradient(145deg, #f7f7f8 0%, #eeeeef 100%);
}

.clients-section-heading {
    margin: 0 24px 34px;
    text-align: center;
}

.clients-section-heading .clients-eyebrow {
    margin-bottom: 8px;
    color: var(--primary-bg);
    font-size: 0.78rem;
    letter-spacing: 1.8px;
}

.clients-eyebrow {
    display: inline-block;
    margin-bottom: 8px;
    color: var(--primary-bg);
    font-family: var(--font-heading);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 1.8px;
    text-transform: uppercase;
}

.clients-section-heading h2 {
    color: #333333;
    font-size: clamp(1.65rem, 3vw, 2.3rem);
    font-weight: 700;
}

.clients-section-heading h2::after {
    display: block;
    width: 52px;
    height: 3px;
    margin: 14px auto 0;
    border-radius: 3px;
    background: var(--primary-bg);
    content: '';
}

.client-marquee {
    overflow: hidden;
    padding: 14px 0;
    cursor: grab;
    touch-action: pan-y;
    user-select: none;
}

.client-marquee.is-dragging,
.review-marquee.is-dragging {
    cursor: grabbing;
    scroll-behavior: auto;
}

.client-marquee-track {
    display: flex;
    width: max-content;
    will-change: transform;
}

.client-marquee-group {
    display: flex;
    flex: 0 0 auto;
    gap: 24px;
    width: max-content;
    padding: 0 24px 0 0;
    list-style: none;
}

.client-logo-card {
    display: flex;
    position: relative;
    width: 180px;
    height: 180px;
    flex: 0 0 180px;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow: visible;
    border: 1px solid #e4e5e7;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 10px 26px rgba(33, 37, 41, 0.09);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.client-logo-card > .client-logo-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    clip-path: circle(50% at 50% 50%);
    pointer-events: none;
    -webkit-user-drag: none;
}

.client-flag-badge {
    position: absolute;
    z-index: 1;
    top: -8px;
    right: -8px;
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    overflow: hidden;
    border: 3px solid #ffffff;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(33, 37, 41, 0.2);
}

.client-flag-badge img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 50%;
}

.client-logo-card:hover {
    transform: translateY(-5px);
    border-color: rgba(152, 30, 40, 0.28);
    box-shadow: 0 16px 32px rgba(33, 37, 41, 0.14);
}

.clients-empty-state {
    padding: 16px 24px;
    color: #666666;
    text-align: center;
}

.review-marquee {
    overflow: hidden;
    padding: 8px 0 12px;
    cursor: grab;
    touch-action: pan-y;
    user-select: none;
}

.review-marquee-track {
    display: flex;
    width: max-content;
    will-change: transform;
}

.review-marquee-group {
    display: flex;
    flex: 0 0 auto;
    gap: 16px;
    width: max-content;
    padding: 0 16px 0 0;
    list-style: none;
}

.clients-reviews-section .review-marquee {
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
}

.review-card {
    position: relative;
    display: flex;
    width: 270px;
    min-height: 180px;
    flex: 0 0 270px;
    flex-direction: column;
    padding: 20px 20px 16px;
    border: 1px solid #e6e6e8;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 8px 22px rgba(51, 7, 12, 0.12);
    color: #333333;
}

.review-quote-mark {
    height: 34px;
    color: var(--primary-bg);
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
}

.review-card blockquote {
    flex: 1;
    margin: 6px 0 14px;
    font-family: var(--font-body);
    font-size: 0.88rem;
    line-height: 1.55;
}

.review-attribution {
    display: flex;
    flex-direction: column;
    gap: 2px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding-top: 12px;
    font-size: 0.82rem;
}

.review-attribution strong {
    color: var(--primary-bg-dark);
    font-family: var(--font-heading);
    font-size: 0.84rem;
}

.client-review-content .review-attribution strong {
    color: #be272c;
}

.review-attribution span {
    color: #666666;
}

@media (prefers-reduced-motion: reduce) {
    .client-marquee-group[aria-hidden="true"] {
        display: none;
    }

    .review-marquee-group[aria-hidden="true"] {
        display: none;
    }

    .client-marquee,
    .review-marquee {
        overflow-x: auto;
        scrollbar-width: none;
        scroll-behavior: smooth;
    }

    .client-marquee::-webkit-scrollbar,
    .review-marquee::-webkit-scrollbar {
        display: none;
    }
}

/* Contact Page */
.contact-page {
    min-height: calc(100vh - 88px);
    min-height: calc(100svh - 88px);
    padding: 76px 0 160px;
    background: #ffffff;
    color: #333333;
}

.contact-intro {
    max-width: 760px;
    margin: 0 auto 48px;
    text-align: center;
}

.contact-title {
    margin-bottom: 16px;
    font-size: clamp(2.2rem, 5vw, 3.4rem);
}

.contact-intro p {
    max-width: 650px;
    margin: 0 auto;
    color: #666666;
    font-size: 1.08rem;
}

.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
    overflow: hidden;
    border: 1px solid #e6e6e8;
    border-radius: 20px;
    background: #f5f5f6;
    box-shadow: 0 18px 42px rgba(51, 7, 12, 0.18);
}

.contact-details {
    padding: 42px;
}

.contact-details-heading {
    margin-bottom: 30px;
}

.contact-eyebrow {
    display: inline-block;
    margin-bottom: 8px;
    color: var(--primary-bg);
    font-family: var(--font-heading);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.contact-details-heading h2,
.contact-map-promo h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

.contact-details-heading h2,
.contact-detail h3 {
    color: #be272c;
}

.contact-detail {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 22px;
}

.contact-detail-icon,
.contact-map-mark {
    display: inline-flex;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    align-items: center;
    justify-content: center;
    border: 1px solid #e6e6e8;
    border-radius: 12px;
    background: #ffffff;
    color: var(--primary-bg);
}

.contact-detail-icon svg,
.contact-map-mark svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
}

.contact-detail h3 {
    margin: 0 0 4px;
    font-family: var(--font-heading);
    font-size: 0.96rem;
    font-weight: 700;
}

.contact-detail p,
.contact-detail address {
    color: #666666;
    font-size: 0.94rem;
    font-style: normal;
    line-height: 1.6;
}

.contact-detail a:hover {
    color: var(--primary-bg);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.contact-whatsapp-button {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 20px;
    border: 1px solid #be272c;
    border-radius: 24px;
    background: #df0613;
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--transition);
}

.contact-whatsapp-button:hover {
    border-color: #a51f25;
    background: #a51f25;
    color: #ffffff;
}

.contact-whatsapp-button:focus-visible {
    outline: 3px solid rgba(191, 39, 45, 0.35);
    outline-offset: 3px;
}

.contact-whatsapp-button img {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.contact-map-promo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 42px;
    background: #df0613;
    color: #ffffff;
}

.contact-map-promo .contact-eyebrow {
    color: var(--accent-gold);
}

.contact-map-mark {
    width: 58px;
    height: 58px;
    flex-basis: 58px;
    margin-bottom: 24px;
    border-color: rgba(245, 207, 137, 0.35);
    background: rgba(245, 207, 137, 0.12);
    color: var(--accent-gold);
}

.contact-map-mark svg {
    width: 28px;
    height: 28px;
}

.contact-map-promo h2 {
    margin-bottom: 12px;
    color: #ffffff;
}

.contact-map-promo p {
    margin-bottom: 24px;
    color: var(--text-muted);
}

.contact-map-toggle {
    border: 0;
}

.contact-map-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 28px;
    padding: 16px;
    border: 1px solid #e6e6e8;
    border-radius: 18px;
    background: #f7f7f8;
    box-shadow: 0 14px 34px rgba(51, 7, 12, 0.12);
    scroll-margin-top: 100px;
}

.contact-map-section[hidden] {
    display: none;
}

.contact-map-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    padding: 4px 4px 8px;
}

.contact-map-toolbar p {
    margin: 0;
    color: #666666;
    font-size: 0.92rem;
}

.contact-map-toolbar strong {
    color: #333333;
}

.contact-map-close {
    padding: 10px 16px;
    border: 0;
    border-radius: 6px;
    background: var(--primary-bg);
    color: #ffffff;
    cursor: pointer;
    font: 600 0.82rem var(--font-heading);
}

.contact-map-close:hover,
.contact-map-close:focus-visible {
    background: var(--primary-bg-dark);
}

.contact-page .btn-outline {
    border-color: var(--primary-bg);
    color: var(--primary-bg);
}

.contact-page .btn-outline:hover {
    background: var(--primary-bg);
    color: #ffffff;
}

.contact-map-frame {
    position: relative;
    overflow: hidden;
    min-height: 420px;
    border: 1px solid #e1e1e3;
    border-radius: 12px;
    background: #f1f2f3;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.contact-map-frame.is-loading::before {
    position: absolute;
    z-index: 1;
    inset: 0;
    display: grid;
    place-items: center;
    color: #666666;
    content: "Cargando mapa...";
    font-size: 0.95rem;
}

.contact-map-frame.is-loading::after {
    position: absolute;
    z-index: 1;
    top: calc(50% - 44px);
    left: calc(50% - 15px);
    width: 30px;
    height: 30px;
    border: 3px solid #d7d7da;
    border-top-color: var(--primary-bg);
    border-radius: 50%;
    content: "";
    animation: contact-map-spin 0.8s linear infinite;
}

.contact-map-section iframe {
    display: block;
    width: 100%;
    height: min(65vh, 640px);
    min-height: 420px;
    border: 0;
}

@keyframes contact-map-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Site Footer */
.social-clouds {
    position: fixed;
    top: 50%;
    right: 18px;
    z-index: 1100;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transform: translateY(-50%);
}

.social-cloud {
    display: grid;
    width: 56px;
    height: 56px;
    place-items: center;
    border: 2px solid #ffffff;
    border-radius: 50%;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.24);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.social-cloud[href]:hover {
    transform: translateX(-4px) scale(1.06);
    box-shadow: 0 7px 18px rgba(0, 0, 0, 0.3);
}

.social-cloud:not([href]) {
    opacity: 0.78;
}

.social-cloud:focus-visible {
    outline: 3px solid #ffffff;
    outline-offset: 3px;
}

.social-cloud-whatsapp {
    background: #20b866;
}

.social-cloud-facebook {
    background: #1877f2;
}

.social-cloud-linkedin {
    background: #0a66c2;
}

.social-cloud img {
    display: block;
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.site-footer {
    --text-muted: #ffffff;
    background-color: var(--footer-bg);
    color: var(--text-white);
    border-top: 1px solid #e5e5e5;
    margin-top: 32px;
}

html.page-home .site-footer {
    margin-top: 0;
    border-top-color: transparent;
}

html.page-erp .site-footer {
    margin-top: 0;
    border-top-color: transparent;
}

.footer-top {
    padding: 60px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 40px;
}

.footer-logo img {
    height: 54px;
    width: auto;
    margin-bottom: 16px;
}

.footer-description {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.footer-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #ffffff;
    position: relative;
    padding-bottom: 8px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--accent-light);
}

.footer-links,
.footer-contact {
    list-style: none;
}

.footer-links li,
.footer-contact li {
    margin-bottom: 10px;
    font-size: 0.93rem;
    color: var(--text-muted);
}

.footer-links a:hover {
    color: #ffffff;
    padding-left: 4px;
}

.footer-extra-services summary {
    width: fit-content;
    margin-bottom: 10px;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.93rem;
    list-style: none;
}

.footer-extra-services summary::-webkit-details-marker {
    display: none;
}

.footer-extra-services summary::after {
    display: inline-block;
    width: 7px;
    height: 7px;
    margin-left: 8px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    content: "";
    transform: rotate(45deg) translateY(-2px);
    transition: transform 180ms ease;
}

.footer-extra-services[open] summary::after {
    transform: rotate(225deg) translate(-1px, -1px);
}

.footer-extra-services summary:hover {
    color: #ffffff;
}

.footer-extra-services summary:focus-visible {
    border-radius: 2px;
    outline: 2px solid #ffffff;
    outline-offset: 3px;
}

.footer-extra-services .footer-links {
    padding-left: 12px;
}

.footer-contact li strong {
    color: #ffffff;
}

.footer-bottom {
    background-color: var(--footer-bg);
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom-content {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-size: 0.88rem;
    color: var(--text-muted);
}

.footer-bottom-content p {
    margin: 0;
}

.footer-legal {
    display: flex;
    gap: 12px;
    align-items: center;
}

.footer-legal .divider {
    opacity: 0.4;
}

.footer-legal a:hover {
    color: #ffffff;
}

/* Responsive Media Queries */
@media (max-width: 992px) {
    .about-intro {
        gap: 40px;
    }

    .client-review-card {
        width: 560px;
        flex-basis: 560px;
    }

    .services-intro {
        gap: 24px;
    }

    .services-showcase {
        grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
        gap: 24px;
    }

    .erp-intro {
        gap: 24px;
    }

    .erp-showcase {
        grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
        gap: 32px;
    }

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

    .hero-title {
        font-size: 2.3rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px 0;
    }

    .stat-item:nth-child(2)::after {
        display: none;
    }

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

@media (max-width: 768px) {
    .site-footer {
        margin-top: 24px;
    }

    .site-header {
        padding: 10px 0;
    }

    .brand-logo img {
        height: 64px;
    }

    .social-clouds {
        position: static;
        justify-content: center;
        flex-direction: row;
        gap: 12px;
        margin: 0 auto 22px;
        padding: 0 16px;
        transform: none;
    }

    .social-cloud {
        width: 48px;
        height: 48px;
    }

    .social-cloud img {
        width: 25px;
        height: 25px;
    }

    .about-page {
        padding: 52px 0 64px;
    }

    .about-intro {
        grid-template-columns: 1fr;
        gap: 36px;
        margin-bottom: 64px;
    }

    .about-video-frame {
        width: min(72vw, 330px);
    }

    .about-copy {
        margin: 0 auto;
    }

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

    .awards-section {
        margin: 0 -16px;
        padding: 44px 16px 48px;
    }

    .awards-grid {
        gap: 24px;
    }

    .award-card img {
        width: min(100%, 170px);
    }

    .clients-reviews-section {
        margin-top: 48px;
    }

    .client-review-card {
        width: min(82vw, 540px);
        min-height: 230px;
        flex-basis: min(82vw, 540px);
        gap: 20px;
        padding: 22px;
    }

    .client-review-logo {
        width: 130px;
        height: 160px;
        flex-basis: 130px;
    }

    .services-page {
        padding: 32px 0 64px;
    }

    .erp-page {
        padding: 52px 0 64px;
    }

    .services-intro {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 20px;
    }

    .services-lead {
        max-width: 390px;
        margin: 0 auto;
        padding-left: 18px;
    }

    .erp-intro {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 32px;
    }

    .erp-lead {
        max-width: 440px;
        margin: 0 auto;
        padding-left: 18px;
    }

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

    .erp-showcase {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .services-visual img {
        height: 320px;
        min-height: 320px;
    }

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

    .contact-page {
        padding: 56px 0 128px;
    }

    .contact-intro {
        margin-bottom: 36px;
    }

    .contact-layout {
        grid-template-columns: 1fr;
    }

    .contact-details,
    .contact-map-promo {
        padding: 30px 26px;
    }

    .contact-map-promo {
        border-top: 1px solid var(--card-border);
    }

    .contact-map-section iframe {
        height: auto;
    }

    .contact-map-toolbar {
        width: 100%;
        max-width: 480px;
        align-self: center;
        flex-wrap: wrap;
        gap: 10px 14px;
        padding: 14px 16px;
        text-align: center;
    }

    .contact-map-section iframe {
        height: 60vh;
        min-height: 360px;
    }

    .contact-map-section {
        padding: 12px;
        border-radius: 14px;
    }

    .contact-map-frame {
        min-height: 360px;
    }

    .clients-page {
        padding: 56px 0 96px;
    }

    .clients-intro {
        margin-bottom: 28px;
    }

    .clients-section {
        margin-right: -16px;
        margin-left: -16px;
        padding: 36px 0 40px;
    }

    .client-logo-card {
        width: 160px;
        height: 160px;
        flex-basis: 160px;
        padding: 18px;
    }

    .client-marquee-group {
        gap: 20px;
        padding-right: 20px;
    }

    .clients-section-heading {
        margin-bottom: 26px;
    }

    .review-card {
        width: 245px;
        min-height: 176px;
        flex-basis: 245px;
        padding: 20px 18px 16px;
    }

    .nav-toggle {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 86px;
        left: 0;
        width: 100%;
        background-color:#be272c;
        flex-direction: column;
        padding: 24px;
        box-shadow: 0 10px 20px rgba(0,0,0,0.3);
        display: none;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-list {
        flex-direction: column;
        width: 100%;
        gap: 18px;
        text-align: center;
    }

    .nav-link {
        font-size: 1.2rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .stat-item::after {
        display: none !important;
    }
}

@media (max-width: 700px) {
    .awards-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .services-more-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .services-more-card,
    .services-more-card:nth-child(4),
    .services-more-card:nth-child(5) {
        grid-column: auto;
    }

    .services-more-card:nth-child(5) {
        grid-column: 1 / -1;
    }

    .services-more-card {
        min-height: 180px;
        padding: 18px;
    }
}

@media (max-width: 520px) {
    .erp-preview {
        padding: 14px;
    }

    .erp-preview-module-frame img {
        top: 10px;
        left: 10px;
        width: calc(100% - 20px);
        height: calc(100% - 20px);
    }

    .erp-module-details {
        padding-right: 18px;
        padding-left: 76px;
    }

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

    .about-commitment-grid {
        grid-template-columns: 1fr;
        max-width: 360px;
    }

    .about-commitment-section {
        margin-bottom: 56px;
    }

    .award-card img {
        width: 190px;
    }

    .client-review-card {
        width: 84vw;
        min-height: 0;
        flex-basis: 84vw;
        flex-direction: column;
        gap: 16px;
        padding: 20px;
    }

    .client-review-logo {
        display: flex;
        width: 140px;
        height: 140px;
        align-items: center;
        flex: 0 0 140px;
        justify-content: center;
        margin: 0 auto;
        overflow: hidden;
        border: 1px solid #d8d0d0;
        border-radius: 10px;
        background: #f7f5f5;
    }

    .client-review-logo img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        transform: scale(1.28);
    }

    .client-review-content {
        min-height: 195px;
        width: 100%;
    }

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

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

    .services-more-card,
    .services-more-card:nth-child(5) {
        grid-column: auto;
    }

    .service-card {
        min-height: 0;
    }

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

    .footer-bottom-content {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}

/* Home carousel */
.home-hero {
    position: relative;
    display: grid;
    align-items: center;
    min-height: max(560px, calc(100vh - 40px));
    min-height: max(560px, calc(100svh - 40px));
    overflow: hidden;
    isolation: isolate;
    background: #29303a;
}

.home-carousel,
.home-slide {
    position: absolute;
    inset: 0;
}

.home-carousel {
    touch-action: pan-y;
    -webkit-user-select: none;
    user-select: none;
}

.home-carousel:focus-visible {
    outline: 3px solid #ffffff;
    outline-offset: -6px;
}

.home-slide {
    z-index: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    background: #29303a;
    transition: opacity 800ms ease, visibility 800ms ease;
}

.home-slide.is-active {
    z-index: 1;
    opacity: 1;
    visibility: visible;
}

.home-slide::after {
    position: absolute;
    z-index: 2;
    inset: 0;
    content: "";
    background: rgba(9, 15, 24, 0.26);
}

.home-slide::before {
    position: absolute;
    z-index: 0;
    inset: -16px;
    background-position: center;
    background-size: cover;
    content: "";
    filter: blur(14px);
    opacity: 0.4;
    transform: scale(1.04);
}

.home-slide:nth-child(1)::before {
    background-image: url("../images/home/slide-1.jpg");
}

.home-slide:nth-child(2)::before {
    background-image: url("../images/home/slide-2.jpg");
}

.home-slide:nth-child(3)::before {
    background-image: url("../images/home/slide-3.jpg");
}

.home-slide-image {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 42%;
    -webkit-user-drag: none;
}

.home-slide-content {
    position: absolute;
    z-index: 3;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 24px 205px;
    color: #ffffff;
    cursor: default;
    text-align: center;
    transform: translateY(12px);
    transition: transform 800ms ease;
}

.home-slide.is-active .home-slide-content {
    transform: translateY(-40px);
}

.home-slide-kicker,
.home-slide-content h1,
.home-slide-content h2 {
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 400;
}

.home-slide-kicker {
    margin-bottom: 2px;
    font-size: clamp(1.8rem, 4vw, 3.25rem);
    line-height: 1.1;
}

.home-slide-content h1,
.home-slide-content h2 {
    max-width: 1100px;
    font-size: clamp(2rem, 4.5vw, 3.5rem);
    line-height: 1.15;
}

.home-slide-content h2 {
    font-size: clamp(2.35rem, 5vw, 3.7rem);
}

.home-slide-description {
    max-width: 780px;
    margin-top: 14px;
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(0.85rem, 1.4vw, 1rem);
    font-weight: 700;
    line-height: 1.5;
}

.home-carousel-dots {
    position: absolute;
    z-index: 3;
    right: 0;
    bottom: 222px;
    left: 0;
    display: flex;
    justify-content: center;
    gap: 9px;
}

.home-carousel-dot {
    width: 11px;
    height: 11px;
    padding: 0;
    border: 2px solid #ffffff;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
}

.home-carousel-dot.is-active {
    background: #ffffff;
}

.home-carousel-dot:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 4px;
}

.home-highlights {
    position: absolute;
    z-index: 4;
    right: 24px;
    bottom: 86px;
    left: 24px;
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(220px, 1fr);
    width: min(1040px, calc(100% - 48px));
    margin: 0 auto;
    overflow: hidden;
    border-radius: 11px;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
}

.home-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: center;
    padding: 15px 10px;
}

.home-stat {
    position: relative;
    display: flex;
    min-height: 70px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 8px;
    text-align: center;
}

.home-stat:not(:last-child)::after {
    position: absolute;
    top: 12%;
    right: 0;
    width: 1px;
    height: 76%;
    background: #c9c9c9;
    content: "";
}

.home-stat strong {
    color: #be272c;
    font-family: var(--font-heading);
    font-size: clamp(1.75rem, 3vw, 2.35rem);
    font-weight: 800;
    line-height: 1;
}

.home-stat span {
    margin-top: 5px;
    color: #be272c;
    font-size: clamp(0.58rem, 0.9vw, 0.73rem);
    font-weight: 600;
    line-height: 1.25;
}

.home-schedule {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 265px;
    padding: 12px 14px;
    background: #f0000b;
    color: #ffffff;
    text-align: center;
}

.home-schedule > div {
    display: flex;
    width: 100%;
    flex-direction: column;
    align-items: center;
}

.home-schedule-icon {
    margin: 2px 0 4px;
}

.home-schedule-label,
.home-schedule strong {
    display: block;
}

.home-schedule-label {
    width: 100%;
    margin-bottom: 2px;
    padding: 3px 8px;
    border-radius: 4px;
    background: #ffffff;
    color: #e0000b;
    font-size: 0.76rem;
    font-weight: 800;
    line-height: 1.25;
}

.home-schedule strong {
    font-size: 0.96rem;
    font-weight: 800;
    line-height: 1.2;
}

@media (max-width: 700px) {
    .home-hero {
        min-height: max(620px, calc(100vh - 40px));
        min-height: max(620px, calc(100svh - 40px));
    }

    .home-slide-content {
        padding: 34px 20px 310px;
    }

    .home-slide-content h1,
    .home-slide-content h2 {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    .home-slide-kicker {
        font-size: clamp(1.65rem, 7vw, 2.5rem);
    }

    .home-slide::before {
        opacity: 0.55;
    }

    .home-slide-image {
        object-fit: cover;
        object-position: center;
    }

    .home-slide:nth-child(1) .home-slide-image {
        object-position: center 36%;
    }

    .home-slide:nth-child(2) .home-slide-image {
        object-position: center;
    }

    .home-slide:nth-child(3) .home-slide-image {
        object-position: center;
    }

    .home-carousel-dots {
        bottom: 334px;
    }

    .home-highlights {
        right: 14px;
        bottom: 66px;
        left: 14px;
        grid-template-columns: 1fr;
        width: auto;
    }

    .home-stats {
        padding: 12px 5px 10px;
    }

    .home-stat {
        min-height: 62px;
        padding: 0 4px;
    }

    .home-stat strong {
        font-size: clamp(1.6rem, 7vw, 2.1rem);
    }

    .home-stat span {
        font-size: clamp(0.53rem, 2.1vw, 0.7rem);
    }

    .home-schedule {
        min-width: 0;
        min-height: 78px;
        border-radius: 0;
    }
}

@media (max-width: 380px) {
    .home-hero {
        min-height: max(780px, calc(100vh - 40px));
        min-height: max(780px, calc(100svh - 40px));
    }

    .home-stat span {
        font-size: 0.52rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-slide,
    .home-slide-content,
    .services-more-panel,
    .services-more-card,
    .services-visual img {
        transition: none;
    }

    .services-visual img {
        transform: none;
    }

    .contact-map-frame.is-loading::after {
        animation: none;
    }
}

.review-marquee.is-static {
    overflow: visible;
    cursor: default;
    touch-action: auto;
    user-select: auto;
}

.review-marquee.is-static .review-marquee-track {
    display: block;
    width: 100%;
    transform: none;
    will-change: auto;
}

.review-marquee.is-static .review-marquee-group {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    width: 100%;
    padding: 0;
}

.review-marquee.is-static .client-review-card {
    width: 100%;
    min-height: 270px;
    flex: initial;
}

@media (max-width: 768px) {
    .review-marquee.is-static .review-marquee-group {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .review-marquee.is-static .client-review-card {
        min-height: 0;
    }
}
