/* =========================================================
   VIDIA – style.css
   ========================================================= */

:root {
    --blue: #0756d8;
    --blue-dark: #003fa8;
    --text: #333;
    --title: #1a1a1a;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

/* Fondo gris tipo mesa */
body {
    background: #f2f2f2;
    margin: 0;
    font-family: 'Montserrat', sans-serif;
}


/* ---------- MENÚ SUPERIOR ---------- */
.top-menu {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.96);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
    padding: 14px 0;
    z-index: 1000;
    border-bottom: 1px solid #e0e0e0;
}

/* Línea azul industrial debajo del menú */
.top-menu::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--blue);
}

.menu-content {
    max-width: 1100px;
    margin: auto;
    display: flex;
    align-items: center;
    gap: 28px;
    padding: 0 30px;
}

.logo {
    height: 70px;
    margin-right: 10px;
}

nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Separador vertical entre logo y enlaces */
nav::before {
    content: "";
    width: 1px;
    height: 40px;
    background: #d0d0d0;
    margin-right: 8px;
}

nav a,
nav .nav-item-disabled {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    text-decoration: none;
    color: var(--text);
    font-weight: 600;
    font-size: 15px;
    padding: 6px 12px;
    border-radius: 6px;
    transition: color 0.25s ease;
}

nav .nav-item-disabled {
    cursor: default;
}

nav a::before,
nav a::after {
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: inherit;
    content: "";
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
}

nav a::before {
    background: conic-gradient(
        from 30deg at 50% 50%,
        rgba(0, 77, 220, 0.2) 0 25%,
        rgba(0, 42, 155, 0.14) 25% 50%,
        rgba(25, 118, 243, 0.23) 50% 75%,
        rgba(0, 57, 185, 0.17) 75% 100%
    );
    background-size: 200% 200%;
    transform: scale(1.6) rotate(-12deg);
}

nav a::after {
    background: linear-gradient(135deg, rgba(25, 118, 243, 0.18), rgba(0, 49, 158, 0.14));
    clip-path: polygon(0 0, 100% 0, 52% 52%, 0 100%);
    transform: scale(1.25) rotate(-8deg);
}

nav a:hover,
nav a:focus-visible {
    color: var(--blue);
}

nav a:hover::before,
nav a:focus-visible::before {
    opacity: 1;
    animation: menu-logo-facets 2.8s ease-in-out infinite alternate;
}

nav a:hover::after,
nav a:focus-visible::after {
    opacity: 1;
    animation: menu-logo-fold 2.8s ease-in-out infinite alternate;
}

@keyframes menu-logo-facets {
    from {
        background-position: 0% 0%;
        transform: scale(1.6) rotate(-12deg);
    }

    to {
        background-position: 100% 100%;
        transform: scale(2) rotate(18deg);
    }
}

@keyframes menu-logo-fold {
    from {
        clip-path: polygon(0 0, 100% 0, 52% 52%, 0 100%);
        transform: scale(1.25) rotate(-8deg);
    }

    to {
        clip-path: polygon(0 0, 100% 0, 76% 34%, 0 100%);
        transform: scale(1.65) rotate(12deg);
    }
}

nav a:focus-visible { outline: 2px solid var(--blue); }

@media (prefers-reduced-motion: reduce) {
    nav a::before,
    nav a::after {
        animation: none !important;
    }
}

/* Botón de tres rayitas (solo visible en móvil) */
.menu-toggle {
    display: none;
    margin-left: auto;
    background: none;
    border: 0;
    font-size: 28px;
    color: var(--text);
    cursor: pointer;
}

.home-hero {
    margin: 0 0 42px;
    padding: 104px 24px 24px;
    background: #171819;
    scroll-margin-top: 0;
}

.home-hero-visual {
    position: relative;
    width: min(100%, 1500px);
    margin: 0 auto;
    isolation: isolate;
}

.home-hero-scene {
    position: relative;
    z-index: 1;
    overflow: hidden;
    isolation: isolate;
}

.home-hero-scene::after {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(90deg, #171819 0%, transparent 2%, transparent 98%, #171819 100%),
        linear-gradient(0deg, #171819 0%, transparent 2%, transparent 98%, #171819 100%);
    content: "";
    pointer-events: none;
}

.home-hero-image {
    display: block;
    width: 100%;
    height: auto;
    filter: brightness(1.25);
}

.home-hero-highlights {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
}

.home-hero-area-light {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    opacity: 1;
    pointer-events: none;
}

.home-hero-area {
    opacity: 0;
    transition: opacity 520ms ease-in-out;
}

.home-hero-area.is-visible {
    opacity: 1;
}

.home-hero-area-hit {
    fill: transparent;
    pointer-events: fill;
    cursor: pointer;
}

.home-hero-area-hit:focus {
    outline: none;
}

.home-hero-area-hit:focus-visible {
    fill: rgba(35, 122, 255, 0.12);
    stroke: #237aff;
    stroke-width: 3px;
    outline: none;
}

@media (prefers-reduced-motion: reduce) {
    .home-hero-area {
        transition: none;
    }

    .home-hero-panel,
    .home-hero-panel-divider,
    .home-hero-panel-content {
        transition: none;
    }
}

.home-hero-controls {
    position: absolute;
    top: 85%;
    left: 34.85%;
    z-index: 2;
    width: 33.3%;
    aspect-ratio: 3 / 1;
}

.home-hero-button-image {
    display: block;
    width: 100%;
    height: auto;
    opacity: 0.82;
    pointer-events: none;
}

.home-hero-hotspots {
    position: absolute;
    inset: 0;
    z-index: 3;
}

.home-hero-hotspot {
    position: absolute;
    top: 30.2%;
    height: 38%;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 12px;
    background: transparent;
    cursor: pointer;
    appearance: none;
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease, background-color 160ms ease;
}

.home-hero-hotspot:nth-child(1) { left: 5%; width: 12.5%; }
.home-hero-hotspot:nth-child(2) { left: 18.2%; width: 12.2%; }
.home-hero-hotspot:nth-child(3) { left: 31.1%; width: 12.2%; }
.home-hero-hotspot:nth-child(4) { left: 44%; width: 12.2%; }
.home-hero-hotspot:nth-child(5) { left: 56.9%; width: 12.2%; }
.home-hero-hotspot:nth-child(6) { left: 69.8%; width: 12.2%; }
.home-hero-hotspot:nth-child(7) { left: 82.6%; width: 12.3%; }

.home-hero-hotspot:hover,
.home-hero-hotspot:focus-visible,
.home-hero-hotspot[aria-expanded="true"] {
    border-color: rgba(35, 122, 255, 0.95);
    background: transparent;
    box-shadow: inset 0 0 0 1px rgba(99, 174, 255, 0.4), 0 0 10px rgba(0, 95, 255, 0.45);
    outline: none;
}

.home-hero-hotspot[aria-expanded="true"] {
    transform: translateY(2px) scale(0.96);
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.45), 0 0 12px rgba(0, 95, 255, 0.65);
}

.home-hero-hotspot:active {
    transform: translateY(3px) scale(0.94);
}

.home-hero-panel {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 650ms cubic-bezier(0.22, 1, 0.36, 1);
}

.home-hero-panel.is-open {
    grid-template-rows: 1fr;
}

.home-hero-panel-inner {
    min-height: 0;
    overflow: hidden;
}

.home-hero-panel-divider {
    height: 2px;
    background: linear-gradient(90deg, rgba(35, 122, 255, 0.35), #237aff);
    transform: scaleX(0);
    transform-origin: right center;
    transition: transform 620ms cubic-bezier(0.22, 1, 0.36, 1) 180ms;
}

.home-hero-panel.is-open .home-hero-panel-divider {
    transform: scaleX(1);
}

.home-hero-panel-content {
    min-height: 270px;
    padding: 28px clamp(20px, 5vw, 72px) 40px;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 260ms ease, transform 360ms ease;
}

.home-hero-panel.is-open .home-hero-panel-content {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 650ms;
}

.home-hero-panel-content h2 {
    margin: 0;
    color: #fff;
    font-family: 'Michroma', 'Montserrat', sans-serif;
    font-size: clamp(18px, 2vw, 26px);
    font-weight: 400;
}

.home-hero-panel-body {
    min-height: 180px;
}

.home-hero-content {
    display: flex;
    min-height: clamp(100px, 9.5vw, 136px);
    align-items: center;
    justify-content: center;
}

.home-hero h1 {
    width: fit-content;
    max-width: 100%;
    margin: 0;
    color: #fff;
    font-family: 'Michroma', 'Montserrat', sans-serif;
    font-size: clamp(16px, 1.9vw, 25px);
    font-weight: 400;
    letter-spacing: 0.055em;
    line-height: 1.25;
    text-align: center;
    text-transform: uppercase;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
    padding: 0;
    animation: home-title-intro 2.8s ease-out both;
}

.home-hero h1::after {
    display: block;
    width: 0;
    height: 3px;
    margin: 3px auto 0;
    background: #001b4d;
    box-shadow: 0 0 6px rgba(0, 27, 77, 0.35);
    content: "";
    animation: home-title-underline 700ms ease-out 2.8s forwards;
}

@keyframes home-title-intro {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes home-title-underline {
    to {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-hero h1,
    .home-hero-caption-text {
        animation: none;
        clip-path: none;
    }

    .home-hero h1::after {
        width: 100%;
        animation: none;
    }
}

.home-hero-caption {
    padding: 18px clamp(20px, 4vw, 56px);
    background: #171819;
    text-align: center;
}

.home-hero-caption p {
    max-width: 100%;
    margin: 0 auto;
    color: #fff;
    font-family: 'Michroma', 'Montserrat', sans-serif;
    font-size: clamp(10px, 1.05vw, 13px);
    letter-spacing: 0.025em;
    line-height: 1.8;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
    white-space: nowrap;
}

.home-hero-caption-text {
    display: inline-block;
    clip-path: inset(0 100% 0 0);
    animation: home-subtitle-typing 4s steps(104, end) 1.2s both;
}

@keyframes home-subtitle-typing {
    to {
        clip-path: inset(0);
    }
}

/* ---------- HOJA CENTRADA ---------- */
.page-wrapper {
    background: #ffffff;
    max-width: 1000px;
    margin: 0 auto 60px;
    padding: 50px 70px;
    box-shadow: 0 25px 45px rgba(0,0,0,0.12);
    border-radius: 12px;
    border: 1px solid #f0f0f0;
}

.inner-page {
    margin-top: 130px;
}

.page-title {
    margin: 0 0 14px;
    font-size: clamp(28px, 4vw, 42px);
}


/* ---------- TEXTO GENERAL ---------- */
h1, h2, h3 { color: var(--title); }

p {
    color: var(--text);
    line-height: 1.6;
}

section {
    margin-bottom: 40px;
    scroll-margin-top: 110px; /* para que el menú fijo no tape los títulos */
}

/* Título de sección con la línea azul */
section > h2 {
    font-size: clamp(21px, 2.4vw, 26px);
    margin: 0 0 14px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--blue);
    display: inline-block;
}

.section-intro { max-width: 640px; }

.welcome-section {
    max-width: 1300px;
    margin: 0 auto 28px;
    padding: 28px 32px;
    background: #ffffff;
    border-left: 4px solid #605b74;
    border-radius: 0 10px 10px 0;
}

.welcome-section > h2 {
    display: block;
    margin-bottom: 20px;
    font-size: clamp(22px, 2.4vw, 26px);
}

.welcome-section p {
    color: #444;
    margin: 0 0 14px;
}

.welcome-section .welcome-highlight {
    margin: 22px 0 0;
    padding-top: 16px;
    border-top: 1px solid #d9e0e5;
    color: var(--blue);
}

.solutions-carousel {
    max-width: 1300px;
    margin: 0 auto 28px;
    overflow: hidden;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.1);
}

.solutions-brands {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: clamp(6px, 1vw, 12px);
    padding: clamp(10px, 1.5vw, 18px) clamp(12px, 2vw, 24px);
    border-top: 5mm solid #e8e8e8;
    border-bottom: 5mm solid #e8e8e8;
}

.solutions-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: clamp(64px, 7vw, 84px);
    padding: clamp(6px, 1vw, 12px);
    border: 1px solid #e3e3e3;
    border-radius: 8px;
    background: #fff;
    opacity: 0.5;
    cursor: pointer;
    transition: opacity 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.solutions-brand img {
    display: block;
    width: 100%;
    max-width: 120px;
    height: 42px;
    object-fit: contain;
}

.solutions-brand:hover,
.solutions-brand.active {
    opacity: 1;
}

.solutions-brand.active {
    border-color: var(--blue);
    box-shadow: 0 0 0 2px rgba(2, 60, 102, 0.12);
}

.solutions-brand:focus-visible,
.solutions-arrow:focus-visible {
    outline: 2px solid var(--blue);
    outline-offset: 3px;
}

.solutions-gallery {
    display: grid;
    grid-template-columns: clamp(36px, 4vw, 48px) minmax(0, 1fr) clamp(36px, 4vw, 48px);
    align-items: center;
    gap: clamp(6px, 1vw, 12px);
    margin: clamp(12px, 2vw, 20px) clamp(12px, 2vw, 24px) 0;
}

.solutions-photo-frame {
    min-width: 0;
}

.solutions-carousel img.solutions-gallery-image {
    display: block;
    width: 100%;
    max-width: 850px;
    height: clamp(160px, 28vw, 320px);
    margin: 0 auto;
    object-fit: contain;
}

#solutions-image[hidden] {
    display: none;
}

.solutions-arrow {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid #d5dce1;
    border-radius: 50%;
    background: #fff;
    color: var(--blue);
    font: inherit;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.solutions-arrow:hover {
    background: var(--blue);
    color: #fff;
}

.solutions-photo-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: clamp(160px, 28vw, 320px);
    padding: clamp(12px, 2vw, 20px);
    color: #555;
    text-align: center;
    border: 1px dashed #c8d0d6;
    border-radius: 8px;
    background: #f8fafb;
}

.solutions-photo-placeholder[hidden] {
    display: none;
}

.solutions-photo-count {
    margin: 10px 0 0;
    color: #666;
    font-size: 14px;
    text-align: center;
}

.solutions-caption {
    padding: clamp(16px, 2.2vw, 22px) clamp(16px, 3vw, 32px) clamp(18px, 2.5vw, 26px);
}

.solutions-title {
    margin: 0 0 8px;
    font-size: clamp(21px, 2.4vw, 26px);
    line-height: 1.2;
}

.solutions-text {
    margin: 0;
    color: #444;
}

.solutions-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

footer {
    text-align: center;
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid #eee;
    color: #666;
}


/* ---------- HERO ---------- */
.hero-split {
    display: flex;
    gap: clamp(20px, 3vw, 40px);
    align-items: stretch;
    justify-content: space-between;
    margin-bottom: 50px;
    padding: clamp(18px, 3vw, 30px);
    background: #f7f7f7;
    border-radius: 12px;
}

.hero-left {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.hero-left h1,
.hero-left h2 {
    font-size: 24px;
    line-height: 1.2;
    margin: 0 0 12px;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.hero-left p {
    font-size: 16px;
    color: #444;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.hero-right {
    flex: 1;
    display: flex;
    justify-content: center;
}

.hero-right img {
    width: 100%;
    max-width: 420px;
    height: 380px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.hero-right img.is-transitioning,
.hero-left h1.is-transitioning,
.hero-left h2.is-transitioning,
.hero-left p.is-transitioning {
    opacity: 0;
    transform: translateY(8px);
}

.hero-right img.is-transitioning {
    transform: scale(0.98);
}

@media (prefers-reduced-motion: reduce) {
    .hero-right img,
    .hero-left h1,
    .hero-left h2,
    .hero-left p,
    .solutions-carousel > img,
    .solutions-title,
    .solutions-text {
        transition: none;
    }
}

/* Acciones del carrusel */
.hero-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: auto;
}

.hero-btn {
    display: inline-block;
    margin-top: 24px;
    padding: 12px clamp(18px, 2.2vw, 28px);
    background: var(--blue);
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    border-radius: 6px;
    transition: background 0.25s ease, transform 0.25s ease;
}

.hero-dots {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-top: 24px;
}

.hero-dot {
    width: 11px;
    height: 11px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #b8b8b8;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.hero-dot.active,
.hero-dot:hover,
.hero-dot:focus-visible {
    background: #111;
}

.hero-dot:focus-visible {
    outline: 2px solid var(--blue);
    outline-offset: 3px;
}

.hero-dot.active { transform: scale(1.15); }

.hero-btn:hover {
    background: var(--blue-dark);
    transform: translateY(-2px);
}


/* ---------- REJILLA Y TARJETAS ---------- */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
    gap: clamp(14px, 2vw, 24px);
    margin-top: 24px;
}

/* Tarjetas de máquinas */
.card {
    border: 1px solid #e3e3e3;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    display: flex;
    flex-direction: column;
}

.card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    background: #e9edf1;
    display: block;
}

.card-body { padding: clamp(14px, 1.8vw, 18px) clamp(14px, 2vw, 20px) clamp(16px, 2.2vw, 22px); }
.card-body h3 { margin: 0 0 8px; font-size: clamp(17px, 1.8vw, 19px); }
.card-body p { margin: 0 0 12px; font-size: clamp(14px, 1.5vw, 15px); }

.specs {
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 14px;
    color: #444;
}

.specs li {
    padding: 6px 0;
    border-top: 1px solid #eee;
}

.specs strong { color: var(--blue); }

/* Tarjetas de servicios */
.service {
    padding: clamp(16px, 2vw, 20px) clamp(16px, 2.2vw, 22px);
    border-left: 4px solid var(--blue);
    background: #f7f7f7;
    border-radius: 0 8px 8px 0;
}

.service h3 { margin: 0 0 6px; font-size: clamp(16px, 1.7vw, 18px); }
.service p { margin: 0; font-size: clamp(14px, 1.5vw, 15px); }


/* ---------- CONTACTO ---------- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(16px, 3vw, 32px);
    margin-top: 24px;
}

.contact-data p { margin: 0 0 10px; }

.contact-data a {
    color: var(--blue);
    font-weight: 600;
    text-decoration: none;
}

.btn-whatsapp {
    margin-top: 8px;
    background: #1f9d55;
    color: #fff !important;
}

.btn-whatsapp:hover { background: #17803f; }

form label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    margin: 0 0 4px;
    color: var(--text);
}

form input,
form textarea {
    width: 100%;
    padding: 10px 12px;
    margin-bottom: 14px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font: inherit;
    font-size: 15px;
}

form input:focus,
form textarea:focus {
    outline: 2px solid var(--blue);
    border-color: var(--blue);
}

form button {
    padding: 12px 24px;
    background: var(--blue);
    color: #fff;
    border: 0;
    border-radius: 6px;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.25s ease;
}

form button:hover { background: var(--blue-dark); }


/* ---------- TABLET Y PANTALLAS COMPACTAS ---------- */
@media (max-width: 960px) {
    .menu-content {
        padding: 0 20px;
        gap: 18px;
    }

    .logo {
        height: 58px;
    }

    nav {
        gap: 8px;
    }

    nav a,
    nav .nav-item-disabled {
        padding: 6px 8px;
        font-size: 14px;
    }

    .page-wrapper {
        margin: 0 16px 40px;
        padding: 36px clamp(24px, 5vw, 48px);
    }

    .inner-page {
        margin-top: 120px;
    }

    .welcome-section {
        margin: 0 16px 24px;
        padding: 24px clamp(20px, 4vw, 32px);
    }

    .solutions-brands {
        display: flex;
        flex-wrap: nowrap;
        justify-content: flex-start;
        gap: 8px;
        overflow-x: auto;
        overscroll-behavior-x: contain;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        border-top-width: 3px;
        border-bottom-width: 3px;
    }

    .solutions-brand {
        flex: 0 0 120px;
        width: 120px;
        height: 72px;
        min-height: 72px;
        scroll-snap-align: start;
    }

    .solutions-brand img {
        width: 100%;
        height: 44px;
    }

    .hero-split {
        flex-direction: column;
        padding: 24px;
        gap: 20px;
    }

    .hero-left {
        min-height: 0;
    }

    .hero-right img {
        width: 100%;
        max-width: 100%;
        height: auto;
        max-height: 420px;
        aspect-ratio: 4 / 3;
    }
}

/* ---------- MÓVIL ---------- */
@media (max-width: 800px) {
    .menu-toggle { display: block; }

    .top-menu {
        padding: 8px 0;
    }

    .menu-content {
        padding: 0 16px;
        gap: 12px;
    }

    .home-hero {
        margin-bottom: 30px;
        padding: 76px 10px 14px;
    }

    .home-hero-content {
        min-height: 88px;
        padding: 18px 14px;
    }

    .home-hero h1 {
        width: fit-content;
        max-width: 100%;
        white-space: normal;
        font-size: clamp(16px, 4.2vw, 21px);
        padding: 0;
    }

    .home-hero-caption {
        padding: 16px 14px;
    }

    .home-hero-caption p {
        max-width: 100%;
        margin: 0 auto;
        font-size: clamp(9px, 2.7vw, 11px);
        line-height: 1.7;
        white-space: normal;
    }

    .home-hero-caption-text {
        clip-path: none;
        animation: none;
    }

    .logo {
        height: 44px;
        margin-right: 0;
    }

    .menu-toggle {
        padding: 4px 8px;
        font-size: 26px;
        line-height: 1;
    }

    nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        padding: 10px 16px;
        background: #fff;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    }

    nav.open { display: flex; }
    nav::before { display: none; }

    nav a,
    nav .nav-item-disabled {
        padding: 10px 12px;
        font-size: 15px;
    }

    .page-wrapper {
        margin: 0 12px 30px;
        padding: 22px 16px;
        border-radius: 10px;
    }

    .inner-page {
        margin-top: 76px;
    }

    .welcome-section {
        margin: 0 12px 18px;
        padding: 20px 16px;
    }

    .welcome-section > h2 {
        margin-bottom: 14px;
        font-size: clamp(20px, 5.5vw, 24px);
    }

    .solutions-carousel {
        margin: 0 12px 24px;
        border-radius: 10px;
    }

    .solutions-brands {
        display: flex;
        flex-wrap: nowrap;
        justify-content: flex-start;
        gap: 8px;
        padding: 12px;
        overflow-x: auto;
        overscroll-behavior-x: contain;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        border-top-width: 3px;
        border-bottom-width: 3px;
    }

    .solutions-brand {
        flex: 0 0 104px;
        width: 104px;
        min-height: 68px;
        height: 68px;
        padding: 6px;
        border-radius: 6px;
        scroll-snap-align: start;
    }

    .solutions-brand img {
        width: 88px;
        max-width: 100%;
        height: 42px;
        flex: 0 0 auto;
    }

    .solutions-gallery {
        grid-template-columns: 34px minmax(0, 1fr) 34px;
        gap: 6px;
        margin: 14px 10px 0;
    }

    .solutions-carousel img.solutions-gallery-image {
        height: clamp(150px, 48vw, 220px);
    }

    .solutions-photo-placeholder {
        min-height: clamp(150px, 48vw, 220px);
        padding: 12px;
        font-size: 14px;
    }

    .solutions-arrow {
        width: 32px;
        height: 32px;
        font-size: 24px;
    }

    .solutions-caption {
        padding: 16px;
    }

    .solutions-title {
        font-size: clamp(20px, 5.5vw, 23px);
    }

    .hero-split {
        padding: 16px;
        gap: 16px;
    }

    .hero-left {
        min-height: 0;
    }

    .hero-right img {
        height: auto;
        max-height: 300px;
        aspect-ratio: 4 / 3;
    }

    .hero-actions {
        flex-wrap: wrap;
        gap: 10px;
    }

    .hero-left h1,
    .hero-left h2 {
        font-size: clamp(21px, 6vw, 26px);
    }

    .hero-btn {
        margin-top: 16px;
        padding: 11px 16px;
        font-size: 14px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    section {
        margin-bottom: 30px;
        scroll-margin-top: 72px;
    }
}

@media (max-width: 380px) {
    .solutions-gallery {
        grid-template-columns: 30px minmax(0, 1fr) 30px;
        gap: 4px;
        margin-right: 8px;
        margin-left: 8px;
    }

    .solutions-arrow {
        width: 28px;
        height: 28px;
        font-size: 22px;
    }

    .page-wrapper {
        margin-right: 8px;
        margin-left: 8px;
        padding-right: 12px;
        padding-left: 12px;
    }

    .welcome-section,
    .solutions-carousel {
        margin-right: 8px;
        margin-left: 8px;
    }
}