:root {
    --primary: #F26419;
    /* Vibrant Orange */
    --primary-dark: #D45209;
    --secondary: #0B132B;
    /* Deep Navy */
    --secondary-light: #1C2541;
    /* Slate Gray */
    --dark: #070B19;
    --white: #FFFFFF;
    --light-gray: #F4F6F9;
    --text-main: #333333;
    --text-light: #666666;
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    --shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 20px 50px rgba(0, 0, 0, 0.12);
}

html {
    scroll-behavior: smooth;
}

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

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    background: var(--light-gray);
    padding-top: 188px; /* Altura combinada de top-bar (40px) y nav (148px) */
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

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

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 120px 0;
    position: relative;
}

/* Scroll Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.9s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

.reveal.delay-1 {
    transition-delay: 0.1s;
}

.reveal.delay-2 {
    transition-delay: 0.2s;
}

.reveal.delay-3 {
    transition-delay: 0.3s;
}

/* Premium Buttons */
.btn {
    display: inline-block;
    padding: 1.1rem 2.8rem;
    background: var(--primary);
    color: white;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
    border-radius: 4px;
    box-shadow: 0 10px 25px rgba(242, 100, 25, 0.4);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--secondary);
    transition: var(--transition);
    z-index: -1;
}

.btn:hover::before {
    left: 0;
}

.btn:hover {
    color: white;
    transform: translateY(-4px);
    box-shadow: 0 15px 30px rgba(11, 19, 43, 0.4);
}

.btn-outline {
    background: transparent;
    border: 2px solid white;
    box-shadow: none;
}

.btn-outline:hover {
    border-color: var(--primary);
    box-shadow: 0 10px 20px rgba(242, 100, 25, 0.3);
}

/* Top Contact Bar */
.top-bar {
    background: var(--dark);
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    font-weight: 500;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 40px;
    display: flex;
    align-items: center;
    z-index: 1001;
    font-family: 'Outfit', sans-serif;
    letter-spacing: 1px;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.top-bar-info {
    display: flex;
    gap: 2rem;
}

.top-bar-info span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.top-bar-social {
    display: flex;
    gap: 1rem;
}

.top-bar-social a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.top-bar-social a:hover {
    color: var(--primary);
}

.top-bar-info a {
    color: inherit;
    text-decoration: none;
}

.top-bar-info a:hover {
    color: var(--primary);
}

/* Navbar with Glassmorphism */
nav {
    position: fixed;
    top: 40px;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1000;
    padding: 1.5rem 0;
    transition: var(--transition);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

nav.scrolled {
    top: 0;
    padding: 0.8rem 0;
    box-shadow: var(--shadow);
}

nav .nav-links a {
    color: var(--secondary);
}

nav .logo img {
    filter: none;
}

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

.logo {
    height: 100px;
}

.logo img {
    height: 100%;
    object-fit: contain;
    transition: var(--transition);
}

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

.nav-links a {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary);
    transition: var(--transition);
}

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

.nav-links a:hover {
    color: var(--primary) !important;
}

/* Enhanced Hero Slider (Ken Burns Effect) */
.slider-container {
    height: 100vh;
    width: 100%;
    position: relative;
    overflow: hidden;
    background: var(--secondary);
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.slide.active {
    opacity: 1;
    z-index: 1;
}

.slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transform: scale(1);
    transition: transform 7s linear;
}

.slide.active .slide-bg {
    transform: scale(1.08);
    /* Ken Burns effect */
}

.slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(100deg, rgba(11, 19, 43, 0.9) 0%, rgba(11, 19, 43, 0.4) 60%, rgba(0, 0, 0, 0) 100%);
    z-index: 1;
}

.slide-content {
    position: relative;
    z-index: 2;
    color: white;
    max-width: 800px;
    transform: translateY(40px);
    opacity: 0;
    transition: all 1s cubic-bezier(0.2, 0.8, 0.2, 1) 0.5s;
    padding: 3rem;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(8px);
    border-left: 4px solid var(--primary);
    border-radius: 0 12px 12px 0;
}

.slide.active .slide-content {
    transform: translateY(0);
    opacity: 1;
}

.slide-content h4 {
    color: var(--primary);
    font-size: 1.1rem;
    margin-bottom: 1rem;
    letter-spacing: 4px;
    font-family: 'Outfit', sans-serif;
    text-transform: uppercase;
}

.slide-content h1 {
    font-size: clamp(3rem, 6vw, 4.8rem);
    margin-bottom: 1.5rem;
    line-height: 1.05;
    text-transform: uppercase;
    font-family: 'Outfit', sans-serif;
    font-weight: 900;
}

.slide-content p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    max-width: 600px;
    font-weight: 300;
}

/* Botones agrupados del hero (desktop: fila, móvil: columna) */
.slide-btn-group {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

.slider-dots {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 1rem;
}

.dot {
    width: 30px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background: var(--primary);
    width: 60px;
    box-shadow: 0 0 10px rgba(242, 100, 25, 0.5);
}

/* Typography Headers for Sections */
.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-header span {
    color: var(--primary);
    font-weight: 700;
    letter-spacing: 4px;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 1rem;
    font-family: 'Outfit', sans-serif;
    text-transform: uppercase;
}

.section-header h2 {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    color: var(--secondary);
    font-weight: 800;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--primary);
    border-radius: 2px;
}

/* Services Grid (Modern Layout) */
.services-modern {
    background: white;
}

.services-tabs {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 4rem;
    align-items: start;
}

.tabs-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.tab-item {
    padding: 1.5rem 2rem;
    background: var(--light-gray);
    border-left: 4px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 0 8px 8px 0;
    font-family: 'Outfit', sans-serif;
}

.tab-item:hover,
.tab-item.active {
    border-left-color: var(--primary);
    background: white;
    box-shadow: var(--shadow);
    transform: translateX(15px);
}

.tab-item h3 {
    font-size: 1.1rem;
    color: var(--secondary);
    margin-bottom: 0;
    font-weight: 600;
}

.tab-item i {
    color: #ccc;
    transition: var(--transition);
}

.tab-item.active i,
.tab-item:hover i {
    color: var(--primary);
}

.tab-content {
    background: white;
    padding: 4rem;
    box-shadow: var(--shadow);
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.tab-content::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(242, 100, 25, 0.05) 0%, rgba(255, 255, 255, 0) 70%);
    z-index: 0;
}

.tab-content-inner {
    display: flex;
    gap: 4rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
    animation: fadeSlideUp 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.98);
    }

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

.tab-text h2 {
    font-size: 2.2rem;
    color: var(--secondary);
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.tab-text p {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.tab-list-items li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    font-weight: 500;
    color: var(--secondary);
    font-size: 1.05rem;
}

.tab-list-items li i {
    color: var(--primary);
    margin-right: 15px;
    font-size: 1.2rem;
    background: rgba(242, 100, 25, 0.1);
    padding: 8px;
    border-radius: 50%;
}

.tab-image {
    flex: 1;
    min-width: 300px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    position: relative;
}

.tab-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.tab-image:hover img {
    transform: scale(1.05);
}

/* Parallax Section with Gradients */
.parallax-section {
    padding: 140px 0;
    background-image: url('assets/maintenance.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    color: white;
    text-align: center;
}

.parallax-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(11, 19, 43, 0.95) 0%, rgba(28, 37, 65, 0.85) 100%);
}

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

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 3rem;
}

.stat-item {
    padding: 2rem;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    transition: var(--transition);
}

.stat-item:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.stat-item h2 {
    font-size: 4rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-weight: 900;
}

.stat-item p {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Premium Benefits Grid */
.benefits-alt {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.benefit-card {
    padding: 4rem 3rem;
    background: white;
    border-radius: 12px;
    transition: var(--transition);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
    border-bottom: 4px solid transparent;
}

.benefit-card:hover {
    transform: translateY(-15px);
    box-shadow: var(--shadow-hover);
    border-bottom-color: var(--primary);
}

.benefit-card i {
    font-size: 3.5rem;
    color: var(--primary);
    margin-bottom: 2rem;
    transition: var(--transition);
}

.benefit-card:hover i {
    transform: scale(1.1) rotate(5deg);
}

.benefit-card h3 {
    font-size: 1.5rem;
    color: var(--secondary);
    margin-bottom: 1rem;
    font-weight: 800;
}

.benefit-card p {
    color: var(--text-light);
}

/* Contact Section Modernization */
.contact-modern {
    padding: 0;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    background: var(--secondary);
}

.contact-info-side {
    padding: 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-image: linear-gradient(rgba(11, 19, 43, 0.85), rgba(11, 19, 43, 0.95)), url('assets/hero.webp');
    background-size: cover;
    background-position: center;
    color: white;
}

.contact-info-side h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: white;
}

.contact-info-side p {
    font-size: 1.1rem;
    opacity: 0.8;
    margin-bottom: 3rem;
    max-width: 500px;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: rgba(242, 100, 25, 0.1);
    border: 1px solid rgba(242, 100, 25, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
}

.contact-icon i {
    font-size: 1.5rem;
    color: var(--primary);
}

.contact-text h4 {
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
}

.contact-text p {
    margin-bottom: 0;
    opacity: 0.7;
    font-size: 1rem;
}

.contact-form-side {
    padding: 100px 5rem;
    background: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-form-side .section-header {
    text-align: left;
    margin-bottom: 3rem;
}

.contact-form-side .section-header h2::after {
    left: 0;
    transform: none;
}

.form-modern .input-wrapper {
    position: relative;
    margin-bottom: 2rem;
}

.form-modern input,
.form-modern textarea {
    width: 100%;
    padding: 1rem 1rem 1rem 0;
    border: none;
    border-bottom: 2px solid #e0e0e0;
    background: transparent;
    font-family: inherit;
    font-size: 1rem;
    color: var(--secondary);
    transition: var(--transition);
}

.form-modern input:focus,
.form-modern textarea:focus {
    outline: none;
    border-bottom-color: var(--primary);
}

.form-modern label {
    position: absolute;
    top: 1rem;
    left: 0;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    color: #999;
    transition: var(--transition);
    pointer-events: none;
}

.form-modern input:focus~label,
.form-modern input:valid~label,
.form-modern textarea:focus~label,
.form-modern textarea:valid~label {
    top: -12px;
    font-size: 0.75rem;
    color: var(--primary);
}

/* Select and File Upload Styles */
.form-modern select.custom-select {
    width: 100%;
    padding: 1rem 1rem 1rem 0;
    border: none;
    border-bottom: 2px solid #e0e0e0;
    background: transparent;
    font-family: inherit;
    font-size: 1rem;
    color: var(--secondary);
    transition: var(--transition);
    appearance: none;
    cursor: pointer;
}

.form-modern select.custom-select:focus {
    outline: none;
    border-bottom-color: var(--primary);
}

.file-upload-box {
    position: relative;
    border: 2px dashed #e0e0e0;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    background: var(--light-gray);
    transition: var(--transition);
    cursor: pointer;
}

.file-upload-box:hover {
    border-color: var(--primary);
    background: rgba(242, 100, 25, 0.05);
}

.file-upload-box input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.file-upload-content i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.file-upload-content h4 {
    font-size: 1.1rem;
    color: var(--secondary);
    margin-bottom: 0.5rem;
    font-family: 'Outfit', sans-serif;
}

.file-upload-content p {
    font-size: 0.85rem;
    color: var(--text-light);
    margin: 0;
}

/* Footer */
footer {
    background: var(--dark);
    color: white;
    padding: 80px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 5rem;
    margin-bottom: 60px;
}

.footer-logo {
    filter: brightness(0) invert(1);
    height: 100px;
    margin-bottom: 2rem;
}

.footer-col h3 {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    font-weight: 700;
    color: white;
}

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

.footer-links li {
    margin-bottom: 1rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

.footer-links a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.footer-col a, .contact-text a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

.footer-col a:hover, .contact-text a:hover {
    color: var(--primary);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    font-size: 0.9rem;
    opacity: 0.6;
}

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

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.social-links a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

/* Success Message Overlay */
#success-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 19, 43, 0.95);
    backdrop-filter: blur(10px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    text-align: center;
    color: white;
}

.success-card {
    padding: 4rem;
    background: white;
    border-radius: 12px;
    color: var(--secondary);
    max-width: 500px;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes popIn {
    to {
        transform: scale(1);
    }
}

/* Scroll to Top Button */
#scroll-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--primary);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 999;
    box-shadow: 0 10px 20px rgba(242, 100, 25, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
    border: none;
}

#scroll-top-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#scroll-top-btn:hover {
    background: var(--secondary);
    transform: translateY(-5px);
    box-shadow: 0 15px 25px rgba(11, 19, 43, 0.4);
}

/* Mobile Adjustments */
@media (max-width: 1024px) {
    .services-tabs {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .tabs-list {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .tab-item {
        flex: 1;
        border-left: none;
        border-bottom: 4px solid transparent;
        border-radius: 8px 8px 0 0;
    }

    .tab-item:hover,
    .tab-item.active {
        border-left-color: transparent;
        border-bottom-color: var(--primary);
        transform: translateY(-5px);
    }

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

    .contact-info-side {
        padding: 60px 2rem;
    }

    .contact-form-side {
        padding: 80px 2rem;
    }

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

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--secondary);
    cursor: pointer;
    z-index: 1001;
}

nav:not(.scrolled) .menu-toggle {
    color: white;
}

@media (max-width: 900px) {
    .nav-cta {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 75%;
        max-width: 320px;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2.5rem;
        transition: right 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        color: var(--secondary) !important;
        font-size: 1.3rem;
    }

    nav:not(.scrolled) .nav-links a {
        text-shadow: none;
    }

    nav:not(.scrolled) .nav-links a::after {
        background-color: var(--primary);
    }
}

@media (max-width: 768px) {
    .top-bar {
        display: none;
    }

    nav {
        top: 0;
    }

    body {
        padding-top: 108px; /* Ajuste para móvil (sin top-bar, nav más pequeño) */
    }

    .slider-content h1 {
        font-size: 2.5rem;
    }

    .tab-content {
        padding: 2rem;
    }

    .tab-content-inner {
        flex-direction: column;
    }

    .benefit-card {
        padding: 3rem 2rem;
    }

    /* Project cards stack on mobile */
    .project-card-row {
        flex-direction: column !important;
    }

    /* Page header padding reduction */
    .page-header-inner {
        padding: 140px 1rem 70px;
    }

    /* Services detail grid */
    .contact-modern {
        grid-template-columns: 1fr;
    }

    .contact-info-side {
        padding: 60px 1.5rem;
    }

    .contact-form-side {
        padding: 60px 1.5rem;
    }
}

/* =============================================
           Inner-page specific: navbar always white
           (handled via JS adding .scrolled on no-slider pages,
           but this CSS ensures it loads right away)
        ============================================= */
.inner-page-nav {
    top: 0 !important;
    background: rgba(255, 255, 255, 0.97) !important;
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow);
}

/* Page header generic style */
.page-header {
    background-size: cover;
    background-position: center;
    padding: 60px 0 100px; /* Reducido de 180px para compensar el padding-top del body */
    color: white;
    text-align: center;
}

.page-header h4 {
    color: var(--primary);
    font-family: 'Outfit', sans-serif;
    letter-spacing: 4px;
    margin-bottom: 1rem;
    text-transform: uppercase;
    font-size: 1rem;
}

.page-header h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    text-transform: uppercase;
}

/* Project cards layout */
.project-card-row {
    display: flex;
    gap: 3rem;
    align-items: center;
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin-bottom: 3rem;
    transition: var(--transition);
}

.project-card-row:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-5px);
}

.project-card-row .project-img {
    flex: 1;
    border-radius: 8px;
    overflow: hidden;
}

.project-card-row .project-img img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.6s ease;
}

.project-card-row:hover .project-img img {
    transform: scale(1.04);
}

.project-card-row .project-text {
    flex: 1.5;
}

.project-tag {
    color: var(--primary);
    font-weight: 700;
    letter-spacing: 2px;
    font-size: 0.85rem;
    display: block;
    margin-bottom: 1rem;
    font-family: 'Outfit', sans-serif;
    text-transform: uppercase;
}

.project-card-row h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.8rem;
    color: var(--secondary);
    margin-bottom: 1rem;
    font-weight: 700;
}

.project-card-row p {
    color: var(--text-light);
    font-size: 1.05rem;
    line-height: 1.7;
}

/* Service detail cards */
.service-detail-card {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--primary);
    transition: var(--transition);
}

.service-detail-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.service-detail-card h3 {
    margin-bottom: 0.8rem;
    color: var(--secondary);
    font-family: 'Outfit', sans-serif;
}

.service-detail-card p {
    color: var(--text-light);
}

.service-dark-card {
    background: var(--secondary);
    color: white;
    padding: 3rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.service-dark-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.service-dark-card h3 {
    color: white;
    margin-bottom: 1rem;
    font-family: 'Outfit', sans-serif;
}

.service-dark-card p {
    color: rgba(255, 255, 255, 0.8);
}

.section-divider-title {
    font-size: 2.2rem;
    color: var(--secondary);
    margin-bottom: 2rem;
    font-family: 'Outfit', sans-serif;
    border-bottom: 2px solid var(--primary);
    padding-bottom: 0.5rem;
    display: inline-block;
}

@media (max-width: 700px) {
    .project-card-row,
    .project-card-row.reverse {
        flex-direction: column;
    }
}

/* ==============================================
   MOBILE-FIRST RESPONSIVE OVERRIDES
   Correcciones completas para pantallas móviles
   ============================================== */

@media (max-width: 768px) {

    /* ── Espaciado de secciones ── */
    section {
        padding: 70px 0;
    }

    .container {
        padding: 0 1.2rem;
    }

    /* ── Logo: reducir altura en navbar ── */
    .logo {
        height: 60px;
    }

    /* ── Hero Slider ── */
    .slide-content {
        padding: 1.8rem 1.5rem;
        margin: 0 0.5rem;
        border-radius: 0 8px 8px 0;
    }

    .slide-content h4 {
        font-size: 0.8rem;
        letter-spacing: 2px;
        margin-bottom: 0.6rem;
    }

    .slide-content h1 {
        font-size: clamp(1.8rem, 7vw, 2.6rem);
        margin-bottom: 1rem;
    }

    .slide-content p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    /* Botones del hero: apilar en columna en móvil */
    .slide-btn-group {
        display: flex;
        flex-direction: column;
        gap: 0.8rem;
        align-items: flex-start;
    }

    /* ── Page header (páginas internas) ── */
    .page-header {
        padding: 120px 0 60px;
    }

    .page-header h1 {
        font-size: clamp(2rem, 8vw, 2.8rem);
    }

    /* ── Tarjetas de beneficios ── */
    .benefits-alt {
        grid-template-columns: 1fr;
    }

    .benefit-card {
        padding: 2.5rem 1.8rem;
    }

    /* ── Sección de estadísticas (parallax) ── */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .stat-item h2 {
        font-size: 2.8rem;
    }

    /* ── CTA card en index ── */
    .reveal[style*="background: var(--secondary)"][style*="padding: 4rem"] {
        padding: 2.5rem 1.5rem !important;
    }

    /* ── Sección de contacto ── */
    .contact-modern {
        grid-template-columns: 1fr;
    }

    .contact-info-side {
        padding: 60px 1.5rem 50px;
    }

    .contact-form-side {
        padding: 50px 1.5rem 60px;
    }

    /* ── Títulos de sección ── */
    .section-header h2 {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
    }

    .section-divider-title {
        font-size: 1.6rem;
    }

    /* ── Tarjetas de servicios ── */
    .service-detail-card,
    .service-dark-card {
        padding: 1.5rem;
    }

    /* ── Proyectos: imagen más pequeña ── */
    .project-card-row,
    .project-card-row.reverse {
        flex-direction: column;
        padding: 1.5rem;
        gap: 1.5rem;
    }

    .project-card-row .project-img img {
        height: 220px;
    }

    .project-card-row h3 {
        font-size: 1.4rem;
    }

    /* ── Footer ── */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    /* ── Títulos internos (nosotros, servicios) ── */
    h2[style*="font-size: 2.5rem"] {
        font-size: clamp(1.6rem, 5vw, 2rem) !important;
    }
}

/* Para pantallas muy pequeñas (< 480px) */
@media (max-width: 480px) {

    .slide-content {
        padding: 1.2rem 1rem;
        margin: 0;
        border-radius: 0;
    }

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

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

    .top-bar-info {
        display: none;
    }

    .stat-item {
        padding: 1.2rem;
    }

    .page-header {
        padding: 100px 0 50px;
    }

    .btn {
        padding: 0.9rem 1.8rem;
        font-size: 0.85rem;
    }

    .project-card-row .project-img img {
        height: 180px;
    }
}