/* Estilos generales */
body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
    background: #ffffff;
}

/* Header */
header {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 18px 36px;
    background: #ffffff;
    width: 100%;
    box-sizing: border-box;
    border-bottom: 1px solid rgba(31, 45, 92, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Logo y texto GBS */
.logo {
    display: flex;
    align-items: center;
    margin-right: auto; /* Mueve el logo a la izquierda */
}

.logo img {
    width: 200px;
    max-width: 100%;
    height: auto;
}

.gbs-text {
    color: #54B05A;
    font-weight: bold;
    font-size: 1.2em;
}

/* Menú de navegación */
nav {
    margin-right: 20px; /* Ajusta la distancia entre el logo y los botones */
    display: flex;
    align-items: center;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    text-decoration: none;
    color: #2f3f8f;
    font-weight: 600;
    font-size: 0.95em;
    position: relative;
    transition: color 0.3s ease-in-out;
    white-space: nowrap;
}

/* Efecto de hover en los enlaces del menú */
nav ul li a:hover {
    color: #7985bb;
}

nav ul li a::after {
    content: "";
    display: block;
    width: 0;
    height: 2px;
    background: #7985bb;
    transition: width 0.3s ease-in-out;
}

nav ul li a:hover::after {
    width: 100%;
}

/* Botón de contacto */
.btn-contact {
    background: #2f3f8f;
    color: white;
    padding: 11px 18px;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.92em;
    transition: all 0.3s ease;
    margin-left: 20px;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    box-shadow: 0 8px 20px rgba(47, 63, 143, 0.18);
}

.btn-contact:hover {
    background: #1f2d5c;
    color: white;
    transform: translateY(-1px);
}

/* Contenido principal */
h1 {
    font-size: 2.5em;
    color: #2b2c64;
    margin-top: 20px;
    text-align: center;
}

.subtitle {
    font-size: 1.2em;
    color: #495fc0;
    text-align: center;
}


/* Efecto de aparición */
@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Aplicar el efecto de aparición a los elementos */

.hero-content h1,
.hero-content .subtitle {
    opacity: 0;
    animation: fade-in 1s ease-in-out forwards;
}

.hero-content .subtitle {
    animation-delay: 0.3s;
}
.hero-carousel {
    position: relative;
    height: 85vh;
    min-height: 560px;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-overlay {
    position: absolute;
    inset: 0;
    background: rgba(31, 45, 92, 0.55);
    z-index: 2;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    text-align: center;
    color: white;
    max-width: 900px;
    width: 100%;
    padding: 0 20px;
    box-sizing: border-box;
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 700;
    margin: 0 0 18px;
    color: white;
    text-align: center;
}

.hero-content .subtitle {
    font-size: 1.25rem;
    font-weight: 400;
    line-height: 1.5;
    margin: 0 auto;
    max-width: 750px;
    color: rgba(255, 255, 255, 0.92);
    text-align: center;
}

.carousel {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}
.carousel img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 22%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.carousel img.active {
    opacity: 1;
    z-index: 1;
    animation: fade-in 1.2s ease-in-out;
}
.carousel-dots {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    z-index: 4;
    flex-wrap: nowrap;
    box-sizing: border-box;
    padding: 0 10px;
}

.carousel-dot {
    width: 11px;
    height: 11px;
    min-width: 11px;
    min-height: 11px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: rgba(255,255,255,0.65);
    border: 1px solid rgba(39,53,114,0.35);
    cursor: pointer;
    transition: all 0.25s ease;
}

.carousel-dot.active {
    background: #273572;
    transform: scale(1.15);
}

footer {
    text-align: center;
    padding: 20px;
    background-color: #f7fdff;
}

.legal-links {
    font-size: 14px;
    color: #666;
}

.legal-links a {
    color: #666;
    text-decoration: none;
    margin: 0 10px;
}

.legal-links a:hover {
    text-decoration: underline;
}


/* Media Queries para hacer la web responsive */

/* Tablets (768px - 1024px) */
@media (max-width: 1024px) {
    header {
        padding: 15px;
        flex-wrap: wrap;
        justify-content: space-between;
    }

    nav {
        margin-right: 0;
    }

    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }

    nav ul li {
        margin: 10px;
    }

.hero-carousel {
    height: 75vh;
    min-height: 500px;
}

.hero-content h1 {
    font-size: 3.2rem;
}

.hero-content .subtitle {
    font-size: 1.15rem;
}

    .carousel-dots {
        bottom: 10px;
        gap: 6px;
	padding: 0 8px;
    }

    .carousel-dot {
        width: 8px;
        height: 8px;
	min-width: 8px;
	min-height: 8px;
    }

}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }

    .logo {
        margin: 0;
    }

    .logo img {
        width: 170px;
        max-width: 100%;
        height: auto;
    }

    nav {
        margin-right: 0;
        width: 100%;
    }

    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
        width: 100%;
    }

    nav ul li {
        margin-left: 0;
    }

    nav ul li a {
        display: inline-block;
        width: auto;
        font-size: 0.82em;
    }

    .btn-contact {
        width: auto;
        margin-left: 0;
        padding: 10px 18px;
        font-size: 0.82em;
        border-radius: 8px;
        box-shadow: none;
    }

.hero-carousel {
    height: 45vh;
    min-height: 260px;
}

.carousel img {
    object-fit: fill;
    object-position: center 22%;
}

    .hero-content {
        padding: 0 16px;
        max-width: 92%;
    }

    .hero-content h1 {
        font-size: 2.5rem;
        margin-bottom: 12px;
    }

    .hero-content .subtitle {
        font-size: 1rem;
        line-height: 1.4;
        max-width: 520px;
    }

    .carousel-dots {
        bottom: 18px;
        gap: 6px;
    }

    .carousel-dot {
        width: 7px;
        height: 7px;
        min-width: 7px;
        min-height: 7px;
    }
}
@media (max-width: 480px) {
    header {
        padding: 12px;
        gap: 12px;
    }

    .logo img {
        width: 150px;
    }

    nav ul {
        gap: 8px;
    }

    nav ul li a {
        font-size: 0.78em;
    }

    .btn-contact {
        padding: 8px 14px;
        font-size: 0.78em;
        border-radius: 8px;
    }

.hero-carousel {
    height: 45vh;
    min-height: 260px;
}

.carousel img {
    object-fit: fill;
    object-position: center 24%;
}
    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content .subtitle {
        font-size: 0.95rem;
        max-width: 300px;
    }

    .carousel-dots {
        bottom: 14px;
        gap: 5px;
    }

    .carousel-dot {
        width: 6px;
        height: 6px;
        min-width: 6px;
        min-height: 6px;
    }
}