.fade {
    opacity: 0;
    animation: fadeIn 1s ease forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.card-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    transform-style: preserve-3d;
}

.card-hover:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.bgcontainer {
    background-color: #eeeeee;
}

.form-control:focus {
    border-color: #a0a0a0;
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(38, 38, 39, 0.25);
}

/* Carrusel */

.carousel-caption-custom {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    margin-left: 15%;
    z-index: 10;
    max-width: 600px;
}

/* Font carrousel responsiva */
.carousel-caption-custom h1 {
    font-size: clamp(1.5rem, 2.5vw, 3rem);
}

.carousel-caption-custom p {
    font-size: clamp(1rem, 1.5vw, 1.5rem);
}

.carousel-item {
    position: relative;
}

.carousel-item .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    pointer-events: none;

}


/* Carrusel breakpoint */

@media (max-width: 790px) {
    .carousel-caption-custom {
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        margin-left: 0;
        text-align: center;
        padding: 1rem;
        max-width: 90%;
    }

    .carousel-caption-custom h1 {
        font-size: clamp(2rem, 5vw, 2rem);
    }

    .carousel-caption-custom p {
        font-size: clamp(0.9rem, 3.5vw, 1.2rem);
    }

    .btnhide {
        display: none;
    }
}

@media (max-width: 600px) {

    .carousel-caption-custom h1 {
        font-size: clamp(1.2rem, 1vw, 1rem);
    }

    .carousel-caption-custom p {
        font-size: clamp(0.2rem, 2.9vw, 1.5rem);
    }

    .btnhide {
        display: none;
    }
}

/* Contacto */

.contactusbtn {
    margin-left: 9px;
}

@media (max-width: 991px) {

    .contactusbtn {
        margin-top: 7px;
        margin-left: 0px;
    }
}

/* Whatsapp */

.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    cursor: pointer;
}

.whatsapp-float img {
    width: 35px;
    height: 35px;
}

/* Colores empresa */

.bg-dark {
    background-color: #467a92 !important;
}

.bgprimary {
    background-color: #467a92;
}

.btn-dark {
    background-color: #467a92 !important;
    border-color: #467a92 !important;
}

.btn-dark:hover {
    background-color: #65b0d3 !important;
    border-color: #65b0d3 !important;
}

.modal-backdrop {
    background-color: rgba(0, 0, 0, 0.5);
}


:root {
    --default-font: "Roboto", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    --heading-font: "Barlow", sans-serif;
    --nav-font: "Inter", sans-serif;

    --background-color: #ffffff;
    --default-color: #020202;
    --heading-color: #020202;
    --accent-color: #467a92;
    --surface-color: #ffffff;
    --contrast-color: #ffffff;

    --nav-color: #ffffff;
    --nav-hover-color: #467a92;
    --nav-mobile-background-color: #ffffff;
    --nav-dropdown-background-color: #ffffff;
    --nav-dropdown-color: #14201c;

    scroll-behavior: smooth;
}

.dark-background {
    --background-color: #000704;
    --default-color: #ffffff;
    --heading-color: #ffffff;
    --surface-color: #28323a;
    --contrast-color: #ffffff;
}

/*--------------------------------------------------------------
# General Styling
--------------------------------------------------------------*/
body {
    color: var(--default-color);
    background-color: var(--background-color);
    font-family: var(--default-font);
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: 0.3s;
}

a:hover {
    color: color-mix(in srgb, var(--accent-color), transparent 25%);
    text-decoration: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--heading-color);
    font-family: var(--heading-font);
}

/*--------------------------------------------------------------
# Header
--------------------------------------------------------------*/
.header {
    --background-color: rgba(0, 0, 0, 0.486);
    --heading-color: #ffffff;
    --surface-color: rgba(255, 255, 255, 0.055);
    color: var(--default-color);
    transition: all 0.5s;
    z-index: 997;
    background-color: var(--background-color);
}

.header .topbar {
    background-color: var(--background-color);
    height: 40px;
    padding: 0;
    font-size: 14px;
    transition: all 0.5s;
}

.header .topbar .contact-info i {
    font-style: normal;
    color: var(--contrast-color);
}

.header .topbar .contact-info i a,
.header .topbar .contact-info i span {
    padding-left: 5px;
    color: var(--contrast-color);
}

@media (max-width: 575px) {

    .header .topbar .contact-info i a,
    .header .topbar .contact-info i span {
        font-size: 13px;
    }
}

.header .topbar .contact-info i a {
    line-height: 0;
    transition: 0.3s;
}

.header .topbar .contact-info i a:hover {
    color: var(--contrast-color);
    text-decoration: underline;
}

.header .branding {
    min-height: 60px;
    padding: 10px 0;
}

.header .logo {
    line-height: 1;
}

.header .logo img {
    max-height: 36px;
    margin-right: 8px;
}

.header .logo h1 {
    font-size: 30px;
    margin: 0;
    font-weight: 700;
    color: var(--heading-color);
}

.scrolled .header {
    box-shadow: 0px 0 18px rgba(0, 0, 0, 0.1);
}

.scrolled .header .topbar {
    height: 0;
    visibility: hidden;
    overflow: hidden;
}

/*--------------------------------------------------------------
# Desktop Main Menu
--------------------------------------------------------------*/
@media (min-width: 1200px) {
    .mainmenu {
        padding: 0;
    }

    .mainmenu ul {
        margin: 0;
        padding: 0;
        display: flex;
        list-style: none;
        align-items: center;
    }

    .mainmenu li {
        position: relative;
    }

    .mainmenu>ul>li {
        white-space: nowrap;
        padding: 15px 14px;
    }

    .mainmenu>ul>li:last-child {
        padding-right: 0;
    }

    .mainmenu a,
    .mainmenu a:focus {
        color: var(--nav-color);
        font-size: 14px;
        padding: 0 2px;
        font-family: var(--nav-font);
        font-weight: 500;
        display: flex;
        align-items: center;
        justify-content: space-between;
        white-space: nowrap;
        transition: 0.3s;
        position: relative;
    }

    .mainmenu a i,
    .mainmenu a:focus i {
        font-size: 12px;
        line-height: 0;
        margin-left: 5px;
        transition: 0.3s;
    }

    .mainmenu>ul>li>a:before {
        content: "";
        position: absolute;
        height: 2px;
        bottom: -6px;
        left: 0;
        background-color: var(--nav-hover-color);
        visibility: hidden;
        width: 0px;
        transition: all 0.3s ease-in-out 0s;
    }

    .mainmenu a:hover:before,
    .mainmenu li:hover>a:before,
    .mainmenu .active:before {
        visibility: visible;
        width: 100%;
    }

    .mainmenu li:hover>a,
    .mainmenu .active,
    .mainmenu .active:focus {
        color: color-mix(in srgb, var(--nav-color) 90%, white 15%);
    }
}

/*--------------------------------------------------------------
# Mobile Main Menu
--------------------------------------------------------------*/
@media (max-width: 1199px) {
    .mobile-nav-toggle {
        color: var(--nav-color);
        font-size: 28px;
        line-height: 0;
        margin-right: 10px;
        cursor: pointer;
        transition: color 0.3s;
    }

    .mainmenu {
        padding: 0;
        z-index: 9997;
    }

    .mainmenu ul {
        display: none;
        list-style: none;
        position: absolute;
        inset: 60px 20px 20px 20px;
        padding: 10px 0;
        margin: 0;
        border-radius: 6px;
        background-color: var(--nav-mobile-background-color);
        border: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
        box-shadow: none;
        overflow-y: auto;
        transition: 0.3s;
        z-index: 9998;
    }

    .mainmenu a,
    .mainmenu a:focus {
        color: var(--nav-dropdown-color);
        padding: 10px 20px;
        font-family: var(--nav-font);
        font-size: 17px;
        font-weight: 500;
        display: flex;
        align-items: center;
        justify-content: space-between;
        white-space: nowrap;
        transition: 0.3s;
    }

    .mainmenu a i {
        font-size: 12px;
        line-height: 0;
        margin-left: 5px;
        width: 30px;
        height: 30px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        transition: 0.3s;
        background-color: color-mix(in srgb, var(--accent-color), transparent 90%);
    }

    .mainmenu a i:hover {
        background-color: var(--accent-color);
        color: var(--contrast-color);
    }

    .mainmenu .active i,
    .mainmenu .active:focus i {
        background-color: var(--accent-color);
        color: var(--contrast-color);
        transform: rotate(180deg);
    }

    .mobile-nav-active {
        overflow: hidden;
    }

    .mobile-nav-active .mobile-nav-toggle {
        color: #fff;
        position: absolute;
        font-size: 32px;
        top: 15px;
        right: 15px;
        margin-right: 0;
        z-index: 9999;
    }

    .mobile-nav-active .mainmenu {
        position: fixed;
        overflow: hidden;
        inset: 0;
        background: rgba(33, 37, 41, 0.8);
        transition: 0.3s;
    }

    .mobile-nav-active .mainmenu>ul {
        display: block;
    }
}

/*--------------------------------------------------------------
# Banner Section
--------------------------------------------------------------*/
.banner {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 120px 0 60px 0;
}

.banner .banner-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.banner .banner-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.banner .banner-background .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, color-mix(in srgb, var(--background-color), transparent 25%) 0%, color-mix(in srgb, var(--background-color), transparent 10%) 500%);
}

.banner .container {
    position: relative;
    z-index: 2;
    padding: 40px 15px;
}

.banner .badge {
    display: inline-block;
    padding: 8px 20px;
    background: color-mix(in srgb, var(--accent-color), transparent 20%);
    color: var(--contrast-color);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 50px;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid color-mix(in srgb, var(--accent-color), transparent 60%);
}

.banner h1 {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
}

.banner p {
    font-size: 20px;
    line-height: 1.6;
    margin-bottom: 40px;
    color: color-mix(in srgb, var(--default-color), transparent 30%);
    max-width: 500px;
}

.banner .banner-actions {
    display: flex;
    gap: 24px;
    align-items: center;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.banner .banner-actions .btn-primary {
    background: var(--accent-color);
    color: var(--contrast-color);
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px color-mix(in srgb, var(--accent-color), transparent 60%);
}

.banner .banner-actions .btn-primary:hover {
    background: color-mix(in srgb, var(--accent-color), black 10%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px color-mix(in srgb, var(--accent-color), transparent 40%);
    color: var(--contrast-color);
}

/*--------------------------------------------------------------
# Feature Cards
--------------------------------------------------------------*/
.card-feature {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    margin-bottom: 20px;
    height: calc(50% - 10px);
}

.card-feature:hover {
    transform: translateY(-5px);
}

.card-feature i {
    font-size: 32px;
    color: var(--accent-color);
    margin-bottom: 12px;
}

.card-feature span {
    font-size: 14px;
    font-weight: 600;
    color: color-mix(in srgb, var(--default-color), transparent 30%);
}

/*--------------------------------------------------------------
# Media Queries
--------------------------------------------------------------*/
@media (max-width: 992px) {
    .banner .banner-visual {
        margin-top: 60px;
    }

    .card-feature {
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .banner h1 {
        font-size: 42px;
    }

    .banner p {
        font-size: 18px;
    }

    .banner .banner-actions {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .card-feature {
        padding: 16px;
    }

    .card-feature i {
        font-size: 24px;
    }

    .card-feature span {
        font-size: 12px;
    }
}

@media (max-width: 576px) {
    .banner h1 {
        font-size: 36px;
    }

    .banner .banner-visual {
        margin-top: 40px;
    }

    .card-feature {
        padding: 12px;
        margin-bottom: 12px;
    }

    .card-feature i {
        font-size: 20px;
        margin-bottom: 8px;
    }

    .card-feature span {
        font-size: 11px;
    }
}

.banner .badge {
    display: inline-block;
    padding: 8px 20px;
    color: var(--contrast-color);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 50px;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid color-mix(in srgb, var(--accent-color), transparent 60%);
}

/* Animaciones */
.scroll-animate {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
}

.scroll-animate.active {
    opacity: 1;
    transform: translateY(0);
}

/* Variación con delay */
.scroll-animate.delay-1 {
    transition-delay: 0.3s;
}

.scroll-animate.delay-2 {
    transition-delay: 0.4s;
}

.scroll-animate.delay-3 {
    transition-delay: 0.5s;
}

.scroll-animate.delay-4 {
    transition-delay: 0.6s;
}