/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Top Bar */
#top-bar {
    position: relative;
    border-bottom: 1px solid #EEE;
    height: 45px;
    line-height: 44px;
    font-size: 13px;
    background-color: #FFF;
}

.top-bar-content {
    /* display: flex;
    justify-content: space-between;
    align-items: center; */
    max-width: 1200px;
    margin: 0 auto;
    /* padding: 0 15px; */
    height: 100%;
}

/* Top Links */
.top-links {
    position: relative;
    float: left;
}

.top-links ul {
    margin: 0;
    list-style: none;
    display: flex;
    height: 44px;
}

.top-links ul li {
    float: left;
    position: relative;
    height: 44px;
    border-left: 1px solid #EEE;
}

.top-links ul li:first-child {
    margin-left: 0;
    border-left: 0;
}

.top-links li > a {
    display: block;
    padding: 0 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    height: 44px;
    line-height: 44px;
    color: #666;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.top-links li:hover {
    background-color: #EEE;
}

/* Top Social */
#top-social {
    margin: 0;
    float: right;
}

#top-social ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    height: 44px;
}

#top-social li {
    position: relative;
    float: left;
    height: 44px;
    line-height: 44px;
    border-left: 1px solid #EEE;
}

#top-social li:first-child {
    border-left: 0;
}

#top-social li a {
    display: block;
    position: relative;
    float: left;
    width: 40px;
    height: 44px;
    line-height: 44px;
    font-weight: bold;
    color: #666;
    text-decoration: none;
    overflow: hidden;
    transition: color .3s ease-in-out, background-color .3s ease-in-out, width .3s ease-in-out;
}

#top-social li a:hover {
    color: #FFF;
    text-shadow: 1px 1px 1px rgba(0,0,0,0.2);
}

#top-social li .ts-icon {
    display: block;
    float: left;
    width: 40px;
    height: 44px;
    line-height: 44px;
    text-align: center;
    font-size: 14px;
}

#top-social li .ts-text {
    display: block;
    float: left;
    height: 44px;
    line-height: 44px;
    padding: 0 12px 0 0;
    white-space: nowrap;
    font-size: 12px;
    font-weight: 600;
}

/* Colores hover específicos para cada red social */
#top-social li.si-instagram a:hover { background-color: #E1306C; }
#top-social li.si-facebook a:hover { background-color: #3B5998; }
#top-social li.si-twitter a:hover { background-color: #1DA1F2; }
#top-social li.si-soundcloud a:hover { background-color: #FF5500; }
#top-social li.si-youtube a:hover { background-color: #FF0000; }
#top-social li.si-call a:hover { background-color: #28a745; }
#top-social li.si-email a:hover { background-color: #6c757d; }

/* Animación al hacer hover - expande el ancho */
#top-social li a:hover {
    width: auto;
}

/* Main Header */
.main-header {
    background: #fff;
    padding: 5px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.main-header-content {
    max-width: 1200px;
    margin: 0 auto;
    /* padding: 0 15px; */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    max-height: 60px;
    display: block;
}

/* Navegación principal */
.main-nav {
    display: flex;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.main-nav li {
    border-left: 1px solid #EEE;
}

.main-nav li:first-child {
    border-left: 0;
}

.main-nav li a {
    display: block;
    padding: 0 20px;
    height: 44px;
    line-height: 44px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    color: #444;
    text-decoration: none;
    transition: background-color 0.3s, color 0.3s;
}

.main-nav li a:hover {
    background-color: #2C5DBF;
    color: #fff;
}

/* Clearfix */
.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

/* ======================================= */
/* ESTILOS DE MODO OSCURO         */
/* ======================================= */


body.dark-mode {
  background: #0f172a; 
  color: #f8fafc; 
}


body.dark-mode #top-bar {
  background-color: #1e293b; 
  border-bottom: 1px solid #34495e;
}

body.dark-mode .main-header {
  background: #1e293b; 
  box-shadow: 0 2px 4px rgba(0,0,0,0.4); 
}


body.dark-mode .top-links ul li {
  border-left-color: #34495e; 
}

body.dark-mode .top-links li > a {
  color: #cbd5e1;
}

body.dark-mode .top-links li:hover {
  background-color: #334155; 
}


body.dark-mode #top-social li {
  border-left-color: #34495e;
}

body.dark-mode #top-social li a {
  color: #cbd5e1; 
}

body.dark-mode #top-social li a:hover {
  color: #FFF; 
}


body.dark-mode .main-nav li {
  border-left-color: #34495e;
}

body.dark-mode .main-nav li a {
  color: #cbd5e1; 
}

body.dark-mode .main-nav li a:hover {
  background-color: #34495e; 
  color: #fff;
}