/* ==========================================================================
   CENTRO DE CAPACITACIÓN LOS ANDES - STYLESHEET (PROFESSIONAL RESPONSIVE)
   ========================================================================== */

:root {
    --bg-page: #f8fafc;
    --bg-surface: #ffffff;
    --bg-alt: #f1f5f9;
    --bg-navy-dark: #0a0a0a;
    --bg-navy-header: #0848a7;
    --bg-navy-card: #0f172a;
    
    /* Moodle Edumy Theme Colors (Los Andes) */
    --primary: #0848a7;
    --primary-hover: #192675;
    --primary-light: #185ec9;
    --primary-subtle: #edf3fc;
    
    --gold: #c75533;
    --gold-subtle: #fef2ee;
    --gold-text: #9a3412;
    --gold-accent: #f0d078;
    
    --success: #059669;
    --danger: #ff1053;
    
    --text-primary: #0f172a;
    --text-secondary: #334155;
    --text-muted: #64748b;
    --text-light: #f8fafc;
    
    --border-light: #e2e8f0;
    --border-strong: #cbd5e1;
    --border-navy: rgba(255, 255, 255, 0.12);
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-full: 9999px;
    
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px -2px rgba(8, 72, 167, 0.08);
    --shadow-lg: 0 12px 28px -4px rgba(8, 72, 167, 0.12);
    --shadow-card-hover: 0 16px 32px -6px rgba(8, 72, 167, 0.16);
    
    --font-heading: 'Nunito', 'Open Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Nunito', 'Open Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Reset & Anti-Horizontal Overflow */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    touch-action: manipulation;
    -webkit-text-size-adjust: 100%;
}

body {
    background-color: var(--bg-page);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.2s ease;
}

button {
    cursor: pointer;
    font-family: inherit;
    border: none;
    background: none;
    outline: none;
}

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

.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.25;
    color: var(--text-primary);
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Header */
.site-header {
    background: var(--bg-navy-header);
    border-bottom: 1px solid var(--border-navy);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.header-container {
    height: 74px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.brand-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo-main-white {
    height: 44px;
    max-width: 220px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.footer-logo-white {
    height: 42px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    margin-bottom: 16px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 18px;
}

.nav-item {
    font-size: 15px;
    font-weight: 500;
    color: #cbd5e1;
    padding: 6px 0;
}

.nav-item:hover {
    color: #ffffff;
}

.nav-item.highlight-nav {
    color: #fbbf24;
    font-weight: 700;
}

/* Mobile Actions & Hamburger */
.mobile-actions {
    display: none;
    align-items: center;
    gap: 10px;
}

.mobile-hamburger-btn {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-sm);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.mobile-hamburger-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.mobile-hamburger-btn i {
    width: 22px;
    height: 22px;
}

/* Mobile Drawer (Slide In) */
.mobile-drawer-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(4px);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-drawer-backdrop.open {
    opacity: 1;
    visibility: visible;
}

.mobile-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 320px;
    max-width: 86vw;
    background: #0b132b !important;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    box-shadow: -8px 0 25px rgba(0, 0, 0, 0.6);
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    overflow-y: auto;
}

.mobile-drawer.open {
    transform: translateX(0);
}

.drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    background: #080d1e;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.drawer-logo {
    height: 36px;
    max-width: 170px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.drawer-close-btn {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.drawer-close-btn i {
    width: 18px;
    height: 18px;
}

.drawer-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex: 1;
}

.drawer-section-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #94a3b8;
    margin-bottom: 6px;
}

.drawer-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.drawer-link {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 600;
    color: #f1f5f9 !important;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.2s ease;
}

.drawer-link i {
    width: 18px;
    height: 18px;
    color: #38bdf8;
    flex-shrink: 0;
}

.drawer-link:hover, .drawer-link:active {
    background: rgba(29, 78, 216, 0.4);
    border-color: #3b82f6;
    color: #ffffff !important;
}

.drawer-link.highlight {
    color: #fbbf24 !important;
    border-color: rgba(245, 158, 11, 0.3);
}

.drawer-cta-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: auto;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 600;
    border-radius: var(--radius-md);
    padding: 11px 22px;
    transition: all 0.2s ease;
    white-space: nowrap;
    font-size: 15px;
}

.btn-block {
    width: 100%;
}

.btn-sm {
    padding: 7px 14px;
    font-size: 13px;
    border-radius: var(--radius-sm);
}

.btn-lg {
    padding: 14px 30px;
    font-size: 16px;
}

.btn-primary {
    background: var(--primary);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(8, 72, 167, 0.35);
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    color: #ffffff;
}

.btn-header-login {
    background: linear-gradient(135deg, #ff1053 0%, #d9043d 100%);
    color: #ffffff;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(255, 16, 83, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-header-login:hover {
    background: linear-gradient(135deg, #ff336e 0%, #ff1053 100%);
    transform: translateY(-2px);
    color: #ffffff;
}

.btn-outline-primary {
    background: #ffffff;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline-primary:hover {
    background: var(--primary);
    color: #ffffff;
    transform: translateY(-2px);
}

.btn-gold {
    background: linear-gradient(135deg, #c75533 0%, #a33e21 100%);
    color: #ffffff;
}

.btn-gold:hover {
    background: linear-gradient(135deg, #dc6542 0%, #c75533 100%);
    transform: translateY(-2px);
    color: #ffffff;
}

.btn-whatsapp {
    background: #059669;
    color: #ffffff;
    font-weight: 600;
}

.btn-whatsapp:hover {
    background: #047857;
    color: #ffffff;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(180deg, #f1f5f9 0%, #f8fafc 100%);
    border-bottom: 1px solid var(--border-light);
    padding: 60px 0 70px;
    width: 100%;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary-subtle);
    border: 1px solid #bfdbfe;
    color: #1d4ed8;
    font-size: 13px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    margin-bottom: 16px;
}

.hero-title {
    font-size: 42px;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
    color: #0f172a;
}

.hero-subtitle {
    font-size: 17px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 26px;
}

.hero-subtitle strong {
    color: #0f172a;
}

.hero-search-box {
    display: flex;
    background: #ffffff;
    border: 2px solid #cbd5e1;
    border-radius: var(--radius-lg);
    padding: 6px;
    box-shadow: 0 8px 20px -4px rgba(15, 23, 42, 0.08);
    margin-bottom: 20px;
}

.hero-search-box:focus-within {
    border-color: #1d4ed8;
}

.search-input-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 14px;
}

.search-input-wrap i {
    width: 18px;
    height: 18px;
    color: var(--text-muted);
    flex-shrink: 0;
}

.search-input-wrap input {
    width: 100%;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 15px;
    outline: none;
}

.quick-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.tags-label {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}

.tag-pill {
    background: #ffffff;
    border: 1px solid var(--border-strong);
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: var(--radius-full);
    transition: all 0.2s ease;
}

.tag-pill:hover {
    background: var(--primary-subtle);
    border-color: #93c5fd;
    color: #1d4ed8;
}

/* Hero Carousel */
.hero-carousel-wrapper {
    background: var(--bg-navy-dark);
    border: 1px solid var(--border-navy);
    border-radius: var(--radius-lg);
    padding: 22px;
    box-shadow: var(--shadow-lg);
    color: #ffffff;
    width: 100%;
}

.carousel-header-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    font-size: 14px;
    font-weight: 700;
    color: #f1f5f9;
}

.carousel-nav-buttons {
    display: flex;
    gap: 8px;
}

.carousel-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-btn:hover {
    background: #1d4ed8;
}

.hero-carousel {
    position: relative;
    min-height: 370px;
    overflow: hidden;
}

.carousel-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateX(40px);
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: var(--bg-navy-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.carousel-slide.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.carousel-slide-img {
    height: 140px;
    width: 100%;
    object-fit: cover;
}

.carousel-slide-content {
    padding: 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.slide-badge-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.badge-tag {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 3px 9px;
    border-radius: var(--radius-full);
}

.badge-tag.diploma {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #ffffff;
}

.badge-tag.hot {
    background: #dc2626;
    color: #ffffff;
}

.badge-tag.regular {
    background: rgba(59, 130, 246, 0.2);
    border: 1px solid rgba(96, 165, 250, 0.4);
    color: #93c5fd;
}

.slide-hours {
    font-size: 12px;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 4px;
}

.slide-title {
    font-size: 17px;
    margin-bottom: 6px;
    line-height: 1.3;
    color: #ffffff;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.slide-desc {
    font-size: 13px;
    color: #cbd5e1;
    line-height: 1.45;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.slide-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.slide-price {
    font-size: 19px;
    font-weight: 800;
    color: #38bdf8;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 16px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
}

.dot.active {
    width: 22px;
    background: #38bdf8;
}

/* Stats Bar */
.stats-bar {
    background: #ffffff;
    border-bottom: 1px solid var(--border-light);
    padding: 24px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 14px;
}

.stat-icon-wrap {
    width: 44px;
    height: 44px;
    background: var(--primary-subtle);
    border: 1px solid #bfdbfe;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1d4ed8;
    flex-shrink: 0;
}

.stat-text h3 {
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
}

.stat-text p {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}

/* Section Shared */
.section {
    padding: 70px 0;
    width: 100%;
}

.section-header {
    margin-bottom: 36px;
}

.section-header.text-center {
    text-align: center;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #1d4ed8;
    margin-bottom: 8px;
}

.section-title {
    font-size: 30px;
    margin-bottom: 10px;
    color: #0f172a;
}

.section-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    max-width: 750px;
}

/* Diplomados Section */
.diplomados-section {
    background: #f1f5f9;
    border-bottom: 1px solid var(--border-light);
}

.diplomados-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 24px;
}

.diploma-card {
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: var(--shadow-sm);
    transition: all 0.25s ease;
}

.diploma-card:hover {
    transform: translateY(-4px);
    border-color: #d97706;
    box-shadow: var(--shadow-card-hover);
}

.diploma-card-img-wrap {
    height: 170px;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.diploma-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.diploma-card-badge-overlay {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #d97706;
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: var(--radius-full);
}

.diploma-body {
    padding: 22px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.diploma-title {
    font-size: 17px;
    line-height: 1.35;
    margin-bottom: 8px;
    color: #0f172a;
}

.diploma-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 16px;
}

.diploma-features {
    list-style: none;
    margin-bottom: 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.diploma-features li {
    font-size: 13px;
    color: #334155;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.diploma-features li i {
    width: 16px;
    height: 16px;
    color: #059669;
    flex-shrink: 0;
}

.diploma-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 14px;
    border-top: 1px solid var(--border-light);
}

/* Catalog Filter Bar */
.catalog-section {
    background: var(--bg-page);
}

.catalog-filters-wrap {
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 18px;
    margin-bottom: 26px;
    box-shadow: var(--shadow-sm);
}

.category-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border-light);
}

.cat-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: #334155;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
}

.cat-tab i {
    width: 15px;
    height: 15px;
}

.cat-tab .cat-count {
    background: #e2e8f0;
    color: #475569;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: var(--radius-full);
}

.cat-tab.active {
    background: #1d4ed8;
    border-color: #1d4ed8;
    color: #ffffff;
}

.cat-tab.active .cat-count {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
}

.catalog-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.inline-search {
    flex: 1;
    max-width: 400px;
    position: relative;
    display: flex;
    align-items: center;
}

.inline-search i {
    position: absolute;
    left: 14px;
    width: 16px;
    height: 16px;
    color: var(--text-muted);
}

.inline-search input {
    width: 100%;
    background: #f8fafc;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-md);
    padding: 9px 14px 9px 40px;
    color: var(--text-primary);
    font-size: 14px;
    outline: none;
}

.inline-search input:focus {
    border-color: #1d4ed8;
    background: #ffffff;
}

.sort-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 600;
}

.sort-wrapper select {
    background: #ffffff;
    border: 1px solid var(--border-strong);
    color: var(--text-primary);
    padding: 8px 14px;
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 600;
    outline: none;
    cursor: pointer;
}

.results-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 14px;
    color: var(--text-secondary);
}

.btn-link {
    color: #1d4ed8;
    font-size: 13px;
    text-decoration: underline;
    font-weight: 600;
}

/* Course Grid */
.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.course-card {
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
    transition: all 0.25s ease;
}

.course-card:hover {
    transform: translateY(-4px);
    border-color: #93c5fd;
    box-shadow: var(--shadow-card-hover);
}

.course-card-img-wrap {
    height: 155px;
    width: 100%;
    position: relative;
    overflow: hidden;
    background: #e2e8f0;
}

.course-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-badge-overlay {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(15, 23, 42, 0.85);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: var(--radius-full);
}

.card-badge-overlay.badge-diploma {
    background: #d97706;
}

.card-hours-tag-overlay {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.95);
    color: #0f172a;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    gap: 4px;
}

.card-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-title {
    font-size: 16px;
    line-height: 1.35;
    margin-bottom: 8px;
    color: #0f172a;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 16px;
    font-weight: 500;
}

.card-meta-list span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.card-footer {
    padding-top: 12px;
    border-top: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-price-box .price-old {
    font-size: 11px;
    color: var(--text-muted);
    text-decoration: line-through;
}

.card-price-box .price-current {
    font-size: 19px;
    font-weight: 800;
    color: #1d4ed8;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 50px 20px;
    background: #ffffff;
    border: 2px dashed var(--border-strong);
    border-radius: var(--radius-lg);
}

.empty-icon {
    width: 44px;
    height: 44px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.pagination-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

/* ==========================================================================
   ACCREDITATIONS & PARTNERSHIPS SECTION (WORDPRESS / ELEMENTOR PRO STYLE)
   ========================================================================== */
.accreditations-section {
    background: #f8fafc;
    position: relative;
    overflow: hidden;
    padding: 70px 0 80px;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

.accreditations-bg-glow {
    position: absolute;
    top: -120px;
    left: 50%;
    transform: translateX(-50%);
    width: 900px;
    height: 500px;
    background: radial-gradient(circle, rgba(8, 72, 167, 0.08) 0%, rgba(8, 72, 167, 0) 70%);
    pointer-events: none;
    z-index: 1;
}

.wp-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #ffffff;
    border: 1px solid #bfdbfe;
    box-shadow: 0 4px 14px rgba(8, 72, 167, 0.08);
    padding: 8px 20px;
    border-radius: 9999px;
    margin-bottom: 18px;
    font-size: 12px;
    font-weight: 800;
    color: #0848a7;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.wp-badge-icon {
    width: 22px;
    height: 22px;
    background: #0848a7;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.wp-badge-icon i {
    width: 13px;
    height: 13px;
}

.wp-title {
    font-size: 36px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 14px;
    letter-spacing: -0.02em;
}

.wp-subtitle {
    max-width: 740px;
    margin: 0 auto 46px;
    font-size: 16px;
    color: #475569;
    line-height: 1.6;
}

.wp-partners-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    position: relative;
    z-index: 2;
}

/* WordPress Card Architecture */
.wp-partner-card {
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 12px 35px -8px rgba(15, 23, 42, 0.08), 0 4px 10px -2px rgba(15, 23, 42, 0.03);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.wp-partner-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 24px 50px -10px rgba(8, 72, 167, 0.2), 0 8px 20px -4px rgba(8, 72, 167, 0.08);
    border-color: rgba(8, 72, 167, 0.35);
}

.featured-wp-card {
    border-color: rgba(8, 72, 167, 0.3);
    background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
    box-shadow: 0 16px 40px -8px rgba(8, 72, 167, 0.15);
}

.wp-card-top-accent {
    height: 6px;
    width: 100%;
}

.sence-accent {
    background: linear-gradient(90deg, #0848a7 0%, #38bdf8 100%);
}

.quality-accent {
    background: linear-gradient(90deg, #059669 0%, #10b981 100%);
}

.tech-accent {
    background: linear-gradient(90deg, #7c3aed 0%, #a855f7 100%);
}

.wp-ribbon {
    position: absolute;
    top: 18px;
    right: -36px;
    background: linear-gradient(135deg, #c75533 0%, #9a3412 100%);
    color: #ffffff;
    font-size: 10.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 5px 38px;
    transform: rotate(45deg);
    box-shadow: 0 4px 10px rgba(199, 85, 51, 0.35);
    z-index: 10;
}

.wp-card-body {
    padding: 28px 24px 22px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.wp-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    width: 100%;
}

.wp-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 9999px;
}

.wp-pill i {
    width: 14px;
    height: 14px;
}

.sence-pill {
    background: #eff6ff;
    color: #0848a7;
    border: 1px solid #bfdbfe;
}

.quality-pill {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.tech-pill {
    background: #faf5ff;
    color: #6b21a8;
    border: 1px solid #e9d5ff;
}

.wp-status-live {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    color: #059669;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25);
    display: inline-block;
}

/* Logo Box */
.wp-logo-frame {
    height: 96px;
    width: 100%;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 20px;
    margin-bottom: 20px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
    transition: all 0.3s ease;
}

.wp-partner-card:hover .wp-logo-frame {
    background: #ffffff;
    border-color: rgba(8, 72, 167, 0.25);
    box-shadow: 0 8px 20px -4px rgba(8, 72, 167, 0.1);
    transform: scale(1.02);
}

.wp-logo-frame img {
    max-height: 64px;
    max-width: 180px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.04));
    transition: transform 0.3s ease;
}

.wp-partner-card:hover .wp-logo-frame img {
    transform: scale(1.04);
}

.wp-card-title {
    font-size: 19px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 10px;
    line-height: 1.35;
}

.wp-card-desc {
    font-size: 14px;
    color: #475569;
    line-height: 1.6;
    margin-bottom: 22px;
    flex-grow: 1;
}

/* Feature Item Capsules */
.wp-features-boxes {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 22px;
    padding: 0 !important;
    list-style: none !important;
}

.wp-feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 10px 14px;
    transition: all 0.25s ease;
}

.wp-partner-card:hover .wp-feature-item {
    background: #ffffff;
    border-color: #cbd5e1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.wp-check-circle {
    width: 22px;
    height: 22px;
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.3);
}

.wp-check-circle i {
    width: 13px;
    height: 13px;
    stroke-width: 3;
}

.wp-feature-text {
    font-size: 13px;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.3;
}

/* Card Bottom Seal */
.wp-card-bottom {
    padding-top: 16px;
    border-top: 1px dashed #cbd5e1;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wp-seal-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11.5px;
    font-weight: 800;
    color: #0848a7;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    padding: 7px 16px;
    border-radius: 8px;
    transition: all 0.25s ease;
}

.quality-seal {
    color: #065f46;
    background: #ecfdf5;
    border-color: #a7f3d0;
}

.wp-seal-badge i {
    width: 15px;
    height: 15px;
}

/* Responsive adjustment */
@media (max-width: 992px) {
    .wp-partners-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

/* Features */
.features-section {
    background: #f1f5f9;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
}

.feature-box {
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
}

.feature-img-wrap {
    height: 180px;
    width: 100%;
    position: relative;
    overflow: hidden;
}

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

.feature-icon-badge {
    position: absolute;
    bottom: 12px;
    left: 14px;
    width: 40px;
    height: 40px;
    background: #1d4ed8;
    border: 2px solid #ffffff;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
}

.feature-icon-badge i {
    width: 20px;
    height: 20px;
}

.feature-body {
    padding: 22px;
    flex: 1;
}

.feature-body h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: #0f172a;
}

.feature-body p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Footer */
.site-footer {
    background: #151515;
    border-top: 1px solid var(--border-navy);
    padding: 60px 0 0;
    color: #cbd5e1;
}

.footer-container {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 36px;
    padding-bottom: 50px;
}

.footer-col p {
    font-size: 13px;
    color: #94a3b8;
    margin-bottom: 14px;
}

.footer-badges {
    display: flex;
    gap: 8px;
}

.badge-outline {
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border: 1px solid var(--border-navy);
    border-radius: var(--radius-sm);
    color: #94a3b8;
}

.footer-col h4 {
    font-size: 15px;
    margin-bottom: 16px;
    color: #ffffff;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-links li a {
    font-size: 13px;
    color: #94a3b8;
}

.footer-links li a:hover {
    color: #ffffff;
}

.footer-bottom {
    background: #0a0a0a;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 20px 0;
    font-size: 13px;
    color: #8892b0;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Modal */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(6px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-backdrop.open {
    opacity: 1;
    visibility: visible;
}

.modal-dialog {
    background: #ffffff;
    border-radius: var(--radius-lg);
    max-width: 640px;
    width: 100%;
    max-height: 88vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 34px;
    height: 34px;
    background: #f1f5f9;
    border-radius: 50%;
    color: #0f172a;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.modal-close:hover {
    background: #dc2626;
    color: #ffffff;
}

.modal-img-wrap {
    height: 180px;
    width: 100%;
    overflow: hidden;
}

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

.modal-body {
    padding: 24px;
}

.modal-badge-row {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.modal-title {
    font-size: 20px;
    margin-bottom: 14px;
    color: #0f172a;
}

.modal-meta-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    background: #f8fafc;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 12px;
    margin-bottom: 18px;
}

.modal-meta-item {
    text-align: center;
}

.modal-meta-item .meta-lbl {
    font-size: 11px;
    color: var(--text-muted);
    display: block;
}

.modal-meta-item .meta-val {
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
}

.modal-section-title {
    font-size: 14px;
    margin-bottom: 8px;
    color: #1d4ed8;
    display: flex;
    align-items: center;
    gap: 6px;
}

.modal-desc-box {
    background: #f8fafc;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 14px;
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.55;
    margin-bottom: 18px;
    white-space: pre-line;
}

.modal-price-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid var(--border-light);
}

.modal-price-display .price-val {
    font-size: 24px;
    font-weight: 800;
    color: #1d4ed8;
}

.modal-actions-row {
    display: flex;
    gap: 10px;
}

/* Floating WhatsApp Widget */
.whatsapp-floating-widget {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 900;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.whatsapp-btn-circle {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: #ffffff;
    border: 3px solid #25D366;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4);
}

.whatsapp-logo-wrap {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.whatsapp-avatar {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.whatsapp-sub-icon {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 22px;
    height: 22px;
    background: #25D366;
    border: 2px solid #ffffff;
    border-radius: 50%;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.whatsapp-sub-icon i {
    width: 12px;
    height: 12px;
}

.whatsapp-ring-pulse {
    position: absolute;
    inset: -6px;
    border: 2px solid #25D366;
    border-radius: 50%;
    animation: waPulse 2.2s infinite ease-out;
    pointer-events: none;
}

@keyframes waPulse {
    0% { transform: scale(0.9); opacity: 0.9; }
    70% { transform: scale(1.35); opacity: 0; }
    100% { transform: scale(1.4); opacity: 0; }
}

.whatsapp-bubble {
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.2);
    padding: 14px 16px;
    max-width: 270px;
    margin-bottom: 12px;
}

.bubble-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.bubble-title {
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
}

.bubble-close {
    color: #94a3b8;
}

.bubble-close i {
    width: 14px;
    height: 14px;
}

.bubble-msg {
    font-size: 12px;
    color: #334155;
    margin-bottom: 10px;
}

.bubble-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: #25D366;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    padding: 7px 12px;
    border-radius: var(--radius-md);
}

.bubble-btn i {
    width: 13px;
    height: 13px;
}

/* ==========================================================================
   MOBILE & TABLET RESPONSIVE
   ========================================================================== */
@media (max-width: 992px) {
    .header-actions.desktop-only {
        display: none !important;
    }
    .mobile-actions {
        display: flex !important;
    }
    .hero-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .partners-grid, .features-grid {
        grid-template-columns: 1fr;
    }
    .footer-container {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 640px) {
    .container {
        padding: 0 14px;
    }

    .header-container {
        height: 62px;
    }

    .logo-main-white {
        height: 32px;
        max-width: 150px;
    }

    .btn-header-login.btn-sm {
        padding: 6px 10px;
        font-size: 12px;
    }

    .mobile-hamburger-btn {
        width: 36px;
        height: 36px;
    }

    /* Hero Mobile */
    .hero-section {
        padding: 30px 0 40px;
    }

    .hero-title {
        font-size: 24px;
        margin-bottom: 12px;
    }

    .hero-subtitle {
        font-size: 14px;
        margin-bottom: 18px;
    }

    .hero-search-box {
        flex-direction: column;
        padding: 8px;
        gap: 8px;
    }

    .search-input-wrap {
        padding: 4px 6px;
    }

    .btn-search {
        width: 100%;
        padding: 10px;
        font-size: 14px;
    }

    .quick-tags {
        gap: 4px;
    }

    .tag-pill {
        font-size: 11px;
        padding: 3px 9px;
    }

    /* Hero Carousel Mobile */
    .hero-carousel-wrapper {
        padding: 14px;
    }

    .hero-carousel {
        min-height: 320px;
    }

    .carousel-slide-img {
        height: 120px;
    }

    .carousel-slide-content {
        padding: 12px;
    }

    .slide-title {
        font-size: 15px;
    }

    /* Stats Grid Mobile */
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .stat-item {
        gap: 8px;
    }

    .stat-icon-wrap {
        width: 36px;
        height: 36px;
    }

    .stat-icon-wrap i {
        width: 16px;
        height: 16px;
    }

    .stat-text h3 {
        font-size: 16px;
    }

    .stat-text p {
        font-size: 11px;
    }

    /* Section Headers Mobile */
    .section {
        padding: 40px 0;
    }

    .section-title {
        font-size: 22px;
    }

    .section-subtitle {
        font-size: 13px;
    }

    /* Category Tabs Horizontal Scroll Mobile */
    .catalog-filters-wrap {
        padding: 12px;
        margin-bottom: 16px;
    }

    .category-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 6px;
        margin-bottom: 12px;
        gap: 6px;
    }

    .category-tabs::-webkit-scrollbar {
        display: none;
    }

    .cat-tab {
        flex-shrink: 0;
        padding: 7px 11px;
        font-size: 12px;
        white-space: nowrap;
    }

    .catalog-controls {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .sort-wrapper {
        justify-content: space-between;
    }

    .sort-wrapper select {
        flex: 1;
    }

    /* Grids Mobile */
    .diplomados-grid,
    .course-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .diploma-card-img-wrap,
    .course-card-img-wrap {
        height: 140px;
    }

    .card-body,
    .diploma-body {
        padding: 14px;
    }

    .card-title,
    .diploma-title {
        font-size: 15px;
    }

    /* Footer Mobile */
    .footer-container {
        grid-template-columns: 1fr;
        gap: 24px;
        padding-bottom: 30px;
    }

    .footer-bottom-content {
        flex-direction: column;
        gap: 6px;
        text-align: center;
    }

    /* Modal Mobile */
    .modal-dialog {
        max-height: 94vh;
    }

    .modal-img-wrap {
        height: 130px;
    }

    .modal-body {
        padding: 16px;
    }

    .modal-meta-grid {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .modal-price-footer {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }

    .modal-actions-row {
        flex-direction: column;
        gap: 8px;
    }

    /* WhatsApp Float Mobile */
    .whatsapp-floating-widget {
        bottom: 16px;
        right: 16px;
    }

    .whatsapp-btn-circle {
        width: 54px;
        height: 54px;
    }

    .whatsapp-logo-wrap {
        width: 40px;
        height: 40px;
    }

    .whatsapp-bubble {
        max-width: 240px;
        padding: 10px 12px;
    }
}
