/**
 * GRENGLISH SCHOOL - FRONTEND CSS
 * MOBILE-FIRST DESIGN
 * Diseño completamente independiente, optimizado para móviles
 */

/* ========== VARIABLES ========== */
:root {
    --primary: #17A2B8;
    --secondary: #FF6B35;
    --dark: #0F172A;
    --gray: #6c757d;
    --light: #f8f9fa;
    --white: #ffffff;
    --teal-500: #17A2B8;
    --teal-400: #20C997;
    --orange-500: #FF6B35;
    --orange-600: #F77F00;
    --dark-900: #0F172A;
    --gray-100: #f1f3f5;
    --gray-200: #e9ecef;
    --gray-400: #9ca3af;
    --gray-600: #6c757d;
    --gray-700: #495057;
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: #333;
    background: var(--white);
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    color: inherit;
}

/* ========== HEADER MÓVIL ========== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
}

.header-top {
    display: none; /* Oculto en móvil por defecto */
}

.header-main {
    padding: 1rem;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

/* Botón hamburguesa */
.mobile-menu-toggle {
    width: 44px;
    height: 44px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    flex-shrink: 0;
}

/* Logo */
.logo {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.logo-img {
    height: 35px;
    width: auto;
}

.logo-text {
    font-size: 1rem;
    font-weight: 700;
    color: var(--dark);
}

/* Header CTA - Solo ícono */
.header-cta {
    flex-shrink: 0;
}

.header-cta .btn {
    width: 44px;
    height: 44px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.header-cta .btn span {
    display: none;
}

.header-cta .btn:nth-child(2) {
    display: none;
}

.header-cta .btn i {
    margin: 0;
    font-size: 1.2rem;
}

/* ========== SIDEBAR MÓVIL ========== */
.sidebar {
    position: fixed;
    left: -100%;
    top: 0;
    width: 85%;
    max-width: 320px;
    height: 100vh;
    background: linear-gradient(180deg, #0F172A 0%, #1E293B 100%);
    z-index: 10001;
    transition: left 0.3s ease;
    overflow-y: auto;
    padding: 2rem 0;
}

.sidebar.active {
    left: 0;
}

.sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    color: white;
    text-align: center;
}

.sidebar-logo {
    display: block;
    width: auto;
    height: 56px;
    max-width: 90%;
    margin: 0 auto 0.75rem;
    object-fit: contain;
}

.sidebar-header h3 {
    margin: 0;
    font-size: 1.2rem;
}

.sidebar-nav {
    padding: 1rem 0;
}

.sidebar-nav-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    color: rgba(255,255,255,0.8);
    transition: all 0.3s;
}

.sidebar-nav-item:hover,
.sidebar-nav-item.active {
    background: rgba(255,255,255,0.1);
    color: white;
}

.sidebar-nav-item i {
    font-size: 1.2rem;
    width: 24px;
}

/* Overlay */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.6);
    z-index: 10000;
    display: none;
}

.sidebar-overlay.active {
    display: block;
}

/* ========== CONTENIDO PRINCIPAL ========== */
main {
    padding-top: 70px;
}

.container {
    width: 100%;
    padding: 0 1rem;
}

/* ========== HERO SECTION ========== */
.hero {
    background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
    padding: 3rem 1.5rem;
    text-align: center;
    color: white;
}

.hero h1 {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.hero h1 span {
    background: linear-gradient(135deg, #FF6B35, #F77F00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: block;
    margin-top: 0.5rem;
}

.hero p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero--compact {
    min-height: auto;
    padding: 1rem 1.5rem;
    display: block;
}

.hero--compact h1 {
    font-size: 1.75rem;
    margin-bottom: 0.35rem;
    line-height: 1.15;
}

.hero--compact h1 span {
    display: inline;
    margin-top: 0;
}

.hero--compact p {
    margin-bottom: 0;
    font-size: 0.875rem;
    line-height: 1.4;
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
}

.hero--medium {
    min-height: auto;
    padding: 1.75rem 1.5rem;
    display: block;
}

.hero--medium h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.hero--medium p {
    margin-bottom: 0;
    font-size: 1rem;
    line-height: 1.5;
    max-width: 44rem;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions,
.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.hero-actions .btn,
.hero-buttons .btn {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s;
}

/* ========== STATS ========== */
.hero-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.stat-card {
    background: linear-gradient(135deg, rgba(255,255,255,0.15), rgba(255,255,255,0.05));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 2rem 1.5rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    transition: transform 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-card h3 {
    font-size: 3rem;
    font-weight: 900;
    background: linear-gradient(135deg, #FF6B35, #F77F00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

.stat-card p {
    font-size: 1rem;
    font-weight: 600;
    color: white;
    letter-spacing: 0.5px;
}

/* ========== SECCIONES ========== */
section {
    padding: 3rem 0;
}

.section-title {
    text-align: center;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 2rem;
}

/* Sección de Historia con Logo */
.historia-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
}

.logo-container {
    width: 100%;
    min-height: 300px;
    background: linear-gradient(135deg, #17A2B8, #138496);
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(23, 162, 184, 0.4);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.logo-container::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    filter: blur(40px);
}

.logo-container::after {
    content: '';
    position: absolute;
    bottom: -80px;
    left: -80px;
    width: 250px;
    height: 250px;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
    filter: blur(40px);
}

/* ========== CARDS ========== */
.cards-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

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

/* Iconos de las cards con colores */
.card-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 1.5rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.card-icon i {
    font-size: 1.8rem;
    color: white;
}

/* Colores específicos para cada tipo de card */
.card:nth-child(1) .card-icon {
    background: linear-gradient(135deg, #17A2B8, #138496);
}

.card:nth-child(2) .card-icon {
    background: linear-gradient(135deg, #FF6B35, #F77F00);
}

.card:nth-child(3) .card-icon {
    background: linear-gradient(135deg, #9b59b6, #8e44ad);
}

.card:nth-child(4) .card-icon {
    background: linear-gradient(135deg, #27ae60, #229954);
}

.card:nth-child(5) .card-icon {
    background: linear-gradient(135deg, #f39c12, #e67e22);
}

.card:nth-child(6) .card-icon {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}

.card-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.75rem;
}

.card-text {
    color: var(--gray);
    line-height: 1.7;
    font-size: 0.95rem;
}

/* ========== CATÁLOGO DE CURSOS ========== */
.cursos-filters {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    margin-bottom: 3rem;
}

.cursos-filters-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    align-items: end;
}

.cursos-filters label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--dark-900);
    font-size: 0.95rem;
}

.cursos-filters label i {
    color: var(--teal-500);
    margin-right: 0.35rem;
}

.cursos-filters input,
.cursos-filters select {
    width: 100%;
    padding: 0.9rem 1rem;
    border: 2px solid var(--gray-200);
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s, box-shadow 0.3s;
    background: var(--white);
}

.cursos-filters input:focus,
.cursos-filters select:focus {
    outline: none;
    border-color: var(--teal-500);
    box-shadow: 0 0 0 3px rgba(23, 162, 184, 0.15);
}

.cursos-count {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--gray-600);
    font-size: 1rem;
}

.cursos-count strong {
    color: var(--teal-500);
}

.curso-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(0,0,0,0.04);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.35s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.curso-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.14);
}

.curso-image {
    height: 200px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, var(--teal-500), var(--teal-400));
}

.curso-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.curso-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3.5rem;
    opacity: 0.9;
}

.curso-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.4rem 1rem;
    background: rgba(255,255,255,0.95);
    color: var(--teal-500);
    font-weight: 700;
    font-size: 0.8rem;
    border-radius: 50px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    text-transform: capitalize;
    backdrop-filter: blur(4px);
}

.curso-badge--destacado {
    top: auto;
    bottom: 1rem;
    left: 1rem;
    right: auto;
    background: linear-gradient(135deg, var(--orange-500), var(--orange-600));
    color: white;
}

.curso-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.curso-code {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--teal-500);
    background: rgba(23, 162, 184, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    margin-bottom: 0.5rem;
    letter-spacing: 0.5px;
}

.curso-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--dark-900);
    margin-bottom: 0.75rem;
    line-height: 1.35;
}

.curso-info-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.curso-info-item {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: 0.9rem;
    color: var(--gray-700);
    line-height: 1.4;
}

.curso-info-item i {
    color: var(--teal-500);
    margin-top: 0.15rem;
    width: 16px;
    flex-shrink: 0;
}

.curso-info-item i.fa-clock,
.curso-info-item .icon-orange {
    color: var(--orange-500);
}

.curso-description {
    color: var(--gray-600);
    font-size: 0.92rem;
    line-height: 1.65;
    margin-bottom: 1rem;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.curso-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.curso-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.9rem;
    background: var(--gray-100);
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray-700);
}

.curso-meta i {
    color: var(--teal-500);
}

.curso-footer {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-top: 1.25rem;
    border-top: 2px solid var(--gray-100);
    margin-top: auto;
}

.curso-price {
    font-size: 1.75rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--orange-500), var(--orange-600));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.curso-price__total {
    display: inline-block;
    white-space: nowrap;
}

.curso-price small {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gray-600);
    -webkit-text-fill-color: var(--gray-600);
    margin-top: 0.15rem;
}

.curso-actions {
    display: flex;
    gap: 0.75rem;
}

.curso-actions .btn {
    flex: 1;
    padding: 0.85rem 1rem;
    font-size: 0.95rem;
    border-radius: 12px;
}

.curso-actions .btn-icon {
    flex: 0 0 auto;
    width: 48px;
    padding: 0.85rem;
}

.btn-outline {
    background: transparent;
    color: var(--teal-500);
    border: 2px solid var(--teal-500);
}

.btn-outline:hover {
    background: var(--teal-500);
    color: white;
}

/* ========== BLOG PÚBLICO ========== */
.blog-section {
    background: var(--gray-100);
    padding: 4rem 0;
}

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

.blog-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.35s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.14);
}

.blog-card__image {
    height: 220px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, var(--teal-500), var(--teal-400));
}

.blog-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-card__image img {
    transform: scale(1.06);
}

.blog-card__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3.5rem;
    opacity: 0.9;
}

.blog-card__badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.4rem 1rem;
    background: linear-gradient(135deg, var(--orange-500), var(--orange-600));
    color: white;
    font-weight: 700;
    font-size: 0.8rem;
    border-radius: 50px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    text-transform: capitalize;
}

.blog-card__body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.blog-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.88rem;
    color: var(--gray-600);
}

.blog-card__meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.blog-card__meta i {
    color: var(--teal-500);
}

.blog-card__title {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--dark-900);
    margin-bottom: 0.75rem;
    line-height: 1.35;
}

.blog-card__excerpt {
    color: var(--gray-600);
    font-size: 0.95rem;
    line-height: 1.65;
    margin-bottom: 1.25rem;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding-top: 1.25rem;
    border-top: 2px solid var(--gray-100);
    margin-top: auto;
}

.blog-card__author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

.blog-card__avatar {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, var(--teal-500), var(--teal-400));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.blog-card__author-name {
    color: var(--gray-700);
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.blog-card__footer .btn {
    flex-shrink: 0;
    padding: 0.65rem 1.25rem;
    font-size: 0.9rem;
    border-radius: 12px;
}

.blog-empty {
    text-align: center;
    padding: 5rem 2rem;
    background: white;
    border-radius: 20px;
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.08);
    max-width: 700px;
    margin: 0 auto;
}

.blog-empty__icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 2rem;
    background: linear-gradient(135deg, var(--teal-500), var(--teal-400));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(23, 162, 184, 0.3);
    color: white;
    font-size: 3.5rem;
}

.blog-article {
    max-width: 820px;
    margin: 0 auto;
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(15, 23, 42, 0.1);
}

.blog-article__hero {
    height: 360px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--teal-500), var(--teal-400));
}

.blog-article__hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-article__body {
    padding: 2.5rem;
}

.blog-article__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
    color: var(--gray-600);
    font-size: 0.95rem;
}

.blog-article__meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.blog-article__title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    color: var(--dark-900);
    line-height: 1.25;
    margin-bottom: 1.5rem;
}

.blog-article__content {
    color: var(--gray-700);
    font-size: 1.05rem;
    line-height: 1.85;
}

.blog-article__content p {
    margin-bottom: 1.25rem;
}

.blog-article__back {
    margin-bottom: 2rem;
}

.blog-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.blog-pagination a,
.blog-pagination span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.65rem 1.1rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.blog-pagination a {
    background: white;
    color: var(--teal-500);
    border: 2px solid var(--gray-200);
}

.blog-pagination a:hover {
    background: var(--teal-500);
    color: white;
    border-color: var(--teal-500);
}

.blog-pagination span.active {
    background: var(--teal-500);
    color: white;
}

/* ========== MODAL INSCRIPCIÓN ========== */
.inscripcion-swal {
    border-radius: 20px !important;
    overflow: hidden;
    padding: 0 !important;
}

.inscripcion-swal .swal2-html-container {
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible;
}

.inscripcion-swal__actions {
    padding: 1.25rem 1.75rem 1.75rem !important;
    margin: 0 !important;
    gap: 0.75rem !important;
}

.inscripcion-swal__btn-confirm {
    border-radius: 12px !important;
    padding: 0.85rem 1.75rem !important;
    font-weight: 700 !important;
    font-size: 0.95rem !important;
}

.inscripcion-swal__btn-cancel {
    border-radius: 12px !important;
    padding: 0.85rem 1.5rem !important;
    font-weight: 600 !important;
}

.inscripcion-form__hero {
    background: linear-gradient(135deg, #17A2B8 0%, #20C997 100%);
    padding: 1.75rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    color: white;
    text-align: left;
}

.inscripcion-form__hero-icon {
    width: 56px;
    height: 56px;
    background: rgba(255,255,255,0.2);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.inscripcion-form__hero-text h3 {
    margin: 0.35rem 0 0.5rem;
    font-size: 1.2rem;
    font-weight: 800;
    color: white;
    line-height: 1.3;
}

.inscripcion-form__hero-text span {
    font-size: 0.85rem;
    opacity: 0.9;
}

.inscripcion-form__codigo {
    display: inline-block;
    background: rgba(255,255,255,0.25);
    padding: 0.2rem 0.65rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.inscripcion-form {
    text-align: left;
}

.inscripcion-form__intro {
    padding: 1.25rem 1.75rem 0;
    margin: 0;
    color: var(--gray-600);
    font-size: 0.95rem;
    line-height: 1.6;
}

.inscripcion-form__fields {
    padding: 1.25rem 1.75rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.inscripcion-form__field--full {
    grid-column: 1 / -1;
}

.inscripcion-form__field label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--dark-900);
    margin-bottom: 0.4rem;
}

.inscripcion-form__field label i {
    color: var(--teal-500);
    margin-right: 0.35rem;
}

.inscripcion-form__field label small {
    font-weight: 500;
    color: var(--gray-600);
}

.inscripcion-form__field input,
.inscripcion-form__field textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 2px solid var(--gray-200);
    border-radius: 10px;
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.3s, box-shadow 0.3s;
    box-sizing: border-box;
}

.inscripcion-form__field input:focus,
.inscripcion-form__field textarea:focus {
    outline: none;
    border-color: var(--teal-500);
    box-shadow: 0 0 0 3px rgba(23, 162, 184, 0.15);
}

.inscripcion-form__field textarea {
    resize: vertical;
    min-height: 80px;
}

.inscripcion-form__note {
    padding: 0 1.75rem 1.25rem;
    margin: 0;
    font-size: 0.8rem;
    color: var(--gray-600);
    text-align: center;
}

.inscripcion-form__note i {
    color: #27ae60;
    margin-right: 0.25rem;
}

@media (max-width: 520px) {
    .inscripcion-form__fields {
        grid-template-columns: 1fr;
    }
}

/* ========== BOTONES ========== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    text-decoration: none;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

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

.btn-secondary {
    background: var(--secondary);
    color: white;
}

/* ========== FORMULARIOS ========== */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--dark);
}

input,
select,
textarea {
    width: 100%;
    padding: 0.85rem;
    font-size: 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-family: inherit;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary);
}

/* ========== FOOTER ========== */
.footer {
    background: var(--dark);
    color: white;
    padding: 2rem 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
}

.footer-section h4 {
    color: var(--secondary);
    margin-bottom: 1rem;
}

.footer-section a {
    display: block;
    color: rgba(255,255,255,0.7);
    margin-bottom: 0.5rem;
}

.footer-section a:hover {
    color: white;
}

.footer-contact {
    color: var(--gray-400);
}

.footer-contact__item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 0 0 0.5rem;
    line-height: 1.5;
}

.footer-contact__item--address {
    align-items: flex-start;
}

.footer-contact__item i {
    flex-shrink: 0;
    width: 1rem;
    text-align: center;
    color: var(--secondary);
}

.footer-contact__item--address i {
    margin-top: 0.2rem;
}

.footer-contact__item a {
    display: inline;
    margin-bottom: 0;
    color: var(--gray-400);
    word-break: break-all;
}

.footer-contact__item a:hover {
    color: white;
}

/* ========== MISIÓN/VISIÓN ========== */
.mission-vision-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 0 1rem;
}

.mission-card,
.vision-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    text-align: center;
}

.mission-icon,
.vision-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, #17A2B8, #138496);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(23,162,184,0.3);
}

.mission-icon i,
.vision-icon i {
    font-size: 2.5rem;
    color: white;
}

.vision-icon {
    background: linear-gradient(135deg, #FF6B35, #F77F00);
    box-shadow: 0 8px 20px rgba(255,107,53,0.3);
}

.mission-card h3,
.vision-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 1rem;
}

.mission-card p,
.vision-card p {
    color: var(--gray);
    line-height: 1.8;
}

/* ========== VALORES ========== */
.values-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 0 1rem;
}

.value-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    text-align: center;
    transition: transform 0.3s;
}

.value-card:hover {
    transform: translateY(-5px);
}

.value-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.value-icon i {
    font-size: 2rem;
    color: white;
}

/* Colores específicos para cada valor */
.value-card:nth-child(1) .value-icon {
    background: linear-gradient(135deg, #17A2B8, #138496);
}

.value-card:nth-child(2) .value-icon {
    background: linear-gradient(135deg, #FF6B35, #F77F00);
}

.value-card:nth-child(3) .value-icon {
    background: linear-gradient(135deg, #0F172A, #1E293B);
}

.value-card:nth-child(4) .value-icon {
    background: linear-gradient(135deg, #27ae60, #229954);
}

.value-card h4 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.75rem;
}

.value-card p {
    color: var(--gray);
    line-height: 1.7;
    font-size: 0.95rem;
}

/* ========== UTILIDADES ========== */
.text-center {
    text-align: center;
}

.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }

/* ========== DESKTOP (min-width: 769px) ========== */
@media (min-width: 769px) {
    .mobile-menu-toggle {
        display: none;
    }
    
    .sidebar {
        position: fixed;
        left: 0;
        top: 140px;
        bottom: 0;
        width: 280px;
        padding: 2rem 0;
        box-shadow: 4px 0 20px rgba(23,162,184,0.3);
    }

    .sidebar-logo {
        height: 80px;
        max-width: 85%;
    }
    
    .sidebar-overlay {
        display: none;
    }
    
    .header-top {
        display: block;
        background: var(--dark);
        padding: 0.75rem 0;
    }
    
    .header-top-content {
        max-width: 1400px;
        margin: 0 auto;
        padding: 0 2rem;
        display: flex;
        justify-content: space-between;
        align-items: center;
        color: white;
        font-size: 0.9rem;
    }
    
    .header-contact {
        display: flex;
        gap: 2rem;
    }
    
    .header-social {
        display: flex;
        gap: 1rem;
    }
    
    .header-main {
        padding: 1.5rem 0;
    }
    
    .header-content {
        max-width: 1400px;
        margin: 0 auto;
        padding: 0 2rem;
        display: flex;
        justify-content: flex-end;
        align-items: center;
    }
    
    .header-cta {
        display: flex;
        gap: 1rem;
    }
    
    .header-cta .btn {
        width: auto;
        height: auto;
        padding: 0.75rem 1.5rem;
        border-radius: 8px;
    }
    
    .header-cta .btn:nth-child(2) {
        display: flex;
    }
    
    .header-cta .btn i {
        margin-right: 0.5rem;
    }
    
    main {
        margin-left: 280px;
        padding: 140px 2rem 2rem 2.5rem;
    }

    .footer {
        margin-left: 280px;
    }
    
    .container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 2rem;
    }
    
    .hero {
        padding: 5rem 2rem;
        min-height: 500px;
        display: flex;
        align-items: center;
    }

    .hero--compact {
        padding: 1.25rem 2rem;
        min-height: auto;
        display: block;
        align-items: unset;
    }

    .hero.hero--compact h1 {
        font-size: 2rem;
    }

    .hero.hero--compact p {
        font-size: 0.95rem;
    }

    .hero--medium {
        padding: 2.5rem 2rem;
        min-height: auto;
        display: block;
        align-items: unset;
    }

    .hero.hero--medium h1 {
        font-size: 2.75rem;
    }

    .hero.hero--medium p {
        font-size: 1.05rem;
    }
    
    .hero h1 {
        font-size: 3.5rem;
    }
    
    .hero p {
        font-size: 1.2rem;
    }
    
    .hero-actions {
        flex-direction: row;
        justify-content: center;
    }
    
    .hero-actions .btn {
        width: auto;
    }
    
    .hero-stats {
        grid-template-columns: repeat(4, 1fr);
        gap: 2rem;
    }
    
    .mission-vision-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .values-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .cards-grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
        gap: 2rem;
    }

    .cursos-filters-grid {
        grid-template-columns: 1fr 1fr 1fr auto;
        gap: 1.5rem;
    }

    .curso-image {
        height: 220px;
    }

    .curso-footer {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .curso-actions {
        flex-shrink: 0;
    }

    .curso-actions .btn {
        flex: none;
    }
    
    .footer-content {
        grid-template-columns: repeat(4, 1fr);
        text-align: left;
    }

    .footer-contact__item {
        justify-content: flex-start;
    }
    
    section {
        padding: 5rem 0;
    }
    
    .historia-grid {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }
    
    .logo-container {
        min-height: 400px;
        padding: 3rem;
        border-radius: 24px;
    }
}

/* Texto en párrafos (descripciones de cursos, etc.) */
.texto-parrafos,
.curso-descripcion-parrafos {
    margin-top: 0.5rem;
}

.texto-parrafos p,
.curso-descripcion-parrafos p {
    color: #5a6c7d;
    font-size: 0.98rem;
    line-height: 1.85;
    margin: 0 0 1rem 0;
    text-align: justify;
}

.texto-parrafos p:last-child,
.curso-descripcion-parrafos p:last-child {
    margin-bottom: 0;
}

.curso-descripcion-modal {
    margin-bottom: 1.5rem;
    padding: 1.25rem 1.35rem;
    background: linear-gradient(135deg, rgba(23,162,184,0.04), rgba(255,107,53,0.04));
    border-left: 4px solid #17A2B8;
    border-radius: 12px;
}

.curso-descripcion-modal__titulo {
    display: block;
    margin-bottom: 0.85rem;
    font-size: 1rem;
    color: #2C3E50;
}

/* ========== BENEFICIOS ========== */
.beneficios-hub {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    width: 100%;
}

.beneficios-opcion {
    width: 100%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem 1.25rem;
    background: white;
    border-radius: 16px;
    border: 2px solid var(--gray-100);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
    text-decoration: none;
    color: inherit;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.beneficios-opcion:hover {
    transform: translateY(-4px);
    border-color: rgba(23, 162, 184, 0.35);
    box-shadow: 0 14px 32px rgba(23, 162, 184, 0.12);
}

.beneficios-opcion__icon {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    background: linear-gradient(135deg, rgba(23, 162, 184, 0.12), rgba(255, 107, 53, 0.12));
    color: var(--teal-500);
    font-size: 1.75rem;
}

.beneficios-opcion h2 {
    font-size: 1.35rem;
    margin-bottom: 0.75rem;
    color: #1E293B;
}

.beneficios-opcion p {
    color: var(--gray-600);
    line-height: 1.55;
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
}

.beneficios-opcion__cta {
    margin-top: auto;
    font-weight: 700;
    color: var(--teal-500);
}

@media (min-width: 768px) {
    .beneficios-hub {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1100px) {
    .beneficios-hub {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.beneficios-items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.beneficios-item-card {
    background: white;
    border-radius: 16px;
    border: 1px solid var(--gray-100);
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.05);
}

.beneficios-item-card__image {
    height: 180px;
    background: var(--gray-100);
}

.beneficios-item-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.beneficios-item-card__body {
    padding: 1.25rem;
}

    .beneficios-item-card__body h3 {
    margin-bottom: 0.75rem;
    color: #1E293B;
}

.beneficios-item-card__actions {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.beneficios-item-card--charla .beneficios-item-card__body {
    display: flex;
    flex-direction: column;
}

.charla-schedule {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin: 0.75rem 0 0.25rem;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, rgba(23, 162, 184, 0.08), rgba(32, 201, 151, 0.06));
    border-radius: 10px;
    border-left: 3px solid var(--teal-500);
}

.charla-schedule__item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--gray-700);
}

.charla-schedule__item i {
    color: var(--teal-500);
    width: 1rem;
    text-align: center;
}

.charla-pending {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: var(--gray-500);
    padding: 0.5rem 0.75rem;
    background: var(--gray-100);
    border-radius: 8px;
}

.btn-charla-acceder {
    font-weight: 600;
}

/* Modales charlas (SweetAlert2) */
.charla-swal-popup {
    border-radius: 20px !important;
    padding: 1.5rem !important;
}

.charla-swal-btn {
    border-radius: 10px !important;
    font-weight: 600 !important;
    padding: 0.65rem 1.5rem !important;
}

.charla-auth__intro {
    margin: 0 0 0.5rem;
    color: #64748B;
    font-size: 0.95rem;
}

.charla-auth__titulo {
    margin: 0 0 1rem;
    font-weight: 700;
    color: #1E293B;
    font-size: 1rem;
}

.charla-auth__form {
    text-align: left;
}

.charla-auth__form label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #475569;
    margin: 0.75rem 0 0.35rem;
}

.charla-auth__input {
    width: 100% !important;
    margin: 0 !important;
    border-radius: 10px !important;
    border: 1px solid #E2E8F0 !important;
    font-size: 0.95rem !important;
}

.charla-denied {
    text-align: center;
    padding: 0.5rem 0;
}

.charla-denied__icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.12), rgba(247, 127, 0, 0.08));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: #FF6B35;
}

.charla-denied h3 {
    margin: 0 0 0.75rem;
    color: #1E293B;
    font-size: 1.35rem;
}

.charla-denied p {
    margin: 0 0 0.75rem;
    color: #64748B;
    font-size: 0.95rem;
    line-height: 1.55;
}

.charla-denied__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--teal-500), #20C997);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 6px 20px rgba(23, 162, 184, 0.35);
}

.charla-denied__cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(23, 162, 184, 0.45);
    color: white;
}

/* ========== EVALUACIÓN TÉCNICA ========== */
.eval-tecnica-landing {
    display: flex;
    justify-content: center;
    padding: 1rem 0 2rem;
}

.eval-tecnica-landing__card {
    max-width: 640px;
    width: 100%;
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.08);
    border: 1px solid var(--gray-100);
}

.eval-tecnica-landing__icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.25rem;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(111, 66, 193, 0.12), rgba(23, 162, 184, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #6f42c1;
}

.eval-tecnica-landing__meta {
    color: var(--gray-500);
    margin-bottom: 1.25rem;
}

.eval-tecnica-landing__instrucciones {
    text-align: left;
    background: var(--gray-100);
    padding: 1rem 1.25rem;
    border-radius: 12px;
    margin-bottom: 1.25rem;
    color: var(--gray-700);
    line-height: 1.6;
}

.eval-tecnica-landing__lista {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
    text-align: left;
}

.eval-tecnica-landing__lista li {
    padding: 0.4rem 0;
    color: var(--gray-700);
}

.eval-tecnica-landing__lista i {
    color: var(--teal-500);
    margin-right: 0.5rem;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.eval-tecnica-container {
    max-width: 860px;
}

.eval-tecnica-app {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.06);
    border: 1px solid var(--gray-100);
}

.eval-tecnica-progress {
    height: 8px;
    background: var(--gray-100);
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.eval-tecnica-progress__bar {
    height: 100%;
    background: linear-gradient(90deg, #6f42c1, var(--teal-500));
    border-radius: 999px;
    transition: width 0.3s ease;
    width: 0;
}

.eval-tecnica-progress__text {
    text-align: center;
    font-size: 0.85rem;
    color: var(--gray-500);
    margin-bottom: 1.5rem;
}

.eval-tecnica-step {
    display: none;
}

.eval-tecnica-step.is-active {
    display: block;
}

.eval-tecnica-card h2 {
    margin-bottom: 1rem;
    color: #1E293B;
    font-size: 1.25rem;
}

.eval-tecnica-instrucciones {
    color: var(--gray-600);
    margin-bottom: 1.25rem;
    line-height: 1.6;
}

.eval-tecnica-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.eval-tecnica-escala-info {
    margin-top: 1rem;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 8px;
    font-size: 0.8rem;
    color: var(--gray-600);
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
}

.eval-tecnica-pregunta {
    padding: 1rem 0;
    border-bottom: 1px solid var(--gray-100);
}

.eval-tecnica-pregunta--error {
    background: rgba(231, 76, 60, 0.05);
    border-radius: 8px;
    padding: 1rem;
    margin: 0 -0.5rem;
}

.eval-tecnica-pregunta__texto {
    margin-bottom: 0.75rem;
    color: #334155;
    line-height: 1.5;
}

.eval-tecnica-pregunta__num {
    font-weight: 700;
    color: #6f42c1;
    margin-right: 0.35rem;
}

.eval-tecnica-opciones {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.eval-tecnica-opcion {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.65rem;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.78rem;
    transition: all 0.15s ease;
    flex: 1 1 auto;
    min-width: 0;
}

.eval-tecnica-opcion:has(input:checked) {
    border-color: var(--teal-500);
    background: rgba(23, 162, 184, 0.08);
}

.eval-tecnica-opcion input {
    display: none;
}

.eval-tecnica-opcion__valor {
    font-weight: 700;
    color: #6f42c1;
    min-width: 1rem;
}

.eval-tecnica-opcion__label {
    color: var(--gray-600);
}

.eval-tecnica-nota {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(23, 162, 184, 0.08);
    border-radius: 10px;
    font-size: 0.9rem;
    color: var(--gray-700);
    border-left: 3px solid var(--teal-500);
}

.eval-tecnica-nav {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--gray-100);
    flex-wrap: wrap;
}

.eval-bar-row {
    display: grid;
    grid-template-columns: minmax(140px, 1fr) 2fr auto;
    gap: 0.75rem;
    align-items: center;
    margin-bottom: 0.65rem;
}

.eval-bar-label {
    font-size: 0.85rem;
    color: #475569;
}

.eval-bar-track {
    height: 10px;
    background: #e2e8f0;
    border-radius: 999px;
    overflow: hidden;
}

.eval-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #6f42c1, #17A2B8);
    border-radius: 999px;
}

.eval-bar-fill--teal {
    background: linear-gradient(90deg, var(--teal-500), #20C997);
}

.eval-bar-value {
    font-weight: 700;
    color: #1E293B;
    min-width: 2rem;
    text-align: right;
}

@media (max-width: 768px) {
    .eval-tecnica-form-grid {
        grid-template-columns: 1fr;
    }
    .eval-tecnica-opcion__label {
        display: none;
    }
    .eval-tecnica-opcion {
        flex: 1 1 calc(20% - 0.4rem);
        justify-content: center;
    }
    .eval-bar-row {
        grid-template-columns: 1fr;
        gap: 0.25rem;
    }
}

@media print {
    .admin-header, .sidebar, .header, .footer, .btn { display: none !important; }
    main { margin-left: 0 !important; padding: 0 !important; }
}

/* ========== CHATBOT ========== */
.chatbot-widget {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 9999;
    font-family: 'Inter', sans-serif;
}

.chatbot-toggle {
    position: relative;
    z-index: 2;
    width: 58px;
    height: 58px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--teal-500), #20C997);
    color: white;
    font-size: 1.4rem;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(23, 162, 184, 0.45);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.chatbot-toggle:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 28px rgba(23, 162, 184, 0.55);
}

.chatbot-toggle--open {
    background: linear-gradient(135deg, #FF6B35, #F77F00);
}

.chatbot-panel {
    position: absolute;
    right: 0;
    bottom: 72px;
    width: min(360px, calc(100vw - 2rem));
    height: 480px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 16px 48px rgba(15, 23, 42, 0.2);
    display: none;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(23, 162, 184, 0.15);
    pointer-events: none;
    visibility: hidden;
    opacity: 0;
    z-index: 1;
}

.chatbot-panel.is-open {
    display: flex;
    pointer-events: auto;
    visibility: visible;
    opacity: 1;
}

.chatbot-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.1rem;
    background: linear-gradient(135deg, #0F172A, #1E293B);
    color: white;
}

.chatbot-header small {
    display: block;
    color: #86efac;
    font-size: 0.75rem;
    margin-top: 0.15rem;
}

.chatbot-close {
    background: rgba(255,255,255,0.12);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    cursor: pointer;
    flex-shrink: 0;
    pointer-events: auto;
    z-index: 2;
}

.chatbot-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    background: #f8fafc;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.chatbot-msg {
    display: flex;
    flex-direction: column;
    max-width: 88%;
}

.chatbot-msg--user {
    align-self: flex-end;
    align-items: flex-end;
}

.chatbot-msg--bot {
    align-self: flex-start;
    align-items: flex-start;
}

.chatbot-msg__bubble {
    padding: 0.75rem 0.9rem;
    border-radius: 14px;
    font-size: 0.92rem;
    line-height: 1.55;
    word-break: break-word;
}

.chatbot-msg--user .chatbot-msg__bubble {
    background: linear-gradient(135deg, var(--teal-500), #20C997);
    color: white;
    border-bottom-right-radius: 4px;
}

.chatbot-msg--bot .chatbot-msg__bubble {
    background: white;
    color: #334155;
    border: 1px solid #e2e8f0;
    border-bottom-left-radius: 4px;
}

.chatbot-msg__time {
    font-size: 0.7rem;
    color: #94a3b8;
    margin-top: 0.2rem;
}

.chatbot-form {
    display: flex;
    gap: 0.5rem;
    padding: 0.85rem;
    border-top: 1px solid #e2e8f0;
    background: white;
}

.chatbot-input {
    flex: 1;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    padding: 0.65rem 0.85rem;
    font-size: 0.9rem;
    outline: none;
}

.chatbot-input:focus {
    border-color: var(--teal-500);
    box-shadow: 0 0 0 3px rgba(23, 162, 184, 0.15);
}

.chatbot-send {
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 10px;
    background: var(--teal-500);
    color: white;
    cursor: pointer;
}

.chatbot-send:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.chatbot-typing .chatbot-msg__bubble {
    display: flex;
    gap: 4px;
    padding: 0.85rem 1rem;
}

.chatbot-typing span {
    width: 7px;
    height: 7px;
    background: #94a3b8;
    border-radius: 50%;
    animation: chatbot-bounce 1.2s infinite;
}

.chatbot-typing span:nth-child(2) { animation-delay: 0.15s; }
.chatbot-typing span:nth-child(3) { animation-delay: 0.3s; }

@keyframes chatbot-bounce {
    0%, 80%, 100% { transform: translateY(0); opacity: 0.5; }
    40% { transform: translateY(-5px); opacity: 1; }
}

@media (max-width: 480px) {
    .chatbot-widget {
        right: 0.75rem;
        bottom: 0.75rem;
    }
    .chatbot-panel {
        height: min(70vh, 480px);
    }
}

/* ========== TABLET (min-width: 1024px) ========== */
@media (min-width: 1024px) {
    .container {
        max-width: 1400px;
        padding: 0 3rem;
    }
    
    .hero h1 {
        font-size: 4rem;
    }
}

/* ========== EQUIPO — TARJETAS DIRECTIVO (texto largo) ========== */
.equipo-directivo-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.equipo-directivo-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2.5rem 2rem;
    height: 100%;
}

.equipo-directivo-card__media {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 1.5rem;
}

.equipo-directivo-card__avatar {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(23, 162, 184, 0.3);
    flex-shrink: 0;
}

.equipo-directivo-card__avatar img,
.equipo-directivo-card__avatar > div {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.equipo-directivo-card__body {
    width: 100%;
    min-width: 0;
}

.equipo-directivo-card__body .card-title {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.equipo-directivo-card__body .card-text {
    text-align: justify;
    font-size: 0.98rem;
    line-height: 1.8;
    color: var(--gray-600, #6c757d);
    margin-bottom: 0;
}

.equipo-directivo-card__badge {
    padding: 0.65rem 1.5rem;
    background: linear-gradient(135deg, #FF6B35, #F77F00);
    color: white;
    border-radius: 50px;
    display: inline-block;
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
}

.equipo-directivo-card__social {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

@media (min-width: 768px) {
    .equipo-directivo-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 2rem;
    }
}
