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

body{

font-family: 'Segoe UI', sans-serif;
background:#f4f6f8;
color:#333;

}

/* ENCABEZADO COLEGIO */

.header-colegio{

text-align:center;
padding:30px;
background:#ff7a00;
color:white;

}

.header-colegio h1{

font-size:26px;
margin-bottom:5px;

}

.header-colegio h2{

font-size:18px;
font-weight:normal;

}

.header-colegio p{

margin-top:5px;
font-size:16px;

}

/* CONTENEDOR */

.container{

max-width:1100px;
margin:auto;
padding:40px;

}

/* TARJETAS */

.card{

background:white;
padding:30px;
border-radius:12px;
box-shadow:0 10px 30px rgba(0,0,0,0.08);

}

/* GRID CANDIDATOS */

.grid{

display:grid;
grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
gap:30px;
margin-top:40px;

}

/* TARJETA CANDIDATO */

.candidate{

background:white;
border-radius:12px;
padding:25px;
text-align:center;
box-shadow:0 6px 20px rgba(0,0,0,0.1);
transition:0.2s;

}

.candidate:hover{

transform:translateY(-5px);

}

/* FOTO */

.candidate img{

width:150px;
height:150px;
object-fit:cover;
border-radius:50%;
border:5px solid #ff7a00;
margin-bottom:15px;

}

/* NOMBRE */

.candidate h3{

font-size:22px;
margin-bottom:5px;

}

/* CURSO */

.candidate p{

color:#777;
margin-bottom:15px;

}

/* BOTON */

button{

background:#ff7a00;
border:none;
color:white;
padding:12px 20px;
border-radius:6px;
cursor:pointer;
font-size:16px;
width:100%;

}

button:hover{

background:#e56700;

}

/* FORMULARIOS */

input{

width:100%;
padding:12px;
border-radius:6px;
border:1px solid #ccc;
margin-top:10px;

}

/* CENTRAR LOGIN */

.center{

display:flex;
justify-content:center;
align-items:center;
height:70vh;

}

/* RESPONSIVE */

@media (max-width:768px){

.header-colegio h1{

font-size:20px;

}

.grid{

grid-template-columns:1fr;

}

.container{

padding:20px;

}

}

/* TITULOS */

.titulo-voto{

text-align:center;
color:#ff7a00;
margin-top:20px;

}

.subtitulo{

text-align:center;
font-size:18px;
margin-bottom:30px;

}

/* PARTICIPACION */

.participacion{

max-width:600px;
margin:20px auto;
text-align:center;

}

.barra{

background:#ddd;
border-radius:20px;
overflow:hidden;
height:25px;

}

.progreso{

background:#ff7a00;
height:100%;
color:white;
text-align:center;
font-weight:bold;
line-height:25px;

}

/* GRID */

.grid{

display:grid;
grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
gap:30px;
margin-top:40px;

}

/* TARJETA */

.candidate{

position:relative;
background:white;
padding:25px;
border-radius:12px;
text-align:center;
box-shadow:0 8px 25px rgba(0,0,0,0.1);
transition:0.3s;
cursor:pointer;

}

.candidate:hover{

transform:translateY(-6px);

}

/* FOTO */

.candidate img{

width:150px;
height:150px;
border-radius:50%;
object-fit:cover;
border:5px solid #ff7a00;
margin-bottom:15px;

}

/* X ROJA */

.overlay-x{

position:absolute;
top:10px;
right:15px;
font-size:70px;
color:red;
opacity:0;
transition:0.3s;

}

.candidate:hover .overlay-x{

opacity:0.8;
transform:scale(1.2);

}


/* PANTALLA GRACIAS */

.gracias-container{

display:flex;
justify-content:center;
align-items:center;
height:100vh;
background:linear-gradient(135deg,#ff7a00,#ff9a3c);

}

/* TARJETA */

.gracias-card{

background:white;
padding:50px;
border-radius:15px;
text-align:center;
box-shadow:0 10px 40px rgba(0,0,0,0.2);
animation:fadeIn 0.8s;

}

/* CHECK */

.check{

font-size:70px;
color:#2ecc71;
margin-bottom:15px;
animation:pop 0.5s;

}

.gracias-card h1{

color:#ff7a00;
margin-bottom:10px;

}

.gracias-card h2{

margin-bottom:10px;

}

.mensaje{

font-size:18px;
color:#555;

}

.contador{

margin-top:20px;
color:#777;

}

/* ANIMACIONES */

@keyframes fadeIn{

from{opacity:0;transform:translateY(20px);}
to{opacity:1;}

}

@keyframes pop{

0%{transform:scale(0);}
70%{transform:scale(1.2);}
100%{transform:scale(1);}

}

/* LOGIN VOTACION */

.login-container{

display:flex;
justify-content:center;
align-items:center;
height:70vh;

}

.login-card{

background:white;
padding:50px;
border-radius:15px;
width:380px;
text-align:center;
box-shadow:0 15px 40px rgba(0,0,0,0.1);
animation:fadeIn 0.6s;

}

.icono-voto{

font-size:60px;
margin-bottom:10px;

}

.login-card h2{

color:#ff7a00;
margin-bottom:10px;

}

.texto-secundario{

color:#666;
margin-bottom:20px;

}

.login-card input{

width:100%;
padding:14px;
border-radius:8px;
border:1px solid #ddd;
margin-bottom:15px;
font-size:16px;

}

.login-card button{

width:100%;
padding:14px;
background:#ff7a00;
border:none;
color:white;
font-size:16px;
border-radius:8px;
cursor:pointer;

}

.login-card button:hover{

background:#e56700;

}

/* DASHBOARD */

.dashboard{
display:flex;
min-height:100vh;
}

/* SIDEBAR */

.sidebar{
width:220px;
background:#ff7a00;
color:white;
padding:30px;
}

.sidebar h2{
margin-bottom:30px;
}

.sidebar a{
display:block;
color:white;
text-decoration:none;
margin-bottom:10px;
padding:10px;
border-radius:6px;
}

.sidebar a:hover{
background:rgba(255,255,255,0.2);
}

/* CONTENIDO */

.main{
flex:1;
padding:40px;
background:#f4f6f8;
}

/* TARJETAS */

.cards{
display:flex;
gap:20px;
margin:30px 0;
}

.card-stat{
flex:1;
background:white;
padding:30px;
border-radius:10px;
text-align:center;
box-shadow:0 5px 20px rgba(0,0,0,0.1);
}

.card-stat h2{
color:#ff7a00;
font-size:40px;
}

/* GRAFICA */

.card-chart{
background:white;
padding:30px;
border-radius:10px;
box-shadow:0 5px 20px rgba(0,0,0,0.1);
}

.barra-participacion{

background:#ddd;
border-radius:20px;
overflow:hidden;
height:30px;
margin-top:15px;

}

.barra-progreso{

background:#ff7a00;
height:100%;
text-align:center;
color:white;
line-height:30px;
font-weight:bold;

}

.tabla-ranking{

width:100%;
border-collapse:collapse;
margin-top:15px;

}

.tabla-ranking th{

background:#ff7a00;
color:white;
padding:10px;

}

.tabla-ranking td{

padding:10px;
border-bottom:1px solid #eee;

}

.actualizacion{

color:#666;
font-size:14px;
margin-bottom:10px;

}





/* =========================
   DASHBOARD MODERNO
========================= */

body{
font-family: 'Segoe UI', sans-serif;
background:#f4f6f8;
margin:0;
}

/* SIDEBAR */

.sidebar{
position:fixed;
top:0;
left:0;
width:240px;
height:100vh;
background:#ff7a00;
color:white;
padding:25px 20px;
box-shadow:2px 0 10px rgba(0,0,0,0.1);
}

.sidebar h2{
margin-bottom:35px;
font-size:22px;
}

.sidebar a{
display:flex;
align-items:center;
gap:10px;
color:white;
text-decoration:none;
padding:12px;
border-radius:8px;
margin-bottom:10px;
font-weight:500;
transition:0.2s;
}

.sidebar a:hover{
background:rgba(255,255,255,0.2);
}

/* CONTENIDO */

.main{
margin-left:240px;
padding:40px;
}

/* BARRA SUPERIOR */

.topbar{
display:flex;
justify-content:space-between;
align-items:center;
margin-bottom:30px;
}

.topbar h1{
margin:0;
}

/* TARJETAS */

.cards{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
gap:25px;
margin-bottom:30px;
}

.card-stat{
background:white;
padding:30px;
border-radius:14px;
box-shadow:0 10px 30px rgba(0,0,0,0.08);
text-align:center;
transition:0.2s;
}

.card-stat:hover{
transform:translateY(-5px);
}

.card-stat h2{
font-size:42px;
color:#ff7a00;
margin-bottom:5px;
}

.card-stat p{
color:#666;
}

/* TARJETAS GRANDES */

.card-chart{
background:white;
padding:30px;
border-radius:14px;
box-shadow:0 10px 30px rgba(0,0,0,0.08);
margin-bottom:30px;
}

/* BARRA PARTICIPACION */

.barra-participacion{
background:#ddd;
border-radius:20px;
overflow:hidden;
height:30px;
margin-top:15px;
}

.barra-progreso{
background:#ff7a00;
height:100%;
color:white;
text-align:center;
line-height:30px;
font-weight:bold;
}

/* TABLA */

.tabla-ranking{
width:100%;
border-collapse:collapse;
margin-top:15px;
}

.tabla-ranking th{
background:#ff7a00;
color:white;
padding:10px;
}

.tabla-ranking td{
padding:12px;
border-bottom:1px solid #eee;
}

/* CONTADOR */

.actualizacion{
font-size:14px;
color:#777;
margin-bottom:10px;
}