/* ==========================================================
   EDUCAPRO 2.0
   INDEX.CSS
   PARTE 1
========================================================== */

:root{

--azul:#0B2C5F;
--azul2:#154A95;
--dorado:#D4A017;
--gris:#6B7280;
--grisClaro:#F5F7FB;
--blanco:#FFFFFF;
--radio:22px;

--sombra1:0 10px 30px rgba(0,0,0,.08);
--sombra2:0 20px 60px rgba(0,0,0,.12);

}

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

html{
scroll-behavior:smooth;
}

body{

font-family:'Inter',sans-serif;

background:#fff;

color:#1f2937;

line-height:1.6;

overflow-x:hidden;

}

img{

display:block;

max-width:100%;

}

a{

text-decoration:none;

}

/*=========================================================
HEADER
==========================================================*/

.header{

position:sticky;

top:0;

z-index:999;

background:#fff;

box-shadow:0 4px 18px rgba(0,0,0,.05);

}

.header-container{

max-width:1300px;

margin:auto;

display:flex;

justify-content:space-between;

align-items:center;

padding:10px 30px;

}

.header .logo{

height:80px;
width:auto;

}

.menu{

display:flex;

gap:35px;

}

.menu a{

font-weight:600;

color:#374151;

transition:.30s;

}

.menu a:hover{

color:var(--azul);

}

.menu{

    display:flex;

    align-items:center;

    gap:10px;

}

.menu a{

    padding:12px 18px;

    border-radius:14px;

    font-weight:600;

    color:#374151;

    transition:.35s ease;

}

.menu a:hover{

    background:#F3F6FB;

    color:var(--azul);

}

.menu .activo{

    background:linear-gradient(135deg,var(--azul),#1E5BBF);

    color:#fff;

    box-shadow:0 8px 22px rgba(11,44,95,.25);

}

/*=========================================================
HERO
==========================================================*/

.hero{

max-width:1300px;

margin:auto;

padding:20px 10px;

display:grid;

grid-template-columns:1.05fr .95fr;

gap:90px;

align-items:center;

min-height:20vh;

}

/*=========================================================
IZQUIERDA
==========================================================*/

.hero-left{

display:flex;

flex-direction:column;

justify-content:center;

}

.hero-badge{

display:inline-flex;

align-items:center;

gap:8px;

background:#EEF5FF;

color:var(--azul);

padding:12px 20px;

border-radius:50px;

font-size:17px;

font-weight:700;

width:max-content;

margin-bottom:28px;

}

.hero h1{

font-size:66px;

line-height:1.05;

margin-bottom:25px;

}

.hero h1 span{

color:var(--dorado);

display:block;

}

.hero p{

font-size:20px;

color:#6B7280;

max-width:620px;

margin-bottom:40px;

}

/*=========================================================
BOTONES
==========================================================*/

.hero-buttons{

display:flex;

gap:18px;

margin-bottom:45px;

}

.btn-primary{

background:var(--azul);

color:#fff;

padding:18px 34px;

border-radius:14px;

font-weight:700;

transition:.30s;

box-shadow:var(--sombra1);

}

.btn-primary:hover{

transform:translateY(-5px);

background:#123E82;

}

.btn-secondary{

padding:18px 34px;

border:2px solid var(--azul);

border-radius:14px;

font-weight:700;

color:var(--azul);

transition:.30s;

}

.btn-secondary:hover{

background:var(--azul);

color:#fff;

}

/* ===== MAIN ===== */
main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px 20px;
  text-align: center;
}

/* ===== HERO ===== */
.hero img {
  width: 220px;
  max-width: 80%;
  height: auto;
  display: block;
  margin: 0 auto 30px auto;
}

.hero h1 {
  font-size: 40px;
  margin-bottom: 15px;
  color: #0b2c5f;
}

.hero p {
  font-size: 18px;
  color: #555;
  max-width: 600px;
  margin: 0 auto 40px auto;
}

/* ===== ESTADÍSTICAS ===== */
.stats {
  display: flex;
  justify-content: center;
  gap: 60px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.stat {
  text-align: center;
}

.stat h3 {
  font-size: 32px;
  color: #0b2c5f;
}

.stat p {
  font-size: 14px;
  color: #666;
  letter-spacing: 1px;
}

.signo,
.porcentaje {
  color: #d4a017;
}

/* ===== BOTONES ===== */
.acciones {
  margin-top: 40px;
}

.acciones a {
  display: inline-block;
  padding: 14px 26px;
  background: #0b2c5f;
  color: white;
  text-decoration: none;
  border-radius: 8px;
  margin: 10px;
  transition: 0.3s;
}

.acciones a:hover {
  background: #092c45;
  transform: translateY(-3px);
}

/* ===== FOOTER ===== */
.footer {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 25px;
}
/* ===== TIPOGRAFÍA PREMIUM ===== */

body {
  font-family: 'Inter', sans-serif;
  background-color: #ffffff;
  color: #1f2937;
  margin: 0;
}

h1, h2, h3 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #0b2c5f;
}

.resultado {
  background: #f5f7fa;
  border-radius: 12px;
  padding: 15px;
  margin: 10px auto;
  max-width: 500px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}
.cert-card {
  background: #ffffff;
  border-radius: 14px;
  padding: 25px;
  margin: 20px auto;
  max-width: 520px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  border-left: 6px solid #0d3b66;
  text-align: left;
}

.cert-header {
  font-size: 14px;
  color: #0d3b66;
  font-weight: 600;
  margin-bottom: 15px;
}

.cert-body p {
  font-size: 18px;
  margin-bottom: 15px;
}

.cert-info {
  display: flex;
  justify-content: space-between;
  margin: 8px 0;
  font-size: 14px;
}

.cert-info span {
  color: #666;
}

.codigo {
  font-family: monospace;
  background: #f4f6f8;
  padding: 4px 8px;
  border-radius: 6px;
}

.estado {
  padding: 4px 10px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 12px;
}

.estado.aprobado {
  background: #e6f7ec;
  color: #1a7f37;
}

.estado.rechazado {
  background: #fdecea;
  color: #d93025;
}
/* ==========================================================
   VALIDACIÓN DE CERTIFICADOS - EDUCAPRO
========================================================== */

.resultado-titulo {
    max-width: 650px;
    margin: 0 auto 25px auto;
    padding: 15px 20px;
    background: #eef7f1;
    color: #166534;
    border: 1px solid #cce8d5;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
}

.cert-card {
    position: relative;
    max-width: 650px;
    margin: 25px auto;
    background: #ffffff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 12px 35px rgba(11,44,95,.10);
    border: 1px solid #e5e7eb;
    text-align: left;
}

/* Línea institucional superior */
.cert-card::before {
    content: "";
    display: block;
    height: 5px;
    background: linear-gradient(
        90deg,
        var(--azul),
        var(--dorado)
    );
}

.cert-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 18px 24px;
    background: #f8fafc;
    border-bottom: 1px solid #e5e7eb;

    color: var(--azul);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .3px;
}

.cert-body {
    padding: 25px;
}

.cert-body .nombre {
    margin: 0 0 25px 0;
    color: var(--azul);
    font-family: 'Playfair Display', serif;
    font-size: 23px;
    font-weight: 700;
    line-height: 1.3;
}

.cert-info {
    display: grid;
    grid-template-columns: 170px 1fr;
    align-items: center;

    gap: 15px;

    padding: 13px 0;

    border-bottom: 1px solid #eef0f3;

    font-size: 14px;
}

.cert-info:last-child {
    border-bottom: none;
}

.cert-info span:first-child {
    color: #6b7280;
    font-weight: 500;
}

.cert-info strong {
    color: #1f2937;
    font-weight: 600;
}

.codigo {
    display: inline-block;

    width: fit-content;

    padding: 7px 11px;

    background: #f5f7fb;

    border: 1px solid #e2e6ed;

    border-radius: 7px;

    color: var(--azul) !important;

    font-family: monospace;

    font-size: 13px;

    letter-spacing: .3px;
}

.estado {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: fit-content;

    padding: 6px 13px;

    border-radius: 50px;

    font-size: 12px;

    font-weight: 700;
}

.estado.aprobado {
    background: #e8f7ee;
    color: #16803a;
    border: 1px solid #c8ead5;
}

.estado.rechazado {
    background: #fdecec;
    color: #c62828;
    border: 1px solid #f5caca;
}

/* ==========================================================
   CAMPOS ADICIONALES
========================================================== */

.certificado-extra {
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid #eef0f3;
}

.certificado-extra p {
    margin: 6px 0;
    font-size: 14px;
    color: #4b5563;
}

.certificado-extra strong {
    color: #1f2937;
}

/* ==========================================================
   CELULAR
========================================================== */

@media (max-width: 600px) {

    .cert-card {
        margin: 18px 10px;
        border-radius: 15px;
    }

    .cert-header {
        padding: 16px 18px;
    }

    .cert-body {
        padding: 20px 18px;
    }

    .cert-body .nombre {
        font-size: 20px;
    }

    .cert-info {
        grid-template-columns: 1fr;
        gap: 5px;
        padding: 12px 0;
    }

    .cert-info span:first-child {
        font-size: 12px;
        text-transform: uppercase;
        letter-spacing: .5px;
    }

    .codigo {
        font-size: 12px;
        word-break: break-all;
    }

}
.cert-body .nombre {
    text-transform: uppercase;
}
/* ==========================================================
   PÁGINA DE VALIDACIÓN
========================================================== */

.validacion-page {
    min-height: calc(100vh - 100px);
    padding: 70px 20px 80px;
    background:
        linear-gradient(
            180deg,
            #f8fafc 0%,
            #ffffff 45%,
            #ffffff 100%
        );
}

/* ENCABEZADO */

.validacion-hero {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
}

.validacion-icono {
    width: 58px;
    height: 58px;
    margin: 0 auto 20px;

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

    border-radius: 50%;

    background: #eaf7ef;
    border: 1px solid #cce9d7;

    color: #16803a;

    font-size: 27px;
    font-weight: 800;
}

.validacion-hero h1 {
    margin: 0;

    color: var(--azul);

    font-family: 'Playfair Display', serif;

    font-size: 38px;
    line-height: 1.2;
}

.validacion-descripcion {
    max-width: 600px;
    margin: 15px auto 35px;

    color: #6b7280;

    font-size: 16px;
}

/* BUSCADOR */

.buscador-certificado {
    max-width: 650px;
    margin: 0 auto;

    padding: 30px;

    background: #ffffff;

    border: 1px solid #e5e7eb;
    border-radius: 18px;

    box-shadow: 0 15px 40px rgba(11,44,95,.08);

    text-align: left;
}

.buscador-certificado label {
    display: block;

    margin-bottom: 9px;

    color: #374151;

    font-size: 14px;
    font-weight: 600;
}

.input-grupo {
    display: flex;
    gap: 12px;
}

.input-grupo input {
    flex: 1;

    min-width: 0;

    height: 52px;

    padding: 0 16px;

    border: 1px solid #d1d5db;
    border-radius: 10px;

    background: #ffffff;

    color: #1f2937;

    font-family: 'Inter', sans-serif;
    font-size: 16px;

    outline: none;

    transition: .2s ease;
}

.input-grupo input:focus {
    border-color: var(--azul2);

    box-shadow:
        0 0 0 3px rgba(21,74,149,.10);
}

.input-grupo input::placeholder {
    color: #9ca3af;
}

.input-grupo button {
    height: 52px;

    padding: 0 25px;

    border: none;
    border-radius: 10px;

    background: linear-gradient(
        135deg,
        var(--azul),
        var(--azul2)
    );

    color: #ffffff;

    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 700;

    letter-spacing: .3px;

    cursor: pointer;

    transition: .2s ease;
}

.input-grupo button:hover {
    transform: translateY(-1px);

    box-shadow:
        0 8px 20px rgba(11,44,95,.20);
}

.input-grupo button:active {
    transform: translateY(0);
}

.buscador-ayuda {
    margin: 10px 0 0;

    color: #9ca3af;

    font-size: 12px;
}

/* RESULTADOS */

.resultado-contenedor {
    max-width: 760px;

    margin: 40px auto 0;
}

/* MENSAJE DE RESULTADO */

.resultado-titulo {
    max-width: 650px;

    margin: 0 auto 25px;

    padding: 15px 20px;

    background: #eef7f1;

    color: #166534;

    border: 1px solid #cce8d5;

    border-radius: 12px;

    font-size: 14px;
    font-weight: 600;

    text-align: center;
}

.resultado-titulo.error {
    background: #fff4f4;
    color: #b42318;
    border-color: #f3caca;
}

/* MÓVIL */

@media (max-width: 650px) {

    .validacion-page {
        padding: 45px 15px 60px;
    }

    .validacion-hero h1 {
        font-size: 30px;
    }

    .validacion-descripcion {
        font-size: 14px;
        margin-bottom: 28px;
    }

    .buscador-certificado {
        padding: 22px 18px;
        border-radius: 15px;
    }

    .input-grupo {
        flex-direction: column;
    }

    .input-grupo input,
    .input-grupo button {
        width: 100%;
    }

    .input-grupo button {
        height: 50px;
    }

    .resultado-contenedor {
        margin-top: 30px;
    }
}