:root {
    --primary: #03A9F4;
    --primary-light: #4FC3F7;
    --primary-dark: #01579B;
    --accent-red: #E53935;
    --accent-red-light: #EF5350;
    --accent-red-dark: #C62828;
    --white: #ffffff;
    --black: #121212;
    --gray-light: #f8f9fa;
    --gray: #6c757d;
    --text-color: #333;
    --bg-gradient: linear-gradient(135deg, #4FC3F7 0%, #29B6F6 50%, #03A9F4 100%);
    --bg-gradient-red: linear-gradient(135deg, #EF5350 0%, #E53935 50%, #C62828 100%);
    --bg-hero: linear-gradient(rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.8)), url('images/hero_door.png');
    --glass: rgba(255, 255, 255, 0.15);
    --glass-border: rgba(255, 255, 255, 0.3);
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
.logo-text {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 4rem;
}

section {
    position: relative;
    overflow: hidden;
}

.section-padding {
    padding: 100px 0;
}

.bg-light {
    background-color: var(--gray-light);
}

.bg-dark {
    background-color: var(--black);
}

.text-white {
    color: var(--white);
}

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

/* Animations & Transitions */

.reveal-text {
    opacity: 0;
    transform: translateY(30px);
    transition: var(--transition);
}

.reveal-text.active {
    opacity: 1;
    transform: translateY(0);
}

.fade-in {
    opacity: 0;
    transition: opacity 1s ease-out;
}

.fade-in.active {
    opacity: 1;
}

.reveal-up {
    opacity: 0;
    transform: translateY(50px);
    transition: var(--transition);
}

.reveal-up.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.9);
    transition: var(--transition);
}

.reveal-scale.active {
    opacity: 1;
    transform: scale(1);
}

/* Buttons */

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--bg-gradient);
    color: white;
    box-shadow: 0 10px 20px rgba(3, 169, 244, 0.3);
}

.btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(3, 169, 244, 0.4);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--accent-red);
    color: var(--accent-red);
}

.btn-outline:hover {
    background: var(--bg-gradient-red);
    color: white;
    box-shadow: 0 10px 25px rgba(229, 57, 53, 0.3);
    transform: translateY(-3px);
}

.btn-full {
    width: 100%;
    margin-top: 1rem;
}

/* Navigation */

#main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: var(--transition);
}

#main-nav.scrolled {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(15px);
    padding: 1rem 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

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

.logo-text {
    font-size: 1.8rem;
    color: var(--primary-dark);
}

.logo-text span {
    color: var(--primary);
    font-weight: 400;
}

.logo-img {
    height: 50px;
    width: auto;
    max-width: 150px;
    object-fit: contain;
    transition: var(--transition);
    cursor: pointer;
}

.logo {
    display: inline-flex;
    align-items: center;
    line-height: 0;
}

.logo-img:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 5px 15px rgba(3, 169, 244, 0.3));
}

#main-nav.scrolled .logo-img {
    height: 40px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-red) 0%, var(--primary) 100%);
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--accent-red);
}

.nav-links a:hover::after {
    width: 100%;
}

/* Hero Section High Motion */

.hero {
    min-height: 760px;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-top: 96px;
    /* Added 16px for better UX spacing */
    overflow: hidden;
}

.hero-bg-motion {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background:
        radial-gradient(circle at 20% 30%, rgba(229, 57, 53, 0.08) 0%, transparent 40%),
        radial-gradient(circle at center, rgba(79, 195, 247, 0.1) 0%, rgba(255, 255, 255, 1) 70%);
}

.door-animation-container {
    position: absolute;
    right: -180px;
    /* Shifted further right to clear text area */
    top: 50%;
    transform: translateY(-50%);
    width: 65%;
    height: 80%;
    perspective: 2000px;
    opacity: 1;
    z-index: 1;
    /* Behind text if they ever meet */
}

.industrial-door-frame {
    width: 100%;
    height: 100%;
    position: relative;
    border: 15px solid #e0e0e0;
    border-bottom: none;
    border-top: 5px solid var(--accent-red-light);
    border-radius: 10px 10px 0 0;
    background: #fff;
    box-shadow:
        20px 40px 60px rgba(0, 0, 0, 0.1),
        0 -5px 20px rgba(229, 57, 53, 0.15);
    transform: rotateY(-15deg);
    overflow: hidden;
}

.door-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.door-shutter {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(#eee,
            #eee 40px,
            #ddd 40px,
            #ddd 80px);
    border-bottom: 5px solid #999;
    z-index: 2;
    transition: transform 1.2s cubic-bezier(0.645, 0.045, 0.355, 1);
    transform: translateY(0);
}

.hero.active .door-shutter {
    transform: translateY(-95%);
}

.hero.slider-closed .door-shutter {
    transform: translateY(0);
}

.hero-content {
    position: relative;
    z-index: 10;
    transform: translateY(60px);
    margin-left: -2rem;
    /* Shifting text specifically to the left */
}

.hero-content h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    max-width: 550px;
    /* Narrower to stay on the left */
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    max-width: 480px;
    /* Narrower to stay on the left */
    color: var(--gray);
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 4rem;
    position: relative;
    z-index: 10;
}

.gradient-text {
    background: var(--bg-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-stats {
    display: flex;
    gap: 3rem;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(15px);
    padding: 1.5rem 2.5rem;
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    width: fit-content;
    animation: revealUp 1s ease-out 0.8s backwards;
}

@keyframes revealUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stat-item {
    text-align: center;
    position: relative;
}

.stat-item:nth-child(2) .stat-number {
    background: var(--bg-gradient-red);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-number {
    display: block;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary);
}

.stat-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gray);
}

/* Services */

.section-header {
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.8rem;
    margin-bottom: 1rem;
}

.title-underline {
    width: 80px;
    height: 5px;
    background: linear-gradient(90deg, var(--accent-red) 0%, var(--primary) 50%, var(--primary-light) 100%);
    margin: 0 auto;
    border-radius: 5px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
}

.service-card {
    background: white;
    padding: 3.5rem 2.5rem;
    border-radius: 24px;
    border: 1px solid #eee;
    transition: var(--transition);
    position: relative;
}

.service-card:nth-child(2):hover,
.service-card:nth-child(5):hover {
    transform: translateY(-15px);
    box-shadow: 0 30px 60px rgba(229, 57, 53, 0.12);
    border-color: var(--accent-red-light);
}

.service-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.08);
    border-color: var(--primary-light);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    transition: var(--transition);
}

.service-card:nth-child(2) .service-icon,
.service-card:nth-child(5) .service-icon {
    filter: drop-shadow(0 0 8px rgba(229, 57, 53, 0.3));
}

.service-card:nth-child(2):hover .service-icon,
.service-card:nth-child(5):hover .service-icon {
    transform: scale(1.1) rotate(5deg);
    filter: drop-shadow(0 0 12px rgba(229, 57, 53, 0.5));
}

.service-card h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

/* Products */

.product-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 4rem;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 1rem 2rem;
    border: none;
    background: white;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid #eee;
}

.tab-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.tab-btn:hover:not(.active) {
    border-color: var(--accent-red-light);
    color: var(--accent-red);
    transform: translateY(-2px);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.product-item {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.03);
    transition: var(--transition);
    border: 2px solid transparent;
}

.product-item:hover {
    transform: scale(1.05);
    border-color: var(--primary-light);
}

.product-item:nth-child(2):hover,
.product-item:nth-child(4):hover {
    border-color: var(--accent-red-light);
    box-shadow: 0 15px 35px rgba(229, 57, 53, 0.15);
}

.product-item img,
.placeholder-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: #ced4da;
    font-size: 2rem;
}

.product-info {
    padding: 1.5rem;
}

.category-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.summary-item {
    padding: 2rem;
    background: white;
    border-radius: 15px;
    border-left: 5px solid var(--primary);
    transition: var(--transition);
}

.summary-item:nth-child(2) {
    border-left-color: var(--accent-red);
}

.summary-item:hover {
    transform: translateX(10px);
    box-shadow: -5px 10px 25px rgba(0, 0, 0, 0.08);
}

/* About & Color BG */

.color-bg {
    background: var(--bg-gradient);
    color: white;
}

.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 5rem;
    align-items: center;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1.5rem;
}

.value-item {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: var(--transition);
}

.value-item:nth-child(2) {
    border-color: rgba(229, 57, 53, 0.4);
}

.value-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.value-icon {
    font-size: 2.5rem;
}

/* Project Logos */

.logos-slider {
    overflow: hidden;
    padding: 2rem 0;
    margin: 3rem 0;
    background: #fff;
    position: relative;
}

.logo-track {
    display: flex;
    gap: 5rem;
    animation: scroll 30s linear infinite;
    width: max-content;
}

.client-name {
    font-weight: 800;
    font-size: 1.5rem;
    color: #ccc;
    white-space: nowrap;
    transition: var(--transition);
    cursor: pointer;
}

.client-name:hover {
    color: var(--accent-red);
    transform: scale(1.1);
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Projects List */
.projects-list {
    margin-top: 3rem;
}

.projects-list h3 {
    margin-bottom: 1.5rem;
    color: var(--primary-dark);
}

.projects-list ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}

.projects-list li {
    padding: 1rem 1.5rem;
    background: white;
    border-radius: 10px;
    border-left: 4px solid var(--primary);
    transition: var(--transition);
    cursor: pointer;
}

.projects-list li:nth-child(even) {
    border-left-color: var(--accent-red);
}

.projects-list li:hover {
    transform: translateX(10px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

/* Contact */

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
}

.contact-details {
    list-style: none;
    margin-top: 2rem;
}

.contact-details li {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
    border-radius: 10px;
    border: 1px solid #333;
    background: #1a1a1a;
    color: white;
    font-family: inherit;
    transition: var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-red);
    box-shadow: 0 0 0 3px rgba(229, 57, 53, 0.1);
}

/* Footer */
footer {
    background: #0a0a0a;
    padding: 2rem 0;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-links span {
    cursor: pointer;
    transition: var(--transition);
    color: var(--gray);
}

.social-links span:hover {
    color: var(--accent-red);
    transform: translateY(-3px);
}

/* Pulse animation for urgency service */
@keyframes pulse-red {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(229, 57, 53, 0.4);
    }

    50% {
        box-shadow: 0 0 0 15px rgba(229, 57, 53, 0);
    }
}

.service-card:nth-child(2)::before {
    content: '';
    position: absolute;
    top: 20px;
    right: 20px;
    width: 12px;
    height: 12px;
    background: var(--accent-red);
    border-radius: 50%;
    animation: pulse-red 2s infinite;
}

/* Base Responsive */

@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 3.5rem;
    }

    .about-grid,
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .door-animation-container {
        opacity: 0.3;
        width: 100%;
        right: 0;
    }
}

/* Mobile navigation button is hidden on desktop and activated below. */
.mobile-menu-btn {
    display: none;
    width: 44px;
    height: 44px;
    padding: 10px;
    border: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
}

.mobile-menu-btn span {
    display: block;
    width: 100%;
    height: 2px;
    border-radius: 2px;
    background: var(--primary-dark);
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.mobile-menu-btn.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-menu-btn.is-open span:nth-child(2) { opacity: 0; }
.mobile-menu-btn.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.whatsapp-float {
    position: fixed; right: 24px; bottom: 24px; z-index: 1100;
    display: grid; place-items: center; width: 60px; height: 60px;
    border-radius: 50%; background: #25D366; color: #fff;
    box-shadow: 0 8px 22px rgba(0, 90, 45, 0.32);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.whatsapp-float:hover, .whatsapp-float:focus-visible {
    color: #fff; transform: translateY(-4px) scale(1.04);
    box-shadow: 0 12px 28px rgba(0, 90, 45, 0.4);
}
.whatsapp-float svg { width: 31px; height: 31px; fill: currentColor; }

@media (max-width: 768px) {
    .container { width: 100%; padding: 0 1.25rem; }
    .section-padding { padding: 64px 0; }
    #main-nav { padding: 0.75rem 0; }
    #main-nav .container { min-height: 52px; }

    .logo-img,
    #main-nav.scrolled .logo-img {
        height: 38px;
        max-width: min(65vw, 190px);
        object-fit: contain;
    }

    .mobile-menu-btn { display: flex; flex: 0 0 auto; }
    .whatsapp-float { right: 16px; bottom: 16px; width: 56px; height: 56px; }
    .whatsapp-float svg { width: 29px; height: 29px; }

    .nav-links {
        position: absolute;
        top: calc(100% + 0.5rem);
        left: 1rem;
        right: 1rem;
        display: flex;
        flex-direction: column;
        gap: 0;
        padding: 0.5rem;
        border: 1px solid rgba(1, 87, 155, 0.12);
        border-radius: 16px;
        background: rgba(255, 255, 255, 0.98);
        box-shadow: 0 18px 45px rgba(0, 0, 0, 0.14);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px);
        pointer-events: none;
        transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    }

    .nav-links.is-open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto;
    }

    .nav-links li { width: 100%; }
    .nav-links a {
        display: block;
        min-height: 46px;
        padding: 0.75rem 1rem;
        border-radius: 10px;
    }
    .nav-links a:hover { background: var(--gray-light); }
    .nav-links a::after { display: none; }

    .hero {
        min-height: 900px;
        height: auto;
        padding: 118px 0 64px;
        align-items: flex-start;
    }
    .hero-content { width: 100%; margin-left: 0; transform: translateY(38px); }
    .hero-content h1 {
        max-width: 100%;
        font-size: clamp(2.25rem, 10vw, 3rem);
        line-height: 1.08;
        margin-bottom: 1rem;
    }
    .hero-content p { max-width: 100%; font-size: 1rem; margin-bottom: 1.75rem; }
    .hero-cta {
        width: 100%;
        flex-direction: column;
        gap: 0.75rem;
        margin-bottom: 2rem;
    }
    .hero-cta .btn, .btn-full { width: 100%; text-align: center; }

    .hero-stats {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.5rem;
        padding: 1rem 0.5rem;
        margin-top: 0;
        border-radius: 18px;
    }
    .stat-number { font-size: clamp(1.35rem, 6vw, 1.8rem); }
    .stat-label {
        display: block;
        font-size: 0.65rem;
        line-height: 1.25;
        letter-spacing: 0.4px;
    }

    .door-animation-container {
        top: 58%;
        right: -35%;
        width: 115%;
        height: 48%;
        opacity: 0.16;
    }
    .industrial-door-frame { border-width: 8px; border-top-width: 3px; }

    .section-title { font-size: clamp(2rem, 8vw, 2.5rem); }
    .section-header { margin-bottom: 2.5rem; }
    .services-grid, .product-grid, .category-summary, .projects-list ul {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .service-card { padding: 2rem 1.5rem; border-radius: 18px; }
    .service-card:hover, .product-item:hover, .summary-item:hover,
    .value-item:hover, .projects-list li:hover { transform: none; }

    .product-tabs {
        justify-content: flex-start;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 0.5rem;
        margin: -0.5rem -1.25rem 2rem;
        padding: 0.5rem 1.25rem;
        scrollbar-width: none;
    }
    .product-tabs::-webkit-scrollbar { display: none; }
    .tab-btn {
        flex: 0 0 auto;
        padding: 0.75rem 1rem;
        white-space: nowrap;
        font-size: 0.85rem;
    }
    .product-item img, .placeholder-img { height: 180px; }
    .about-grid, .contact-wrapper { gap: 2rem; }
    .value-item { padding: 1.25rem; }
    .logos-slider { margin: 2rem 0; }
    .logo-track { gap: 2.5rem; animation-duration: 24s; }
    .client-name { font-size: 1.1rem; }
    .contact-details li { overflow-wrap: anywhere; font-size: 1rem; }
    .footer-bottom { align-items: flex-start; flex-direction: column; }
    .footer-bottom p { font-size: 0.85rem; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
/* Featured projects on the home page */
.projects-showcase {
    background: #f6f8fb;
}

.projects-showcase .section-header {
    max-width: 720px;
    margin: 0 auto 2.5rem;
}

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

.featured-project-card {
    overflow: hidden;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 28px rgba(12, 30, 52, .08);
}

.featured-project-card img {
    display: block;
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.featured-project-card .featured-project-info {
    padding: 1rem 1.1rem 1.2rem;
}

.featured-project-card h3 {
    margin: 0 0 .3rem;
    font-size: 1rem;
}

.featured-project-card p {
    margin: 0;
    color: #64748b;
    font-size: .88rem;
}

.projects-showcase .projects-cta {
    display: flex;
    justify-content: center;
    margin-top: 2.25rem;
}

@media (max-width: 768px) {
    .featured-projects-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: .75rem;
    }

    .featured-project-card {
        border-radius: 11px;
    }

    .featured-project-card img {
        height: 145px;
    }

    .featured-project-card .featured-project-info {
        padding: .75rem .8rem .85rem;
    }

    .featured-project-card h3 {
        font-size: .85rem;
    }

    .featured-project-card p {
        font-size: .74rem;
    }
}


/* Services tabs: panel industrial adaptado a la marca STVL */
.services-tabs-section { background: #121212; color: var(--white); }
.services-tabs-heading { max-width: 760px; margin-bottom: 2.25rem; }
.services-kicker { color: var(--primary); font-size: .75rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; margin-bottom: .5rem; }
.services-tabs-heading .section-title { color: var(--white); text-align: left; margin-bottom: .35rem; }
.services-tabs-heading .section-subtitle { color: rgba(255,255,255,.62); text-align: left; margin: 0; }
.services-tabs { display: flex; gap: .3rem; overflow-x: auto; border-bottom: 1px solid rgba(255,255,255,.13); margin-bottom: 2rem; scrollbar-width: thin; scrollbar-color: var(--primary) transparent; }
.service-tab { display: inline-flex; align-items: center; gap: .55rem; flex: 0 0 auto; padding: .85rem 1rem 1rem; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; background: transparent; color: rgba(255,255,255,.58); cursor: pointer; font: 600 .9rem 'Inter', sans-serif; transition: var(--transition); white-space: nowrap; }
.service-tab span { font-size: 1.08rem; filter: saturate(.8); }
.service-tab:hover, .service-tab:focus-visible { color: var(--white); outline: none; }
.service-tab.is-active { border-bottom-color: var(--primary); color: var(--primary-light); }
.service-panel { display: flex; align-items: stretch; gap: 3rem; padding: clamp(1.5rem, 4vw, 2.75rem); border: 1px solid rgba(255,255,255,.12); border-radius: 14px; background: #1b1b1b; min-height: 390px; }
.service-panel-copy { flex: 1 1 auto; }
.service-panel-icon { display: grid; place-items: center; width: 3rem; height: 3rem; margin-bottom: 1.25rem; border-radius: 10px; background: rgba(3,169,244,.14); font-size: 1.45rem; }
.service-panel h3 { color: var(--white); font-size: clamp(1.7rem, 3vw, 2.15rem); margin-bottom: .25rem; }
.service-panel-tagline { color: var(--primary-light); font-size: .95rem; margin-bottom: 1rem; }
.service-panel-description { max-width: 650px; color: rgba(255,255,255,.68); line-height: 1.75; margin-bottom: 1.25rem; }
.service-features { display: grid; gap: .55rem; list-style: none; color: rgba(255,255,255,.84); font-size: .9rem; }
.service-features li { display: flex; align-items: flex-start; gap: .65rem; }
.service-features li::before { content: ''; width: 6px; height: 6px; flex: 0 0 6px; margin-top: .55rem; border-radius: 50%; background: var(--accent-red); }
.service-panel-cta { display: inline-flex; align-items: center; gap: .55rem; margin-top: 1.65rem; padding: .75rem 1.1rem; border-radius: 8px; background: var(--primary); color: #07141b; font-size: .9rem; font-weight: 700; transition: var(--transition); }
.service-panel-cta:hover { background: var(--primary-light); transform: translateY(-2px); color: #07141b; }
.service-panel-media { width: min(34%, 360px); min-height: 280px; overflow: hidden; border-radius: 10px; background: #262626; }
.service-panel-media img { width: 100%; height: 100%; min-height: 280px; display: block; object-fit: cover; object-position: center; transition: opacity .25s ease, transform .45s ease; }
.service-panel-media img.is-changing { opacity: .25; transform: scale(1.03); }
@media (max-width: 760px) {
    .services-tabs-section .container { padding: 0 1.25rem; }
    .service-tab { padding-left: .65rem; padding-right: .65rem; font-size: .82rem; }
    .service-panel { flex-direction: column; gap: 1.5rem; min-height: 0; }
    .service-panel-media { width: 100%; height: 240px; min-height: 0; order: -1; }
    .service-panel-media img { min-height: 0; }
}


/* Mantener la paleta original de STVL en el panel de servicios */
.services-tabs-section { background: var(--white); color: var(--text-color); }
.services-tabs-heading .section-title { color: var(--text-color); }
.services-tabs-heading .section-subtitle { color: var(--gray); }
.services-tabs { border-bottom-color: #eee; scrollbar-color: var(--primary) transparent; }
.service-tab { color: var(--gray); }
.service-tab:hover, .service-tab:focus-visible { color: var(--text-color); }
.service-tab.is-active { color: var(--primary-dark); border-bottom-color: var(--primary); }
.service-panel { background: var(--white); border-color: #eee; box-shadow: 0 18px 50px rgba(0,0,0,.06); }
.service-panel h3 { color: var(--text-color); }
.service-panel-tagline { color: var(--primary-dark); }
.service-panel-description { color: var(--gray); }
.service-features { color: #444; }
.service-panel-media { background: var(--gray-light); }


/* Hero stats: información útil, visible y con motion graphic */
.hero { padding-bottom: 3rem; }
.hero-content { transform: translateY(28px); }
.hero-stats { width: min(100%, 760px); min-height: 112px; align-items: stretch; justify-content: space-between; gap: 0; padding: 1.2rem 1.4rem; margin-top: .5rem; overflow: visible; }
.stat-item { flex: 1 1 0; min-width: 0; padding: .1rem .9rem; animation: statRise .65s cubic-bezier(.165,.84,.44,1) var(--stat-delay, 0s) backwards; }
.stat-item + .stat-item { border-left: 1px solid rgba(108,117,125,.2); }
.stat-number { line-height: 1; font-variant-numeric: tabular-nums; }
.stat-label { display: block; margin-top: .45rem; font-size: .72rem; line-height: 1.25; white-space: normal; }
.stat-detail { display: block; margin-top: .25rem; color: #8a9299; font-size: .67rem; line-height: 1.25; }
@keyframes statRise { from { opacity: 0; transform: translateY(14px) scale(.94); } to { opacity: 1; transform: translateY(0) scale(1); } }
@media (max-width: 760px) {
    .hero-content { transform: translateY(18px); }
    .hero-stats { min-height: 132px; padding: .9rem .35rem; }
    .stat-item { padding: .15rem .3rem; }
    .stat-number { font-size: clamp(1.25rem, 6vw, 1.8rem); }
    .stat-label { font-size: .62rem; }
    .stat-detail { font-size: .58rem; }
}


/* Revisión de comentarios: anclaje, iconos y CTA */
#servicios { scroll-margin-top: 88px; }
.services-tabs-heading { padding-top: .25rem; }
.service-tab-icon { display: inline-grid; place-items: center; width: 1rem; height: 1rem; color: currentColor; }
.service-tab-icon svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.service-tab.is-active .service-tab-icon { color: var(--primary); }
.service-panel-cta, .service-panel-cta:hover, .service-panel-cta:focus-visible { text-decoration: none; }


/* Icono principal de la card: misma familia SVG que las pestañas */
.service-panel-icon { color: var(--primary); }
.service-panel-icon svg { width: 1.55rem; height: 1.55rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }


/* Tabs fijas: sin desplazamiento lateral ni scrollbar propia */
.services-tabs { overflow: visible; flex-wrap: wrap; align-items: stretch; row-gap: 0; scrollbar-width: none; }
.services-tabs::-webkit-scrollbar { display: none; }
.service-tab { flex: 1 1 auto; justify-content: center; min-height: 52px; }
@media (max-width: 760px) {
    .services-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 0; }
    .service-tab { width: 100%; min-height: 48px; padding-left: .35rem; padding-right: .35rem; justify-content: center; }
}
@media (max-width: 430px) {
    .services-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Recorte visual uniforme para las imágenes de servicios */
.service-panel-media {
    width: min(34%, 360px);
    aspect-ratio: 1 / 1;
    min-height: 0;
    height: auto;
}
.service-panel-media img {
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: cover;
    object-position: center center;
}
@media (max-width: 760px) {
    .service-panel-media {
        width: 100%;
        height: auto;
        aspect-ratio: 1 / 1;
    }
}

.service-panel-media { align-self: flex-start; }
@media (max-width: 760px) { .service-panel-media { align-self: stretch; } }


/* Contacto: datos actualizados y formulario de solicitud técnica */
.contact-kicker { display: inline-block; margin-bottom: .65rem; color: var(--primary-light); font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.contact-details a { color: var(--primary-light); text-decoration: none; }
.contact-details a:hover, .contact-details a:focus-visible { color: var(--white); text-decoration: underline; }
.contact-details li { overflow-wrap: anywhere; }
.contact-form form { display: grid; gap: .9rem; }
.form-field { display: grid; gap: .35rem; }
.form-field label { color: rgba(255,255,255,.86); font-size: .86rem; font-weight: 600; }
.contact-form input, .contact-form textarea { margin-bottom: 0; }
.contact-form textarea { resize: vertical; min-height: 120px; }
.contact-form input:invalid:not(:placeholder-shown), .contact-form textarea:invalid:not(:placeholder-shown) { border-color: var(--accent-red); }
.contact-honey { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }
.contact-status { min-height: 1.45rem; margin: .15rem 0 0; font-size: .88rem; line-height: 1.45; }
.contact-status.is-success { color: #8ee7b2; }
.contact-status.is-error { color: #ffaaa7; }
.contact-form button:disabled { cursor: wait; opacity: .65; }
@media (max-width: 992px) { .contact-wrapper { gap: 2rem; } }


/* Iconos de redes sociales */
.social-links { align-items: center; }
.social-links a.social-link { display: inline-flex; align-items: center; gap: .45rem; color: var(--gray); text-decoration: none; transition: var(--transition); }
.social-links a.social-link:hover, .social-links a.social-link:focus-visible { color: var(--accent-red); transform: translateY(-3px); }
.social-link svg { width: 1.2rem; height: 1.2rem; fill: currentColor; stroke: none; }
.social-link-instagram svg { fill: none; stroke: currentColor; stroke-width: 1.8; }
.social-link-instagram .social-icon-dot { fill: currentColor; stroke: none; }
.social-label { line-height: 1; }
