/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    line-height: 1.6;
    background: #f4f6f7;
}

img { max-width: 100%; display: block; }

.container {
    width: 90%;
    max-width: 1140px;
    margin: 0 auto;
}

/* ===== NAVBAR ===== */
.navbar {
    position: sticky;
    top: 0;
    background: #002308;
    padding: 0.5rem 0;
    z-index: 200;
    box-shadow: 0 2px 12px rgba(0,0,0,0.4);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 1rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.logo-img {
    height: 54px;
    width: auto;
    object-fit: contain;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.1rem;
    flex-wrap: wrap;
}

.nav-links a {
    color: #ccc;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.nav-links a:hover { color: #0aac8e; }

.btn-nav {
    background: #0aac8e !important;
    color: #fff !important;
    padding: 0.5rem 1.2rem;
    border-radius: 25px;
    font-weight: 600;
}

.btn-nav:hover { background: #088f76 !important; }

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.7rem;
    cursor: pointer;
    line-height: 1;
}

/* ===== HERO ===== */
.hero {
    position: relative;
    scroll-margin-top: 80px;
    background:
        linear-gradient(rgba(0,20,5,0.85), rgba(0,35,8,0.85)),
        url('../../img/eca-45.jpg') center center / cover no-repeat;
    color: #fff;
    padding: 1rem 0 5rem;
    text-align: center;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%230aac8e' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.1); }

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-logo {
    width: 250px;
    height: 250px;
    object-fit: contain;
    margin: 0 auto 1.5rem;
    filter: drop-shadow(0 4px 15px rgba(0,0,0,0.4));
}

.hero-badge {
    display: inline-block;
    background: rgba(10,172,142,0.2);
    border: 1px solid rgba(10,172,142,0.5);
    color: #0aac8e;
    padding: 0.35rem 1rem;
    border-radius: 25px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.hero-content h1 {
    font-size: clamp(1.8rem, 5vw, 3.2rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero-content p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: #b0d0b8;
    max-width: 600px;
    margin: 0 auto 1rem;
}

.hero-btns {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-acceso {
    position: absolute;
    bottom: 2.5rem;
    left: 0;
    right: 0;
    width: 100%;
    text-align: center;
    font-size: 1rem;
    font-weight: 700;
    color: #0aac8e;
    letter-spacing: 0.3px;
}

.hero-wave {
    position: absolute;
    bottom: -20px;
    left: 0;
    right: 0;
    line-height: 0;
}

.hero-wave svg { width: 100%; height: 60px; }

/* ===== BOTONES ===== */
.btn {
    display: inline-block;
    padding: 0.75rem 1.8rem;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s ease;
    font-family: inherit;
}

.btn-primary {
    background: #0aac8e;
    color: #fff;
    border-color: #0aac8e;
}

.btn-primary:hover { background: #088f76; border-color: #088f76; }

.btn-dashboard { background: #7f1d1d; border-color: #7f1d1d; color: #fff; text-align: center; width: 100%; }
.btn-dashboard:hover { background: #991b1b; border-color: #991b1b; }

.btn-ghost {
    background: transparent;
    color: #fff;
    border-color: rgba(255,255,255,0.4);
}

.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,0.08); }

.btn-full { width: 100%; text-align: center; }

/* ===== STATS ===== */
.stats {
    background: #f4f6f7;
    padding: 1rem 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    text-align: center;
}

.stat-item {
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem 1rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    border-top: 4px solid #0aac8e;
}

.stat-valor {
    display: block;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    color: #002308;
    line-height: 1;
}

.stat-label {
    display: block;
    font-size: 0.8rem;
    color: #6a6c6e;
    margin-top: 0.4rem;
}

/* ===== SECTION HEADER ===== */
.section-header {
    text-align: center;
    margin-bottom: 1rem;
}

.section-header h2 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    color: #002308;
    margin-bottom: 0.75rem;
    font-weight: 800;
}

.section-header p {
    color: #6a6c6e;
    max-width: 600px;
    margin: 0 auto;
    font-size: 1rem;
}

.section-tag {
    display: inline-block;
    color: #0aac8e;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

/* ===== CURSOS ===== */
.cursos {
    background: #f4f6f7;
    scroll-margin-top: 80px;
}

.precios-moneda {
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 1.25rem;
    margin-top: -0.5rem;
}

/* ===== FILTROS ===== */
.filtros-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    margin-bottom: 1.5rem;
}

.buscador-input {
    flex: 1 1 260px;
    padding: 0.6rem 1rem;
    border: 2px solid #d0d9dd;
    border-radius: 8px;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s;
    background: #fff;
}
.buscador-input:focus { border-color: #0aac8e; }

.filtro-grupo {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.filtro-label {
    font-size: 0.78rem;
    font-weight: 700;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Custom multi-select dropdown */
.custom-select {
    position: relative;
    min-width: 150px;
}

.cs-trigger {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.85rem;
    border: 2px solid #d0d9dd;
    border-radius: 8px;
    background: #fff;
    font-size: 0.88rem;
    color: #333;
    cursor: pointer;
    user-select: none;
    transition: border-color 0.2s;
    white-space: nowrap;
}
.cs-value {
    white-space: normal;
    word-break: break-word;
}
.custom-select.open .cs-trigger,
.cs-trigger:hover { border-color: #0aac8e; }

.cs-title {
    font-weight: 700;
    color: #555;
    margin-right: 0.1rem;
}

.cs-arrow {
    font-size: 0.7rem;
    color: #888;
    transition: transform 0.2s;
}
.custom-select.open .cs-arrow { transform: rotate(180deg); }

.cs-options {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    min-width: 100%;
    background: #fff;
    border: 2px solid #0aac8e;
    border-radius: 8px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
    z-index: 100;
    overflow: hidden;
}
.custom-select.open .cs-options { display: block; }

.cs-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.85rem;
    font-size: 0.88rem;
    cursor: pointer;
    transition: background 0.15s;
}
.cs-option:hover { background: #f0faf7; }
.cs-option input[type="checkbox"],
.cs-option input[type="radio"] { accent-color: #0aac8e; cursor: pointer; }

.precios-moneda-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    margin-bottom: 1.25rem;
    margin-top: -0.5rem;
}
.precios-moneda-bar .precios-moneda { margin: 0; white-space: nowrap; }

#selectMoneda { min-width: 0; max-width: 100%; }
#selectMoneda .cs-value { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 160px; }

.sin-resultados {
    text-align: center;
    color: #666;
    font-size: 1rem;
    padding: 2rem 0;
}

.curso-card.oculto { display: none; }

.nota-informal {
    margin-top: 1.5rem;
    font-size: 0.75rem;
    color: #999;
    text-align: center;
    width: 100%;
}

.cursos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
}

.curso-card {
    background: #fff;
    border-radius: 16px;
    padding: 1rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.07);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    transition: transform 0.2s, box-shadow 0.2s;
    border-top: 4px solid #0aac8e;
}

.curso-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

.curso-icono { font-size: 2.2rem; line-height: 1; }

.curso-img-wrap {
    width: 100%;
    height: 160px;
    border-radius: 10px;
    overflow: hidden;
    background: #e8f0ec;
}

.curso-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}

.curso-card:hover .curso-img { transform: scale(1.04); }

.curso-nivel {
    display: inline-block;
    background: #e8f8f5;
    color: #0aac8e;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    width: fit-content;
}

.curso-card h3 {
    font-size: 1.05rem;
    color: #002308;
    font-weight: 700;
    line-height: 1.3;
}

.curso-card > p {
    color: #6a6c6e;
    font-size: 0.9rem;
    flex-grow: 1;
}

.curso-temas {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.curso-temas li {
    font-size: 0.82rem;
    color: #555;
}

.curso-temas li::before { color: #0aac8e; margin-right: 4px; }

.curso-footer {
    border-top: 1px solid #eee;
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.curso-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: #6a6c6e;
}

.curso-precio {
    font-weight: 800;
    color: #002308;
    font-size: 1rem;
}

.btn-inscribir { width: 100%; text-align: center; }

/* ===== PROGRAMAS TÉCNICOS ===== */
.tecnicos {
    background: #fff;
    padding: 1rem 0;
    scroll-margin-top: 80px;
}

.tecnicos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 720px;
    margin: 0 auto;
}

.tecnico-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    transition: transform 0.2s, box-shadow 0.2s;
}
.tecnico-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.13);
}
.tecnico-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #002308;
}
.tecnico-card p {
    font-size: 0.9rem;
    color: #555;
    flex: 1;
}
.tecnico-card .curso-footer {
    margin-top: 0.5rem;
}
.tecnico-card .btn {
    width: 100%;
    text-align: center;
}

/* ===== VERIFICACIONES ===== */
.verificaciones {
    background: #f4f6f7;
    padding: 1rem 0;
    scroll-margin-top: 80px;
}

.verificaciones-cols {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.verif-col {
    border-radius: 16px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.07);
}

.verif-col--tecnica {
    background: #fff;
    border-top: 4px solid #0aac8e;
}

.verif-col--diplomado {
    background: #002308;
    border-top: 4px solid #0aac8e;
    color: #e0f0ea;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.verif-col--diplomado p {
    color: #b0d0b8;
}

.verif-col-titulo {
    font-size: 1.2rem;
    font-weight: 700;
    color: #002308;
    margin: 0;
}

.verif-col--diplomado .verif-col-titulo {
    color: #fff;
}

.verif-btn {
    margin-top: 0.5rem;
    display: inline-block;
}

.verif-badge {
    display: inline-block;
    background: #fff8e1;
    border: 1px solid #f0c040;
    color: #7a5800;
    border-radius: 8px;
    padding: 0.5rem 1rem;
    font-size: 0.88rem;
    font-weight: 600;
}

.verificaciones-box p {
    color: #444;
    font-size: 0.95rem;
    margin: 0;
}

.verif-email {
    display: inline-block;
    color: #0aac8e;
    font-weight: 700;
    font-size: 1rem;
    word-break: break-all;
    text-decoration: none;
}
.verif-email:hover { text-decoration: underline; }

.verif-lista {
    padding-left: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}
.verif-lista li {
    color: #555;
    font-size: 0.92rem;
}

.verif-info {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    background: #f0faf7;
    border-radius: 10px;
    padding: 0.85rem 1.1rem;
    font-size: 0.9rem;
    color: #333;
}

/* ===== NOSOTROS ===== */
.nosotros {
    padding: 1rem 0;
    background: #fff;
    scroll-margin-top: 80px;
}

.nosotros-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.nosotros-text h2 {
    font-size: clamp(1.4rem, 3vw, 2rem);
    color: #002308;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.nosotros-text p {
    color: #555;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.nosotros-lista {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin: 1.5rem 0;
}

.nosotros-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: #333;
}

.ni-icon {
    width: 22px;
    height: 22px;
    background: #0aac8e;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 800;
    flex-shrink: 0;
}

.nosotros-visual {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.visual-card {
    background: #f4f6f7;
    border-radius: 14px;
    padding: 1.5rem 1rem;
    text-align: center;
    border-left: 4px solid #0aac8e;
    transition: transform 0.2s;
}

.visual-card:hover { transform: scale(1.03); }

.visual-card span { font-size: 2rem; display: block; margin-bottom: 0.5rem; }

.visual-card p { font-size: 0.82rem; font-weight: 600; color: #002308; }

.vc1 { border-color: #0aac8e; }
.vc2 { border-color: #e6a817; }
.vc3 { border-color: #3498db; }
.vc4 { border-color: #e74c3c; }

/* ===== CONTACTO ===== */
.contacto {
    padding: 5rem 0;
    background: #f4f6f7;
}

.contacto-inner {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: start;
}

.contacto-info h2 {
    font-size: clamp(1.4rem, 3vw, 2rem);
    color: #002308;
    font-weight: 800;
    margin-bottom: 1rem;
}

.contacto-info p { color: #6a6c6e; margin-bottom: 1.5rem; font-size: 0.95rem; }

.info-items { display: flex; flex-direction: column; gap: 0.9rem; }

.info-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: #444;
}

.info-item span:first-child { font-size: 1.2rem; }

.form-contacto {
    background: #fff;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.07);
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.form-group { display: flex; flex-direction: column; gap: 0.4rem; }

.form-group label {
    font-weight: 600;
    font-size: 0.85rem;
    color: #002308;
}

.input-pass-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.input-pass-wrap input {
    flex: 1;
    padding-right: 2.8rem !important;
}
.btn-toggle-pass {
    position: absolute;
    right: 0.75rem;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: #888;
    display: flex;
    align-items: center;
    line-height: 1;
}
.btn-toggle-pass:hover { color: #005026; }
.eye-icon { width: 20px; height: 20px; }

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.7rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: inherit;
    color: #333;
    transition: border-color 0.2s;
    resize: vertical;
    background: #fafafa;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #0aac8e;
    background: #fff;
}

/* ===== FOOTER ===== */
.footer {
    background: #0a0808;
    color: #888;
    padding: 1rem 0;
    text-align: center;
}

.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
}

.footer p { font-size: 0.85rem; max-width: 500px; }

.footer-sede {
    margin: 0.75rem 0;
    border-top: 1px solid #333;
    border-bottom: 1px solid #333;
    padding: 0.75rem 0;
}
.footer-sede p {
    font-size: 0.82rem;
    color: #bbb;
    margin: 0.2rem 0;
    max-width: none;
}
.footer-sede strong { color: #fff; }

.footer-copy { font-size: 0.78rem; color: #555; }

/* ===== MODAL BODY ===== */
.modal-body {
    padding: 0;
}

.modal-divider {
    border: none;
    border-top: 2px solid #e5e7eb;
    margin: 1rem 0;
}

.modal-info-cols {
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem 2rem;
    margin-bottom: 1.2rem;
}

.modal-info-cols .info-block {
    margin-bottom: 0;
}

@media (max-width: 600px) {
    .modal-info-cols {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .modal-info-cols .info-block {
        margin-bottom: 1.2rem;
    }
}

.info-block {
    margin-bottom: 1.2rem;
}

.info-block h4 {
    font-size: 0.9rem;
    font-weight: 700;
    color: #002308;
    margin-bottom: 0.5rem;
}

.info-block p {
    font-size: 0.85rem;
    color: #555;
    line-height: 1.6;
}

.info-block ol,
.info-block ul {
    padding-left: 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.info-block li {
    font-size: 0.83rem;
    color: #555;
    line-height: 1.4;
}

.info-block ul li::marker { color: #0aac8e; }

/* ===== MODAL ===== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.65);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s, visibility 0.25s;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-img-wrap {
    width: 300px;
    height: 160px;
    border-radius: 10px;
    overflow: hidden;
    margin: 0 auto 1.5rem;
}

.modal-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.modal {
    background: #fff;
    border-radius: 20px;
    padding: 1rem;
    width: 100%;
    max-width: 960px;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    transform: translateY(20px) scale(0.97);
    transition: transform 0.25s;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.modal-overlay.active .modal {
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #f0f0f0;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    color: #555;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    line-height: 1;
}

.modal-close:hover { background: #e0e0e0; }

.modal-header { text-align: center; margin-bottom: 1.8rem; }

.modal-icono { font-size: 2.5rem; display: block; margin-bottom: 0.75rem; }

.modal-header h3 {
    font-size: 1.3rem;
    color: #002308;
    font-weight: 800;
}

.modal-meta {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.modal-meta span {
    background: #f0faf8;
    color: #0aac8e;
    border: 1px solid #c0e8e0;
    border-radius: 20px;
    padding: 0.2rem 0.7rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.modal-curso-nombre {
    color: #0aac8e;
    font-size: 0.9rem;
    font-weight: 600;
    margin-top: 0.3rem;
}

.modal-form { display: flex; flex-direction: column; gap: 1rem; }

.req { color: #e74c3c; }

.field-error {
    color: #e74c3c;
    font-size: 0.78rem;
    min-height: 1rem;
    display: block;
}

.modal-aviso {
    background: #f0faf8;
    border: 1px solid #c0e8e0;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 0.8rem;
    color: #4a7c74;
    line-height: 1.5;
}

.modal-success {
    text-align: center;
    padding: 1rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.success-icono { font-size: 3rem; display: block; }

.modal-success h4 {
    font-size: 1.3rem;
    color: #002308;
}

.modal-success p { color: #555; font-size: 0.9rem; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .nosotros-inner,
    .contacto-inner { grid-template-columns: 1fr; gap: 1rem; }

}

@media (max-width: 768px) {
    .menu-toggle { display: block; }

    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        gap: 0.6rem;
        padding-top: 0.75rem;
        border-top: 1px solid rgba(255,255,255,0.1);
        margin-top: 0.5rem;
        align-items: flex-end;
    }

    .nav-links.open { display: flex; align-items: flex-start;}

    /* Ocultar área de usuario del navbar en móvil */
    .nav-user-area { display: none; }

    /* Ocultar sidebar en móvil (la nav está en el panel) */
    .db-sidebar { display: none; }

    /* ── Panel móvil abierto ── */
    .mob-dash-panel.open {
        display: block;
        background: #001a06;
        border-top: 1px solid rgba(255,255,255,.1);
        width: 100%;
    }
    .mob-dash-inner {
        display: flex;
        flex-direction: column;
        padding: .75rem 0 1rem;
        gap: .15rem;
    }

    /* Tarjeta de usuario */
    .mob-user-card {
        display: flex;
        align-items: center;
        gap: .75rem;
        padding: .6rem .8rem;
        background: rgba(255,255,255,.06);
        border-radius: 8px;
        margin-bottom: .3rem;
    }
    .mob-user-card .db-avatar {
        width: 38px;
        height: 38px;
        min-width: 38px;
        font-size: 1rem;
    }
    .mob-user-card .db-user-info strong { font-size: .9rem; }
    .mob-user-card .db-user-info small  { font-size: .76rem; }

    /* Separador */
    .mob-nav-sep {
        height: 1px;
        background: rgba(255,255,255,.1);
        margin: .2rem 0 .35rem;
    }

    /* Botones de sección */
    .mob-nav-item {
        display: flex !important;
        align-items: center;
        gap: .55rem;
        padding: .55rem .8rem;
        border-radius: 6px;
        color: #b8d4c8 !important;
        text-decoration: none;
        font-size: .92rem;
        background: none !important;
        transition: background .2s, color .2s;
    }
    .mob-nav-item:hover  { background: rgba(255,255,255,.07) !important; color: #fff !important; }
    .mob-nav-item.active { background: rgba(10,172,142,.22) !important; color: #0aac8e !important; font-weight: 600; }

    .hero { padding: 1rem 0 6.5rem; }
    .hero-acceso { font-size: 0.82rem; }
    .hero-wave { bottom: -30px; }
    .hero-logo { width: 160px; height: 160px; margin-bottom: 1rem; }

    .hero-btns { flex-direction: column; align-items: center; }

    .cursos-grid { grid-template-columns: 1fr; }
    .verificaciones-cols { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .modal { padding: 1rem 1rem; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
}

/* ===== AUTH WALL ===== */
.auth-intro {
    text-align: center;
    color: #555;
    margin-bottom: 1.4rem;
    font-size: .97rem;
}

.auth-btns {
    display: flex;
    flex-direction: column;
    gap: .8rem;
}

.btn-outline {
    background: transparent;
    border: 2px solid #1a3a5c;
    color: #1a3a5c;
    padding: .65rem 1.2rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s, color .2s;
}
.btn-outline:hover { background: #1a3a5c; color: #fff; }

.auth-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a3a5c;
    margin-bottom: 1rem;
}

.auth-back {
    background: none;
    border: none;
    color: #1a3a5c;
    font-weight: 600;
    cursor: pointer;
    padding: 0 0 .8rem 0;
    font-size: .9rem;
    display: block;
}
.auth-back:hover { text-decoration: underline; }

.auth-switch {
    text-align: center;
    margin-top: .9rem;
    font-size: .88rem;
    color: #666;
}
.auth-switch a { color: #1a3a5c; font-weight: 600; }

.reg-tyc-wrap { gap: 0.2rem; }
.reg-tyc-label {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.88rem;
    color: #444;
    cursor: pointer;
    line-height: 1.4;
}
.reg-tyc-label input[type="checkbox"] {
    margin-top: 0.15rem;
    flex-shrink: 0;
    width: 15px;
    height: 15px;
    accent-color: #005026;
    cursor: pointer;
}
.reg-tyc-label a { color: #1a3a5c; font-weight: 600; text-decoration: underline; }

/* ===== USER BADGE (modal inscripción) ===== */
.user-badge {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #eef4ff;
    border: 1px solid #c7d9f5;
    border-radius: 8px;
    padding: .6rem 1rem;
    margin-bottom: 1.2rem;
    font-size: .92rem;
    gap: .5rem;
}

.btn-link-danger {
    background: none;
    border: none;
    color: #c0392b;
    cursor: pointer;
    font-size: .85rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}
.btn-link-danger:hover { text-decoration: underline; }

/* Inputs readonly en formulario de inscripción */
.modal-form input[readonly] {
    background: #f5f7fb;
    color: #555;
    cursor: default;
}

/* ===== NAVBAR: área de usuario ===== */
.nav-user-area {
    display: flex;
    align-items: center;
    gap: .7rem;
    margin-left: auto;
    white-space: nowrap;
}

.nav-user-name {
    color: #cde;
    font-size: .88rem;
}

.nav-btn-logout,
.nav-btn-login {
    background: transparent;
    border: 1px solid rgba(255,255,255,.35);
    color: #fff;
    padding: .3rem .8rem;
    border-radius: 6px;
    font-size: .84rem;
    text-decoration: none;
    transition: background .2s;
}
.nav-btn-logout:hover,
.nav-btn-login:hover { background: rgba(255,255,255,.15); }

/* Select dentro de formulario auth */
#tabForm select,
.auth-modal select {
    width: 100%;
    padding: .55rem .75rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: .95rem;
    background: #fff;
    color: #333;
}

/* ===== MODAL AUTH DEDICADO ===== */
.auth-modal {
    max-width: 440px;
    padding: 1rem 1rem 1rem;
}

.auth-modal-header {
    text-align: center;
    margin-bottom: 1.6rem;
}
.auth-modal-icon {
    font-size: 2.2rem;
    display: block;
    margin-bottom: .4rem;
}
.auth-modal-header h3 {
    font-size: 1.4rem;
    color: #1a3a5c;
    margin-bottom: .3rem;
}
.auth-modal-header p {
    color: #666;
    font-size: .9rem;
}

/* ── Inscripción estado ──────────────────────────────────────────────────────── */
.inscripcion-aviso {
    background: #fef9c3;
    border: 1px solid #fde047;
    border-radius: 8px;
    padding: 1.2rem 1.4rem;
    margin: 1rem 0;
    text-align: center;
    color: #713f12;
    font-size: .95rem;
    line-height: 1.5;
}

/* ── Recuperar contraseña ────────────────────────────────────────────────────── */
.recover-ok {
    background: #dcfce7;
    border: 1px solid #86efac;
    border-radius: 8px;
    padding: 1rem 1.2rem;
    color: #166534;
    font-size: .9rem;
    line-height: 1.5;
    text-align: center;
    margin-bottom: 1rem;
}

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

.nav-btn-dashboard {
    background: #0aac8e;
    border: 1px solid #0aac8e;
    color: #fff !important;
    padding: .3rem .9rem;
    border-radius: 6px;
    font-size: .84rem;
    text-decoration: none;
    font-weight: 600;
    transition: background .2s;
}
.nav-btn-dashboard:hover { background: #088f76; }

.dashboard-layout {
    display: flex;
    min-height: calc(100vh - 72px);
    background: #f4f6f7;
}

/* ── Sidebar ── */
.db-sidebar {
    width: 260px;
    min-width: 260px;
    background: #002308;
    color: #cde;
    display: flex;
    flex-direction: column;
    padding: 1.5rem 0 2rem;
    position: sticky;
    top: 72px;
    height: calc(100vh - 72px);
    overflow-y: auto;
}

.db-user-card {
    display: flex;
    align-items: center;
    gap: .85rem;
    padding: 0 1.4rem 1.4rem;
    border-bottom: 1px solid rgba(255,255,255,.1);
    margin-bottom: 1rem;
}

.db-avatar {
    width: 44px;
    height: 44px;
    min-width: 44px;
    background: #0aac8e;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
}

.db-user-info {
    overflow: hidden;
}
.db-user-info strong {
    display: block;
    font-size: .95rem;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.db-user-info small {
    font-size: .78rem;
    color: #8ab;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

.db-nav {
    display: flex;
    flex-direction: column;
    gap: .15rem;
    padding: 0 .8rem;
}

.db-nav-item {
    display: flex;
    align-items: center;
    gap: .7rem;
    padding: .7rem 1rem;
    border-radius: 8px;
    color: #9bc;
    text-decoration: none;
    font-size: .92rem;
    transition: background .2s, color .2s;
    position: relative;
}
.db-nav-item:hover {
    background: rgba(255,255,255,.07);
    color: #fff;
}
.db-nav-item.active {
    background: #0aac8e;
    color: #fff;
    font-weight: 600;
}

.db-nav-icon { font-size: 1.1rem; }

.db-badge {
    margin-left: auto;
    background: rgba(255,255,255,.2);
    color: #fff;
    font-size: .72rem;
    font-weight: 700;
    padding: .1rem .5rem;
    border-radius: 20px;
    min-width: 22px;
    text-align: center;
}
.db-badge--green { background: #0aac8e; }

/* ── Panel móvil del dashboard (oculto siempre, JS lo muestra) ── */
.mob-dash-panel { display: none; }

/* ── Content ── */
.db-content {
    flex: 1;
    padding: 2rem 2.2rem;
    min-width: 0;
}

.db-section { display: none; }
.db-section.active { display: block; }

.db-section-header {
    margin-bottom: 1.6rem;
}
.db-section-header h2 {
    font-size: 1.5rem;
    color: #002308;
    margin-bottom: .35rem;
}
.db-section-header p {
    color: #666;
    font-size: .95rem;
}

.db-card {
    background: #fff;
    border-radius: 12px;
    padding: 1.8rem 2rem;
    box-shadow: 0 2px 12px rgba(0,0,0,.07);
}

.db-info-note {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 8px;
    padding: .9rem 1.1rem;
    font-size: .9rem;
    color: #78350f;
    margin-bottom: 1.6rem;
    line-height: 1.5;
}

.db-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.form-group--full { grid-column: 1 / -1; }

.input-disabled {
    background: #f3f4f6 !important;
    color: #888 !important;
    cursor: not-allowed;
}

.field-hint {
    display: block;
    font-size: .8rem;
    color: #888;
    margin-top: .3rem;
}

.db-form-footer {
    margin-top: 1.6rem;
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.db-save-msg {
    font-size: .9rem;
}
.db-save-msg--ok { color: #16a34a; }
.db-save-msg--err { color: #dc2626; }

/* ── Empty state ── */
.db-empty {
    background: #fff;
    border-radius: 12px;
    padding: 3rem 2rem;
    text-align: center;
    box-shadow: 0 2px 12px rgba(0,0,0,.07);
}
.db-empty > span {
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
}
.db-empty > p {
    color: #555;
    font-size: 1rem;
    margin-bottom: 1rem;
}
.db-empty-sub {
    font-size: .88rem;
    color: #888;
    max-width: 480px;
    margin: 0 auto 1.2rem;
}

/* ── Diplomado cards ── */
.db-diplomados-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.db-diplomado-card {
    background: #fff;
    border-radius: 12px;
    padding: 1.2rem 1.4rem;
    box-shadow: 0 2px 10px rgba(0,0,0,.07);
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.db-dip-img-wrap {
    width: 90px;
    min-width: 90px;
    height: 64px;
    border-radius: 8px;
    overflow: hidden;
    background: #e5e7eb;
}
.db-dip-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.db-dip-info { flex: 1; min-width: 0; }
.db-dip-info h3 {
    font-size: .98rem;
    color: #002308;
    margin-bottom: .3rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.db-dip-meta {
    display: flex;
    gap: .8rem;
    flex-wrap: wrap;
    font-size: .82rem;
    color: #666;
}

.db-dip-pago {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: .5rem;
    min-width: 140px;
}

.db-pago-badge {
    display: inline-block;
    padding: .3rem .8rem;
    border-radius: 20px;
    font-size: .8rem;
    font-weight: 600;
    white-space: nowrap;
}
.db-pago-badge--ok     { background: #dcfce7; color: #166534; }
.db-pago-badge--free   { background: #dbeafe; color: #1e40af; }
.db-pago-badge--pending { background: #fef9c3; color: #854d0e; }

.btn-sm {
    padding: .35rem .9rem;
    font-size: .85rem;
}

.db-cert-note {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    padding: 1rem 1.2rem;
    margin-top: 1.2rem;
    font-size: .88rem;
    color: #15803d;
}
.db-cert-note a { color: #0aac8e; }

/* ── Lock notice ── */
.db-readonly-field {
    padding: .55rem .75rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: .95rem;
    color: #1e293b;
    font-weight: 500;
    min-height: 38px;
    display: flex;
    align-items: center;
}

/* ── Progress bar Moodle ── */
.db-progress-wrap {
    width: 100%;
    background: #e5e7eb;
    border-radius: 999px;
    height: 7px;
    overflow: hidden;
    margin: .5rem 0 .2rem;
}
.db-progress-bar {
    height: 100%;
    background: #0aac8e;
    border-radius: 999px;
    transition: width .7s ease;
    width: 0;
}
.db-progress-label {
    font-size: .78rem;
    color: #888;
    display: block;
    margin-bottom: .4rem;
}

.db-lock-notice {
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 8px;
    padding: .9rem 1.1rem;
    font-size: .9rem;
    color: #0c4a6e;
    margin-bottom: 1.6rem;
    line-height: 1.5;
}

/* ── Confirmation modal ── */
.confirm-modal { max-width: 540px; }

.confirm-warning {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    padding: 1rem 1.2rem;
    color: #991b1b;
    font-size: .9rem;
    line-height: 1.6;
    margin-bottom: 1.4rem;
}

.confirm-data {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: .4rem 1.2rem;
    margin-bottom: 1.4rem;
}

.confirm-field {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .7rem 0;
    border-bottom: 1px solid #e2e8f0;
    gap: 1rem;
}
.confirm-field:last-child { border-bottom: none; }

.confirm-label {
    color: #64748b;
    font-size: .88rem;
}
.confirm-value {
    font-weight: 600;
    color: #002308;
    font-size: .93rem;
    text-align: right;
    word-break: break-all;
}

.confirm-check-label {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    cursor: pointer;
    font-size: .9rem;
    color: #333;
    line-height: 1.55;
    margin-bottom: 1.6rem;
    padding: 1rem;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 8px;
}
.confirm-check-label input[type="checkbox"] {
    margin-top: .15rem;
    width: 18px;
    height: 18px;
    min-width: 18px;
    cursor: pointer;
    accent-color: #0aac8e;
}

.btn-copy-pass {
    background: #e8f8f5;
    border: 1px solid #0aac8e;
    color: #0aac8e;
    border-radius: 6px;
    padding: .15rem .6rem;
    font-size: .78rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: background .15s, color .15s;
    font-family: inherit;
}
.btn-copy-pass:hover  { background: #0aac8e; color: #fff; }
.btn-copy-pass.copied { background: #16a34a; border-color: #16a34a; color: #fff; }

.confirm-btns {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.confirm-btns .btn-ghost {
    background: transparent;
    color: #555;
    border: 1px solid #ccc;
}
.confirm-btns .btn-ghost:hover {
    background: #f3f4f6;
    border-color: #999;
}

/* ── Dashboard responsive ── */
@media (max-width: 900px) {
    .dashboard-layout { flex-direction: column; }

    .db-sidebar {
        width: 100%;
        min-width: 0;
        height: auto;
        position: static;
        padding: 1rem;
        flex-direction: column;
    }

    .db-user-card {
        padding: 0 0 1rem;
        margin-bottom: .5rem;
    }

    .db-nav {
        flex-direction: row;
        flex-wrap: wrap;
        padding: 0;
        gap: .4rem;
    }

    .db-nav-item {
        padding: .5rem .85rem;
        font-size: .84rem;
    }

    .db-nav-item .db-nav-icon { display: none; }

    .db-content { padding: 1.4rem 1rem; }

    .db-form-grid { grid-template-columns: 1fr; }

    .db-diplomado-card {
        flex-wrap: wrap;
    }
    .db-dip-pago {
        width: 100%;
        flex-direction: row;
        align-items: center;
        justify-content: flex-end;
        min-width: 0;
    }

}

/* Ocultar sidebar en celular (después del bloque 900px para ganar la cascada) */
@media (max-width: 768px) {
    .db-sidebar { display: none !important; }
}

/* ===== CARRERAS TÉCNICAS ===== */
.tecnicos-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    align-items: start;
}

.tecnica-col {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
    padding: 1.25rem 1.5rem;
}

.tecnica-col-title {
    font-size: .97rem;
    font-weight: 700;
    color: #1a3a5c;
    margin-bottom: 1rem;
    padding-bottom: .55rem;
    border-bottom: 2px solid #e8edf3;
    line-height: 1.3;
}

.tec-list {
    display: flex;
    flex-direction: column;
    gap: .4rem;
}

.tec-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    padding: .45rem .6rem;
    border-radius: 6px;
    background: #f8f9fb;
}

.tec-titulo {
    font-size: .84rem;
    color: #333;
    flex: 1;
    line-height: 1.35;
}

.tec-badge {
    font-size: .72rem;
    font-weight: 700;
    padding: .22em .75em;
    border-radius: 999px;
    white-space: nowrap;
    flex-shrink: 0;
}

.tec-badge--sin-registrar { background: #e9ecef; color: #6c757d; }
.tec-badge--pendiente     { background: #fff3cd; color: #856404; }
.tec-badge--en-desarrollo { background: #cfe2ff; color: #084298; }
.tec-badge--certificado   { background: #d1e7dd; color: #0a3622; }

@media (max-width: 900px) {
    .tecnicos-cols { grid-template-columns: 1fr; }
}

/* ===== CERTIFICADO ===== */
/* Hoja carta horizontal: 11 × 8.5 in */
.cert-paper {
    background: #fff;
    box-sizing: border-box;
    width: min(1056px, 100%);
    aspect-ratio: 11 / 8.5;
    margin: 0 auto;
    border: 6px double #005026;
    border-radius: 3px;
    box-shadow: 0 6px 28px rgba(0,0,0,.14);
    position: relative;
    overflow: hidden;
}
/* Marco decorativo interior — div real en lugar de pseudo-elementos
   para garantizar renderizado correcto en html2canvas */
.cert-frame {
    position: absolute;
    top: 14px;
    left: 14px;
    right: 14px;
    bottom: 14px;
    border-top: 3px solid #c9a227;
    border-bottom: 3px solid #c9a227;
    pointer-events: none;
    z-index: 2;
    box-sizing: border-box;
}

/* Rellena toda la hoja — padding reducido en vertical para landscape */
.cert-inner {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    padding: 26px 80px 22px;
}

/* Fondo del certificado */
.cert-bg {
    position: absolute;
    inset: 0;
    background: url('img/background.jpg') center / cover no-repeat;
    opacity: 0.4;
    pointer-events: none;
    z-index: 0;
}

/* Marca de agua */
.cert-wm {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 0;
}
.cert-wm img { width: 600px; opacity: .07; }

/* Columna principal */
.cert-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
}

/* ── Encabezado ── */
.cert-logo { margin-bottom: 5px; }
.cert-logo img { height: 192px; object-fit: contain; display: block; margin: 0 auto; }
.cert-school {
    font-size: 22px;
    font-weight: 800;
    color: #005026;
    letter-spacing: .15em;
    text-transform: uppercase;
}
.cert-licencia {
    font-size: 13px;
    color: #555;
    max-width: 700px;
    line-height: 1.55;
    margin-top: 2px;
}

/* ── Barra de título ── */
.cert-title-bar {
    font-size: 22px;
    font-weight: 800;
    color: #005026;
    letter-spacing: .3em;
    text-transform: uppercase;
    border-top: 2px solid #c9a227;
    border-bottom: 2px solid #c9a227;
    padding: 6px 56px;
    margin-top: 12px;
}

/* ── Sección identidad ── */
.cert-certifica {
    font-size: 11px;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: .16em;
    margin-top: 10px;
}
.cert-student {
    font-size: 37px;
    font-weight: 700;
    color: #1a1a1a;
    font-family: Georgia, 'Times New Roman', serif;
    line-height: 1.15;
    max-width: 780px;
    margin-top: 2px;
}
.cert-id-line {
    font-size: 14px;
    color: #555;
    max-width: 540px;
    margin-top: 3px;
}

/* ── Sección logro ── */
.cert-texto {
    font-size: 15px;
    font-weight: 700;
    color: #1a1a1a;
    max-width: 560px;
    margin-top: 10px;
}
.cert-diplomado-name {
    font-size: 26px;
    font-weight: 800;
    color: #005026;
    text-transform: uppercase;
    letter-spacing: .05em;
    max-width: 780px;
    margin-top: 4px;
}
.cert-duracion {
    font-size: 15px;
    color: #555;
    max-width: 480px;
    margin-top: 3px;
}

/* ── Fecha: empuja firmas al fondo ── */
.cert-lugar {
    font-size: 13px;
    color: #555;
    margin-top: auto;
    padding-top: 10px;
}

/* ── Firmas ── */
.cert-sigs {
    display: flex;
    justify-content: space-around;
    width: 100%;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 16px;
}
.cert-sig-item { text-align: center; }
.cert-sig-img { height: 64px; object-fit: contain; display: block; margin: 0 auto 3px; }
.cert-sig-line { border-top: 2px solid #333; width: 240px; margin: 0 auto 6px; }
.cert-sig-name { font-weight: 700; font-size: 15px; color: #1a1a1a; }
.cert-sig-role { font-size: 13px; color: #444; }

/* ── Serial ── */
.cert-serial-wrap {
    border-top: 1px dashed #ccc;
    padding-top: 8px;
    margin-top: 11px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.cert-serial-label {
    font-size: 10px;
    font-weight: 700;
    color: #999;
    letter-spacing: .18em;
    text-transform: uppercase;
    white-space: nowrap;
}
.cert-serial {
    font-size: 12px;
    color: #1a1a1a;
    text-decoration: none;
    letter-spacing: .08em;
}
.cert-serial:hover { text-decoration: underline; }

/* ===== reset_password.php ===== */
body.page-reset {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f4f8;
    padding: 1rem;
}
.reset-card {
    background: #fff;
    border-radius: 16px;
    padding: 2.5rem 2rem;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}
.reset-icon { font-size: 2.5rem; display: block; text-align: center; margin-bottom: 0.75rem; }
.reset-card h2 { text-align: center; color: #1a3a5c; font-size: 1.4rem; margin-bottom: 0.4rem; }
.reset-card .sub { text-align: center; color: #666; font-size: 0.9rem; margin-bottom: 1.8rem; }
.reset-ok { text-align: center; color: #16a34a; font-weight: 600; margin-bottom: 0.5rem; }
.reset-donde {
    background: #eff6ff; border: 1px solid #bfdbfe; border-radius: 8px;
    padding: 0.8rem 1rem; color: #1e40af; font-size: .85rem;
    margin-bottom: 1.5rem; text-align: center;
}
.reset-err {
    background: #fef9c3; border: 1px solid #fde047; border-radius: 8px;
    padding: 1rem 1.2rem; color: #713f12; font-size: .9rem;
    margin-bottom: 1.5rem; text-align: center;
}
.form-group { display: flex; flex-direction: column; gap: .35rem;}
.form-group label { font-size: .85rem; font-weight: 600; color: #333; }
.form-group input {
    border: 1.5px solid #d1d5db; border-radius: 8px;
    padding: .65rem .9rem; font-size: .9rem; font-family: inherit;
    outline: none; transition: border-color .2s;
}
.form-group input:focus { border-color: #0aac8e; }

/* ===== retorno.php ===== */
body.page-retorno { display: flex; align-items: center; justify-content: center; min-height: 100vh; background: #f4f6fa; }
.recibo { background: #fff; border-radius: 16px; box-shadow: 0 4px 24px rgba(0,0,0,.12); padding: 2.5rem 2rem; max-width: 480px; width: 100%; text-align: center; }
.recibo h2 { margin-bottom: .5rem; }
.badge { display: inline-block; padding: .35em .9em; border-radius: 999px; font-weight: 700; font-size: 1rem; margin-bottom: 1.2rem; }
.badge.ok  { background: #d4f5e0; color: #1a7a3c; }
.badge.err { background: #fde8e8; color: #c0392b; }
.badge.pen { background: #fff3cd; color: #856404; }
.detalle { text-align: left; margin: 1rem 0; font-size: .93rem; }
.detalle dt { font-weight: 600; color: #555; margin-top: .6rem; }
.detalle dd { margin-left: 0; color: #222; }
.btn-volver { display: inline-block; margin-top: 1.5rem; background: #1a3a5c; color: #fff; padding: .7rem 1.8rem; border-radius: 8px; text-decoration: none; font-weight: 600; }
.btn-volver:hover { background: #2563a8; }

/* ===== terminosycondiciones.php ===== */
.tyc-page {
    max-width: 860px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem 4rem;
}
.tyc-page h1 { font-size: 1.7rem; color: #003d1a; margin-bottom: 0.4rem; }
.tyc-page .tyc-updated { font-size: 0.82rem; color: #888; margin-bottom: 2rem; display: block; }
.tyc-page h2 {
    font-size: 1.1rem;
    color: #005026;
    margin: 2rem 0 0.5rem;
    border-left: 3px solid #005026;
    padding-left: 0.7rem;
}
.tyc-page p, .tyc-page li { font-size: 0.95rem; color: #333; line-height: 1.75; }
.tyc-page ul { padding-left: 1.4rem; margin: 0.4rem 0; }
.tyc-page ul li { margin-bottom: 0.3rem; }
.tyc-back {
    display: inline-block;
    margin-bottom: 1.5rem;
    font-size: 0.88rem;
    color: #005026;
    text-decoration: none;
    font-weight: 600;
}
.tyc-back:hover { text-decoration: underline; }
.tyc-contact-box {
    background: #f0faf5;
    border: 1px solid #b6dfc9;
    border-radius: 8px;
    padding: 1.2rem 1.5rem;
    margin-top: 2.5rem;
    font-size: 0.9rem;
    color: #1a3a2a;
}
.tyc-contact-box strong { display: block; margin-bottom: 0.3rem; color: #003d1a; }
.tyc-cookie-pref-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: #f0faf5;
    border: 1px solid #b6dfc9;
    border-radius: 8px;
    padding: 1rem 1.4rem;
    margin: 1.5rem 0 2rem;
}
.tyc-cookie-pref-text { display: flex; flex-direction: column; gap: 0.2rem; font-size: 0.9rem; color: #1a3a2a; }
.tyc-cookie-pref-text strong { font-size: 0.95rem; }
.tyc-cookie-pref-text span { color: #555; }
.tyc-cookie-pref-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; flex-shrink: 0; }
@media (max-width: 540px) {
    .tyc-cookie-pref-box { flex-direction: column; align-items: flex-start; }
    .tyc-cookie-pref-actions { width: 100%; }
    .tyc-cookie-pref-actions .ecp-ck-btn { flex: 1; text-align: center; }
}

/* ===== verificaciones.php ===== */
body.page-verificaciones {
    min-height: 100vh;
    background: #f0f4f8;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2.5rem 1rem;
    font-family: Arial, sans-serif;
}
.ver-header { text-align: center; margin-bottom: 2rem; }
.ver-header img { height: 90px; object-fit: contain; display: block; margin: 0 auto .75rem; }
.ver-header h1 {
    font-size: 1.05rem;
    color: #005026;
    letter-spacing: .1em;
    text-transform: uppercase;
    margin: 0 0 .2rem;
}
.ver-header p { font-size: .82rem; color: #888; margin: 0; }
.ver-form-card {
    background: #fff;
    border-radius: 14px;
    padding: 1.8rem;
    width: 100%;
    max-width: 560px;
    box-shadow: 0 4px 20px rgba(0,0,0,.1);
    margin-bottom: 1.5rem;
}
.ver-form-card h2 { font-size: 1rem; color: #1a3a5c; margin: 0 0 1rem; }
.ver-input-row { display: flex; gap: .5rem; }
.ver-input-row input {
    flex: 1;
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    padding: .6rem .9rem;
    font-size: .85rem;
    font-family: monospace;
    outline: none;
    transition: border-color .2s;
}
.ver-input-row input:focus { border-color: #005026; }
.ver-result { width: 100%; max-width: 560px; }
.ver-valido { background: #fff; border-radius: 14px; box-shadow: 0 4px 20px rgba(0,0,0,.1); overflow: hidden; }
.ver-valido-banner {
    background: #005026;
    color: #fff;
    padding: 1.4rem 1.8rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}
.ver-valido-banner .ver-icon { font-size: 2rem; line-height: 1; }
.ver-valido-banner h2 { margin: 0; font-size: 1.05rem; font-weight: 700; }
.ver-valido-banner p  { margin: .15rem 0 0; font-size: .8rem; opacity: .85; }
.ver-valido-body { padding: 1.6rem 1.8rem; }
.ver-field { display: flex; flex-direction: column; margin-bottom: 1rem; }
.ver-field:last-child { margin-bottom: 0; }
.ver-label {
    font-size: .7rem;
    font-weight: 700;
    color: #999;
    text-transform: uppercase;
    letter-spacing: .1em;
    margin-bottom: .2rem;
}
.ver-value { font-size: .97rem; color: #1a1a1a; font-weight: 600; }
.ver-value.mono { font-family: monospace; font-size: .82rem; color: #555; font-weight: 400; word-break: break-all; }
hr.ver-div { border: none; border-top: 1px solid #f0f0f0; margin: 1.1rem 0; }
.ver-sello {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: .76rem;
    color: #005026;
    font-weight: 600;
    margin-top: 1.2rem;
    padding-top: 1rem;
    border-top: 1px dashed #c9a227;
}
.ver-invalido { background: #fff; border-radius: 14px; box-shadow: 0 4px 20px rgba(0,0,0,.1); overflow: hidden; }
.ver-invalido-banner {
    background: #b91c1c;
    color: #fff;
    padding: 1.4rem 1.8rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}
.ver-invalido-banner .ver-icon { font-size: 2rem; line-height: 1; }
.ver-invalido-banner h2 { margin: 0; font-size: 1.05rem; font-weight: 700; }
.ver-invalido-banner p  { margin: .15rem 0 0; font-size: .8rem; opacity: .85; }
.ver-invalido-body { padding: 1.4rem 1.8rem; font-size: .88rem; color: #555; line-height: 1.65; }
.ver-invalido-body a { color: #005026; }
.ver-inicio { text-align: center; color: #aaa; font-size: .88rem; padding: .5rem 0; }
.ver-footer { margin-top: 2.5rem; font-size: .73rem; color: #bbb; text-align: center; line-height: 1.7; }

/* ===== verify_email.php ===== */
body.page-verify-email {
    font-family: Arial, sans-serif;
    background: #f4f6f7;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    color: #222;
}
.card { background: #fff; border-radius: 10px; box-shadow: 0 4px 20px rgba(0,0,0,0.1); padding: 40px 36px; max-width: 500px; width: 100%; text-align: center; }
.page-verify-email .logo { max-height: 90px; margin-bottom: 24px; }
.icon { font-size: 56px; margin-bottom: 16px; }
.page-verify-email h1 { font-size: 22px; margin-bottom: 12px; }
.page-verify-email p  { line-height: 1.7; color: #444; margin-bottom: 20px; }
.page-verify-email .btn { display: inline-block; padding: 13px 32px; background: #005026; color: #fff; text-decoration: none; border-radius: 6px; font-size: 15px; font-weight: bold; transition: background .2s; }
.page-verify-email .btn:hover { background: #007035; }
.btn-error { background: #c0392b; }
.btn-error:hover { background: #a93226; }
.page-verify-email footer { margin-top: 32px; font-size: 12px; color: #999; }

/* ===== Utilidad global ===== */
.d-none { display: none; }

/* ===== Verify view (index.php modal) ===== */
.am-verify-body    { text-align: center; padding: 10px 0 20px; }
.am-verify-p       { line-height: 1.7; margin-bottom: 14px; }
.am-verify-p--sm   { line-height: 1.7; margin-bottom: 14px; font-size: 14px; color: #555; }
.am-verify-p--note { font-size: 13px; color: #888; }

/* ===== Dashboard — estilos movidos desde inline ===== */
.db-btn-mt         { margin-top: .3rem; }
.btn--disabled     { opacity: .55; cursor: not-allowed; pointer-events: none; }
.confirm-pass-wrap { display: flex; align-items: center; gap: .6rem; }
.confirm-warning--mt { margin-top: 14px; }

/* ===== Reset password ===== */
.pass-field-wrap  { position: relative; display: flex; align-items: center; }
.pass-field-input { flex: 1; padding-right: 2.5rem; }
.pass-toggle-btn  { position: absolute; right: .5rem; background: none; border: none; cursor: pointer; padding: 0; line-height: 1; }
.field-match-err  { color: #c0392b; font-size: .82rem; }

/* ===== Retorno ===== */
.retorno-logo { height: 56px; margin-bottom: 1rem; }

/* ===== Inscripción modal — estados dinámicos (main.js) ===== */
.insc-cargando          { text-align: center; color: #888; padding: 1rem 0; }
.insc-aprobada          { text-align: center;}
.insc-aprobada__titulo  { margin-bottom: .8rem; color: #16a34a; font-weight: 600; }
.insc-prog-wrap         { background: #e5e7eb; border-radius: 999px; height: 7px; margin: .4rem auto .2rem; overflow: hidden; }
.insc-prog-bar          { height: 100%; background: #0aac8e; border-radius: 999px; width: 0%; transition: width .7s ease; }
.insc-prog-label        { display: block; font-size: .78rem; color: #888; margin-bottom: 1rem; }

/* ===== Auth modal — enlace de acento ===== */
.am-link-accent         { color: inherit; font-weight: 700; text-decoration: underline; }

/* ===== COOKIE CONSENT BANNER ===== */
#ecp-cookie-banner {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: #fff;
    border-top: 3px solid #0aac8e;
    box-shadow: 0 -4px 24px rgba(0,35,8,.13);
    z-index: 9998;
    transform: translateY(100%);
    transition: transform .35s cubic-bezier(.4,0,.2,1);
}
#ecp-cookie-banner.ecp-cb--visible  { transform: translateY(0); }
#ecp-cookie-banner.ecp-cb--hiding   { transform: translateY(100%); }

.ecp-cb__inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: .9rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    flex-wrap: wrap;
}
.ecp-cb__text {
    display: flex;
    align-items: flex-start;
    gap: .55rem;
    flex: 1;
    min-width: 260px;
}
.ecp-cb__icon { font-size: 1.25rem; flex-shrink: 0; margin-top: .05rem; }
.ecp-cb__text p { font-size: .87rem; color: #333; line-height: 1.55; margin: 0; }
.ecp-cb__actions {
    display: flex;
    gap: .55rem;
    flex-wrap: wrap;
    align-items: center;
}

/* Botones globales de consentimiento */
.ecp-ck-btn {
    border: none;
    border-radius: 6px;
    padding: .48rem 1rem;
    font-size: .84rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .18s, color .18s, border-color .18s;
    white-space: nowrap;
    font-family: inherit;
    line-height: 1.3;
}
.ecp-ck-btn--primary   { background: #0aac8e; color: #fff; }
.ecp-ck-btn--primary:hover   { background: #088f76; }
.ecp-ck-btn--secondary { background: #f0f0f0; color: #333; border: 1px solid #ccc; }
.ecp-ck-btn--secondary:hover { background: #e2e2e2; }
.ecp-ck-btn--outline   { background: transparent; color: #005026; border: 1.5px solid #005026; }
.ecp-ck-btn--outline:hover   { background: #f0faf5; }

/* Enlace dentro del banner y del modal */
.ecp-ck-link { color: #005026; font-weight: 600; text-decoration: underline; }
.ecp-ck-link:hover { color: #0aac8e; }

/* ===== COOKIE PREFERENCES MODAL ===== */
#ecp-cookie-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    align-items: center;
    justify-content: center;
}
#ecp-cookie-modal.ecp-cm--visible { display: flex; }

.ecp-cm__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.52);
}
.ecp-cm__box {
    position: relative;
    background: #fff;
    border-radius: 12px;
    max-width: 560px;
    width: 92%;
    max-height: 88vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0,0,0,.28);
    overflow: hidden;
}
.ecp-cm__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.1rem 1.4rem;
    background: #002308;
    color: #fff;
    flex-shrink: 0;
}
.ecp-cm__header h2 { font-size: .97rem; margin: 0; color: #fff; font-weight: 700; }
.ecp-cm__close {
    background: none;
    border: none;
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    padding: .2rem .4rem;
    opacity: .75;
    transition: opacity .15s;
    line-height: 1;
}
.ecp-cm__close:hover { opacity: 1; }

.ecp-cm__body {
    padding: 1.1rem 1.4rem;
    overflow-y: auto;
    flex: 1;
}
.ecp-cm__intro {
    font-size: .86rem;
    color: #555;
    margin: 0 0 1rem;
    line-height: 1.65;
}

/* Categorías */
.ecp-ck-cat {
    border: 1px solid #d9e8e0;
    border-radius: 8px;
    padding: .85rem 1rem;
    margin-bottom: .65rem;
    background: #fafcfb;
}
.ecp-ck-cat__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: .35rem;
}
.ecp-ck-cat__name  { font-size: .88rem; font-weight: 700; color: #003d1a; }
.ecp-ck-cat__badge {
    font-size: .7rem;
    background: #d4f0e5;
    color: #005026;
    border-radius: 20px;
    padding: .12rem .5rem;
    margin-left: .45rem;
    font-weight: 700;
}
.ecp-ck-cat__desc  { font-size: .81rem; color: #666; margin: 0; line-height: 1.55; }

/* Toggle switch */
.ecp-ck-toggle {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}
.ecp-ck-toggle input { opacity: 0; width: 0; height: 0; }
.ecp-ck-toggle__slider {
    position: absolute;
    inset: 0;
    background: #ccc;
    border-radius: 24px;
    cursor: pointer;
    transition: background .2s;
}
.ecp-ck-toggle__slider::before {
    content: '';
    position: absolute;
    width: 18px; height: 18px;
    left: 3px; bottom: 3px;
    background: #fff;
    border-radius: 50%;
    transition: transform .2s;
    box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.ecp-ck-toggle input:checked + .ecp-ck-toggle__slider { background: #0aac8e; }
.ecp-ck-toggle input:checked + .ecp-ck-toggle__slider::before { transform: translateX(20px); }
.ecp-ck-toggle--disabled { opacity: .55; cursor: not-allowed; }
.ecp-ck-toggle--disabled .ecp-ck-toggle__slider { cursor: not-allowed; }
.ecp-ck-toggle--disabled .ecp-ck-toggle__slider::before { cursor: not-allowed; }

.ecp-cm__footer {
    padding: .9rem 1.4rem;
    border-top: 1px solid #e0e0e0;
    display: flex;
    gap: .55rem;
    justify-content: flex-end;
    background: #f8f9f8;
    flex-shrink: 0;
}

@media (max-width: 600px) {
    .ecp-cb__inner   { flex-direction: column; align-items: flex-start; gap: .7rem; }
    .ecp-cb__actions { width: 100%; }
    .ecp-cb__actions .ecp-ck-btn { flex: 1; text-align: center; }
    .ecp-cm__footer  { flex-direction: column-reverse; }
    .ecp-cm__footer .ecp-ck-btn { width: 100%; text-align: center; }
}
