@charset "utf-8";
/* CSS Document */
body {
    font-family: Arial, sans-serif;
    text-align: center;
    margin: 0;
    padding: 0;
}

.contenedor {
    width: 90%;
	max-width: 1000px;
	background: white;
	margin: auto;
}
header {
	background-color: #3A5701;
	color: white;
	padding: 0px;
	
}
.cabecera {
	display: flex;
	justify-content: space-between;
	align-items: center;
	max-height: 95px;
}
.mascota img {
    width: 95px; /* Ajusta el tamaño según necesites */
}

.titulo {
    flex-grow: 1; /* Permite que el título ocupe el espacio central */
    text-align: center;
}
h1{font-size:1,2em;}


.logo img {
    width: 300px;
}
.subcabecera {
	background-color: #f0f0f0;
	padding: 10px;
	font-style: italic;
	height: 20px;
	align-items: center;
	margin-bottom: 0px;
	border-left: 1px solid #295C09;
	border-right: 1px solid #295C09;
	color: #10784A
}

main {
	display: flex;
	justify-content: center;
	align-items: center;
	height: 560px;
	margin: 0px 0;
	padding-top: 5px;
	background-image: url(ImagenesRoomy/Fondo.png);
	background-repeat: no-repeat;
	background-position: 25% 100%;
	border-left: 1px solid #295C09;
	border-right: 1px solid #295C09;
	padding-bottom: 5px;
	background-color: #ECECFB;
}
.contenedor main iframe {
	
	border-width: 0px;
	margin: 0px;
}
#indiceOverlay {
	position: absolute;
	top: 0;
	left: auto; /* ✅ Asegura que se posiciona correctamente */
	width: 700px;  /* ✅ Coincide con el iframe */
	height: 543px; /* ✅ Coincide con el iframe */
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	z-index: 10;
}

/* ✅ Asegurar que se coloca dentro del main correctamente */
main {
    position: relative;
}

/* ✅ Ajustes para el índice dentro de la capa flotante */
#contenedor-inicio {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}
 a {
   text-decoration: none;
   color: #333;
   cursor: pointer;
 }
a:hover{
  text-decoration: underline;
  color: #6c8c46; /* Cambia el color cuando está activo */
 }

footer {
	background-color: #333;
	color: white;
	padding: 15px;
	max-height: 70px;
}
footer p a {
	color: #F9F8F8;
}
.navegacion button {
    padding: 10px 20px;
	background-color: #6c8c46;
	color: #fff;
	border: none;
	cursor: pointer;
	border-radius: 5px;
	}

.navegacion button:hover {
    background-color: #567336;
 }
.mensaje {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	background-color: rgba(39,144,8,0.70);
	color: white;
	padding: 15px;
	border-radius: 5px;
	display: none;
	font-weight: 800;
}

.contenedor-CapaMenu,.contenedor-inicio {
    display: flex;
    width: 680px;
    height: 500px;
    margin: auto;
    background-color: #f9f9f9;
    border: 2px solid #333;
    padding: 0; /* Se elimina padding para aprovechar al máximo el espacio */
    box-sizing: border-box;
}
.contenedor-inicio {
	background-color: #035A12;
}

.izquierda {
    width: 40%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f0f0f0;
    height: 100%; /* Ahora ocupa todo el alto sin desbordar */
    overflow: hidden;
}

.izquierda img {
    width: 90%;
    max-height: 90%;
}
.derecha {
    width: 60%;
	display: flex;
    flex-direction: column; /* Apila las categorías en vertical */
    justify-content: center;/*  Centra las categorías en el espacio disponible */
    align-items: center;
    /*  gap: 5px;Espacio entre categorías */
    padding: 5px;
}
h3 {
	font: 400 normal 1.5em Constantia, "Lucida Bright", "DejaVu Serif", Georgia, serif;
	color: #2A4F09;
	padding-top: 0px;
}


.categoria {
	display: flex;
	flex-wrap: wrap;
	justify-content:center;
	align-items:  baseline;
	width: 100%;
	height:100%;
	box-sizing: border-box;
	margin: auto;
	border: 2px solid #035E08;
	border-radius: 15px;
	padding-left: 0px;
	background-color: #e0f7ff;
}
/* Organización perfecta de los botones */
.aplicaciones {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    width: 100%;
}

.aplicacion {
	width: calc(25% - 5px); /* Ahora siempre son cuadrados */
	height: calc(25% - 5px);
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	background-color: #fff;
	text-align: center;
	border: 1px dashed #0C972D;
	border-radius: 5px;
	padding: 5px;
}
.aplicacion img {
    width: 80%;
    height: auto;
    
}

.aplicacion p {
    font-size: 12px;
    margin: 3px 0 0;
}
.boton-inactivo {
    opacity: 0.5; /* Reduce la opacidad */
    pointer-events: auto; /* Permite hacer clic, pero con lógica especial */
}




@media (max-width: 600px) {
.logo img {
    width: 100%;
}	
	h1{font-size:1em; }
	#indiceOverlay, iframe {display: none;}	
	
	.subcabecera {height: 30px;font-size:0,5em;}
	.mensaje{display: block;}
	
}

/* Si hay pocas categorías, se centran mejor */
@media (min-height: 400px) {
    .categoria {
	flex-grow: 0;
	height: auto;
	padding-bottom: 20px;
	padding-top: 20px;
    }
}
/* Ajuste automático si hay más botones */
@media (max-height: 500px) {
    .aplicacion {
        width: calc(30% - 5px);
        height: calc(30% - 5px);
    }
}
