/* ========== Reset básico ========== */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

/* ========== Layout general ========== */
html, body {
	background: #e9e9e9;
	font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    height: 100%;
}

.contenedor {
	background: #FFF;
	width: 90%;
	max-width: 1000px;
	margin: auto;
	display: flex;
	flex-flow: row wrap;
}

/* ========== Header ========== */
header {
	background: #1B396A;
	width: 100%;
	padding: 10px;
	border-bottom: 4px #FFCC00 solid;

	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
}

header nav {
	width: 50%;
}

#nav-button {
	display: none;
}

#nav-label {
	display: none;
}

/* ========== Menú principal ========== */
.menu {
	display: flex;
	justify-content: flex-end;
	list-style: none;
	margin: 0;
	padding: 0;
}

.menu li {
	width: 150px;   /* ✅ tamaño fijo */
	/* también podrías usar:
	flex: 0 0 150px;
	flex-grow: 1; 
	*/	
}

.menu li a {
	display: block;
	background: #666;
	padding: 6px;
	color: #fff;
	text-align: center;
	text-decoration: none;
	transition: background 0.2s ease;
}

.menu li a:hover {
	background: #333;
}

/* ========== Main ========== */
.main2{
   min-height: calc(100vh - 150px); /* alto total menos header + footer */
   display: flex;
   flex-direction: column;
   justify-content: flex-start; /* o center si quieres centrar */
}

.main,
.main-from {
	background: #fff;
	padding: 20px;
}

.main {
	flex: 1 1 70%;
}

.main-from {
	flex: 1 1 100%;
}

.main article {
	margin-bottom: 20px;
	padding-bottom: 20px;
	border-bottom: 1px solid #000;
}

.main article .titulo-Itic { color: #009; }
.main article .titulo-Idin { color: #C90; }
.main article .titulo-cIgen { color: #090; }

.main article p {
	text-align: justify;
	color: #666;
}

.main article .icono {
	color: #005E00;
}

.main article:last-of-type {
	margin-bottom: 0;
	padding-bottom: 0;
	border-bottom: none;
}

/* ========== Aside ========== */
aside {
	background: #1B396A;
	padding: 10px;
	flex: 1 1 30%;

	display: flex;
	flex-direction: column;
	flex-wrap: wrap;
	justify-content: flex-start;
}

aside .widget {
	background: #fff;
	height: 150px;
	margin: 5px;
	padding: 3px;
}

aside .widget img {
	display: block;
	margin: auto;
}

/* ========== Footer ========== */
footer {
	background: #1B396A;
	width: 100%;
	padding: 20px;
	border-top: 4px solid #fff;

	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
}

footer .links {
	background: #c0392b;
	display: flex;
	flex-wrap: wrap;
}

footer .links a {
	flex-grow: 1;
	color: #fff;
	padding: 10px;
	text-align: center;
	text-decoration: none;
}

footer .links a:hover {
	background: #E74C3C;
}

footer .social a {
	color: #fff;
	text-decoration: none;
	font-size: 18px;
	display: inline-block;
}

/*fomulario*/
/*********************************************************************/
.csFrm
{
	width:100%;
}

.csFrm fieldset{
	border:1px solid #1B396A;
}

.csFrm input[type='text'], input[type='password']{
	width:100%;
	border:1px solid #666;
	padding:4px;
	margin-bottom:4px;
}

.csFrm button {
    margin: 0 auto;
    padding: 6px 14px;
    display: block;
    border: none;
    border-radius: 6px;

    background: #1B73E8;        /* azul moderno */
    color: #fff;
    font-weight: 600;

    cursor: pointer;            /* forma de mano */
    transition: background 0.25s ease, 
                transform 0.15s ease, 
                box-shadow 0.2s ease;
}

.csFrm button:hover {
    background: #4C8FFB;        /* azul más claro */
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}
/*********************************************************************/

/* TARJETA DEL FORMULARIO */
.cs70pFrm{
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 24px 20px 28px;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
    border: 1px solid #e5e7eb;
}

/* FIELDSET Y LEGEND */
.cs70pFrm fieldset{
    border: 1px solid #d1d5db;
    border-radius: 10px;
    padding: 18px 16px 20px;
}

.cs70pFrm legend{
    padding: 0 10px;
    font-weight: 700;
    color: #1B396A;
    font-size: 1.1rem;
}


/* CAMPOS DEL FORMULARIO */
.cs70pFrm .dvField,
.cs70pFrm .dvFieldEr {
    width: 100%;
    margin-bottom: 14px;
    padding: 10px 8px 6px;
    border-radius: 8px;
    background: #f9fafb;
}


/* Títulos y descripciones de campo */
.cs70pFrm .tt{
    margin-bottom: 4px;
}

.cs70pFrm .tt label{
    font-size: 0.95rem;
    font-weight: 600;
    color: #111827;
}

.cs70pFrm .dc{
    font-size: 0.8rem;
    color: #6b7280;
    margin-bottom: 6px;
}

/* INPUTS DE TEXTO Y PASSWORD */
.cs70pFrm input[type='text'],
.cs70pFrm input[type='password'],
.cs70pFrm input[type='email'],
.cs70pFrm input[type='tel'],
.cs70pFrm select{
    width: 100%;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    padding: 8px 10px;
    font-size: 0.95rem;
    background: #ffffff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.08s ease;
}

/* FOCUS STATE BONITO */
.cs70pFrm input[type='text']:focus,
.cs70pFrm input[type='password']:focus,
.cs70pFrm input[type='email']:focus,
.cs70pFrm input[type='tel']:focus,
.cs70pFrm select:focus{
    outline: none;
    border-color: #1B396A;
    box-shadow: 0 0 0 3px rgba(27, 57, 106, 0.16);
    transform: translateY(-1px);
}

/* SELECTS DE FECHA EN LÍNEA */
#fvDia,
#fvMes,
#fvAyo{
    display: inline-block;
    width: auto;
    min-width: 80px;
    margin-right: 4px;
}

/* RADIO BUTTONS (GÉNERO) */
.cs70pFrm input[type="radio"]{
    margin-right: 5px;
}

.cs70pFrm label input[type="radio"] + span{
    margin-left: 3px;
}

/* MENSAJE DE ESTADO */
#divMsj{
    margin-top: 10px;
    font-size: 0.9rem;
    color: #1B396A;
}

/* BOTÓN PRINCIPAL */
#btSm{
    margin-top: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 26px;
    border-radius: 999px;
    border: none;
    background: linear-gradient(135deg, #1B396A, #243b70);
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.15s ease;
}

#btSm:hover{
    filter: brightness(1.05);
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.25);
    transform: translateY(-1px);
}

#btSm:active{
    transform: translateY(0);
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.18);
}

/* =======================================================
   MENÚ EN CUADRÍCULA (NUEVO)
   ======================================================= */

.menu-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
}

.menu-item {
    background: #1B396A;
    flex: 1 1 calc(50% - 15px);
    min-height: 130px;
    padding: 15px;

    border-radius: 12px;
    color: #fff;
    text-decoration: none;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    gap: 10px;
    text-align: center;
    transition: background 0.25s ease,
                transform 0.15s ease,
                box-shadow 0.2s ease;
}

.menu-item i {
    font-size: 38px;
    color: #FFCC00; /* color institucional opcional */
}

.menu-item span {
    font-size: 0.95rem;
    font-weight: 600;
}

.menu-item:hover {
    background: #2d5397;
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.20);
    cursor: pointer;
}

/* =======================================================
   MENÚ EN CUADRÍCULA (NUEVO)
   ======================================================= */
/* Mejorando la presentación de la tabla */


/* Centrar la tabla */
.table-container {
    display: flex;
    justify-content: center; /* Centra la tabla horizontalmente */
    overflow-x: auto; /* Permite el desplazamiento horizontal si la tabla es demasiado ancha */
    padding: 20px 0; /* Espaciado superior e inferior */
}


.table {
    width: 90%;
    border-collapse: collapse; /* Para que las celdas no tengan espacio entre ellas */
    margin: 20px 0; /* Espaciado entre la tabla y los elementos circundantes */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); /* Sombra sutil para un efecto de profundidad */
    background-color:#063; /* Fondo blanco */
}

.table th, .table td {
    padding: 12px 15px; /* Espaciado dentro de las celdas */
    text-align: left; /* Alinear el texto a la izquierda */
    border: 1px solid #ddd; /* Borde gris claro */
    font-size: 1rem; /* Tamaño de fuente */
    color: #333; /* Color del texto */
}

.table th {
    background-color: #1B396A; /* Fondo azul oscuro para los encabezados */
    color: white; /* Color del texto en los encabezados */
    font-weight: bold; /* Negrita en los encabezados */
}

.table tr:nth-child(even) {
    background-color: #f9f9f9; /* Fondo gris claro para las filas pares */
}

.table tr:hover {
    background-color: #f1f1f1; /* Fondo gris más oscuro al pasar el mouse */
    cursor: pointer; /* Cambiar cursor al pasar por encima */
}



/* RESPONSIVE */
@media (max-width: 768px){
	.contenedor {
		flex-direction:column;
		width:100%;
	}
	header {
		flex-direction:column;
		padding:0;
	}
	header nav {
		width: 100%;
		position:fixed;
	}
	#nav-label{
		display:block;
	}
	#nav-label:hover
	{
		cursor:pointer;
		background:rgba(0,0,0,0.3);
	}
	.menu{
		width:50%;
		flex-direction:column;
		margin-left:-50%;
		transition:all 0.5s;
	}
	
	#nav-button:checked ~ .menu{
		margin:0%;
       /* height:140px;
        transition: height 1s;*/
	}
	
	.main-from{
		padding:20px 0px 20px 0px;
	}
	
	/************************************************/
	.cs70pFrm{
		width:100%;
	}
	
    .menu-item {
        flex: 1 1 100%;
    }
	
	
    .table {
        font-size: 0.9rem; /* Reducir el tamaño de la fuente en pantallas pequeñas */
    }

    .table th, .table td {
        padding: 8px 10px; /* Ajustar el relleno */
    }

    /* Hacer la tabla más estrecha en pantallas pequeñas */
    .table-container {
        width: 100%;
        overflow-x: auto; /* Permite desplazamiento horizontal */
    }
	
}


