:root {
    --navbar-height-mobile: 72px;
    --primary-color: #102a43;
    /* Azul Industrial Profundo */
    --secondary-color: #d97706;
    /* Ambar/Naranja Industrial */
    --accent-color: #486581;
    /* Gris Acero/Azulado */
    --light-gray: #f0f4f8;
    --dark-gray: #0f172a;
    --success-color: #10b981;
}

html {
    scroll-padding-top: var(--navbar-height-mobile);
}

body {
    font-family: 'Poppins', sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    color: var(--primary-color);
}

.navbar {
    background-color: rgba(16, 42, 67, 0.95);
    /* Color primario industrial con transparencia */
}

.navbar-brand,
.nav-link {
    color: white !important;
}

.nav-link:hover {
    color: var(--secondary-color) !important;
}

.nav-social-icon {
    height: 50px;
    width: auto;
    transition: opacity .3s ease;
}

.nav-link:hover .nav-social-icon {
    opacity: 0.8;
}

@media (max-width: 991.98px) {
    .nav-social-icon {
        height: 30px;
    }
}

.btn-primary {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.btn-primary:hover {
    background-color: #a34e2d;
    border-color: #a34e2d;
}

/* Hero Section */
#hero {
    height: 100vh;
    background: url('../img/background.png') no-repeat center center;
    background-size: cover;
    position: relative;
    color: white;
}

#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0);
}

.hero-container {
    position: relative;
    z-index: 2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.hero-logo {
    max-height: 120px;
    /* Default size for larger screens */
    width: auto;
}

/* Make hero logo smaller on mobile */
@media (max-width: 768px) {
    .hero-logo {
        max-height: 60px;
        margin-top: 100px;
    }
}

/* Responsive heading for hero */
#hero h1 {
    font-size: 2.5rem;
}

@media (min-width: 768px) {
    #hero h1 {
        font-size: 3rem;
    }
}

/* Sections */
.section-title {
    text-align: center;
    padding-bottom: 30px;
}

.section-title h2 {
    font-size: 28px;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 20px;
    padding-bottom: 20px;
    position: relative;
}

@media (min-width: 768px) {
    .section-title h2 {
        font-size: 32px;
    }
}

.section-title h2::after {
    content: '';
    position: absolute;
    display: block;
    width: 50px;
    height: 3px;
    background: var(--secondary-color);
    bottom: 0;
    left: calc(50% - 25px);
}

/* Services */
#services {
    background-color: var(--light-gray);
}

.service-card {
    background-color: #fff;
    border: 1px solid var(--dark-gray);
    /* Add a subtle border for definition */
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06);
    /* A softer, more modern shadow */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    /* Animate both properties */
    height: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.1);
    /* A wider shadow on hover */
}

.service-icon {
    font-size: 3rem;
    color: var(--secondary-color);
}

/* Case Studies */
#cases {
    background-color: var(--primary-color);
}

#cases .section-title h2,
#cases .section-title p {
    color: #fff;
}

#cases .section-title h2::after {
    background: #fff;
}

.case-study-card {
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.case-study-card .case-study-img-container {
    position: relative;
    overflow: hidden;
    height: 250px;
    /* Fixed height for uniformity */
}

.case-study-card img {
    transition: transform 0.5s ease;
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.case-study-card:hover img {
    transform: scale(1.1);
}

.case-study-card .card-icons {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(13, 44, 84, 0.75);
    /* Overlay with primary color */
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 2;
}

.case-study-card:hover .card-icons {
    opacity: 1;
}

.card-icons a {
    color: #fff;
    font-size: 2rem;
    margin: 0 1rem;
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease;
}

.card-icons a:hover {
    color: var(--secondary-color);
    transform: scale(1.2);
}

/* Value Proposition */
#value-prop {
    background-color: var(--light-gray);
}

.value-prop-card {
    background-color: #fff;
    border: 1px solid var(--dark-gray);
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.value-prop-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.1);
}

.value-prop-icon {
    font-size: 3rem;
    color: var(--secondary-color);
}

/* FAQ Section */
#faq {
    background-color: var(--accent-color);
}

#faq .section-title h2,
#faq .section-title p {
    color: #fff;
}

#faq .section-title h2::after {
    background: #fff;
}

#faq .accordion-item {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    margin-bottom: 1rem;
    border-radius: .5rem;
    overflow: hidden;
    /* Ensures child elements respect the border radius */
}

#faq .accordion-header {
    border-radius: .5rem;
}

#faq .accordion-button {
    background-color: transparent;
    color: #fff;
    font-weight: 500;
    border-radius: .5rem;
}

#faq .accordion-button:not(.collapsed) {
    color: #fff;
    background-color: rgba(0, 0, 0, 0.1);
    box-shadow: none;
}

#faq .accordion-button:focus {
    box-shadow: none;
    border-color: transparent;
}

#faq .accordion-button::after {
    flex-shrink: 0;
    width: 1.25rem;
    height: 1.25rem;
    margin-left: auto;
    content: "\f067";
    /* Font Awesome plus icon */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    background-image: none;
    transition: transform .2s ease-in-out;
    color: #fff;
    text-align: center;
}

#faq .accordion-button:not(.collapsed)::after {
    content: "\f068";
    /* Font Awesome minus icon */
    transform: none;
}

#faq .accordion-body {
    background-color: #fff;
    color: var(--primary-color);
    padding: 1.25rem;
}

#faq .accordion-collapse {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    /* A subtle separator for the white background */
}

/* CTA Section */
#cta {
    background-color: var(--primary-color);
    color: white;
}

#cta h3 {
    color: white;
}

/* CTA Modal */
.cta-modal .modal-content {
    border-radius: 10px;
    border: none;
    overflow: hidden;
    /* To ensure border-radius is applied to children */
}

.cta-modal .modal-header {
    background-color: var(--primary-color);
    color: white;
    border-bottom: none;
    /* No line */
}

.cta-modal .modal-title {
    color: white;
}

.cta-modal .modal-body {
    padding: 1.5rem;
}

.cta-modal .form-control {
    border-radius: 5px;
    border: 1px solid #ced4da;
    padding: 0.75rem 1rem;
}

.cta-modal .form-control:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.25rem rgba(185, 90, 53, 0.25);
}

.cta-modal .modal-footer {
    background-color: var(--secondary-color);
    border-top: none;
    /* No line */
}

.cta-modal .modal-footer .btn-primary:hover {
    background-color: #0a2242;
}

/* Footer */
footer {
    background-color: var(--dark-gray);
    color: #ccc;
}

footer h5 {
    color: white;
}

footer a {
    color: #ccc;
    text-decoration: none;
}

footer a:hover {
    color: white;
}

.social-links a {
    font-size: 1.5rem;
    margin-right: 15px;
}

/* In css/style.css */

/*--------------------------------------------------------------
# Vertical Right Navbar
--------------------------------------------------------------*/
@media (min-width: 992px) {
    .navbar-vertical {
        position: fixed;
        top: 0;
        right: 0;
        left: auto;
        width: 280px;
        height: 100vh;
        background-color: #1a1a1a;
        transition: right 0.4s ease-in-out;
        z-index: 1030;
    }

    /* Collapsed state for vertical navbar */
    .navbar-vertical.collapsed {
        right: -280px;
        /* Hide the navbar */
    }

    .navbar-vertical .navbar {
        flex-direction: column;
        align-items: flex-start;
        height: 100%;
        padding: 1.5rem;
    }

    .navbar-vertical .container {
        width: 100%;
        padding: 0;
        margin: 0;
        flex-direction: column;
        align-items: flex-start;
        height: 100%;
        display: flex;
    }

    .navbar-vertical .navbar-brand {
        margin-bottom: 1.5rem;
    }

    /* This is the key for the button at the bottom */
    .navbar-vertical .navbar-collapse {
        display: flex !important;
        flex-direction: column;
        flex-grow: 1;
        align-items: flex-start;
        width: 100%;
    }

    .navbar-vertical .navbar-nav {
        flex-direction: column !important;
        width: 100%;
    }

    .navbar-vertical .navbar-nav .ms-auto {
        margin-left: 0 !important;
    }

    .navbar-vertical .nav-item {
        width: 100%;
    }

    .navbar-vertical .nav-link {
        padding: 0.5rem 0;
    }

    /* Pushes the button to the bottom */
    .navbar-vertical .ms-lg-3 {
        margin-top: auto;
        margin-left: 0 !important;
        width: 100%;
    }

    /* Adjust main content to avoid overlap */
    #main,
    #hero,
    footer {
        margin-right: 280px;
        transition: margin-right 0.4s ease-in-out;
    }

    /* Adjust main content when navbar is collapsed */
    .navbar-vertical.collapsed~#main,
    .navbar-vertical.collapsed~#hero,
    .navbar-vertical.collapsed~footer {
        margin-right: 0;
    }

    /* --- Navbar Toggle Button --- */
    .navbar-toggle-icon-wrapper {
        position: absolute;
        top: 1.5rem;
        left: -48px;
        z-index: 10;
    }

    #navbar-toggle-btn {
        background-color: var(--secondary-color);
        border: none;
        color: white;
        padding: 0.5rem 0.85rem;
        border-radius: 5px 0 0 5px;
        box-shadow: -2px 2px 5px rgba(0, 0, 0, 0.2);
    }

    #navbar-toggle-btn:hover {
        background-color: #a34e2d;
    }

    html {
        scroll-padding-top: 0;
    }
}

/* Loader Styles */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--primary-color);
    /* Webtool's primary deep blue color */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.75s, visibility 0.75s;
}

#loader.hidden {
    opacity: 0;
    visibility: hidden;
}

#loader img {
    width: 300px;
    /* Adjust size as needed */
    animation: pulse 1.5s infinite ease-in-out;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(0.95);
    }
}

/* Language Selector Styles */
.language-selector a .fi {
    font-size: 1.5rem;
    /* Ajusta el tamaño de las banderas si es necesario */
    transition: opacity 0.3s ease-in-out;
}

/* Estilo para las banderas inactivas */
.language-selector a:not(.active) {
    opacity: 0.6;
}

/* Efecto hover para las banderas inactivas */
.language-selector a:not(.active):hover {
    opacity: 1;
}

/* Estilo para la bandera activa (sin opacidad) */
.language-selector a.active {
    opacity: 1;
}

/* Modular Architecture Section */
#modular-architecture {
    background-color: var(--light-gray) !important;
}

.modular-steps .step-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--secondary-color);
    line-height: 1;
    min-width: 60px;
}

.tech-graphic {
    background: white;
    padding: 3rem;
    border-radius: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.1);
}