body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    color: #ffffff;
    background: #ffffff;
}

/* Header */
header {
    display: flex;
    justify-content: flex-end; /* Alinea los elementos a la derecha */
    align-items: center;
    padding: 15px 30px;
    background: #ffffff;
    width: 100%;
    box-sizing: border-box;
    flex-wrap: nowrap; /* Evita que los elementos se desborden */
}

/* Logo y texto GBS */
.logo {
    display: flex;
    align-items: center;
    margin-right: auto; /* Mueve el logo a la izquierda */
}

.logo img {
    width: 40px;
    margin-right: 10px;
}

.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: #54B05A;
    font-weight: bold;
    font-size: 0.9em;
    position: relative;
    transition: color 0.3s ease-in-out;
    white-space: nowrap; /* Evita que el texto se parta */
}

/* Efecto de hover en los enlaces del menú */
nav ul li a:hover {
    color: #2e7d32;
}

nav ul li a::after {
    content: "";
    display: block;
    width: 0;
    height: 2px;
    background: #2e7d32;
    transition: width 0.3s ease-in-out;
}

nav ul li a:hover::after {
    width: 100%;
}

/* Botón de contacto */
.btn-contact {
    background: #54B05A;
    color: white;
    padding: 10px 20px; /* Ajustado para evitar que se corte */
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    font-size: 0.9em;
    transition: background 0.3s ease-in-out;
    margin-left: 20px; /* Separación con el menú */
    white-space: nowrap; /* Evita que el texto se parta */
    display: inline-flex;
    align-items: center;
}

.btn-contact:hover {
    background: #2e7d32;
    color: white; 
}

body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    color: #fff;
    background: #000;
    text-align: center;
}

/* Contenedor principal */
section {
    position: relative;
    width: 100%;
    height: 93vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

section div {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

section img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

h1 {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 10px;
    filter: drop-shadow(2px); 
}

h2 {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 20px;
    filter: drop-shadow(2px); 
}

.contacto {
    background: #000;
    color: #fff;
    padding: 10px 20px;
    font-size: 1rem;
    font-weight: bold;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
    display: flex;
    align-items: center;
}

.contacto::before {
    content: "\f095";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    margin-right: 10px;
}

.contacto:hover {
    background: #333;
}

/* Animaciones */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
.segundo_panel { 
    background-color: white;
    max-height: 500px;
}
.title_events  { 
    color: rgb(61, 61, 61);
}
.new_description { 
    width: 1300px;
    color: #65ca6b;
}

.title_2{ 
    color: rgb(218, 216, 216); 
}

.tercer_panel{ 
    max-height: 600px;
}
/* Aplicando animaciones generales */
h2, h3, h4, section, .contacto, section, .main_foto{
    animation: fadeIn 1s ease-in-out;
    animation-fill-mode: both;
    animation-iteration-count: 1;
}

h1, h2, .contacto, .main_foto { 
    animation: fadeInUp 1s ease-in-out; 
    animation-fill-mode: both;
    animation-iteration-count: 1;
}

.main_foto { 
    filter: brightness(0.4);
}

/* Scrollbar personalizada */
::-webkit-scrollbar {
    width: 10px;
    border-radius: 10px;
}

::-webkit-scrollbar-track {
    background: #e0f2e9;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #54B05A, #2e7d32);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #2e7d32, #1b5e20);
}

.new_description { 
    max-width: 1400px;
}

/* Ajustes para tablets (pantallas menores a 1024px) */
@media (max-width: 1024px) {
    header {
        padding: 10px 20px;
    }

    .logo img {
        width: 35px;
    }

    .gbs-text {
        font-size: 1em;
    }

    nav ul {
        gap: 10px;
    }

    nav ul li {
        margin-left: 15px;
    }

    .btn-contact {
        padding: 8px 16px;
        font-size: 0.85em;
    }

    section {
        height: 85vh;
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 1.3rem;
    }

    .new_description {
        max-width: 900px;
    }

    .segundo_panel,
    .tercer_panel {
        max-height: 400px;
    }
}

/* Ajustes para móviles (pantallas menores a 768px) */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        align-items: center;
        padding: 10px;
    }

    .logo {
        margin-right: 0;
        margin-bottom: 10px;
    }

    nav {
        margin-right: 0;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
        width: 100%;
        gap: 5px;
    }

    nav ul li {
        margin: 8px 0;
    }

    .btn-contact {
        margin-left: 0;
        width: 80%;
        text-align: center;
        justify-content: center;
    }

    section {
        height: 80vh;
        padding: 20px;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.2rem;
    }

    .contacto {
        padding: 8px 16px;
        font-size: 0.9rem;
    }

    .new_description {
        max-width: 500px;
    }

    .title_2 { 
        max-width: 450px;
    }

    .segundo_panel,
    .tercer_panel {
        max-height: 700px;
}

/* Ajustes para pantallas muy pequeñas (menores a 480px) */
@media (max-width: 480px) {
    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1rem;
    }

    .btn-contact {
        font-size: 0.8em;
        padding: 6px 12px;
    }

    .contacto {
        font-size: 0.85rem;
        padding: 6px 12px;
    }

    .new_description {
        max-width: 60%;
    }

    .title_2 { 
        max-width: 400px;
    }

    .segundo_panel {
        max-height: 1300px;
    }

    .tercer_panel {
        min-height: 1500px; /* Aumenta la altura mínima */
        height: auto; /* Permite que crezca según el contenido */
        padding: 20px; /* Agrega espacio interno */
    }
}

}
