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

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

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

.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;
}

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%;
    background-color: #143b5c;
    color: white;
    padding: 10px;
    transition: top 0.3s;
    z-index: 1000;
}

.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;
}

/* --- MENÚ PRINCIPAL CENTRADO (Como en tu captura) --- */
.menu {
    background-color: #143b5c;
    overflow: hidden;
    font-size: 14px;
    text-align: center; /* Asegura el centrado general */
}

.menu ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: inline-block; /* Permite que el bloque entero se centre */
}

.menu ul li {
    float: left; /* Flota los elementos dentro del bloque centrado */
    position: relative;
}

.menu ul li a {
    display: block;
    color: white;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
}

.menu ul li a:hover {
    background-color: #111;
}

.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: 30px;
    cursor: pointer;
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
}

/* --- 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 );
	
}

