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

body {
    font-family: Arial, sans-serif;
    background-image: url('../img/background_image.jpg');
    background-repeat: no-repeat;
	background-attachment: fixed;
	background-size: cover;
}

header {
    background-image: url('../img/hero-dos.jpg');
    background-size: cover;
    background-position: center;
    padding: 0px;
    text-align: center;
    height: 310px;
}

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

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

footer {
    font-family: 'Roboto', sans-serif;
    background: #f9c667;
    background: -moz-linear-gradient(top, #f9c667 0%, #f79621 100%);
    background: -webkit-linear-gradient(top, #f9c667 0%, #f79621 100%);
    background: linear-gradient(to bottom, #f9c667 0%, #f79621 100%);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#f9c667', endColorstr='#f79621', GradientType=0);
    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: #f9c667;
    background: -moz-linear-gradient(top, #f9c667 0%, #f79621 100%);
    background: -webkit-linear-gradient(top, #f9c667 0%, #f79621 100%);
    background: linear-gradient(to bottom, #f9c667 0%, #f79621 100%);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#f9c667', endColorstr='#f79621', GradientType=0);
    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: #f9c667;
    background: -moz-linear-gradient(top, #f9c667 0%, #f79621 100%);
    background: -webkit-linear-gradient(top, #f9c667 0%, #f79621 100%);
    background: linear-gradient(to bottom, #f9c667 0%, #f79621 100%);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#f9c667', endColorstr='#f79621', GradientType=0);
}

/* --- RESTAURACIÓN EXACTA DE LA BARRA SUPERIOR --- */
.nav-contenido {
    width: 100%;
    background: #f9c667;
    background: -moz-linear-gradient(top, #f9c667 0%, #f79621 100%);
    background: -webkit-linear-gradient(top, #f9c667 0%, #f79621 100%);
    background: linear-gradient(to bottom, #f9c667 0%, #f79621 100%);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#f9c667', endColorstr='#f79621', GradientType=0);
}

nav {
    background: #f9c667;
    background: -moz-linear-gradient(top, #f9c667 0%, #f79621 100%);
    background: -webkit-linear-gradient(top, #f9c667 0%, #f79621 100%);
    background: linear-gradient(to bottom, #f9c667 0%, #f79621 100%);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#f9c667', endColorstr='#f79621', GradientType=0);
    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: -160px;
    left: 0;
    width: 100%;
    background: #f9c667;
    background: -moz-linear-gradient(top, #f9c667 0%, #f79621 100%);
    background: -webkit-linear-gradient(top, #f9c667 0%, #f79621 100%);
    background: linear-gradient(to bottom, #f9c667 0%, #f79621 100%);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#f9c667', endColorstr='#f79621', GradientType=0);
    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: #f9c667;
    background: -moz-linear-gradient(top, #f9c667 0%, #f79621 100%);
    background: -webkit-linear-gradient(top, #f9c667 0%, #f79621 100%);
    background: linear-gradient(to bottom, #f9c667 0%, #f79621 100%);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#f9c667', endColorstr='#f79621', GradientType=0);
    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: 7px 5px;
    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 {
    background: #f9c667;
    background: -moz-linear-gradient(top, #f9c667 0%, #f79621 100%);
    background: -webkit-linear-gradient(top, #f9c667 0%, #f79621 100%);
    background: linear-gradient(to bottom, #f9c667 0%, #f79621 100%);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#f9c667', endColorstr='#f79621', GradientType=0);
}