:root {
    --primary-color: #00236f;
    --secondary-color: #006d37;
    --secondary-light: #6bfe9c;
    --background-light: #f6fafe;
    --surface-container: #eaeef2;
    --text-on-surface: #171c1f;
    --text-variant: #444651;
}

body {
    color: var(--text-on-surface);
    background-color: var(--background-light);
    overflow-x: hidden;
    scroll-behavior: smooth;
}

h1,
h2,
h3,
h4,
.navbar-brand,
.nav-link,
.btn-headline {
    font-weight: 700;
}

.navbar {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background-color: rgba(255, 255, 255, 0.95);
    padding: 0.4rem 2rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}

.nav-link {
    color: var(--text-variant) !important;
    font-weight: 600;
    margin: 0 1rem;
    position: relative;
    transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color) !important;
}

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

.nav-link.active::after,
.nav-link:hover::after {
    width: 100%;
}

.btn-primary-csm {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0.6rem 1.8rem;
    border-radius: 6px;
    font-weight: 600;
    transition: transform 0.2s, opacity 0.2s, box-shadow 0.2s;
}

.btn-primary-csm:hover {
    opacity: 0.95;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 35, 111, 0.2);
}

.hero-section {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    background: #00164e;
    color: white;
    overflow: hidden;
    padding-top: 80px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    object-fit: cover;
    opacity: 0.5;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: rgba(0, 22, 78, 0.5);
}

.hero-content {
    position: relative;
    z-index: 3;
}

.badge-precision {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(107, 254, 156, 0.15);
    color: var(--secondary-light);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(107, 254, 156, 0.3);
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--secondary-light);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--secondary-light);
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.text-accent {
    color: var(--secondary-light);
}

.hero-code-box {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 12px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    animation: float 6s ease-in-out infinite;
    transition: transform 0.1s ease-out;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

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

.section-tag {
    color: var(--secondary-color);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    margin-bottom: 1rem;
    display: block;
}

.service-card {
    height: 100%;
    padding: 2.5rem;
    border-radius: 16px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    background: white;
    border: none;
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 35, 111, 0.08);
}

.card-primary-border {
    border-bottom: 5px solid var(--primary-color);
}

.card-secondary-border {
    border-bottom: 5px solid var(--secondary-color);
}

.bg-grey-card {
    background-color: var(--surface-container);
}

.service-card.bg-grey-card:hover {
    background-color: var(--primary-color);
    color: white;
}

.service-card.bg-grey-card:hover p,
.service-card.bg-grey-card:hover h4,
.service-card.bg-grey-card:hover .service-icon {
    color: white !important;
}

.service-icon {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    display: block;
    transition: color 0.3s ease;
}

.bg-grey-card .service-icon {
    color: var(--secondary-color);
}

.nosotros-section {
    padding: 100px 0;
    background-color: #f0f4f8;
}

.about-image-wrapper {
    position: relative;
    padding: 2rem;
}

.about-image {
    border-radius: 1rem;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
    z-index: 2;
    position: relative;
    width: 100%;
    height: auto;
    aspect-ratio: 581 / 300;
    object-fit: cover;
}

.experience-badge {
    position: absolute;
    bottom: -10px;
    right: -10px;
    background: var(--primary-color);
    color: white;
    padding: 2rem;
    border-radius: 12px;
    z-index: 3;
    box-shadow: 0 15px 30px rgba(0, 35, 111, 0.3);
}

.experience-badge .number {
    font-size: 2rem;
    font-weight: 500;
    line-height: 1;
}

.check-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1.2rem;
    font-size: 1.1rem;
}

.check-item span {
    color: var(--secondary-color);
    font-size: 1.5rem;
}

.case-card {
    border-radius: 1rem;
    overflow: hidden;
    cursor: pointer;
    border: none;
    background: transparent;
    transition: transform 0.3s ease;
}

.case-card:hover {
    transform: translateY(-5px);
}

.case-img-container {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
    aspect-ratio: 16/9;
    margin-bottom: 1.5rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

.case-img-container img {
    transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.case-tag {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary-color);
    padding: 0.3rem 0.8rem;
    font-size: 0.75rem;
    font-weight: 800;
    border-radius: 6px;
    letter-spacing: 1px;
    z-index: 2;
}

.contact-section {
    background: var(--primary-color);
    color: white;
    padding: 100px 0;
    position: relative;
}

.form-control-custom {
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 0;
    color: white;
    padding: 1rem 0;
    transition: border-color 0.3s, padding-left 0.3s;
}

.form-control-custom:focus {
    background: transparent;
    color: white;
    border-color: var(--secondary-light);
    box-shadow: none;
    outline: none;
    padding-left: 10px;
}

.form-control-custom::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

label.form-label-small {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--secondary-light);
    margin-bottom: 0;
    font-weight: 700;
}

footer {
    background: #061121;
    padding: 4rem 0 2rem 0;
    color: #9eadc4;
}

.footer-link {
    color: #9eadc4;
    text-decoration: none;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 1rem;
    transition: color 0.3s;
    font-weight: 600;
}

.footer-link:hover {
    color: var(--secondary-light);
}

.mobile-nav {
    display: none;
}

@media (max-width: 991px) {
    .mobile-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        width: 100%;
        background: white;
        box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        justify-content: space-around;
        padding: 0.8rem 0;
        padding-bottom: calc(0.8rem + env(safe-area-inset-bottom));
    }

    .mobile-nav a {
        color: var(--text-variant);
        text-decoration: none;
        text-align: center;
        font-size: 0.7rem;
        font-weight: 700;
        text-transform: uppercase;
        transition: color 0.3s;
    }

    .mobile-nav span {
        display: block;
        font-size: 1.8rem;
        margin-bottom: 2px;
    }

    .mobile-nav a.active {
        color: var(--primary-color);
    }

    .navbar {
        display: none;
    }

    body {
        padding-bottom: 70px;
    }
}

.contacto-banner {
    background-color: var(--primary-color);
    padding: 80px 15px;
}

.contacto-card-wrapper {
    background-color: #0b2566;
    border-radius: 24px;
    padding: 4rem 2rem;
    max-width: 1100px;
    margin: 0 auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.contacto-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: white;
    margin-bottom: 1rem;
    letter-spacing: -1px;
}

.contacto-subtitle {
    color: #a3b8e5;
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

.contacto-subtitle strong {
    color: white;
    font-weight: 700;
}

.info-card {
    background-color: #1a3675;
    border-radius: 16px;
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    height: 100%;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.info-card:hover {
    transform: translateY(-8px);
    background-color: #1f408a;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.1);
}

.info-card-icon {
    font-size: 2.5rem !important;
    color: #4ade80;
    margin-bottom: 1.5rem;
}

.info-card-label {
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: #8da4d6;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.info-card-value {
    font-size: 1rem;
    font-weight: 600;
    color: white;
    word-break: break-word;
}