/* Estilos Generales */
body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    color: linear-gradient(to right, #A8E6CF, #56AB2F);
    background: linear-gradient(to right, #A8E6CF, #56AB2F);
    animation: gradientAnimation 6s infinite ease;
    background-size: 200% 200%;
}

@keyframes gradientAnimation {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}
/* Animaciones */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.contact-container, .contact-section, .panel-ubicacion, .ubicacion_mapa {
    animation: fadeInUp 1s ease-in-out;
    animation-fill-mode: both;
    animation-iteration-count: 1;
}
/* Estilos del Header */
header {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 15px 30px;
    background: #fafafa;
    width: 100%;
    box-sizing: border-box;
    animation-delay: 0.2s;
}

.logo {
    display: flex;
    align-items: center;
    margin-right: auto;
}

.logo img {
    width: 40px;
    margin-right: 10px;
}

.gbs-text {
    color: #54B05A;
    font-weight: bold;
    font-size: 1.2em;
    text-decoration: none;
}

/* Navegación */
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;
}

/* Botón de contacto */
.btn-contact {
    background: #54B05A;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    font-size: 0.9em;
    transition: background 0.3s ease-in-out;
    margin-left: 20px;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    animation-delay: 1.6s;
}

.btn-contact:hover {
    background: #2e7d32;
    color: white; 
}

/* 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%;
}

.contact-section {
    display: flex;  
    justify-content: center;
    align-items: center;
    min-height: 30vh; 
    padding-top: 3%;/* Ajuste para evitar excesivo espacio */
    margin-bottom: -3%;
    box-shadow: none;
    padding-bottom: 20px; /* Espaciado para separación natural */
}

.contact-container {
    position: relative; 
    display: flex;
    width: 95vw;
    max-width: 1500px;
    min-height: 40vh;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.contact-info {
    flex: 1.3;
    padding: 50px;
}

.contact-title {
    color: #68cc6f;
    font-size: 35px;
    position: relative;
    top: -20px;
    font-weight: bold;
    margin-bottom: 10px;
    margin-top: 20px;
}

button {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 15px;
    cursor: pointer;
    border-radius: 8px;
    font-size: 18px;
    transition: background 0.3s ease-in-out;
}

button:hover {
    background: #388E3C;
}

.contact-image {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e0e0e0;
}

.contact-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0 15px 15px 0;
}

/*------------*/

.panel-ubicacion {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 50vh;
    padding-bottom: 0;
    margin-top: 0; /* Elimina separación innecesaria */
    box-shadow: none;
}

.ubicacion-contenedor {
    position: relative;
    display: flex;
    width: 95vw;
    max-width: 1500px;
    min-height: 40vh;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.ubicacion-info {
    flex: 1.3;
    padding: 50px;
}

.location-title {
    color: #68cc6f;
    font-size: 35px;
    position: relative;
    top: -20px;
    font-weight: bold;
    margin-bottom: 10px;
    margin-top: 20px;
}

.ubicacion_mapa {
    flex: 1.5; /* Aumenta el tamaño del mapa en comparación con el texto */
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
}

.ubicacion_mapa iframe {
    width: 90%; /* Ajusta según sea necesario */
    height: 90%;
    border-radius: 10px; /* Opcional, para mantener el estilo redondeado */
}

.map-container {
    position: relative;
    width: 100%;
    height: 400px;
}

#map {
    width: 100%;
    height: 100%;
    border: 0;
    opacity: 1;
    transition: opacity 1s ease-in-out;
}

.fade-out {
    opacity: 0;
}


/* Estilos Generales */
body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    color: linear-gradient(to right, #A8E6CF, #56AB2F);
    background: linear-gradient(to right, #A8E6CF, #56AB2F);
    animation: gradientAnimation 6s infinite ease;
    background-size: 200% 200%;
}

@keyframes gradientAnimation {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Animaciones */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.contact-container, .contact-section, .panel-ubicacion, .ubicacion_mapa {
    animation: fadeInUp 1s ease-in-out;
    animation-fill-mode: both;
    animation-iteration-count: 1;
}

/* Estilos del Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    background: #fafafa;
    width: 100%;
    box-sizing: border-box;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    width: 40px;
    margin-right: 10px;
}

.gbs-text {
    color: #54B05A;
    font-weight: bold;
    font-size: 1.2em;
    text-decoration: none;
}

/* Navegación */
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;
}

/* Botón de contacto */
.btn-contact {
    background: #54B05A;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    font-size: 0.9em;
    transition: background 0.3s ease-in-out;
    margin-left: 20px;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
}

.btn-contact:hover {
    background: #2e7d32;
    color: white;
}

/* Contacto y Ubicación */
.contact-section, .panel-ubicacion {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 30vh;
    padding: 3% 5%;
}

.contact-container, .ubicacion-contenedor {
    display: flex;
    flex-wrap: wrap;
    width: 95vw;
    max-width: 1500px;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.contact-info, .ubicacion-info {
    flex: 1.3;
    padding: 40px;
}

.contact-image, .ubicacion_mapa {
    flex: 1.5;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e0e0e0;
}

.contact-image img, .ubicacion_mapa iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

button {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 15px;
    cursor: pointer;
    border-radius: 8px;
    font-size: 18px;
    transition: background 0.3s ease-in-out;
}

button:hover {
    background: #388E3C;
}

/* Media Queries */
@media (max-width: 1024px) {
    .contact-container, .ubicacion-contenedor {
        flex-direction: column;
        text-align: center;
    }

    .contact-info, .ubicacion-info {
        padding: 20px;
    }
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        align-items: center;
        padding: 10px;
    }

    nav ul {
        flex-direction: column;
        text-align: center;
        margin-top: 10px;
    }

    nav ul li {
        margin: 5px 0;
    }

    .btn-contact {
        margin: 10px 0;
    }

    .contact-section, .panel-ubicacion {
        padding: 10px;
    }
}

@media (max-width: 480px) {
    .contact-info, .ubicacion-info {
        font-size: 14px;
        padding: 15px;
    }

    .contact-title, .location-title {
        font-size: 28px;
    }
}
