﻿
:root {
    /* =========================
       COLORES IPN
    ========================== */

    --ipn-primary: #6A0032;
    --ipn-primary-dark: #4E0025;
    --ipn-primary-light: #8E1B52;
    --ipn-gold: #C8A64D;
    --text-main: #1F2937;
    --text-soft: #6B7280;
    --bg-main: #F7F9FC;
    --bg-card: #FFFFFF;
    --bg-soft: #F9FAFB;
    --border-color: #E5E7EB;
    --success: #16A34A;
    --danger: #DC2626;
    --warning: #F59E0B;
    --shadow-sm: 0 2px 10px rgba(0,0,0,.04);
    --shadow-md: 0 10px 30px rgba(0,0,0,.06);
    --shadow-lg: 0 20px 50px rgba(0,0,0,.08);
    --radius-sm: 12px;
    --radius-md: 18px;
    --radius-lg: 28px;
}


/* =========================
   GENERAL
========================= */

html,
body {
    min-height: 100%;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--bg-main);
    color: var(--text-main);
    overflow-x: hidden;
}


/* =========================
   NAVBAR
========================= */

.navbar-modern {
    background: rgba(255,255,255,.90);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0,0,0,.05);
    padding-top: 14px;
    padding-bottom: 14px;
    box-shadow: var(--shadow-sm);
}

.navbar-brand {
    font-weight: 700;
    color: var(--ipn-primary) !important;
    letter-spacing: -.5px;
}

.navbar-modern .nav-link {
    color: var(--text-main);
    font-weight: 500;
    margin-left: 10px;
    margin-right: 10px;
    transition: .25s;
}

    .navbar-modern .nav-link:hover {
        color: var(--ipn-primary);
    }

    .navbar-modern .nav-link.active {
        color: var(--ipn-primary);
        position: relative;
    }

        .navbar-modern .nav-link.active::after {
            content: '';
            position: absolute;
            left: 0;
            bottom: -8px;
            width: 100%;
            height: 3px;
            border-radius: 10px;
            background: var(--ipn-primary);
        }

.dropdown-menu-modern {
    border: none;
    border-radius: 18px;
    padding: 12px;
    min-width: 240px;
    box-shadow: 0 15px 40px rgba(0,0,0,.08);
    background: rgba(255,255,255,.96);
    backdrop-filter: blur(10px);
    margin-top: 14px;
}

    .dropdown-menu-modern .dropdown-item {
        border-radius: 12px;
        padding: 12px 16px;
        font-weight: 500;
        transition: .25s;
    }

        .dropdown-menu-modern .dropdown-item:hover {
            background: rgba(106,0,50,.08);
            color: var(--ipn-primary);
            transform: translateX(3px);
        }
/* =========================
   HERO SECTION
========================= */

.hero-section {
    position: relative;
    padding-top: 120px;
    padding-bottom: 100px;
    overflow: hidden;
}

    .hero-section::before {
        content: '';
        position: absolute;
        top: -120px;
        right: -120px;
        width: 450px;
        height: 450px;
        border-radius: 50%;
        background: radial-gradient( circle, rgba(106,0,50,.08) 0%, rgba(106,0,50,0) 70% );
    }

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.1;
    color: var(--text-main);
    margin-bottom: 25px;
}

    .hero-title span {
        color: var(--ipn-primary);
    }

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-soft);
    max-width: 700px;
    line-height: 1.8;
}

.confirm-hero {
    position: relative;
    min-height: 80vh;
    background: url('../img/biotech-bg.jpg') center/cover no-repeat fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    overflow: hidden;
    text-align: center;
   
}

    .confirm-hero::before {
        content: "";
        position: absolute;
        inset: 0;
        /* NUEVO GRADIENTE INSTITUCIONAL */
        background: linear-gradient( 135deg, rgba(113,181,231,0.65), /* azul */
        rgba(78,184,65,0.55) /* verde */
        );
    }

.confirm-content {
    position: relative;
    z-index: 2;
    margin-bottom: 3em;
}

/* Glass card */
.confirm-card {
    margin-top: 30px;
    padding: 40px;
    border-radius: 20px;
    /* más limpio y moderno */
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(12px);
    color: #2c3e50;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
    max-width: 600px;
}

.cb-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-top: 1.2em;
}

.cb-corner {
    border: 1px solid #dc354582; /*#6A0032 */
}

.width-links .btn {
    width: 100%;
}


/* Responsive */

@media (max-width: 768px) {

    .cb-links {
        grid-template-columns: 1fr;
    }
}

.cb-login-links {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 1.2em;
}

.width-links btn {
    width:5em;
}

.cb-login-link {
    text-decoration: none;
    text-align: center;
    padding: 12px 18px;
    border-radius: 14px;
    background: rgba(255,255,255,.7);
    color: #444;
    font-weight: 500;
    transition: .25s ease;
    border: 1px solid rgba(255,255,255,.5);
    backdrop-filter: blur(10px);
}

    .cb-login-link:hover {
        transform: translateY(-2px);
        background: white;
        color: rgb(78 184 65);
        box-shadow: 0 10px 20px rgba(0,0,0,.08);
    }

.cb-login-link-primary {
    background: linear-gradient( 135deg, rgba(113,181,231,.12), rgba(78,184,65,.12) );
    color: rgb(78 184 65);
    font-weight: 600;
}

/* CARD PRINCIPAL */

.cb-card {
    border-radius: 32px;
    overflow: hidden;
    border: none;
    background: #ffffff;
    box-shadow: 0 10px 40px rgba(15, 23, 42, 0.06);
    padding: 10px;
}


    /* HEADER */

    .cb-card .card-header {
        padding: 2.5rem 2.5rem 1rem;
    }


    /* BODY */

    .cb-card .card-body {
        padding: 2.5rem !important;
    }


/* ITEMS */

.cb-detail-item {
    background: #fff;
    border: 1px solid #e8edf5;
    border-radius: 22px;
    padding: 1.6rem 1.7rem;
    min-height: 120px;
    transition: .2s ease;
}


    .cb-detail-item:hover {
        border-color: rgba(106,0,50,.18);
        transform: translateY(-2px);
        box-shadow: 0 12px 24px rgba(0,0,0,.04);
    }


    /* LABEL */

    .cb-detail-item label {
        display: block;
        font-size: .82rem;
        font-weight: 700;
        color: #7c8597;
        margin-bottom: 14px;
        text-transform: uppercase;
        letter-spacing: .08em;
    }


/* VALUE */

.cb-detail-value {
    font-size: 1.15rem;
    font-weight: 500;
    color: #172b4d;
    line-height: 1.7;
}


/* SIDE PANEL */

.cb-side-panel {
    background: linear-gradient( 180deg, #ffffff 0%, #f8f9fc 100%);
    border: 1px solid #edf0f5;
    border-radius: 28px;
    padding: 3rem 2rem;
}


/* AVATAR */

.cb-avatar {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: #aed3d2;/* #6A0032;*/
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: auto;
    font-size: 2.8rem;
    font-weight: 700;
    box-shadow: 0 18px 40px rgba(106,0,50,.28);
}



/* RESPONSIVE */

@media (max-width: 992px) {

    .cb-card .card-header,
    .cb-card .card-body {
        padding: 1.5rem !important;
    }

    .cb-side-panel {
        padding: 2rem 1.5rem;
    }

    .cb-detail-item {
        min-height: auto;
    }
    .cb-avatar {
        background: #6c757d;
    }
}


/* =========================
   BOTONES
========================= */

.btn-ipn {
    background: var(--ipn-primary);
    color: white;
    border: none;
    border-radius: 14px;
    padding: 14px 28px;
    font-weight: 600;
    transition: .3s;
    box-shadow: 0 10px 25px rgba(106,0,50,.18);
}

    .btn-ipn:hover {
        background: var(--ipn-primary-dark);
        transform: translateY(-2px);
        color: white;
    }

.btn-outline-ipn {
    border: 2px solid var(--ipn-primary);
    color: var(--ipn-primary);
    border-radius: 14px;
    padding: 13px 26px;
    font-weight: 600;
    transition: .3s;
}

    .btn-outline-ipn:hover {
        background: var(--ipn-primary);
        color: white;
    }

/* =========================
   LOGO
========================= */
.brand-logo {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0,0,0,.08);
}


.brand-logo-img {
    width: 42px;
    height: 42px;
    object-fit: contain;
}

/* =========================
   CARDS
========================= */

.card-modern {
    background: var(--bg-card);
    border: none;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    transition: .3s;
    overflow: hidden;
}

    .card-modern:hover {
        transform: translateY(-6px);
        box-shadow: var(--shadow-lg);
    }

    .card-modern .card-body {
        padding: 32px;
    }

.card-icon {
    width: 65px;
    height: 65px;
    border-radius: 18px;
    background: rgba(106,0,50,.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ipn-primary);
    font-size: 1.6rem;
    margin-bottom: 20px;
}

.card-title-modern {
    font-weight: 700;
    margin-bottom: 10px;
}

.card-text-modern {
    color: var(--text-soft);
    line-height: 1.7;
}


/* =========================
   ESTADISTICAS
========================= */

.stats-card {
    padding: 30px;
    border-radius: var(--radius-md);
    background: white;
    box-shadow: var(--shadow-md);
    transition: .3s;
}

    .stats-card:hover {
        transform: translateY(-5px);
    }

.stats-number {
    font-size: 2.3rem;
    font-weight: 700;
    color: var(--ipn-primary);
}

.stats-label {
    color: var(--text-soft);
    margin-top: 10px;
}


/* =========================
   TABLAS
========================= */

.table-modern {
    background: white;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

    .table-modern table {
        margin-bottom: 0;
    }

    .table-modern thead {
        background: rgba(106,0,50,.05);
    }

        .table-modern thead th {
            border: none;
            padding: 18px;
            color: var(--ipn-primary);
            font-weight: 700;
        }

    .table-modern tbody td {
        padding: 18px;
        border-color: #F1F1F1;
    }


/* =========================
   FORMULARIOS
========================= */

.form-control,
.form-select {
    min-height: 52px;
    border-radius: 14px;
    border: 1px solid var(--border-color);
    padding-left: 16px;
    box-shadow: none !important;
}

    .form-control:focus,
    .form-select:focus {
        border-color: var(--ipn-primary);
        box-shadow: 0 0 0 4px rgba(106,0,50,.08) !important;
    }

label {
    font-weight: 600;
    margin-bottom: 8px;
}


/* =========================
   LOGIN / REGISTER
========================= */

.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    position: relative;
    overflow: hidden;
}

    .auth-wrapper::before {
        content: '';
        position: absolute;
        top: -200px;
        right: -200px;
        width: 500px;
        height: 500px;
        border-radius: 50%;
        background: radial-gradient( circle, rgba(106,0,50,.10) 0%, rgba(106,0,50,0) 70% );
    }

.auth-card {
    width: 100%;
    max-width: 460px;
    background: rgba(255,255,255,.90);
    backdrop-filter: blur(10px);
    border-radius: 28px;
    padding: 45px;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255,255,255,.5);
    position: relative;
    z-index: 10;
}

.auth-logo {
    width: 80px;
    height: 80px;
    border-radius: 24px;
    background: var(--ipn-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: auto;
    color: white;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 25px;
}

.auth-title {
    text-align: center;
    font-weight: 700;
    margin-bottom: 10px;
}

.auth-subtitle {
    text-align: center;
    color: var(--text-soft);
    margin-bottom: 35px;
}

.auth-links a {
    color: var(--ipn-primary);
    text-decoration: none;
    font-weight: 500;
}

    .auth-links a:hover {
        text-decoration: underline;
    }


/* =========================
   BADGES
========================= */

.badge-soft-success {
    background: rgba(22,163,74,.10);
    color: var(--success);
    padding: 10px 14px;
    border-radius: 12px;
    font-weight: 600;
}

.badge-soft-danger {
    background: rgba(220,38,38,.10);
    color: var(--danger);
    padding: 10px 14px;
    border-radius: 12px;
    font-weight: 600;
}


/* =========================
   SECCIONES
========================= */

.section-padding {
    padding-top: 100px;
    padding-bottom: 100px;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 18px;
}

.section-subtitle {
    color: var(--text-soft);
    max-width: 700px;
    margin: auto;
    line-height: 1.8;
}


/* =========================
   FOOTER
========================= */

.footer-modern {
    background: white;
    border-top: 1px solid rgba(0,0,0,.05);
    padding-top: 50px;
    padding-bottom: 50px;
    margin-top: 100px;
    
}
    .footer-modern h5 {
       font-size:0.75em;
    }

    .footer-modern p {
        color: var(--text-soft);
        margin-bottom: 0;
        font-size: 0.6em;
    }


/* =========================
   RESPONSIVE
========================= */

@media(max-width: 992px) {

    .hero-title {
        font-size: 2.3rem;
    }

    .hero-section {
        text-align: center;
    }
}

@media(max-width: 768px) {

    .hero-title {
        font-size: 2rem;
    }

    .auth-card {
        padding: 35px 28px;
    }

    .section-padding {
        padding-top: 70px;
        padding-bottom: 70px;
    }
}