@font-face {
  font-family: "Futura";
  src:
    local("Futura"),
    url("../fonts/Futura-Light.ttf") format("truetype");
      font-style: normal;
  font-weight: normal;
}
 
@font-face {
  font-family: "FuturaMedium";
  src:
    local("FuturaMedium"),
    url("../fonts/Futura-Medium.ttf") format("truetype");
    font-style: normal;
    font-weight: normal;
}

@font-face {
  font-family: "FuturaBold";
  src:
    local("FuturaBold"),
    url("../fonts/Futura-Bold.ttf") format("truetype");
    font-style: normal;
    font-weight: normal;
}



:root {
    --primary: #169186;
    --secondary: #C8583B;
    --third: #DD9C2F;
    --dark: #1e293b;
    --light: #f8fafc;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

a{
    text-decoration: none;
    list-style: none;
}

body {
    font-family: 'Futura', Verdana, sans-serif;
    overflow-x: hidden;
}

.border-main{
    border-color: var(--primary) !important;
}

.color-main{

    color: var(--primary);

}

.color-secondary{

    color: var(--secondary);

}
.color-third{

    color: var(--third);

}



/* Ocultar elementos del sidebar en desktop */
.sidebar-logo{
    display: none;
}

/* Navbar */
.navbar {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 1rem 0;
    transition: all 0.3s;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary) !important;
}

.nav-link {
    color: var(--dark) !important;
    font-weight: 500;
    margin: 0 0.5rem;
    transition: color 0.3s;
    position: relative;
    font-weight: bold;

}

.nav-link:hover {
    color: var(--primary) !important;
}

/* Menú hamburguesa personalizado */
.navbar-toggler {
    border: none;
    padding: 0.5rem;
    position: relative;
    width: 40px;
    height: 40px;
    z-index: 1100;
    right: -100px;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-toggler-icon {
    display: none;
}

.hamburger {
    width: 30px;
    height: 3px;
    background: var(--primary);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s;
    border-radius: 3px;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 3px;
    background: var(--primary);
    left: 0;
    transition: all 0.3s;
    border-radius: 3px;
}

.hamburger::before {
    top: -10px;
}

.hamburger::after {
    top: 10px;
}

.navbar-toggler[aria-expanded="true"] .hamburger {
    background: transparent;
}

.navbar-toggler[aria-expanded="true"] .hamburger::before {
    top: 0;
    transform: rotate(45deg);
    background: white;
}

.navbar-toggler[aria-expanded="true"] .hamburger::after {
    top: 0;
    transform: rotate(-45deg);
    background: white;
}

/* Overlay oscuro para sidebar */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(3px);
    z-index: 1040;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.menu-overlay.show {
    opacity: 1;
    visibility: visible;
}

/* Menú móvil SIDEBAR */
@media (max-width: 991px) {
    .navbar-collapse {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 350px;
        height: 100vh;
        /*background: linear-gradient(180deg, var(--dark) 0%, #0f172a 100%);*/
        background-color: var(--primary);
        z-index: 1050;
        padding: 0;
        transition: right 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
        overflow-y: auto;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    }

    .sidebar-logo{
        display: block;
    }


    .navbar-collapse.show {
        right: 0;
    }

    .navbar-nav {
        padding: 100px 0 30px 0;
    }

    .nav-item {
        opacity: 0;
        transform: translateX(50px);
        transition: all 0.3s ease;
    }

    .navbar-collapse.show .nav-item {
        opacity: 1;
        transform: translateX(0);
    }

    .navbar-collapse.show .nav-item:nth-child(1) { transition-delay: 0.1s; }
    .navbar-collapse.show .nav-item:nth-child(2) { transition-delay: 0.15s; }
    .navbar-collapse.show .nav-item:nth-child(3) { transition-delay: 0.2s; }
    .navbar-collapse.show .nav-item:nth-child(4) { transition-delay: 0.25s; }
    .navbar-collapse.show .nav-item:nth-child(5) { transition-delay: 0.3s; }
    .navbar-collapse.show .nav-item:nth-child(6) { transition-delay: 0.35s; }

    .nav-link {
        color: rgba(255, 255, 255, 0.8) !important;
        padding: 1.2rem 2rem !important;
        margin: 0 !important;
        font-size: 1.1rem !important;
        font-weight: 600 !important;
        border-left: 3px solid transparent;
        transition: all 0.3s;
        position: relative;
        display: flex;
        align-items: center;
    }

    .nav-link::before {
        content: '›';
        font-size: 1.5rem;
        margin-right: 0.5rem;
        opacity: 0;
        transform: translateX(-10px);
        transition: all 0.3s;
    }

    .nav-link:hover {
        color: white !important;
        background: rgba(255, 255, 255, 0.2);
        border-left-color: var(--primary);
        padding-left: 2.5rem !important;
    }

    .nav-link:hover::before {
        opacity: 1;
        transform: translateX(0);
    }

    /* Información adicional en sidebar */
    .sidebar-footer {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        padding: 2rem;
        background: rgba(0, 0, 0, 0.3);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .sidebar-social {
        display: flex;
        gap: 1rem;
        justify-content: center;
        margin-top: 1rem;
    }

    .sidebar-social a {
        width: 40px;
        height: 40px;
        background: rgba(255, 255, 255, 0.9);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--primary);
        transition: all 0.3s;
        border: 1px solid rgba(37, 99, 235, 0.3);
        list-style: none;
        text-decoration: none;
    }

    .sidebar-social a:hover {
        background: var(--primary);
        color: var(--light);
        transform: translateY(-3px);
        box-shadow: 0 5px 15px rgba(37, 99, 235, 0.4);
    }

    .sidebar-contact {
        text-align: center;
        color: rgba(255, 255, 255, 0.9);
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }

    /* Logo en sidebar */
    .sidebar-logo {
        position: absolute;
        top: 20px;
        left: 2rem;
        font-size: 1.3rem;
        font-weight: bold;
        color: white;
    }

    /* Decoración del sidebar */
    .navbar-collapse::before {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        width: 200px;
        height: 200px;
        background: radial-gradient(circle, rgba(37, 99, 235, 0.2) 0%, transparent 70%);
        pointer-events: none;
    }

    .navbar-collapse::after {
        content: '';
        position: absolute;
        bottom: 150px;
        right: -50px;
        width: 150px;
        height: 150px;
        background: radial-gradient(circle, rgba(37, 99, 235, 0.15) 0%, transparent 70%);
        pointer-events: none;
    }
}



    /* Hero Section */
        .hero {
            position: relative;
            color: white;
            padding: 120px 0 80px;
            min-height: 90vh;
            display: flex;
            align-items: center;
            overflow: hidden;
        }

        .hero-video {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
            z-index: 0;
        }

        .hero-overlay {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(135deg, rgba(22, 145, 134, 0.85), rgba(0, 8, 8, 0.3));
            z-index: 1;
        }

        .hero .container {
            position: relative;
            z-index: 2;
        }

        .hero h1 {
            font-size: 3rem;
            font-weight: bold;
            margin-bottom: 1.5rem;
            text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
            min-height: 150px;
        }

        .hero-subtitle {
            font-size: 1.25rem;
            margin-bottom: 2rem;
            text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.3);
            min-height: 60px;
            display: block;
        }

        .hero p {
            font-size: 1.7rem;
            margin-bottom: 2rem;
            text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.3);
        }

         /* Animaciones iniciales - elementos ocultos */
        .hero h1,
        .hero-subtitle {
            opacity: 0;
        }

         .hero .btn-custom {
            opacity: 0;
        }

        .btn-custom {
            background: white;
            color: var(--primary);
            padding: 12px 30px;
            border-radius: 50px;
            font-weight: 600;
            transition: all 0.3s;
            border: 1px solid var(--primary);
        }

        .btn-custom:hover {
            color: var(--light);
            background-color: var(--primary);
            transform: translateY(-2px);
            box-shadow: 0px 10px 20px rgba(0,0,0,0.2);
        }


/* Sections */
section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary);
    margin-bottom: 1rem;
}

.section-title p {
    color: #64748b;
    font-size: 1.4rem;
    font-weight: 600;
}

/* Services */
.service-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s;
    height: 100%;
    border: 2px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
}

.service-card i {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--dark);
}

/* Process Steps */
.process-step {
    text-align: center;
    padding: 2rem;
}

.process-number {
    width: 60px;
    height: 60px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 1rem;
}

/* Portfolio */
.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    margin-bottom: 30px;
    cursor: pointer;
}

.portfolio-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.3s;
}

.portfolio-item:hover img {
    transform: scale(1.1);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /*background: rgba(37, 99, 235, 0.9);*/
    background-color: rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-overlay h4 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.portfolio-overlay p {
    color: white;
}

/* Contact */
.contact-info {
    background: var(--light);
    padding: 0 2rem;
    border-radius: 15px;
    height: 100%;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    justify-content: center;
}

.contact-item i {
    font-size: 1rem;
    color: var(--primary);
    margin-right: 1rem;
    margin-top: 0.25rem;
}

/* Footer */
footer {
    background: var(--primary);
    color: white;
    padding: 2rem 0;
    text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .section-title h2 {
        font-size: 2rem;
    }
}




.swiper {
  width: 100%;
  padding-top: 40px 0;
  padding-bottom: 40px;
}

.swiper-slide {
  width: 280px;
  display: flex;
  justify-content: center;

}

.swiper-slide img {
  width: 100%;
  /*box-shadow: 2px 2px 3px  var(--dark);*/
  box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
  /*border-radius: 12px;*/
}

.swiper-button-next, .swiper-button-prev {
    color: var(--primary);

    }





.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--third);
    color: #fff;
    font-size: 32px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    text-align: center;
    line-height: 60px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    z-index: 999;
    transition: transform .3s ease, box-shadow .3s ease;
}
.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 14px rgba(0,0,0,0.4);
}

/* ===== BOTÓN DE IR ARRIBA ===== */
.btn-top {
    position: fixed;
    bottom: 110px;
    right: 30px;
    width: 55px;
    height: 55px;
    background: var(--primary);
    border-radius: 50%;
    color: #fff;
    border: none;
    display: none; /* oculto hasta que se haga scroll */
    justify-content: center;
    align-items: center;
    font-size: 28px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    z-index: 999;
    transition: transform .3s ease;
}
.btn-top:hover {
    transform: scale(1.1);
}