.topbar {
    background-color: #f52474; /* Rojo */
    height: 3px;
    width: 100%;
  }
 /* Estilos para el popup */
 .popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 1001;
}
.popup-content {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    margin: 0 auto;
}
.popup iframe {
    width: 100%;
    height: 70vh;
    border: none;
    border-radius: 10px;
}
.close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #e63946;
    color: #fff;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
}
.close-btn:hover {
    background-color: #c82333;
}

/* Estilos del header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: #dcdee3e6;
    z-index: 1000;
    transition: background 0.3s ease-in-out, 
                border-bottom-left-radius 0.3s ease-in-out, 
                border-bottom-right-radius 0.3s ease-in-out;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}
header.scrolled {
    background: #dcdee3;
    border-bottom-left-radius: 50px;
    border-bottom-right-radius: 50px;
}
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    max-width: 1200px;
    margin: 0 auto;
}
.logo img {
    height: 50px;
}
.nav-links {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
    align-items: center;
}
.nav-links.left-menu {
    margin-right: auto;
}
.nav-links.right-menu {
    margin-left: auto;
}
.nav-links li {
    margin: 0 15px;
    position: relative;
}
.nav-links a {
    text-decoration: none;
    color: #8b8b8b;
    font-weight: 500;
    /*text-transform: lowercase;*/
    padding: 10px 15px;
    transition: color 0.3s ease;
}
.nav-links a:hover {
    color: #ffffff;
}
/* Submenú */
.sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    border-radius: 5px;
    min-width: 150px;
    list-style: none;
    padding: 0;
}
.menu-item-has-children:hover .sub-menu {
    display: block;
}
.sub-menu li {
    padding: 10px;
    white-space: nowrap;
}
.sub-menu a {
    color: #bfbebe;
    padding: 5px 15px;
    transition: all 0.3s ease;
}
.sub-menu a:hover {
    color: #fff;
    background-color: #a00707;
    border-radius: 5px;
}
/* Botones CTA */
.cta-button {
    padding: 10px 20px;
    background: transparent;
    color: #ffffff;
    border: 2px solid #7e7e7e;
    border-radius: 5px;
    font-weight: bold;
    transition: background 0.3s ease;
}
.cta-button:hover {
    background: rgb(255 60 107);
    color: white;
}
/* Menú hamburguesa */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}
.menu-toggle .bar {
    height: 3px;
    width: 25px;
    background: #7e7e7e;
    margin: 4px 0;
    transition: all 0.3s ease;
}
/* Menú móvil */
.nav-links.mobile-menu {
    display: none;
    flex-direction: column;
    width: 100%;
    background: rgba(255, 255, 255, 0.9);
    position: absolute;
    top: 60px;
    left: 0;
    padding: 10px 0;
    z-index: 1001;
}
.nav-links.mobile-menu.active {
    display: flex;
}
/* Responsive */
@media (max-width: 768px) {
    .nav-links.left-menu,
    .nav-links.right-menu {
        display: none;
    }
    .menu-toggle {
        display: flex;
    }
    .nav-links.mobile-menu li {
        margin: 10px 0;
    }
    .logo {
        order: -1;
    }
}