/* ===================================================
   ITSE - VERIFICACIÓN DE CERTIFICADOS
   Diseño inspirado en mockup institucional
=================================================== */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

:root {

    --guinda: #61162d;
    --guinda-dark: #61162d;
    --guinda-light: #61162d;

    --white: #ffffff;
    --bg: #f5f5f7;
    --text: #2b2b2b;
    --gray: #6b7280;

}

/* ===================================================
   BODY
=================================================== */
body {

    min-height: 100vh;

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

    background: #f4f4f4;

    overflow-x: hidden;
    overflow-y: auto;

    padding: 40px 20px;

    position: relative;
}

/* ===================================================
   FONDO TECNOLÓGICO
=================================================== */

.bg-grid {

    position: fixed;
    inset: 0;

    background-image:
        linear-gradient(rgba(139, 16, 40, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(139, 16, 40, 0.03) 1px, transparent 1px);

    background-size: 40px 40px;

    z-index: 0;
}

/* EFECTOS CURVOS */

body::before {

    content: '';

    position: absolute;

    width: 600px;
    height: 600px;

    background:
        radial-gradient(circle,
            rgba(139, 16, 40, 0.20),
            transparent 70%);

    top: -250px;
    left: -250px;

    border-radius: 50%;
}

body::after {

    content: '';

    position: absolute;

    width: 700px;
    height: 700px;

    background:
        radial-gradient(circle,
            rgba(139, 16, 40, 0.18),
            transparent 70%);

    bottom: -350px;
    right: -350px;

    border-radius: 50%;
}

/* ===================================================
   CONTENEDOR
=================================================== */

.container {

    width: 100%;
    max-width: 1050px;

    position: relative;
    z-index: 5;
}

/* ===================================================
   CARD PRINCIPAL
=================================================== */

.verification-card {

    background: rgba(255, 255, 255, 0.94);

    backdrop-filter: blur(10px);

    border-radius: 28px;

    overflow: hidden;

    border: 1px solid rgba(0, 0, 0, 0.08);

    box-shadow:
        0 15px 45px rgba(0, 0, 0, 0.10);

    transition: 0.3s ease;
}

.verification-card:hover {

    transform: translateY(-2px);

    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.12);
}

/* ===================================================
   BARRA SUPERIOR
=================================================== */

.top-bar {

    width: 100%;
    height: 10px;

    background:
        linear-gradient(90deg,
            var(--guinda),
            var(--guinda-light),
            var(--guinda));
}

/* ===================================================
   CONTENIDO
=================================================== */

.content {

    padding: 50px 70px;
}

/* ===================================================
   LOGO
=================================================== */

.logo-area {

    text-align: center;

    margin-bottom: 35px;
}

.logo-area img {

    width: 420px;
    max-width: 100%;

    object-fit: contain;

    margin-bottom: 25px;
}

/* ===================================================
   TITULOS
=================================================== */

.logo-area h1 {

    color: var(--guinda);

    font-size: 2.5rem;

    font-weight: 800;

    margin-bottom: 20px;
}

.line {

    width: 120px;
    height: 3px;

    background: var(--guinda);

    margin: 0 auto 25px;

    border-radius: 20px;

    position: relative;
}

.line::before {

    content: '';

    width: 10px;
    height: 10px;

    background: var(--guinda);

    border-radius: 50%;

    position: absolute;

    top: -3px;
    left: 50%;

    transform: translateX(-50%);
}

.logo-area p {

    color: #5f6368;

    font-size: 1.2rem;

    font-weight: 500;
}

/* ===================================================
   LABEL
=================================================== */

.search-section {

    margin-top: 45px;
}

.search-section label {

    display: flex;
    align-items: center;
    gap: 10px;

    color: #1f2937;

    font-size: 1.05rem;

    font-weight: 600;

    margin-bottom: 16px;
}

.search-section label i {

    color: var(--guinda);
}

/* ===================================================
   INPUT
=================================================== */

.search-box {

    position: relative;
}

.search-box input {

    width: 100%;

    height: 75px;

    border-radius: 20px;

    border: 2px solid rgba(139, 16, 40, 0.18);

    background: white;

    padding: 0 90px 0 28px;

    font-size: 1.1rem;

    font-weight: 500;

    color: #1f2937;

    outline: none;

    transition: 0.3s ease;
}

.search-box input::placeholder {

    color: #9ca3af;
}

.search-box input:focus {

    border-color: var(--guinda);

    box-shadow:
        0 0 0 5px rgba(139, 16, 40, 0.08);
}

/* BOTÓN BUSCAR */

.search-btn {

    position: absolute;

    right: 12px;
    top: 50%;

    transform: translateY(-50%);

    width: 58px;
    height: 58px;

    border: none;

    border-radius: 16px;

    background:
        linear-gradient(145deg,
            var(--guinda),
            var(--guinda-dark));

    color: white;

    font-size: 1.2rem;

    cursor: pointer;

    transition: 0.3s ease;
}

.search-btn:hover {

    transform:
        translateY(-50%) scale(1.05);

    background:
        linear-gradient(145deg,
            var(--guinda-light),
            var(--guinda));
}

/* ===================================================
   RESULTADOS
=================================================== */

#result {

    margin-top: 35px;
}

.result-card {

    background: white;

    border-radius: 22px;

    padding: 28px;

    border: 1px solid rgba(0, 0, 0, 0.06);

    box-shadow:
        0 5px 20px rgba(0, 0, 0, 0.04);

    animation: fadeIn 0.4s ease;
}

.result-title {

    color: var(--guinda);

    font-size: 1.7rem;

    font-weight: 800;

    margin-bottom: 18px;
}

.result-info {

    color: #374151;

    line-height: 2;

    font-size: 1rem;
}

.result-info span {

    color: var(--guinda);

    font-weight: 700;
}

/* ===================================================
   SUGERENCIAS
=================================================== */

#suggestions {

    margin-top: 16px;

    display: flex;
    flex-direction: column;

    gap: 12px;
}

.suggestion-item {

    background: white;

    border-radius: 18px;

    border: 1px solid rgba(0, 0, 0, 0.06);

    padding: 18px 20px;

    cursor: pointer;

    transition: 0.3s ease;
}

.suggestion-item:hover {

    border-color: rgba(139, 16, 40, 0.25);

    transform: translateX(4px);

    box-shadow:
        0 8px 20px rgba(139, 16, 40, 0.08);
}

.suggestion-name {

    font-weight: 700;

    color: #1f2937;

    margin-bottom: 6px;
}

.suggestion-id {

    color: var(--guinda);

    font-size: 0.92rem;

    font-weight: 600;
}

/* ===================================================
   CARDS INFERIORES
=================================================== */

.features {

    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 18px;

    margin-top: 40px;
}

.feature {

    background: white;

    border: 1px solid rgba(0, 0, 0, 0.06);

    border-radius: 20px;

    padding: 25px;

    text-align: center;

    transition: 0.3s ease;
}

.feature:hover {

    transform: translateY(-4px);

    box-shadow:
        0 10px 25px rgba(0, 0, 0, 0.06);
}

.feature i {

    font-size: 2rem;

    color: var(--guinda);

    margin-bottom: 15px;
}

.feature h3 {

    color: #1f2937;

    font-size: 1rem;

    margin-bottom: 10px;
}

.feature p {

    color: #6b7280;

    font-size: 0.9rem;

    line-height: 1.6;
}

/* ===================================================
   FOOTER
=================================================== */

.footer {

    margin-top: 45px;

    background:
        linear-gradient(90deg,
            var(--guinda),
            var(--guinda-dark));

    color: white;

    text-align: center;

    padding: 28px;

    font-size: 0.95rem;

    line-height: 2;
}

/* ===================================================
   ANIMACIÓN
=================================================== */

@keyframes fadeIn {

    from {

        opacity: 0;
        transform: translateY(15px);
    }

    to {

        opacity: 1;
        transform: translateY(0);
    }
}

/* ===================================================
   RESPONSIVE
=================================================== */

@media(max-width:900px) {

    .content {

        padding: 40px 25px;
    }

    .features {

        grid-template-columns: 1fr;
    }

    .logo-area img {

        width: 320px;
    }

    .logo-area h1 {

        font-size: 2rem;
    }

    .search-box input {

        height: 68px;
        font-size: 1rem;
    }
}

@media(max-width:600px) {

    body {

        padding: 20px 10px;
    }

    .content {

        padding: 30px 18px;
    }

    .logo-area img {

        width: 250px;
    }

    .logo-area h1 {

        font-size: 1.6rem;
    }

    .logo-area p {

        font-size: 1rem;
    }

    .search-box input {

        height: 62px;

        padding: 0 75px 0 18px;
    }

    .search-btn {

        width: 50px;
        height: 50px;
    }
}

/* ===================================================
   FONDO CON ESQUINAS EXACTAS COMO LA IMAGEN
=================================================== */

body {

    min-height: 100vh;

    display: flex;
    justify-content: center;

    /* IMPORTANTE */
    align-items: flex-start;

    background: #f4f4f4;

    /* IMPORTANTE */
    overflow-x: hidden;
    overflow-y: auto;

    padding: 40px 20px;

    position: relative;
}

/* ===================================================
   ESQUINA SUPERIOR IZQUIERDA
=================================================== */

body::before {

    content: '';

    position: fixed;

    width: 900px;
    height: 900px;

    top: -520px;
    left: -520px;

    border-radius: 50%;

    background: #61162d;

    z-index: 0;
}

/* SEGUNDO CÍRCULO */

.bg-grid::before {

    content: '';

    position: fixed;

    width: 780px;
    height: 780px;

    top: -450px;
    left: -450px;

    border-radius: 50%;

    border: 45px solid rgba(255, 255, 255, 0.08);

    z-index: 0;
}

/* ===================================================
   ESQUINA INFERIOR DERECHA
=================================================== */

body::after {

    content: '';

    position: fixed;

    width: 950px;
    height: 950px;

    bottom: -560px;
    right: -560px;

    border-radius: 50%;

    background: #61162d;

    z-index: 0;
}

/* SEGUNDO CÍRCULO */

.bg-grid::after {

    content: '';

    position: fixed;

    width: 820px;
    height: 820px;

    bottom: -500px;
    right: -500px;

    border-radius: 50%;

    border: 45px solid rgba(255, 255, 255, 0.08);

    z-index: 0;
}

/* ===================================================
   GRID TECNOLÓGICO
=================================================== */

.bg-grid {

    position: fixed;
    inset: 0;

    background-image:
        radial-gradient(rgba(139, 16, 40, 0.15) 1px,
            transparent 1px);

    background-size: 18px 18px;

    z-index: 0;
}

/* ===================================================
   LÍNEAS TECNOLÓGICAS IZQUIERDA
=================================================== */

.tech-left {

    position: fixed;

    left: 0;
    top: 35%;

    width: 250px;
    height: 220px;

    z-index: 1;
}

.tech-left::before {

    content: '';

    position: absolute;

    width: 220px;
    height: 2px;

    background: #d6b9c0;

    top: 40px;
    left: 0;

    box-shadow:
        0 40px 0 #d6b9c0,
        0 80px 0 #d6b9c0;
}

/* ===================================================
   LÍNEAS TECNOLÓGICAS DERECHA
=================================================== */

.tech-right {

    position: fixed;

    right: 0;
    bottom: 18%;

    width: 260px;
    height: 220px;

    z-index: 1;
}

.tech-right::before {

    content: '';

    position: absolute;

    width: 230px;
    height: 2px;

    background: #d6b9c0;

    right: 0;
    bottom: 30px;

    box-shadow:
        0 -40px 0 #d6b9c0,
        0 -80px 0 #d6b9c0;
}

/* ===================================================
   CARD PRINCIPAL
=================================================== */

.verification-card {

    position: relative;

    z-index: 5;

    background: rgba(255, 255, 255, 0.96);

    border-radius: 28px;

    overflow: hidden;

    border: 1px solid rgba(0, 0, 0, 0.08);

    box-shadow:
        0 15px 45px rgba(0, 0, 0, 0.12);

    width: 100%;
    max-width: 1050px;
}

/* ===================================================
   BORDE SUPERIOR
=================================================== */

.top-bar {

    width: 100%;
    height: 10px;

    background:
        linear-gradient(90deg,
            #61162d,
            #61162d,
            #61162d);
}

/* FIX FINAL SCROLL */

html,
body{

    width:100%;

    overflow-x:hidden;
}

/* PERMITIR SCROLL */

html{

    scroll-behavior:smooth;
}