/**
 * Modern Styles - Facultad de Medicina UNAL
 * Estilos compartidos para todas las plantillas
 * Mantiene fuentes originales: Abel, Wix Madefor Display
 * 
 * Paleta de colores institucional:
 * - Verde: #94b43b
 * - Turquesa: #3bb497
 * - Violeta: #5b3bb4
 * - Rosa: #b43b57
 */

:root {
    /* Colores principales */
    --primary: #5b3bb4;
    --primary-dark: #4a2f94;
    --primary-light: #6f4dc9;
    
    /* Colores de accent */
    --accent: #b43b57;
    --accent-orange: #3bb497;
    --accent-green: #94b43b;
    
    /* Colores neutros */
    --dark: #1a1a2e;
    --light: #f8f9fa;
    --gray: #6c757d;
    --gray-light: #e9ecef;
    
    /* Gradientes con nueva paleta */
    --gradient-primary: linear-gradient(135deg, #5b3bb4 0%, #6f4dc9 100%);
    --gradient-accent: linear-gradient(135deg, #b43b57 0%, #d65a7a 100%);
    --gradient-dark: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    --gradient-green: linear-gradient(135deg, #94b43b 0%, #a8c952 100%);
    --gradient-turquoise: linear-gradient(135deg, #3bb497 0%, #4ec9ab 100%);
    
    /* Sombras */
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-md: 0 8px 24px rgba(0,0,0,0.08);
    --shadow-lg: 0 16px 48px rgba(0,0,0,0.12);
    
    /* Bordes redondeados */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
}

/* ============================================
   PAGE HEADER / HERO
   ============================================ */
.page-hero {
    background: var(--gradient-primary);
    padding: 80px 0 60px;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 60%);
    animation: pulse 20s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.1) rotate(5deg); }
}

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

.page-hero-tag {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.page-hero-title {
    font-size: 3rem;
    font-weight: 800;
    margin: 0 0 15px 0;
    letter-spacing: -0.5px;
    line-height: 1.1;
}

@media (max-width: 768px) {
    .page-hero-title { font-size: 2.2rem; }
}

.page-hero-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 700px;
    margin: 0;
    font-weight: 300;
}

/* ============================================
   SECTION STYLES
   ============================================ */
.section {
    padding: 80px 0;
}

.section-light {
    background: #fff;
}

.section-gray {
    background: #f8f9fa;
}

.section-dark {
    background: var(--dark);
    color: #fff;
}

.container-custom {
    max-width: 1400px;
    padding: 0 5%;
    margin: 0 auto;
}

/* ============================================
   SECTION HEADERS
   ============================================ */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header.text-left {
    text-align: left;
}

.section-tag {
    display: inline-block;
    background: rgba(233,30,99,0.1);
    color: var(--accent);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--dark);
    margin: 0;
    letter-spacing: -0.5px;
}

.section-dark .section-title {
    color: #fff;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--gray);
    margin-top: 12px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.section-dark .section-subtitle {
    color: rgba(255,255,255,0.8);
}

/* ============================================
   CARDS
   ============================================ */
.card-modern {
    background: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
    color: inherit;
    display: block;
}

.card-modern:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}

.card-image {
    position: relative;
    overflow: hidden;
}

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

.card-modern:hover .card-image img {
    transform: scale(1.1);
}

.card-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--gradient-accent);
    color: #fff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.card-content {
    padding: 24px;
}

.card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 12px;
}

.card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--dark);
    margin: 0 0 12px 0;
    line-height: 1.4;
}

.card-excerpt {
    font-size: 0.95rem;
    color: var(--gray);
    line-height: 1.6;
    margin: 0;
}

/* ============================================
   LIST CARDS (Horizontal)
   ============================================ */
.list-card-modern {
    display: flex;
    gap: 20px;
    background: #fff;
    padding: 20px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    border-left: 4px solid transparent;
}

.list-card-modern:hover {
    transform: translateX(8px);
    box-shadow: var(--shadow-md);
    border-left-color: var(--accent-orange);
}

.list-card-image {
    width: 120px;
    height: 120px;
    border-radius: var(--radius-md);
    overflow: hidden;
    flex-shrink: 0;
}

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

.list-card-content {
    flex: 1;
    min-width: 0;
}

.list-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--dark);
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.list-card-meta {
    display: flex;
    gap: 16px;
    font-size: 0.85rem;
    color: var(--gray);
    flex-wrap: wrap;
}

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

/* ============================================
   DATE BADGE
   ============================================ */
.date-badge {
    min-width: 70px;
    height: 70px;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
}

.date-badge .day {
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1;
}

.date-badge .month {
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 700;
    color: rgba(255,255,255,0.9);
    letter-spacing: 1px;
    margin-top: 2px;
}

.date-badge-sm {
    min-width: 50px;
    height: 50px;
    border-radius: var(--radius-sm);
}

.date-badge-sm .day {
    font-size: 1.2rem;
}

.date-badge-sm .month {
    font-size: 0.65rem;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn-modern {
    display: inline-block;
    background: #fff;
    color: var(--primary) !important;
    padding: 16px 40px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    border: none;
    cursor: pointer;
}

.btn-modern:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.3);
}

.btn-primary-modern {
    background: var(--gradient-primary);
    color: #fff !important;
}

.btn-accent-modern {
    background: var(--gradient-accent);
    color: #fff !important;
}

.btn-view-all {
    display: inline-block;
    background: transparent;
    color: var(--primary);
    padding: 14px 35px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    border: 2px solid var(--primary);
    transition: all 0.3s ease;
}

.btn-view-all:hover {
    background: var(--primary);
    color: #fff;
}

.btn-cta {
    display: inline-block;
    background: #fff;
    color: var(--primary) !important;
    padding: 18px 45px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.05rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.btn-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
}

/* ============================================
   GRID LAYOUTS
   ============================================ */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

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

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

@media (max-width: 992px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

/* ============================================
   SINGLE POST STYLES
   ============================================ */
.single-header {
    margin-bottom: 40px;
}

.single-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--gray-light);
}

.single-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--gray);
}

.single-meta-item .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
    color: var(--primary);
}

.single-featured-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 30px;
}

.single-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

.single-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
}

.single-content h2,
.single-content h3,
.single-content h4 {
    margin-top: 40px;
    margin-bottom: 20px;
    font-weight: 700;
    color: var(--dark);
}

.single-content p {
    margin-bottom: 24px;
}

.single-content ul,
.single-content ol {
    margin-bottom: 24px;
    padding-left: 24px;
}

.single-content blockquote {
    border-left: 4px solid var(--primary);
    padding-left: 24px;
    margin: 30px 0;
    font-style: italic;
    color: var(--gray);
}

/* ============================================
   SIDEBAR
   ============================================ */
.sidebar-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 24px;
}

.sidebar-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark);
    margin: 0 0 16px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--gray-light);
}

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

.sidebar-list li {
    margin-bottom: 12px;
}

.sidebar-list a {
    color: var(--dark);
    text-decoration: none;
    transition: color 0.2s;
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.sidebar-list a:hover {
    color: var(--primary);
}

.sidebar-list .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    flex-shrink: 0;
    margin-top: 4px;
}

/* ============================================
   ARCHIVE FILTER
   ============================================ */
.filter-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.filter-btn {
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
}

.filter-btn.active {
    background: var(--gradient-primary);
    color: #fff;
}

.filter-btn:not(.active) {
    background: #fff;
    color: var(--primary);
    border-color: var(--primary);
}

.filter-btn:hover:not(.active) {
    background: var(--primary);
    color: #fff;
}

/* ============================================
   BREADCRUMBS
   ============================================ */
.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.breadcrumbs a {
    color: var(--gray);
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumbs a:hover {
    color: var(--primary);
}

.breadcrumbs .separator {
    color: var(--gray-light);
}

.breadcrumbs .current {
    color: var(--dark);
    font-weight: 600;
}

/* ============================================
   PAGINATION
   ============================================ */
.pagination-modern {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
}

.pagination-modern .page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 12px;
    border-radius: var(--radius-md);
    background: #fff;
    color: var(--dark);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid var(--gray-light);
}

.pagination-modern .page-numbers:hover,
.pagination-modern .page-numbers.current {
    background: var(--gradient-primary);
    color: #fff;
    border-color: transparent;
}

/* ============================================
   EMPTY STATE
   ============================================ */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: var(--light);
    border-radius: var(--radius-lg);
    border: 2px dashed var(--gray-light);
}

.empty-state .dashicons {
    font-size: 64px;
    width: 64px;
    height: 64px;
    color: #ccc;
    margin-bottom: 20px;
}

.empty-state h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
    margin: 0 0 10px 0;
}

.empty-state p {
    color: var(--gray);
    margin: 0 0 20px 0;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 992px) {
    .section { padding: 60px 0; }
    .page-hero { padding: 60px 0 40px; }
    .section-title { font-size: 2rem; }
    .page-hero-title { font-size: 2.2rem; }
}

@media (max-width: 768px) {
    .section { padding: 40px 0; }
    .page-hero { padding: 50px 0 30px; }
    .section-title { font-size: 1.75rem; }
    .page-hero-title { font-size: 1.8rem; }
    .container-custom { padding: 0 20px; }
}
