/* ============================================================
   ITCFI UAGRM — Estilos personalizados
   Stack: Bootstrap 5 + Inter + CSS custom properties
   ============================================================ */

/* ── Variables ─────────────────────────────────────────────── */
:root {
    --blue-dark:   #1A2A5E;
    --blue-mid:    #2E4A9E;
    --red-inst:    #C8102E;
    --red-dark:    #8B0000;
    --white:       #FFFFFF;
    --gray-light:  #F0F0F0;
    --gray-mid:    #B0B0B0;
    --gray-text:   #4B5563;
    --text-dark:   #1A1A1A;
    --gray-border: rgba(0, 0, 0, 0.07);
    --wa-green:    #25D366;

    --shadow-sm: 0 2px 8px rgba(26, 42, 94, 0.08);
    --shadow-md: 0 6px 24px rgba(26, 42, 94, 0.13);
    --transition: all 0.22s ease;
    --radius:    10px;
}

/* ── Base ───────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--gray-text);
    background-color: var(--white);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }

/* ── Navbar ─────────────────────────────────────────────────── */
.navbar-itcfi {
    background-color: var(--blue-dark);
    padding: 0.7rem 0;
    transition: box-shadow 0.25s ease, padding 0.25s ease;
}

.navbar-itcfi.navbar-scrolled {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    padding: 0.5rem 0;
}

.brand-icon {
    width: 38px;
    height: 38px;
    background: var(--red-inst);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    color: var(--white);
    flex-shrink: 0;
}

.brand-icon-sm {
    width: 32px;
    height: 32px;
    font-size: 0.9rem;
}

.navbar-brand-name {
    display: block;
    font-size: 1rem;
    font-weight: 800;
    color: var(--white);
    line-height: 1.1;
    letter-spacing: 0.3px;
}

.navbar-brand-sub {
    display: block;
    font-size: 0.62rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1;
    font-weight: 400;
}

/* Toggler personalizado para fondo oscuro */
.navbar-itcfi .navbar-toggler {
    border-color: rgba(255, 255, 255, 0.25);
    padding: 0.3rem 0.5rem;
}

.navbar-itcfi .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255%2C255%2C255%2C0.85%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-itcfi .nav-link {
    color: rgba(255, 255, 255, 0.8) !important;
    font-weight: 500;
    font-size: 0.88rem;
    padding: 0.45rem 0.85rem !important;
    border-radius: 6px;
    transition: var(--transition);
}

.navbar-itcfi .nav-link:hover,
.navbar-itcfi .nav-link.active {
    color: var(--white) !important;
    background: rgba(255, 255, 255, 0.1);
}

.btn-moodle {
    background-color: var(--red-inst);
    border: none;
    color: var(--white) !important;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 0.45rem 1rem;
    border-radius: 6px;
    text-decoration: none;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-moodle:hover {
    background-color: var(--red-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(227, 6, 19, 0.35);
}

/* ── Hero ───────────────────────────────────────────────────── */
.hero-section {
    background-color: var(--blue-dark);
    background-image:
        radial-gradient(ellipse at 80% 10%, rgba(200, 16, 46, 0.09) 0%, transparent 55%),
        radial-gradient(ellipse at 10% 90%, rgba(255, 255, 255, 0.03) 0%, transparent 50%),
        linear-gradient(140deg, var(--blue-dark) 0%, var(--blue-mid) 60%, #152248 100%);
    padding: 5rem 0 4.5rem;
    position: relative;
    overflow: hidden;
    color: var(--white);
}

.hero-section::before {
    content: '';
    position: absolute;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    border: 55px solid rgba(26, 42, 94, 0.5);
    top: -210px;
    right: -170px;
    pointer-events: none;
    z-index: 0;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: rgba(227, 6, 19, 0.15);
    border: 1px solid rgba(227, 6, 19, 0.3);
    color: #ff8a95;
    padding: 0.3rem 0.9rem;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    margin-bottom: 1.25rem;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    line-height: 1.12;
    margin-bottom: 1.1rem;
    color: var(--white);
}

.hero-title span {
    color: var(--red-inst);
}

.hero-subtitle {
    font-size: 0.97rem;
    color: rgba(255, 255, 255, 0.68);
    margin-bottom: 2.25rem;
    max-width: 500px;
    line-height: 1.65;
}

.btn-hero-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--red-inst);
    color: var(--white);
    border: none;
    padding: 0.75rem 1.65rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.92rem;
    text-decoration: none;
    transition: var(--transition);
}

.btn-hero-primary:hover {
    background: var(--red-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(227, 6, 19, 0.4);
}

.btn-hero-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    color: rgba(255, 255, 255, 0.85);
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    padding: 0.75rem 1.65rem;
    border-radius: var(--radius);
    font-weight: 500;
    font-size: 0.92rem;
    text-decoration: none;
    transition: var(--transition);
}

.btn-hero-secondary:hover {
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.65);
    background: rgba(255, 255, 255, 0.07);
}

/* Tarjeta glassmorphism del hero */
.hero-card {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1.65rem 1.75rem;
    backdrop-filter: blur(6px);
}

.hero-card-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.85rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.hero-card-item:first-child { padding-top: 0; }
.hero-card-item:last-child  { border-bottom: none; padding-bottom: 0; }

.hero-card-icon {
    width: 42px;
    height: 42px;
    background: rgba(227, 6, 19, 0.14);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: #ff8a95;
    flex-shrink: 0;
}

.hero-card-label {
    display: block;
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.42);
    line-height: 1;
    margin-bottom: 0.22rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-card-value {
    display: block;
    font-size: 0.92rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.92);
    line-height: 1.2;
}

/* ── Features ───────────────────────────────────────────────── */
.features-section {
    padding: 4.5rem 0;
}

.feature-card {
    text-align: center;
    padding: 2rem 1.5rem;
    border-radius: 14px;
    background: var(--white);
    border: 1px solid var(--gray-border);
    transition: var(--transition);
    height: 100%;
}

.feature-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
    border-color: rgba(26, 42, 94, 0.12);
}

.feature-icon {
    width: 58px;
    height: 58px;
    background: #E8EDF8;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.1rem;
    font-size: 1.45rem;
    color: var(--blue-dark);
    transition: var(--transition);
}

.feature-card:hover .feature-icon {
    background: var(--blue-dark);
    color: var(--white);
}

.feature-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--blue-dark);
    margin-bottom: 0.4rem;
}

.feature-desc {
    font-size: 0.82rem;
    color: var(--gray-text);
    line-height: 1.55;
    margin: 0;
}

/* ── Section labels / titles ────────────────────────────────── */
.section-label {
    display: inline-block;
    color: var(--red-inst);
    font-size: 0.73rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.section-title {
    font-size: clamp(1.5rem, 4vw, 2.1rem);
    font-weight: 800;
    color: var(--blue-dark);
    line-height: 1.2;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    color: var(--gray-text);
    font-size: 0.92rem;
}

/* ── Cursos ─────────────────────────────────────────────────── */
.courses-section {
    padding: 4.5rem 0;
}

.course-card {
    border: 1px solid var(--gray-border);
    border-radius: 14px;
    overflow: hidden;
    transition: var(--transition);
    background: var(--white);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: rgba(26, 42, 94, 0.14);
}

.course-img-placeholder {
    height: 175px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.course-img-placeholder i {
    font-size: 2.75rem;
    color: rgba(255, 255, 255, 0.25);
}

.course-img {
    width: 100%;
    height: 175px;
    object-fit: cover;
    flex-shrink: 0;
}

.course-body {
    padding: 1.35rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.course-badge {
    display: inline-block;
    background: var(--gray-light);
    color: var(--blue-dark);
    padding: 0.2rem 0.65rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.course-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--blue-dark);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.course-desc {
    font-size: 0.84rem;
    color: var(--gray-text);
    line-height: 1.55;
    flex: 1;
    margin-bottom: 1.25rem;
}

.btn-course {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--blue-dark);
    color: var(--white);
    border: none;
    padding: 0.5rem 1.1rem;
    border-radius: 7px;
    font-weight: 600;
    font-size: 0.82rem;
    text-decoration: none;
    transition: var(--transition);
    align-self: flex-start;
}

.btn-course:hover {
    background: var(--blue-mid);
    color: var(--white);
}

/* ── CTA ────────────────────────────────────────────────────── */
.cta-section {
    background-image: linear-gradient(140deg, var(--blue-dark) 0%, var(--blue-mid) 60%, #152248 100%);
    padding: 4.5rem 0;
    text-align: center;
}

.cta-section .cta-title {
    font-size: clamp(1.6rem, 4vw, 2.2rem);
    font-weight: 800;
    color: var(--white);
    margin-bottom: 0.65rem;
}

.cta-section .cta-subtitle {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

/* ── Footer ─────────────────────────────────────────────────── */
.footer-itcfi {
    background: #0c1530;
    color: rgba(255, 255, 255, 0.6);
    padding: 3.5rem 0 1.75rem;
}

.footer-brand {
    font-size: 1rem;
    font-weight: 800;
    color: var(--white);
    line-height: 1.1;
}

.footer-desc {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.45);
    line-height: 1.6;
    margin-bottom: 0;
}

.footer-heading {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.35);
    margin-bottom: 1rem;
}

.footer-link {
    display: block;
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    font-size: 0.85rem;
    margin-bottom: 0.45rem;
    transition: var(--transition);
}

.footer-link:hover {
    color: var(--white);
    padding-left: 4px;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 0.55rem;
}

.footer-contact-item i {
    color: var(--red-inst);
    font-size: 0.85rem;
    width: 14px;
    flex-shrink: 0;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.07);
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    font-size: 1rem;
    transition: var(--transition);
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.14);
    color: var(--white);
}

.btn-footer-action {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.9rem;
    border-radius: 7px;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    margin-bottom: 0.5rem;
    transition: var(--transition);
}

.btn-footer-moodle {
    background: rgba(255, 255, 255, 0.07);
    color: rgba(255, 255, 255, 0.7);
}

.btn-footer-moodle:hover {
    background: rgba(255, 255, 255, 0.13);
    color: var(--white);
}

.btn-footer-wa {
    background: rgba(37, 211, 102, 0.12);
    color: var(--wa-green);
}

.btn-footer-wa:hover {
    background: rgba(37, 211, 102, 0.22);
    color: var(--wa-green);
}

.footer-divider {
    border-color: rgba(255, 255, 255, 0.07);
    margin: 2rem 0 1.25rem;
}

.footer-copy {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.28);
    margin: 0;
}

/* ── WhatsApp flotante ──────────────────────────────────────── */
.whatsapp-float {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 9999;
    width: 56px;
    height: 56px;
    background: var(--wa-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 18px rgba(37, 211, 102, 0.45);
    animation: wa-pulse 2.5s infinite;
    transition: transform 0.2s ease, background 0.2s ease;
}

.whatsapp-float:hover {
    background: #1ebe5c;
    transform: scale(1.1);
    animation: none;
    box-shadow: 0 6px 22px rgba(37, 211, 102, 0.55);
}

.whatsapp-float i {
    color: var(--white);
    font-size: 1.6rem;
}

@keyframes wa-pulse {
    0%, 100% { box-shadow: 0 4px 18px rgba(37, 211, 102, 0.45); }
    50%       { box-shadow: 0 4px 24px rgba(37, 211, 102, 0.65), 0 0 0 10px rgba(37, 211, 102, 0.1); }
}

/* ── Utilidades ─────────────────────────────────────────────── */
.bg-gray-light  { background-color: var(--gray-light); }
.text-blue      { color: var(--blue-dark) !important; }
.text-red       { color: var(--red-inst)  !important; }

.btn-red {
    background: var(--red-inst);
    border: none;
    color: var(--white);
    font-weight: 600;
    transition: var(--transition);
}
.btn-red:hover {
    background: var(--red-dark);
    color: var(--white);
}

.btn-blue {
    background: var(--blue-dark);
    border: none;
    color: var(--white);
    font-weight: 600;
    transition: var(--transition);
}
.btn-blue:hover {
    background: var(--blue-mid);
    color: var(--white);
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 991.98px) {
    .navbar-itcfi .navbar-collapse {
        padding: 1rem 0 0.5rem;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        margin-top: 0.5rem;
    }

    .btn-moodle {
        display: inline-flex;
        margin-top: 0.75rem;
        width: fit-content;
    }

    .hero-section {
        padding: 3.5rem 0 3rem;
    }

    .hero-card {
        margin-top: 2.5rem;
    }

    .hero-subtitle {
        max-width: 100%;
    }
}

@media (max-width: 575.98px) {
    .hero-title {
        font-size: 1.85rem;
    }

    .btn-hero-primary,
    .btn-hero-secondary {
        width: 100%;
        justify-content: center;
    }

    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }

    .whatsapp-float i {
        font-size: 1.4rem;
    }
}

/* ============================================================
   FASE 2 — Páginas públicas dinámicas
   ============================================================ */

/* ── Hero de páginas interiores ─────────────────────────────── */
.page-hero {
    background-image: linear-gradient(140deg, var(--blue-dark) 0%, var(--blue-mid) 60%, #152248 100%);
    color: var(--white);
    padding: 3.5rem 0 3rem;
}

.page-hero .breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 0;
    font-size: 0.8rem;
}

.page-hero .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: var(--transition);
}

.page-hero .breadcrumb-item a:hover {
    color: rgba(255, 255, 255, 0.85);
}

.page-hero .breadcrumb-item.active {
    color: rgba(255, 255, 255, 0.8);
}

.page-hero .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.3);
}

.page-hero-title {
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    font-weight: 800;
    color: var(--white);
    margin-bottom: 0.65rem;
    line-height: 1.15;
}

.page-hero-subtitle {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.95rem;
    margin-bottom: 0;
    max-width: 600px;
    line-height: 1.65;
}

.course-badge-hero {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.85);
    padding: 0.3rem 0.85rem;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
}

/* ── Detalle de curso ────────────────────────────────────────── */
.course-content {
    padding: 3.5rem 0;
}

.content-block {
    background: var(--white);
    border-radius: 14px;
    padding: 1.75rem;
    margin-bottom: 1.25rem;
    border: 1px solid var(--gray-border);
}

.course-content-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--blue-dark);
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--gray-light);
}

.course-desc-full {
    font-size: 0.95rem;
    color: var(--gray-text);
    line-height: 1.8;
}

.benefit-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.benefit-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--gray-border);
    font-size: 0.9rem;
    color: var(--gray-text);
    line-height: 1.5;
}

.benefit-list li:last-child {
    border-bottom: none;
}

.benefit-list li i {
    color: #16a34a;
    font-size: 0.95rem;
    margin-top: 0.12rem;
    flex-shrink: 0;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--blue-dark);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
    transition: var(--transition);
    padding: 0.45rem 0.85rem;
    border: 1.5px solid var(--blue-dark);
    border-radius: 7px;
}

.btn-back:hover {
    background: var(--blue-dark);
    color: var(--white);
}

/* ── Sidebar de curso ────────────────────────────────────────── */
.course-sidebar-card {
    border: 1px solid var(--gray-border);
    border-radius: 14px;
    overflow: hidden;
    background: var(--white);
    position: sticky;
    top: 80px;
}

.course-sidebar-header {
    background: var(--blue-dark);
    color: var(--white);
    padding: 1rem 1.5rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.course-sidebar-body {
    padding: 0.25rem 1.5rem;
}

.course-info-item {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--gray-border);
}

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

.course-info-item > i {
    color: var(--red-inst);
    font-size: 1.05rem;
    width: 20px;
    flex-shrink: 0;
    text-align: center;
}

.course-info-label {
    display: block;
    font-size: 0.67rem;
    color: rgba(0, 0, 0, 0.38);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1;
    margin-bottom: 0.2rem;
}

.course-info-value {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--blue-dark);
    line-height: 1.3;
}

.course-sidebar-footer {
    padding: 1.25rem 1.5rem;
    border-top: 1px solid var(--gray-border);
    background: var(--gray-light);
}

.btn-sidebar-wa {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.7rem;
    background: var(--wa-green);
    color: var(--white);
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.84rem;
    transition: var(--transition);
    margin-bottom: 0.5rem;
    text-align: center;
}

.btn-sidebar-wa:hover {
    background: #1ebe5c;
    color: var(--white);
}

.btn-sidebar-moodle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.7rem;
    background: var(--blue-dark);
    color: var(--white);
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.84rem;
    transition: var(--transition);
    text-align: center;
}

.btn-sidebar-moodle:hover {
    background: var(--blue-mid);
    color: var(--white);
}

/* ── Certificaciones ─────────────────────────────────────────── */
.cert-info-card {
    border: 1px solid var(--gray-border);
    border-radius: 14px;
    padding: 1.5rem;
    background: var(--white);
}

.cert-info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--gray-border);
}

.cert-info-item:first-child { padding-top: 0; }
.cert-info-item:last-child  { border-bottom: none; padding-bottom: 0; }

.cert-info-icon {
    width: 44px;
    height: 44px;
    background: #E8EDF8;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--blue-dark);
    flex-shrink: 0;
}

.cert-info-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--blue-dark);
    margin-bottom: 0.2rem;
}

.cert-info-desc {
    font-size: 0.82rem;
    color: var(--gray-text);
    line-height: 1.5;
}

.cert-step {
    display: flex;
    gap: 1.25rem;
    margin-bottom: 1.75rem;
}

.cert-step:last-child { margin-bottom: 0; }

.cert-step-num {
    width: 40px;
    height: 40px;
    background: var(--red-inst);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 800;
    flex-shrink: 0;
}

.cert-step-content { padding-top: 0.35rem; flex: 1; }

.cert-step-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--blue-dark);
    margin-bottom: 0.3rem;
}

.cert-step-desc {
    font-size: 0.88rem;
    color: var(--gray-text);
    margin: 0;
    line-height: 1.6;
}

.cert-course-card {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 1rem 1.25rem;
    background: var(--white);
    border: 1px solid var(--gray-border);
    border-radius: 10px;
    transition: var(--transition);
}

.cert-course-card:hover {
    border-color: rgba(26, 42, 94, 0.2);
    box-shadow: var(--shadow-sm);
    transform: translateX(4px);
}

.cert-course-icon {
    width: 38px;
    height: 38px;
    background: #E8EDF8;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--blue-dark);
    font-size: 1rem;
    flex-shrink: 0;
}

.cert-course-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--blue-dark);
    line-height: 1.2;
}

.cert-course-cert {
    font-size: 0.75rem;
    color: var(--gray-text);
    margin-top: 0.15rem;
}

.cert-course-arrow {
    color: rgba(0, 0, 0, 0.2);
    font-size: 0.9rem;
    transition: var(--transition);
}

.cert-course-card:hover .cert-course-arrow { color: var(--blue-dark); }

/* ── Contacto ────────────────────────────────────────────────── */
.contact-card {
    border: 1px solid var(--gray-border);
    border-radius: 14px;
    padding: 2rem 1.5rem;
    background: var(--white);
    transition: var(--transition);
    height: 100%;
    text-align: center;
}

.contact-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
    border-color: rgba(26, 42, 94, 0.12);
}

.contact-card-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.1rem;
    font-size: 1.7rem;
}

.contact-card-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--blue-dark);
    margin-bottom: 0.35rem;
}

.contact-card-value {
    font-size: 0.82rem;
    color: var(--gray-text);
    margin-bottom: 0.75rem;
    word-break: break-word;
}

.contact-card-action {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--blue-dark);
    opacity: 0.45;
    transition: var(--transition);
}

.contact-card:hover .contact-card-action { opacity: 1; }

/* ── Estado vacío ────────────────────────────────────────────── */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
}

.empty-state-icon {
    width: 80px;
    height: 80px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: rgba(0, 0, 0, 0.18);
}

.empty-state-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--blue-dark);
    margin-bottom: 0.5rem;
}

.empty-state-desc {
    color: var(--gray-text);
    font-size: 0.9rem;
    margin-bottom: 1.75rem;
}

/* ============================================================
   FASE 4.5 — Rediseño visual frontend público
   ============================================================ */

/* ── Logos de marca ─────────────────────────────────────────── */
.brand-logos {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-right: 0.75rem;
    margin-right: 0.25rem;
    border-right: 1px solid rgba(255, 255, 255, 0.15);
}

.brand-logo-escudo {
    height: 34px;
    width: auto;
    object-fit: contain;
}

.brand-logo-uagrm {
    height: 28px;
    width: auto;
    object-fit: contain;
    opacity: 0.88;
}

.brand-logo-footer {
    height: 38px;
    width: auto;
    object-fit: contain;
}

.brand-logo-footer-uagrm {
    height: 30px;
    width: auto;
    object-fit: contain;
    opacity: 0.8;
}

/* ── Botón Acceso admin ─────────────────────────────────────── */
.btn-admin {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: transparent;
    color: rgba(255, 255, 255, 0.38);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.72rem;
    font-weight: 500;
    padding: 0.3rem 0.65rem;
    border-radius: 5px;
    text-decoration: none;
    transition: var(--transition);
    white-space: nowrap;
    letter-spacing: 0.2px;
    margin-left: 0.4rem;
}

.btn-admin:hover {
    color: rgba(255, 255, 255, 0.65);
    border-color: rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.05);
}

/* ── Sección de estadísticas ────────────────────────────────── */
.stats-section {
    background: linear-gradient(135deg, #152248 0%, var(--blue-dark) 100%);
    padding: 2.25rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.stat-item {
    text-align: center;
    padding: 0.75rem 1rem;
    border-right: 1px solid rgba(255, 255, 255, 0.09);
}

.stat-item:last-child {
    border-right: none;
}

.stat-value {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 800;
    color: var(--white);
    line-height: 1;
    margin-bottom: 0.3rem;
    letter-spacing: -0.5px;
}

.stat-value span {
    color: var(--red-inst);
}

.stat-icon {
    font-size: 1.3rem;
    color: var(--red-inst);
    margin-bottom: 0.35rem;
    display: block;
    opacity: 0.85;
}

.stat-label {
    font-size: 0.76rem;
    color: rgba(255, 255, 255, 0.48);
    line-height: 1.35;
    font-weight: 400;
}

/* ── Sección institucional con fachada ──────────────────────── */
.instit-section {
    position: relative;
    overflow: hidden;
    padding: 5rem 0;
    background-color: var(--blue-dark);
}

.instit-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('../img/brand/fachada-uagrm.jpg');
    background-size: cover;
    background-position: center 35%;
    opacity: 0.14;
    z-index: 0;
}

.instit-section .container {
    position: relative;
    z-index: 1;
}

.instit-eyebrow {
    display: inline-block;
    color: #f07a8a;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.instit-title {
    font-size: clamp(1.5rem, 3.5vw, 2.1rem);
    font-weight: 800;
    color: var(--white);
    line-height: 1.2;
    margin-bottom: 1rem;
}

.instit-title span {
    color: var(--red-inst);
}

.instit-desc {
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.94rem;
    line-height: 1.75;
    margin-bottom: 0;
    max-width: 480px;
}

.instit-feature {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    margin-bottom: 1.1rem;
}

.instit-feature:last-child {
    margin-bottom: 0;
}

.instit-feature-icon {
    width: 40px;
    height: 40px;
    background: rgba(200, 16, 46, 0.15);
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    color: #f07a8a;
    flex-shrink: 0;
    margin-top: 0.05rem;
}

.instit-feature-text {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.55;
}

.instit-feature-text strong {
    color: var(--white);
    font-weight: 700;
}

/* ── Sección "Cómo funciona" ────────────────────────────────── */
.how-section {
    padding: 5rem 0;
    background: var(--gray-light);
}

.how-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
}

.how-step-num {
    width: 48px;
    height: 48px;
    background: var(--red-inst);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 800;
    margin-bottom: 1.1rem;
    flex-shrink: 0;
    box-shadow: 0 4px 14px rgba(200, 16, 46, 0.3);
}

.how-step-icon {
    width: 60px;
    height: 60px;
    background: #E8EDF8;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--blue-dark);
    margin: 0 auto 0.9rem;
    transition: var(--transition);
}

.how-step:hover .how-step-icon {
    background: var(--blue-dark);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.how-step-title {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--blue-dark);
    margin-bottom: 0.4rem;
    line-height: 1.3;
}

.how-step-desc {
    font-size: 0.80rem;
    color: var(--gray-text);
    line-height: 1.55;
    margin: 0;
}

/* Línea conectora entre pasos */
.how-connector {
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, rgba(200, 16, 46, 0.5), rgba(200, 16, 46, 0.12));
    margin-top: -52px;
    display: none;
    pointer-events: none;
}

@media (min-width: 768px) {
    .how-connector { display: block; }
}

/* ── Variantes de page-hero por página ──────────────────────── */
.page-hero--cursos {
    background-image:
        radial-gradient(ellipse at 90% 20%, rgba(200, 16, 46, 0.07) 0%, transparent 50%),
        linear-gradient(140deg, #1A2A5E 0%, #2E4A9E 65%, #152248 100%);
}

.page-hero--cursos .page-hero-title::after,
.page-hero--certificaciones .page-hero-title::after,
.page-hero--curso .page-hero-title::after {
    content: '';
    display: block;
    width: 44px;
    height: 3px;
    background: var(--red-inst);
    margin-top: 0.6rem;
    border-radius: 2px;
}

.page-hero--certificaciones {
    background-image:
        radial-gradient(ellipse at 10% 80%, rgba(46, 74, 158, 0.3) 0%, transparent 55%),
        linear-gradient(140deg, #0f1935 0%, #1A2A5E 50%, #2E4A9E 100%);
}

.page-hero--contacto {
    background-image:
        radial-gradient(ellipse at 80% 10%, rgba(200, 16, 46, 0.25) 0%, transparent 50%),
        linear-gradient(140deg, #8B0000 0%, #C8102E 45%, #1A2A5E 100%);
}

.page-hero--contacto .page-hero-title::after {
    content: '';
    display: block;
    width: 44px;
    height: 3px;
    background: rgba(255, 255, 255, 0.35);
    margin-top: 0.6rem;
    border-radius: 2px;
}

.page-hero--curso {
    background-image:
        radial-gradient(ellipse at 85% 15%, rgba(200, 16, 46, 0.15) 0%, transparent 50%),
        linear-gradient(140deg, #1A2A5E 0%, #2E4A9E 55%, #C8102E 100%);
}

/* ── Animación fade-in-up ────────────────────────────────────── */
.fade-in-up {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-delay-1 { transition-delay: 0.08s; }
.fade-delay-2 { transition-delay: 0.16s; }
.fade-delay-3 { transition-delay: 0.24s; }
.fade-delay-4 { transition-delay: 0.32s; }
.fade-delay-5 { transition-delay: 0.40s; }

/* ── Curso placeholder mejorado ─────────────────────────────── */
.course-img-placeholder {
    height: 175px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue-mid) 100%);
    position: relative;
    overflow: hidden;
}

.course-img-placeholder::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 30% 50%, rgba(200, 16, 46, 0.12) 0%, transparent 65%);
}

.course-img-placeholder i {
    font-size: 2.5rem;
    color: rgba(255, 255, 255, 0.2);
    position: relative;
    z-index: 1;
}

/* ── Responsive Fase 4.5 ─────────────────────────────────────── */
@media (max-width: 991.98px) {
    .btn-admin {
        margin-top: 0.5rem;
        margin-left: 0;
        width: fit-content;
    }
    .brand-logo-uagrm {
        display: none;
    }
}

@media (max-width: 767.98px) {
    .stat-item {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.07);
        padding: 0.6rem 0.5rem;
    }
    .stat-item:last-child { border-bottom: none; }
    .instit-section { padding: 3.5rem 0; }
    .how-section { padding: 3.5rem 0; }
    .brand-logos {
        display: none;
    }
}

/* ============================================================
   HERO — Formas geométricas decorativas + imagen estudiante
   ============================================================ */

/* Segundo arco concéntrico, más pequeño y rojo */
.hero-section::after {
    content: '';
    position: absolute;
    width: 340px;
    height: 340px;
    border-radius: 50%;
    border: 2px solid rgba(200, 16, 46, 0.15);
    top: -110px;
    right: -80px;
    pointer-events: none;
    z-index: 0;
}

/* Contenedor de formas decorativas */
.hero-shapes {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.hero-shape {
    position: absolute;
}

/* Franja diagonal roja — esquina inferior derecha */
.hero-shape--diagonal {
    inset: 0;
    background: rgba(200, 16, 46, 0.065);
    clip-path: polygon(100% 28%, 100% 100%, 52% 100%);
}

/* Arco de acento azul — esquina inferior izquierda */
.hero-shape--arc {
    width: 380px;
    height: 380px;
    border-radius: 50%;
    border: 2px solid rgba(46, 74, 158, 0.2);
    bottom: -200px;
    left: -120px;
}

/* Grilla de puntos blancos — zona media izquierda */
.hero-shape--dots {
    width: 180px;
    height: 150px;
    bottom: 3rem;
    left: 1rem;
    background-image: radial-gradient(rgba(255, 255, 255, 0.1) 1.5px, transparent 1.5px);
    background-size: 18px 18px;
    opacity: 0.65;
}

/* Z-index del container sobre las formas */
.hero-section .container {
    position: relative;
    z-index: 1;
}

/* ── Wrapper de imagen del estudiante ───────────────────────── */
.hero-img-wrap {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    min-height: 520px;
    padding-top: 1rem;
    z-index: 1;
}

/* Rectángulo de acento rojo detrás de la imagen — más sutil */
.hero-img-wrap::before {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 68%;
    height: 68%;
    background: rgba(200, 16, 46, 0.05);
    border-radius: 16px 16px 0 16px;
    z-index: 0;
}

/* Borde outline — más sutil */
.hero-img-wrap::after {
    content: '';
    position: absolute;
    bottom: 0.4rem;
    right: 0.5rem;
    width: 54%;
    height: 54%;
    border: 1.5px solid rgba(200, 16, 46, 0.12);
    border-radius: 12px 12px 0 12px;
    z-index: 0;
}

.hero-img-student {
    position: relative;
    z-index: 2;
    max-height: 560px;
    max-width: 100%;
    width: auto;
    object-fit: contain;
    object-position: bottom;
    filter: drop-shadow(0 16px 48px rgba(0, 0, 0, 0.55));
}

/* ── Responsive — imagen en mobile ─────────────────────────── */
@media (max-width: 991.98px) {
    .hero-img-wrap {
        min-height: auto;
        margin-top: 1.5rem;
        padding-top: 0;
    }

    .hero-img-student {
        max-height: 340px;
    }

    .hero-shape--dots {
        display: none;
    }
}

@media (max-width: 575.98px) {
    .hero-img-wrap::before,
    .hero-img-wrap::after {
        display: none;
    }

    .hero-img-student {
        max-height: 250px;
    }

    .hero-section::before {
        width: 300px;
        height: 300px;
        border-width: 35px;
        top: -130px;
        right: -110px;
    }

    .hero-section::after {
        width: 200px;
        height: 200px;
        top: -70px;
        right: -50px;
    }
}

/* ============================================================
   HERO PÁGINAS INTERIORES — Rediseño v2
   ============================================================ */

/* Badge de página interior */
.page-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.9);
    padding: 0.28rem 0.9rem;
    border-radius: 20px;
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    margin-bottom: 0.85rem;
}

.page-hero-badge--light {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.13);
}

/* Padding + contexto de posición para los tres heroes */
.page-hero--cursos,
.page-hero--certificaciones,
.page-hero--contacto {
    padding: 4rem 0 3.5rem;
    position: relative;
    overflow: hidden;
}

/* ── Cursos: fondo y decoración ─────────────────────────────── */
.page-hero--cursos {
    background-image:
        radial-gradient(ellipse at 88% 18%, rgba(200, 16, 46, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 5% 85%,  rgba(46, 74, 158, 0.18) 0%, transparent 45%),
        linear-gradient(140deg, #1A2A5E 0%, #2E4A9E 65%, #152248 100%);
}

.page-hero--cursos::before {
    content: '';
    position: absolute;
    width: 380px;
    height: 380px;
    border-radius: 50%;
    border: 45px solid rgba(26, 42, 94, 0.45);
    top: -180px;
    right: -120px;
    pointer-events: none;
}

.page-hero--cursos::after {
    content: '';
    position: absolute;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    border: 2px solid rgba(200, 16, 46, 0.14);
    top: -80px;
    right: -30px;
    pointer-events: none;
}

/* ── Certificaciones: fondo y decoración ────────────────────── */
.page-hero--certificaciones {
    background-image:
        radial-gradient(ellipse at 10% 80%, rgba(46, 74, 158, 0.28) 0%, transparent 55%),
        radial-gradient(ellipse at 90% 5%,  rgba(255, 255, 255, 0.02) 0%, transparent 40%),
        linear-gradient(140deg, #0f1935 0%, #1A2A5E 50%, #2E4A9E 100%);
}

.page-hero--certificaciones::before {
    content: '';
    position: absolute;
    bottom: -70px;
    left: -70px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    border: 38px solid rgba(46, 74, 158, 0.28);
    pointer-events: none;
}

/* ── Contacto: fondo y decoración ───────────────────────────── */
.page-hero--contacto {
    background-image:
        radial-gradient(ellipse at 80% 10%, rgba(200, 16, 46, 0.28) 0%, transparent 50%),
        linear-gradient(140deg, #8B0000 0%, #C8102E 45%, #1A2A5E 100%);
}

.page-hero--contacto::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -80px;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    border: 42px solid rgba(139, 0, 0, 0.3);
    pointer-events: none;
}

/* ── PHV: contenedor base del visual decorativo ─────────────── */
.phv {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ══ PHV — Cursos: nodo central + satélites + anillos ════════ */
.phv--cursos {
    width: 280px;
    height: 280px;
}

.phv-ring {
    position: absolute;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, 0.07);
    pointer-events: none;
}

.phv-ring-1 {
    width: 180px;
    height: 180px;
}

.phv-ring-2 {
    width: 270px;
    height: 270px;
    border-color: rgba(200, 16, 46, 0.1);
}

.phv-center {
    position: relative;
    z-index: 2;
    width: 84px;
    height: 84px;
    border-radius: 22px;
    background: rgba(200, 16, 46, 0.18);
    border: 1.5px solid rgba(200, 16, 46, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #ff9aaa;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.phv-satellite {
    position: absolute;
    z-index: 2;
    width: 50px;
    height: 50px;
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.11);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.65);
}

.phv-sat-1 { top: 0;    left: 50%; transform: translateX(-50%); }
.phv-sat-2 { right: 0;  top: 50%;  transform: translateY(-50%); }
.phv-sat-3 { bottom: 0; left: 50%; transform: translateX(-50%); }
.phv-sat-4 { left: 0;   top: 50%;  transform: translateY(-50%); }

.phv-label-badge {
    position: absolute;
    bottom: -1.75rem;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(200, 16, 46, 0.14);
    border: 1px solid rgba(200, 16, 46, 0.28);
    color: rgba(255, 255, 255, 0.82);
    padding: 0.22rem 0.85rem;
    border-radius: 20px;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

/* ══ PHV — Certificaciones: tarjeta diploma ══════════════════ */
.phv--certificaciones {
    width: 270px;
}

.phv-cert-card {
    position: relative;
    z-index: 2;
    width: 100%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 16px;
    padding: 1.65rem 1.5rem 1.2rem;
    backdrop-filter: blur(6px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.phv-cert-top {
    text-align: center;
    margin-bottom: 1.1rem;
}

.phv-cert-icon {
    font-size: 2.2rem;
    color: #ffd166;
    display: block;
    margin-bottom: 0.6rem;
    filter: drop-shadow(0 2px 8px rgba(255, 209, 102, 0.35));
}

.phv-cert-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.18rem;
}

.phv-cert-sub {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.48);
    letter-spacing: 0.3px;
}

.phv-cert-body {
    margin-bottom: 0.85rem;
}

.phv-cert-line {
    height: 2px;
    background: rgba(255, 255, 255, 0.09);
    border-radius: 2px;
    margin-bottom: 0.45rem;
}

.phv-cert-line--short {
    width: 60%;
    background: rgba(200, 16, 46, 0.28);
}

.phv-cert-footer {
    text-align: center;
    padding-top: 0.8rem;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.phv-cert-seal {
    display: inline-flex;
    align-items: center;
    gap: 0.32rem;
    background: rgba(200, 16, 46, 0.11);
    border: 1px solid rgba(200, 16, 46, 0.22);
    color: rgba(255, 255, 255, 0.78);
    padding: 0.22rem 0.72rem;
    border-radius: 20px;
    font-size: 0.68rem;
    font-weight: 600;
}

.phv-cert-seal i {
    color: #ff9aaa;
    font-size: 0.72rem;
}

.phv-cert-watermark {
    position: absolute;
    top: -1rem;
    right: -1rem;
    font-size: 5.5rem;
    color: rgba(255, 255, 255, 0.03);
    pointer-events: none;
    z-index: 0;
    line-height: 1;
}

/* ══ PHV — Contacto: grilla de canales ═══════════════════════ */
.phv--contacto {
    width: 272px;
}

.phv-contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
    width: 100%;
}

.phv-contact-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 1rem 0.65rem;
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
}

.phv-contact-item i    { font-size: 1.55rem; }
.phv-contact-item span {
    font-size: 0.65rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.65);
    letter-spacing: 0.3px;
}

.phv-ci--wa    i { color: #25D366; }
.phv-ci--email i { color: rgba(255, 255, 255, 0.75); }
.phv-ci--fb    i { color: #74a3e8; }
.phv-ci--tt    i { color: rgba(255, 255, 255, 0.78); }

/* ── Responsive PHV ─────────────────────────────────────────── */
@media (max-width: 991.98px) {
    .page-hero--cursos,
    .page-hero--certificaciones,
    .page-hero--contacto {
        padding: 3rem 0 2.5rem;
    }
}

@media (max-width: 575.98px) {
    .page-hero--cursos,
    .page-hero--certificaciones,
    .page-hero--contacto {
        padding: 2.5rem 0 2rem;
    }
}

/* ================================================================
   BARRA DE ADMINISTRACIÓN FRONTEND (solo superadmin)
================================================================ */

.adminbar {
    background: #1A2A5E;
    border-bottom: 2px solid #C8102E;
    position: sticky;
    top: 0;
    z-index: 1100;
    width: 100%;
    font-family: 'Inter', sans-serif;
}

.adminbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0.3rem 1.5rem;
    min-height: 38px;
}

.adminbar-label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.72rem;
    font-weight: 600;
    color: #B0B0B0;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
    flex-shrink: 0;
}

.adminbar-label i {
    color: #C8102E;
    font-size: 0.78rem;
}

.adminbar-links {
    display: flex;
    align-items: center;
    gap: 0.2rem;
    flex-wrap: nowrap;
}

/* Base link — especificidad elevada para ganar a Bootstrap a {} */
.adminbar .adminbar-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.76rem;
    font-weight: 500;
    color: #F0F0F0;
    text-decoration: none;
    padding: 0.22rem 0.7rem;
    border-radius: 4px;
    line-height: 1.4;
    transition: background 0.15s ease, color 0.15s ease;
    white-space: nowrap;
}

.adminbar .adminbar-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #FFFFFF;
    text-decoration: none;
}

/* Botón principal — Editar contenido */
.adminbar .adminbar-link--primary {
    background: #C8102E;
    color: #FFFFFF;
    font-weight: 600;
    padding: 0.22rem 0.85rem;
}

.adminbar .adminbar-link--primary:hover {
    background: #8B0000;
    color: #FFFFFF;
    text-decoration: none;
}

/* Cerrar sesión — discreto */
.adminbar .adminbar-link--logout {
    color: #B0B0B0;
}

.adminbar .adminbar-link--logout:hover {
    background: rgba(200, 16, 46, 0.15);
    color: #F0F0F0;
    text-decoration: none;
}

@media (max-width: 767.98px) {
    .adminbar-inner {
        padding: 0.3rem 1rem;
        gap: 0.5rem;
        flex-wrap: wrap;
        min-height: unset;
    }

    .adminbar-label {
        font-size: 0.68rem;
    }

    .adminbar .adminbar-link {
        font-size: 0.72rem;
        padding: 0.2rem 0.5rem;
    }

    .adminbar .adminbar-link--primary {
        padding: 0.2rem 0.6rem;
    }
}

/* ================================================================
   CHIPS DE EDICIÓN CONTEXTUAL (solo superadmin)
================================================================ */

.frontend-edit-bar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 0.75rem;
}

.frontend-edit-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.7rem;
    font-weight: 600;
    color: #1A2A5E;
    background: rgba(26, 42, 94, 0.07);
    border: 1px solid rgba(26, 42, 94, 0.2);
    text-decoration: none;
    padding: 0.2rem 0.65rem;
    border-radius: 20px;
    letter-spacing: 0.02em;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
    white-space: nowrap;
}

.frontend-edit-chip i {
    font-size: 0.62rem;
}

.frontend-edit-chip:hover {
    background: #C8102E;
    color: #FFFFFF;
    border-color: #C8102E;
    text-decoration: none;
}

.frontend-edit-chip--footer {
    background: rgba(255, 255, 255, 0.12);
    color: #F0F0F0;
    border-color: rgba(255, 255, 255, 0.25);
}

.frontend-edit-chip--footer:hover {
    background: #C8102E;
    color: #FFFFFF;
    border-color: #C8102E;
}
