* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: all ease-in .3s;
}

body {

    font-family: Inter, sans-serif;
    background: #fff;
    color: #222;

}

header {

    width: 100%;
    padding: 10px 10%;
    position: sticky;
    top: 0px;
    left: 0px;
    background-color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;

}

.logo {

    font-size: 28px;
    font-weight: 800;
    color: #102F5F;

}

nav {

    display: flex;
    gap: 10px;
    background: white;
    padding: 10px 20px;
}

header {
    class: sticky;
    background: white;
    box-shadow: 0px 0px 10px #00000040;
    z-index: 1000;
}

nav a {

    color: #444;
    border-bottom: 2px solid #02255a50;
    text-decoration: none;
    padding: 10px 20px;

}

nav a:first-child {

    border-bottom: none;
    text-decoration: none;

}

.hero {
    min-height: 90vh;
    margin-top: 50px;
    display: flex;
    align-items: center;
    padding: 0 10%;

}

.hero h1 {

    font-size: 70px;
    line-height: 1;

    max-width: 700px;

}


.hero p {

    margin-top: 30px;

    font-size: 22px;

    max-width: 700px;

    color: #666;

}

.concepto {

    margin-top: 60px;

    display: flex;

    gap: 25px;

}

.box {

    padding: 25px;
    width: 50%;

    border-left: 6px solid #02255a;

    background: #fafafa;

}

.btn {

    display: inline-block;

    margin-top: 50px;

    padding: 18px 40px;

    background: #102F5F;

    color: white;

    text-decoration: none;

    border-radius: 6px;

}

.servicios {
    padding: 120px 10%;
    gap: 30px;
}

.card {
    padding: 40px;
    border: 1px solid #eee;
    transition: .3s;
}

.card h2{
    font-size: 20px;
    font-weight: 600;
}

.card:hover {

    transform: translateY(-8px);

    border-color: #F7F9FC;

}

.card h2 {

    margin-bottom: 15px;

}

.proyectos {

    padding: 120px 10%;

    background: #fafafa;

}

.grid {

    margin-top: 50px;

    display: grid;

    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));

    gap: 30px;

}

.proyecto {

    background: white;
    color: #02255a;

    padding: 30px;

}

footer {

    padding: 60px;

    text-align: center;

}

.proyectos h2 {
    border-bottom: solid 5px #02255a;
    width: 200px;

}

.show {
    right: 0px;
}

.carousel {
    position: relative;
    display: flex;
    gap: 20px;
    padding: 25px;

    height: 350px;
    overflow-x: auto;
    overflow-y: hidden;

    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;

    transition: height .35s ease;
}

.carousel.expand {
    height: 700px;
}

.toque-aqui {
    opacity: 0;
}

.toque-aqui.show {
    opacity: 1;
}


/* Cada elemento */
.carousel-item {
    position: relative;
    flex: 0 0 300px;
    width: 300px;
    height: 100%;
    border-radius: 18px;
    overflow: hidden;
    scroll-snap-align: center;
    scroll-snap-stop: always;
    background: white;
}

.carousel-item .title {
    position: absolute;
    bottom: 0px;
    left: 0px;
    width: 100%;
    padding: 20px;

    background: linear-gradient(to top, #00000080, transparent);

    color: white;
    z-index: 10;
}

/* Imagen */
.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    display: block;

}

/* Difuminado negro hacia abajo */
.carousel-item::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;

    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0) 65%,
            rgba(0, 0, 0, .15) 70%,
            rgba(0, 0, 0, .55) 90%,
            rgba(0, 0, 0, .9) 100%);
}

/* Opcional: pequeño margen para que el primero y último puedan centrarse */
.carousel::before,
.carousel::after {
    content: "";
    flex: 0 0 calc(20vw - 170px);
}


.carousel {
    scrollbar-width: thin;
    scrollbar-color: #02255a #d8e0ef;
}

/* Chrome, Edge, Opera */
.carousel::-webkit-scrollbar {
    height: 10px;
}

.carousel::-webkit-scrollbar-track {
    background: #d8e0ef;
    border-radius: 999px;
}

.carousel::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg,
            #0a3b87 0%,
            #02255a 100%);
    border-radius: 999px;
    border: 2px solid #d8e0ef;
    transition: background .2s ease;
}

.carousel::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg,
            #1350b3 0%,
            #03306f 100%);
}

.carousel::-webkit-scrollbar-thumb:active {
    background: #011a41;
}

.carousel::-webkit-scrollbar-corner {
    background: transparent;
}

/* Ocultar las flechas */
.carousel::-webkit-scrollbar-button {
    display: none;
    width: 0;
    height: 0;
}

.dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: .5rem;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: .5rem;
    box-shadow: 0 10px 15px rgba(0,0,0,.1);
    z-index: 100;
}

.dropdown-menu a {
    display: block;
    padding: .75rem 1rem;
    white-space: nowrap;
}

.dropdown-menu a:hover {
    background: #f3f4f6;
}

.dropdown:hover .dropdown-menu {
    display: block;
}