* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif; 
    /* Fuente base para todo el sitio */
}

/* html, body {
    height: 100%;  - Comentado para permitir que el slider se muestre correctamente
} */

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    /* background: url(img/contacto/bg-contacto.jpg); */
}

/* Variables de fuentes */
:root {
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Roboto', sans-serif;
}

/* Estilos para la barra superior */
.top-bar {
    background-color: #4F2987;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    transition: transform 0.3s ease;
}

.top-bar-left a {
    color: white;
    text-decoration: none;
    margin-right: 20px;
    font-size: 14px;
    font-family: var(--font-body);
    font-weight: 400;
}

.top-bar-right {
    margin-left: auto; /* Asegura que el botón se mantenga a la derecha */
}

.top-bar-right .btn {
    background-color: #bd8222;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-family: var(--font-heading);
    font-weight: 500;
}

.top-bar-right .btn:hover {
    background-color: #36086b;
}

/* Estilos para el navbar principal */
.main-navbar {
    background-color: rgb(255, 255, 255);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: top 0.3s ease;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 80px;
}

.hamburger-menu {
    display: none; /* Oculto en pantallas grandes */
    cursor: pointer;
    margin-left: auto; /* Asegura que esté a la derecha */
}

.hamburger-menu span {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px 0;
    background-color: #333;
    transition: all 0.3s ease;
}

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-links a {
    text-decoration: none;
    color: #1b1b1b;
    font-weight: 500;
    padding: 5px 10px;
    transition: color 0.3s;
    font-family: var(--font-heading);
    --hover-color: #f0b14a; /* Variable CSS para el color de hover */
}

.nav-links a:hover {
    color: var(--hover-color);
}




/* Estilos para el contenido principal */
.content {
    flex: 1; /* Hace que el contenido ocupe el espacio disponible */
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    margin-bottom: 20px;
    color: #333;
}

/* Estilos para Title Box - Optimizados y Centrados */
.title-box {
	border-bottom-width: 0;
	margin-bottom: 75px;
	position: relative;
	text-align: center;
}

.title-box h2.title {
	font-family: "Roboto Condensed", sans-serif;
	font-size: 53px;
	font-weight: 300;
	color: #5d6862;
	margin: 0 0 40px 0;
	text-transform: uppercase;
}

.bold {
	font-weight: 600;
}

/* Pseudo-elemento para la línea decorativa centrada */
.title-box h2:before {
	content: "";
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	width: 40px;
	height: 2px;
	margin: -22px auto;
	background: #575051;
}

/* Variantes de color */
.title-box.white h2.title {
	color: #FFF;
}

.title-box.white h2.title:before {
	background: #FFF;
}

p {
    font-family: var(--font-body);
    line-height: 1.6;
}

.dummy-content {
    margin: 40px 0;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 5px;
}

.dummy-content h2 {
    margin-bottom: 10px;
    color: #444;
    font-weight: 600;
}

/* Clase para ocultar la barra superior */
.hidden {
    transform: translateY(-100%);
}

/* Estilos para el Footer Empresarial */
.footer {
    background-color: #4F2987;
    color: #fff;
    padding: 50px 0 0 0;
    margin-top: auto; /* Asegura que el footer esté en la base */
    width: 100%;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-section {
    flex: 1;
    min-width: 250px;
    margin-bottom: 30px;
    padding: 0 15px;
}

.footer-section h3 {
    font-size: 18px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
    font-family: var(--font-heading);
    font-weight: 600;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background-color: #bd8222;
}

.about p {
    line-height: 1.6;
    margin-bottom: 15px;
}

.contact p {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    font-family: var(--font-body);
}

.contact p i {
    margin-right: 10px;
    color: #bd8222;
}

.links ul {
    list-style: none;
}

.links ul li {
    margin-bottom: 10px;
}

.links ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
    font-family: var(--font-body);
}

.links ul li a:hover {
    color: #bd8222;
}

.social-icons {
    display: flex;
    margin-bottom: 20px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #36086b;
    color: #fff;
    border-radius: 50%;
    margin-right: 10px;
    text-decoration: none;
    transition: all 0.3s;
}

.social-icon:hover {
    background-color: #bd8222;
    transform: translateY(-3px);
}

.footer h3,h4 {
    color: #e0e0e0;
}

.footer-bottom {
    background-color: #36086b;
    padding: 20px 0;
    text-align: center;
    margin-top: 20px;
}

.footer-bottom p {
    font-size: 14px;
    font-family: var(--font-body);
}

.footer-bottom a {
    color: #bd8222;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-bottom a:hover {
    color: #fff;
    text-decoration: underline;
}

/* Diseño Responsive */
@media (max-width: 1024px) {
    .content {
        padding: 30px 15px;
    }
    
    .footer-section {
        min-width: 200px;
    }
}

@media (max-width: 768px) {
    /* Estilos de navegación */
    .top-bar {
        padding: 8px 10px;
    }
    
    .top-bar-left a {
        margin-right: 15px;
        font-size: 13px;
    }
    
    .main-navbar {
        padding: 12px 15px;
        justify-content: space-between; /* Asegura que el logo esté a la izquierda y el menú a la derecha */
    }
    
    .logo img {
        height: 60px;
    }
    
    /* Menú hamburguesa */
    .nav-links {
        display: none; /* Ocultar menú de navegación en pantallas pequeñas */
        gap: 10px;
    }
    
    .nav-links a {
        font-size: 14px;
        padding: 4px 8px;
    }
    
    .hamburger-menu {
        display: block; /* Mostrar menú hamburguesa en pantallas pequeñas */
        cursor: pointer;
    }
    
    .hamburger-menu span {
        display: block;
        width: 25px;
        height: 3px;
        background-color: #6e00ad;
        margin: 5px 0;
        transition: 0.4s;
    }
    
    /* Animación del menú hamburguesa */
    .hamburger-menu.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    
    .hamburger-menu.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger-menu.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }
    
    /* Cuando el menú está abierto */
    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: white;
        padding: 20px;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        width: 100%;
        text-align: center;
    }
    
    /* Estilos del footer */
    .footer-container {
        flex-direction: column;
    }
    
    .footer-section {
        margin-bottom: 30px;
        min-width: 100%;
    }
}

@media (max-width: 576px) {
    .top-bar {
        /* Mantener en fila en lugar de columna */
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
    }
    
    .top-bar-left {
        margin-bottom: 5px;
        display: flex;
        flex-wrap: wrap;
    }
    
    .top-bar-left a {
        margin-bottom: 5px;
        font-size: 12px; /* Reducir tamaño de fuente para mejor ajuste */
    }
    
    .top-bar-right {
        /* Eliminar width: 100% para que no ocupe toda la línea */
        margin-left: auto;
    }
    
    .top-bar-right .btn {
        /* Eliminar width: 100% */
        text-align: center;
        padding: 6px 12px; /* Reducir padding para mejor ajuste */
        font-size: 12px; /* Reducir tamaño de fuente */
    }
    
    .main-navbar {
        justify-content: space-between; /* Asegura que el logo esté a la izquierda y el menú a la derecha */
        flex-direction: row; /* Mantener en fila */
    }
    
    .logo {
        order: 0; /* Asegura que el logo sea el primer elemento */
    }
    
    .hamburger-menu {
        order: 1; /* Asegura que el menú hamburguesa sea el último elemento */
    }
    
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 5px;
    }
    
    .nav-links a {
        margin: 5px;
    }
    
    .content {
        padding: 20px 10px;
    }
    
    h1 {
        font-size: 24px;
    }
    
    .dummy-content h2 {
        font-size: 20px;
    }
    
    .social-icons {
        justify-content: center;
    }
}

/* Menú hamburguesa para dispositivos móviles */
@media (max-width: 768px) {
    .nav-links {
        display: none; /* Ocultar por defecto en móviles */
    }
    
    .nav-links.active {
        display: flex;
        flex-direction: column;
        width: 100%;
        text-align: center;
    }
    
    .hamburger-menu {
        display: block;
        cursor: pointer;
    }
    
    .hamburger-menu span {
        display: block;
        width: 25px;
        height: 3px;
        background-color: #6e00ad;
        margin: 5px 0;
        transition: 0.4s;
    }
    
    .hamburger-menu.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    
    .hamburger-menu.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger-menu.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }
}

/* Media queries para responsividad */
@media (max-width: 768px) {
    .nav-links {
        display: none; /* Ocultar menú de navegación en pantallas pequeñas */
    }
    
    .hamburger-menu {
        display: block; /* Mostrar menú hamburguesa en pantallas pequeñas */
    }
    
    .main-navbar {
        justify-content: space-between; /* Asegura que el logo esté a la izquierda y el menú a la derecha */
    }
    
    /* Cuando el menú está abierto */
    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: white;
        padding: 20px;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    }
}

.nav-links a.active {
    color: #f0b14a;
    font-weight: 600;
    position: relative;
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #f0b14a;
}
