/* ================= BASE ================= */
body{
	margin:0;
	padding:0;
	font-family:Arial;
	background:transparent;
}

/* ================= FONDO ================= */
.body{
	position:fixed;
	top:0;
	left:0;
	width:100%;
	height:100%;
	background:url("../img/fondo.jpg") center/cover no-repeat;
	filter:blur(5px);
	z-index:0;
}

.grad{
	position:fixed;
	top:0;
	left:0;
	width:100%;
	height:100%;
	background:linear-gradient(rgba(0,0,0,0), rgba(0,0,0,0.65));
	z-index:1;
}

/* ================= LOGIN / REGISTRO ================= */

/* CONTENEDOR TITULO */
.header{
	position:absolute;
	top:calc(50% - 140px);
	left:calc(50% - 180px);
	z-index:3;
	text-align:center;
	width:350px;
}

.header div{
	color:#fff;
	font-family:'Exo', sans-serif;
	font-size:40px;
	font-weight:200;
}

.header span{
	color:#1f7a63;
}

/* FORM LOGIN / REGISTRO */
.login{
	position:absolute;
	top:calc(50% - 20px);
	left:calc(50% - 140px);
	z-index:3;
	width:280px;
	color:#fff;
	font-family:'Exo', sans-serif;
	font-size:16px;
}

/* INPUTS */
.login input[type=text],
.login input[type=password],
.login input[type=email]{
	width:280px;
	height:40px;
	background:transparent;
	border:1px solid rgba(255,255,255,0.6);
	border-radius:8px;
	color:#fff;
	font-size:16px;
	padding:6px;
	margin-top:12px;
}

/* AUTOFILL FIX */
.login input:-webkit-autofill{
	-webkit-box-shadow:0 0 0 1000px transparent inset !important;
	-webkit-text-fill-color:#fff !important;
}

/* BOTON */
.btn-login{
	display:inline-block;
	text-align:center;
	width:290px;
	height:48px;
	line-height:48px;
	margin-top:18px;
	border-radius:30px;
	border:2px solid #1f7a63;
	background:transparent;
	color:#1f7a63;
	font-size:17px;
	letter-spacing:1px;
	cursor:pointer;
	transition:0.35s;
	font-family:'Exo', sans-serif;
}

.btn-login:hover{
	background:#1f7a63;
	color:white;
	box-shadow:0 0 18px rgba(31,122,99,0.6);
	transform:translateY(-1px);
}

/* LINKS ABAJO */
.registro-link,
.login-link{
	color:#fff;
	text-align:center;
	margin-top:10px;
	font-size:14px;
}

.registro-link a,
.login-link a{
	color:#1f7a63;
	text-decoration:none;
	font-weight:bold;
}

.registro-link a:hover,
.login-link a:hover{
	text-decoration:underline;

	}
.login form{
	display:flex;
	flex-direction:column;
	gap:5px;
}	

/* ================= CONTENIDO ================= */
.contenido{
	position:relative;
	z-index:2;
	margin-top:120px;
	text-align:center;
	font-family:'Exo', sans-serif;
}

/* ================= MENU ================= */
.topbar{
	position:fixed;
	top:0;
	left:0;
	width:100%;
	height:70px;
	background:rgba(255,255,255,0.08);
	backdrop-filter:blur(8px);
	border-bottom:1px solid rgba(255,255,255,0.25);
	z-index:3;
	display:flex;
	justify-content:center;
	align-items:center;
}

.menu{
	display:flex;
	gap:25px;
}

.btn-menu{
	padding:10px 22px;
	border-radius:30px;
	border:1px solid #1f7a63;
	background:rgba(0,0,0,0.25);
	color:#1f7a63;
	text-decoration:none;
	font-size:15px;
	transition:0.3s;
}

.btn-menu:hover,
.btn-menu.active{
	background:#1f7a63;
	color:white;
	box-shadow:0 0 14px rgba(31,122,99,0.7);
}

/*=============MENU LATERAL ADMINISTRADOR=============*/


.sidebar{
    position:fixed;
    top:0;
    left:0;
    width:240px;
    height:100vh;

    background:rgba(0,0,0,0.35);
    backdrop-filter:blur(10px);

    border-right:1px solid rgba(255,255,255,0.15);

    z-index:15;

    display:flex;
    flex-direction:column;

    padding-top:20px;

	height: 100vh;
    overflow-y: auto;
	overflow-x: hidden;
}

.logo-sidebar{
    color:#1f7a63;
    text-align:center;
    margin-bottom:30px;
    font-family:'Exo', sans-serif;
}

.sidebar a{
    color:white;
    text-decoration:none;

    padding:15px 25px;

    transition:0.3s;

    font-family:'Exo', sans-serif;
}

.sidebar a:hover{
    background:rgba(31,122,99,0.25);
    border-left:4px solid #1f7a63;
    padding-left:21px;
}

/* MOVER CONTENIDO SOLO PARA ADMIN */

.admin-layout .contenido{
    margin-left:260px;
    width:calc(100% - 260px);
}

/* ================= TITULOS ================= */
.titulo-crud{
	font-size:32px;
	color:#1f7a63;
	margin-bottom:20px;
}

/* ================= BUSCADOR ================= */
.buscador{
	width:80%;
	margin:20px auto;
}

.buscador input{
	width:60%;
	padding:12px;
	border-radius:25px;
	border:2px solid #1f7a63;
	font-size:16px;
	text-align:center;
}

/* ================= TABLAS ================= */
.tabla-crud{
	width:80%;
	margin:20px auto;
	border-collapse:collapse;
	background:rgba(255,255,255,0.08);
	border-radius:12px;
	overflow:hidden;
	font-size:18px;
}

.tabla-crud th{
	background:rgba(0,0,0,0.4);
	color:#6cbba7;
	padding:14px;
}

.tabla-crud td{
	padding:14px;
	color:white;
	text-align:center;
}

.tabla-crud tr:hover{
	background:rgba(255,255,255,0.05);
}

/* ================= BOTONES ================= */
.acciones{
	display:flex;
	justify-content:center;
	gap:10px;
}

.btn-editar,
.btn-eliminar,
.btn-aprobar{
	padding:8px 16px;
	border-radius:20px;
	text-decoration:none;
	font-size:14px;
	transition:0.3s;
}

.btn-editar{
	border:1px solid #1f7a63;
	color:#1f7a63;
}

.btn-eliminar{
	border:1px solid #b02a2a;
	color:#b02a2a;
}

.btn-aprobar{
	border:1px solid #28a745;
	color:#28a745;
}

.btn-editar:hover{background:#1f7a63;color:white;}
.btn-eliminar:hover{background:#b02a2a;color:white;}
.btn-aprobar:hover{background:#28a745;color:white;}

/* ================= ESTADOS ================= */
.estado{
	padding:6px 12px;
	border-radius:20px;
	font-size:14px;
}

.estado.pendiente{background:#ffc107;color:black;}
.estado.aprobada{background:#28a745;color:white;}
.estado.cancelada{background:#dc3545;color:white;}

/* ================= HISTORIAL ================= */
.contenedor-historial{
	width:60%;
	margin:0 auto;
}

.item-historial{
	background:rgba(255,255,255,0.08);
	padding:15px;
	border-radius:12px;
	margin-bottom:10px;
	color:white;
}

/* ================= ESTADISTICAS ================= */
.paneles{
	display:flex;
	justify-content:center;
	gap:30px;
	margin-top:20px;
}

.card{
	width:250px;
	padding:25px;
	border-radius:15px;
	background:rgba(255,255,255,0.1);
	text-align:center;
	color:white;
}

.card h3{
	color:#1f7a63;
}

.card p{
	font-size:40px;
	font-weight:bold;
}
/* ================= BOTONES MODULO (IMAGENES) ================= */

.menu-principal{
	display:flex;
	justify-content:center;
	gap:60px;
	margin-top:60px;
	flex-wrap:wrap;
}

.btn-modulo{
	width:320px;
	height:220px;
	border-radius:18px;
	display:flex;
	align-items:end;
	justify-content:center;
	text-decoration:none;
	font-family:'Exo', sans-serif;
	font-size:22px;
	color:white;
	font-weight:600;
	position:relative;
	overflow:hidden;
	box-shadow:0 10px 25px rgba(0,0,0,0.45);
	transition:0.35s;
}

.btn-modulo span{
	background:rgba(0,0,0,0.55);
	width:100%;
	text-align:center;
	padding:14px;
	backdrop-filter:blur(3px);
}

/* HOVER */
.btn-modulo:hover{
	transform:scale(1.08);
	box-shadow:0 0 30px rgba(31,122,99,0.9);
	filter:brightness(1.15);
}

/* IMAGENES */
.calendario{
	background:url("../img/calendario.jpg") center/cover no-repeat;
}

.cita{
	background:url("../img/cita.jpg") center/cover no-repeat;
}
/* ================= CALENDARIOS (REUTILIZABLE) ================= */

.calendario-contenedor{
	position:relative;
	z-index:2;
	display:flex;
	justify-content:center;
	margin-top:40px;
}

.calendario-box{
	width:420px;
	background:rgba(0,0,0,0.35);
	border-radius:15px;
	padding:35px;
	backdrop-filter:blur(6px);
	box-shadow:0 10px 30px rgba(0,0,0,0.5);
	text-align:center;
	color:white;
}

/* TITULOS */
.titulo-calendario,
.titulo-horarios{
	font-family:'Exo', sans-serif;
	color:white;
	font-size:22px;
	margin:15px 0;
}

/* INPUT FECHA */
.calendario-input{
	width:100%;
	padding:12px;
	font-size:18px;
	border-radius:10px;
	border:none;
	background:rgba(255,255,255,0.9);
	cursor:pointer;
}

/* SELECT */
.horario-select{
	width:100%;
	padding:12px;
	font-size:18px;
	border-radius:10px;
	border:none;
	background:rgba(255,255,255,0.9);
}

/* BOTON */
.btn-agendar{
	margin-top:20px;
	width:100%;
	height:45px;
	border-radius:25px;
	border:2px solid #1f7a63;
	background:#1f7a63;
	color:white;
	font-size:16px;
	cursor:pointer;
	transition:0.3s;
}

.btn-agendar:hover{
	background:#16624f;
	box-shadow:0 0 12px rgba(31,122,99,0.7);
}

/* Días disponibles */
.flatpickr-day.disponible{
    color:#1d591f;
}

/* Sábados */
.flatpickr-day.sabado{
    color:#ffd54f;
    font-weight:bold;
}

/* Domingos */
.flatpickr-day.domingo{
    color:#ff3b3b !important;
    font-weight:bold;
    background:rgba(255,0,0,.12);
}

/* Feriados */
.flatpickr-day.feriado{
    color:#ff3b3b !important;
    font-weight:bold;
    background:rgba(255,0,0,.12);
}

/* Si están deshabilitados */
.flatpickr-day.flatpickr-disabled.domingo,
.flatpickr-day.flatpickr-disabled.feriado{
    color:#ff3b3b !important;
    opacity:1 !important;
    cursor:not-allowed;
}

/* ===== MEJORA TARJETA CITA ===== */

.tarjeta-cita{
    width: 600px;              /* más ancho */
    margin: 140px auto;        /* separa del menú */
    padding: 40px;
}

/* ESPACIADO ENTRE DATOS */
.dato-cita{
    font-size: 20px;
    margin: 18px 0;            /* más aire */
    line-height: 1.5;
}

/* ETIQUETAS */
.dato-cita span{
    display:inline-block;
    min-width:140px;           /* alinea bonito */
    font-weight:bold;
}

/* BOTONES */
.acciones-cita{
    display:flex;
    justify-content:center;
    gap:15px;                  /* separa botones */
    margin-top:30px;
}

/* BOTONES MÁS GRANDES */
.acciones-cita a{
    padding:12px 20px;
    font-size:16px;
}
/* FORM EDITAR */

.form-editar{
	display:flex;
	flex-direction:column;
	gap:15px;
}

.form-editar select,
.form-editar input{
	width:100%;
}
/* ================= PERFIL ADMIN ================= */

.perfil-admin{
	position:fixed;
	top:8px;
	left:15px;
	z-index:20;
	display:flex;
	align-items:center;
	gap:10px;
}

.foto-admin{
	width:50px;
	height:50px;
	border-radius:50%;
	object-fit:cover;
	border:2px solid #1f7a63;
	box-shadow:0 0 10px rgba(31,122,99,0.7);
	background:white;
}

.nombre-admin{
	color:rgb(194, 137, 16);
	font-family:'Exo', sans-serif;
	font-size:14px;
	font-weight:bold;
	max-width:120px;
}

/*--------------PAGINACION------------------*/
.paginacion{
    display:flex;
    justify-content:center;
    align-items:center;
    gap:15px;
    margin:20px 0;
}

.paginacion button{
    padding:8px 15px;
    border:none;
    border-radius:8px;
    background:#103b08;
    color:white;
    cursor:pointer;
    font-weight:bold;
}

.paginacion button:hover{
    background:#103b08;
}

.paginacion button:disabled{
    background:#999;
    cursor:not-allowed;
}

#contadorPagina{
    color:white;
    font-weight:bold;
}
/*FORMULARIO CUENTAS NUEVAS*/
.form-grid{
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.form-col{
    flex: 1;
    min-width: 300px;
}

.form-grid label{
    display: block;
    margin-top: 10px;
    font-weight: bold;
}

.form-grid input,
.form-grid select{
    width: 100%;
    padding: 8px;
    margin-top: 5px;
    border-radius: 6px;
    border: 1px solid #ccc;
}