* { margin:0; padding:0; box-sizing:border-box; }

body {
    font-family:  sans-serif, "Segoe UI", Roboto, -apple-system, BlinkMacSystemFont, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue";
    background: #0a0a0a;
}

/* wraper */
.wraper {
	position: relative;
	width:90%;
	top:0;
	left:5%;
}

/* slider */

.bg-slider {
    position: fixed;
    top: 0; 
	left: 20px;
	right: 20px;
    width: calc (100% - 42px);
    height: 100%;
    z-index: -2;
    padding: 15px;
    box-sizing: border-box;
    pointer-events: none;
}

.bg-slider img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%; 
    height: auto;
    max-height: calc(100% - 30px);
    object-fit: contain;
    opacity: 0;
    transition: opacity 2s ease-in-out;
}

.bg-slider img.active {
    opacity: 1;
}

/* menu */

.navbar {
    background: #d32f2f;
    position: fixed;
    top: 10px;
	right: 25px;
    border-radius: 10px 10px;
    z-index: 1000;
    box-shadow:
        inset 0 4px 8px rgba(255,255,255,0.4),
        inset 4px 0 8px rgba(255,255,255,0.3),
        inset 0 -4px 8px rgba(0,0,0,0.6),
        inset -4px 0 8px rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
	margin:0;
	padding:0;
}

.menu {
    list-style: none;
    display: flex;
    justify-content: center;
	margin:0;
	padding:0;	
}

.menu li a {
    position: relative;
    color: white;
    text-decoration: none;
	text-shadow: 5px 5px 5px #000;
	font-size: 1em;	
    overflow: hidden;
    transition: color 0.3s;
    display: block;
    padding: 5px 5px;	
	margin: 5px 5px;
}

.menu li a::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: #b71c1c;
    transform: translate(-50%, -50%) rotate(45deg);
    transition: width 0.4s, height 0.4s;
    z-index: -1;
}

.menu li a:hover::before {
    width: 120px;
    height: 120px;
}

.menu-btn {
	display: none;
}

#menu-toggle { display: none; }

/* contenedor */

.container {
	position: absolute;
	top: 60px;
	width: 100%;
	left: 0;
	right: 0;
	margin: 0 auto;
	text-align: center;
    z-index: 10;         /* encima del fondo pero debajo del menú */
}

/* secciones del contenedor */

.seccion {
    position: absolute;           
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(8px);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
    text-align: center;
    z-index: 5;
	min-height: 90svh; /* small viewport height: ya descuenta barras y elementos fijos */
}

.seccion.active {
    display: block;
    opacity: 1;
	visibility: visible;
}

/* tarjeta */

#tarjeta img {
	width: 75%;
	transform(-12.5%);
	max-width: 600px;
	margin-top: 30px;
}

/* horario */

#horario img {
	/*float:left;*/
	width: 50%;
	/*margin-left: 15px; */
}

.thorario {
	/*display: inline-table;;*/
	margin: auto;
	width: 95%;
	text-align: center;
	/*border-collapse: collapse;*/
	border-spacing: 5px;  
	font-size: 1.5em;
	/*text-shadow: 0px 1px 1px #fcc;*/
}

.tdh {
   padding: 10px;	
   border: #fff 2px solid;
   color: #f77;
}

.titulo_seccion {
    text-align: center;
    font-size: 2em;
    color: #fff;
    margin: 15px 15px;
	
}

/* servicios */
.servicios img {
	margin: 15px;
	width: 15%;
}

.serviciostitle {
    /*width: 100%;*/
    text-align: center;
    font-size: 2em;
    color: #ff0000;
    /*font-weight: bold;*/
    margin: 50px;
}

.serviciostext {
	margin: 0 15% 0 15% ;
}

.serviciostext p {
	text-align: left;
    font-size: 16px;
    color: #ffffff;
    /*font-weight: bold;	*/
}

/* Articulos */

.clear {
    clear: both;
}

.art_title {
    text-align: center;
    font-size: 36px;
    color: #fff;
    margin: 20px;
}

.art_subtitle {
    font-size: 24px;
    color: #F80000;
    text-align: center;
	margin: 15px;
}

.art_table {
	position: relative;
    background: #fff;
	margin: 5px;
	padding: 1px;
	float: left;
	width: 31%;
}

.art_bg img {
    width: 100%;
}

.art_box {
    position: absolute;
    top: 30px;
    color: #fff;
    margin: 15px;
}

.art_box p {
	font-size: 1.5em;
}

.art_list ul {
    margin: 0px 15px;
    list-style: none;
    padding: 0px 20px;
}

.art_list ul li {
    background: url(images/arrow.png) no-repeat;
    background-position: left top;
    margin: 0px;
    padding: 7px 30px;
    border-bottom: 1px solid #e0ffe0;
}

/* Galeria */
.galeriatitle {
    font-size: 3em;
    margin-top: 0;
    font-weight: bold;
    color: #ff0000;
    letter-spacing: -5px;
    text-shadow: 2px 2px #545454;	
}

.galeriasubtitle {
    text-align: center;
    font-size: 2em;
    text-shadow: 1px 1px #545454;
    color: #ffffff;	
}

.galeria {
	
}

.menuizq{
	width:100%;
	display: inline;
}

.menuizq button {
	font-size: 1em;
	color: #fff;
	background-color: #282828; 
	margin: 15px;
	padding: 10px;
	height: auto;
	border: none;
	border-radius: 10px;
	text-align: center;
}

.menuizq button:hover {
	background-color: #f82828;
}

.menuimgs {
}

.menimg{
	overflow-y: hidden;
	overflow-x:auto;
}

.menimg img {
	margin: 3px;
	padding:8px 8px 20px 8px;
	background-color: #ffffff;
	border: 1px solid #888888;
	width:100px; 
	height:100px;
	display:inline;	
}

/* localizacion */

.mapatitle {
	text-align: center;
    width: 100%;
    margin-bottom: 10px;
    font-size: 32px;
    font-weight: bold;
    color: #ffffff;
    line-height: 38px;
}

.mapas{
	width=100%;
}

.mapa{
	display: inline-block;
	width:100%;
    text-align: center;
}

.mapa p{
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 5px;
	color:#f80000;
}

.mapa iframe{
	width: 100%;
	height: 400px;
}

/* Contacto */
.contacttitle {
    text-align: center;
    font-size: 36px;
    color: #fff;
    margin: 20px;
}

.contactsubtitle {
    font-size: 24px;
    color: #F80f0f;
    text-align: center;
	margin: 15px;
}

/* Legal */

.legaltitle {
    text-align: center;
    font-size: 36px;
    color: #fff;
    margin: 20px;
}

.legalsubtitle {
    font-size: 24px;
    color: #F80f0f;
    text-align: center;
	margin: 15px;
}

.legalsubtitle span,a {
    font-size: 24px;
    color: #fff;
    text-align: center;
	margin: 15px;
}

.legalsubtitle ul, li {
	list-style: none;
} 

.datoslegal {
	display: none;
	color: #fff;
	font-family: serif;
	margin: 30px;
	text-align: left;
	font-size: 12px;
}

/* spacer para evitar footer */

.spacer {
    height: 150px; /* ajusta según tu footer */
}

/* footer */

.footer {
	position: fixed;
	bottom: 0;
	left: 0;
	width: 100%;
	background: #000;
	color: white;
	opacity: 0.75;
	padding: 15px;
	text-align: center;
	font-size:22px;
	z-index: 1000;
}

@media (max-width: 768px) {
	
	.wraper {

	}
/* Fondo 	
	.bg-slider img {
		width: 100vw;
		height: 100svh;
		object-fit: cover;     
		object-position: center;
	}	
*/
	
/* Menu */
    .navbar {
        top: 0;
		right: 10;
        transform: none;      
    }
	
    .menu-btn { 
		top: 0;
		left: 0;
		/*width: 40px;*/
		color: white;
		font-size: 16px;
		cursor: pointer;
		padding: 12px 20px;
		display: block; 
		float: right; 
	}
	
    .menu {
        display: none;
        flex-direction: column;
        width: 100%;
        background: #d32f2f;
		    border-radius: 12px 12px;
			box-shadow:
				inset 0 4px 8px rgba(255,255,255,0.4),
				inset 4px 0 8px rgba(255,255,255,0.3),
				inset 0 -4px 8px rgba(0,0,0,0.6),
				inset -4px 0 8px rgba(0,0,0,0.5);	
    }
	
    .menu li a {
        padding: 14px 20px;
		font-size: 16px;
        text-align: center;
        background: #c62828;
        margin: 2px 0;		
		    border-radius: 12px 12px;
			box-shadow:
				inset 0 4px 8px rgba(255,255,255,0.4),
				inset 4px 0 8px rgba(255,255,255,0.3),
				inset 0 -4px 8px rgba(0,0,0,0.6),
				inset -4px 0 8px rgba(0,0,0,0.5);				
    }
	
    .menu li a:hover {
        background: #b71c1c;
    }
	
    #menu-toggle:checked ~ .menu {
        display: flex;
    }
	
/* Contenedor */
	
    .container { margin-top: 70px; }

/* Articulos */

	.art_table {
		position: relative;
		background: #fff;
		margin: 5px;
		padding: 1px;
		float: left;
		width: 75%;
		left: 25%;
		transform: translateX(-25%);
	}

	
}