* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
}

header {
    background-color: #17456b;
    padding: 0px;
    text-align: center;
    height: auto;
    min-height: 195px;
}

.header_contenido {
	display: flex;
	justify-content: center;
}

.contenido {
    display: flex;
    justify-content: center;
    background-color: #f0f0f0;
}

footer {
    font-family: 'Roboto', sans-serif;
    background-color: #17456b;
    color: white;
    text-align: left;
    padding-top: 20px;
    font-size: 12px;
}

#progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background-color: #4CAF50;
    width: 0%;
    z-index: 1001;
}

/* --- MEJORAS DE SCROLL --- */
html {
    scroll-behavior: smooth; /* Movimiento suave al hacer clic en enlaces o subir */
}

#scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1050;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: #143b5c;
    color: white;
    border: none;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
    font-size: 20px;
    cursor: pointer;
    display: none; /* Tu JS de webapp.js se encarga de mostrarlo */
    transition: transform 0.3s; /* Efecto al pasar el mouse */
}

#scroll-to-top:hover {
    transform: translateY(-5px);
    background-color: #1a4d7a;
}

/* --- RESTAURACIÓN EXACTA DE LA BARRA SUPERIOR --- */
.nav-contenido {
    width: 100%;
    background-color: #143b5c;
    position: relative;
}

nav {
    background-color: #143b5c;
    width: 1200px;
    margin: 0 auto;
}

nav ul {
    list-style-type: none;
}

nav ul li {
    display: inline;
    margin: 0 10px;
}

/* Barra pegajosa original (compatible con webapp.js) */
.sticky-nav {
    position: fixed;
    top: -60px;
    left: 0;
    width: 100%;
    height: 48px;
    background-color: #143b5c;
    color: white;
    padding: 0 15px;
    transition: top 0.3s;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.sticky-logo-link {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 6px 0;
    margin-left: 50px;
    box-sizing: border-box;
    flex-shrink: 0;
}

.sticky-logo {
    height: 100%;
    width: auto;
    max-height: 36px;
    object-fit: contain;
    display: block;
}

.sticky-nav nav.menu {
    flex-grow: 1;
    margin: 0 15px;
}

.sticky-nav ul {
    list-style-type: none;
    text-align: center;
}

.sticky-nav ul li {
    display: inline;
    margin: 0 10px;
}

.sticky-nav a {
    color: white;
    text-decoration: none;
    transition: color 0.2s ease;
}

.sticky-nav a:hover {
    color: #38bdf8;
}

/* --- MENÚ PRINCIPAL CENTRADO Y ESTÉTICO --- */
.menu {
    background-color: #143b5c;
    overflow: hidden;
    font-size: 13.5px;
    font-family: 'Roboto', Arial, sans-serif;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-align: center;
}

.menu ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.menu ul li {
    position: relative;
    margin: 0 2px;
}

.menu ul li a {
    display: block;
    color: #ffffff;
    text-align: center;
    padding: 12px 16px;
    text-decoration: none;
    text-transform: uppercase;
    position: relative;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 4px;
}

/* Efecto hover refinado con suave brillo, fondo sutil y línea indicadora inferior animada */
.menu ul li a::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 80%;
    height: 3px;
    background: linear-gradient(90deg, #38bdf8, #60a5fa);
    border-radius: 2px;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.menu ul li a:hover {
    color: #38bdf8;
    background-color: rgba(255, 255, 255, 0.08);
    transform: translateY(-1px);
    text-shadow: 0 0 10px rgba(56, 189, 248, 0.4);
}

.menu ul li a:hover::after {
    transform: translateX(-50%) scaleX(1);
}

.submenu {
    display: none;
    position: absolute;
    background-color: #333;
    min-width: 160px;
    z-index: 1;
}

.submenu li {
    float: none;
}

.submenu li a {
    padding: 12px 16px;
}

.menu ul li:hover .submenu {
    display: block;
    animation: slide-down 0.5s ease-in-out;
}

@keyframes slide-down {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hamburger {
    font-size: 26px;
    cursor: pointer;
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #ffffff !important;
    z-index: 1005;
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    transition: color 0.2s ease, transform 0.2s ease;
}

.hamburger:hover {
    color: #38bdf8 !important;
    transform: translateY(-50%) scale(1.1);
}

/* --- MENÚ LATERAL OFFCANVAS --- */
/* Limpiamos estilos conflictivos para que Bootstrap lo controle fluido */
.side-menu {
    background-color: #111 !important;
}

.side-menu a {
    padding: 15px 32px;
    text-decoration: none;
    font-size: 18px;
    color: #818181;
    display: block;
    transition: 0.3s;
    border-bottom: 1px solid #222; /* Separador sutil */
}

.side-menu a:hover {
    color: #f1f1f1;
    background-color: #222;
}

@media screen and (max-width: 1100px) {
    .sticky-nav nav {
        display: none;
    }
    .hamburger {
        display: block;
    }
}

.tira {
	width:100%;
	padding:10px 20px;
	color:#fff;
	font-size:22px;
	text-decoration:none;
	position:relative;
	top:5px;
	text-transform:uppercase;
	font-family: Roboto, sans-serif; 
}  
 

.gesell {
background: #ffa84c;
background: -moz-linear-gradient(top,  #ffa84c 0%, #ff7b0d 100%);
background: -webkit-linear-gradient(top,  #ffa84c 0%,#ff7b0d 100%);
background: linear-gradient(to bottom,  #ffa84c 0%,#ff7b0d 100%);
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffa84c', endColorstr='#ff7b0d',GradientType=0 );
}

.pinamar{
	background: #a4b357;
background: -moz-linear-gradient(top,  #a4b357 0%, #75890c 100%);
background: -webkit-linear-gradient(top,  #a4b357 0%,#75890c 100%);
background: linear-gradient(to bottom,  #a4b357 0%,#75890c 100%);
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#a4b357', endColorstr='#75890c',GradientType=0 );
}

.madariaga{
background: #eab92d;
background: -moz-linear-gradient(top,  #eab92d 0%, #c79810 100%);
background: -webkit-linear-gradient(top,  #eab92d 0%,#c79810 100%);
background: linear-gradient(to bottom,  #eab92d 0%,#c79810 100%);
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#eab92d', endColorstr='#c79810',GradientType=0 );
	
}

.generico{
color: #000;
background: #eeeeee;
background: -moz-linear-gradient(top,  #eeeeee 0%, #cccccc 100%);
background: -webkit-linear-gradient(top,  #eeeeee 0%,#cccccc 100%);
background: linear-gradient(to bottom,  #eeeeee 0%,#cccccc 100%);
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#eeeeee', endColorstr='#cccccc',GradientType=0 );
	
}

