/* SeriesWeb 2027 - Rediseño Moderno manteniendo identidad visual (#5E77B9 / #346D9E) */
:root {
    --sw-primary: #5E77B9;
    --sw-primary-dark: #346D9E;
    --sw-primary-deep: #24476A;
    --sw-primary-light: #EBF0F9;
    --sw-accent: #428BCA;
    --sw-pink: #D63384;
    --sw-pink-badge: #FF33FF;
    --sw-bg: #F4F6FB;
    --sw-card-bg: #FFFFFF;
    --sw-text: #2C3E50;
    --sw-text-muted: #64748B;
    --sw-border: #DCE3F0;
    --sw-success: #10B981;
    --sw-warning: #F59E0B;
    --sw-danger: #EF4444;
    --sw-radius: 10px;
    --sw-shadow: 0 4px 14px rgba(52, 109, 158, 0.08);
    --sw-shadow-hover: 0 8px 22px rgba(52, 109, 158, 0.16);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--sw-bg);
    color: var(--sw-text);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a {
    color: var(--sw-primary-dark);
    text-decoration: none;
    transition: color 0.15s ease, background-color 0.15s ease;
}

a:hover {
    color: var(--sw-primary);
    text-decoration: underline;
}

.sw-container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 18px;
}

/* Header & Navbar */
.sw-header {
    background: linear-gradient(135deg, var(--sw-primary) 0%, var(--sw-primary-dark) 100%);
    color: #fff;
    box-shadow: 0 3px 12px rgba(36, 71, 106, 0.25);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.sw-header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    gap: 16px;
    flex-wrap: wrap;
}

.sw-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff !important;
    text-decoration: none !important;
}

.sw-brand img,
.sw-brand-tv {
    height: 54px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.35));
    flex-shrink: 0;
}

.sw-brand-text {
    display: flex;
    flex-direction: column;
}

.sw-brand-title {
    font-size: 1.65rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    line-height: 1.1;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

.sw-brand-subtitle {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.9);
}

/* Search Bar in Header */
.sw-search-form {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 999px;
    padding: 4px 6px 4px 16px;
    flex: 1;
    max-width: 440px;
    transition: background 0.2s, border-color 0.2s;
}

.sw-search-form:focus-within {
    background: #fff;
    border-color: #fff;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.25);
}

.sw-search-form input[type="text"] {
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    font-size: 0.95rem;
    width: 100%;
    padding: 6px 8px 6px 0;
}

.sw-search-form:focus-within input[type="text"] {
    color: var(--sw-text);
}

.sw-search-form input[type="text"]::placeholder {
    color: rgba(255, 255, 255, 0.8);
}

.sw-search-form:focus-within input[type="text"]::placeholder {
    color: var(--sw-text-muted);
}

.sw-search-form button {
    background: var(--sw-primary-deep);
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: 7px 16px;
    font-weight: 600;
    font-size: 0.88rem;
    cursor: pointer;
    transition: background 0.15s;
    white-space: nowrap;
}

.sw-search-form button:hover {
    background: #18334F;
}

/* Navigation Bar */
.sw-nav-bar {
    background: rgba(0, 0, 0, 0.14);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.sw-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 6px 0;
    overflow-x: auto;
    flex-wrap: wrap;
}

.sw-nav li a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.9rem;
    font-weight: 600;
    padding: 7px 13px;
    border-radius: 6px;
    text-decoration: none;
    white-space: nowrap;
}

.sw-nav li a:hover,
.sw-nav li a.active {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.sw-nav li.sw-nav-right {
    margin-left: auto;
}

.sw-nav li.sw-nav-right a {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.28);
}

/* Alphabet Bar */
.sw-alpha-bar {
    background: #fff;
    border-bottom: 1px solid var(--sw-border);
    padding: 9px 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.sw-alpha-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 4px;
}

.sw-alpha-label {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--sw-primary-dark);
    margin-right: 4px;
    white-space: nowrap;
}

.sw-alpha-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 26px;
    height: 28px;
    padding: 0 6px;
    border-radius: 6px;
    font-size: 0.81rem;
    font-weight: 700;
    color: var(--sw-primary-dark);
    background: var(--sw-primary-light);
    border: 1px solid transparent;
    text-decoration: none !important;
    white-space: nowrap;
    transition: all 0.15s ease;
}

.sw-alpha-btn:hover,
.sw-alpha-btn.active {
    background: var(--sw-primary);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(94, 119, 185, 0.35);
}

.sw-alpha-sep {
    width: 1px;
    height: 20px;
    background: var(--sw-border);
    margin: 0 3px;
}

/* Breadcrumbs (SEO Migas de Pan) */
.sw-breadcrumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--sw-text-muted);
    margin-bottom: 16px;
    padding: 8px 14px;
    background: #fff;
    border: 1px solid var(--sw-border);
    border-radius: 8px;
}

.sw-breadcrumbs ol {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.sw-breadcrumbs li {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.sw-breadcrumbs li + li::before {
    content: "›";
    color: #94A3B8;
    font-weight: 700;
}

.sw-breadcrumbs a {
    color: var(--sw-primary-dark);
    font-weight: 600;
}

.sw-breadcrumbs span[aria-current="page"],
.sw-breadcrumbs .sw-bc-current {
    color: var(--sw-text);
    font-weight: 600;
}

/* Main Content Area */
.sw-main {
    flex: 1;
    padding: 26px 0 48px;
}

/* Grid System */
.sw-grid {
    display: grid;
    gap: 22px;
}

.sw-grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.sw-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.sw-grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

.sw-grid-sidebar {
    grid-template-columns: 300px 1fr;
}

.sw-grid-main-aside {
    grid-template-columns: 1fr 340px;
}

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

/* Cards & Panels */
.sw-card {
    background: var(--sw-card-bg);
    border-radius: var(--sw-radius);
    border: 1px solid var(--sw-border);
    box-shadow: var(--sw-shadow);
    overflow: hidden;
    margin-bottom: 22px;
}

.sw-card-header {
    background: linear-gradient(135deg, var(--sw-primary) 0%, var(--sw-primary-dark) 100%);
    color: #fff;
    padding: 13px 18px;
    font-weight: 700;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.sw-card-header h1,
.sw-card-header h2,
.sw-card-header h3,
.sw-card-header h4 {
    margin: 0;
    font-size: 1.08rem;
    font-weight: 700;
    color: #fff;
}

.sw-card-header a:not(.sw-badge):not(.sw-btn) {
    color: #fff;
    text-decoration: none;
}

.sw-card-header a:not(.sw-badge):not(.sw-btn):hover {
    color: #fff;
    text-decoration: underline;
}

.sw-card-body {
    padding: 18px;
}

/* Series Header Banner & Sub-navigation Tabs */
.sw-serie-hero {
    background: #fff;
    border-radius: var(--sw-radius);
    border: 1px solid var(--sw-border);
    box-shadow: var(--sw-shadow);
    margin-bottom: 24px;
    overflow: hidden;
}

.sw-serie-hero-top {
    background: linear-gradient(135deg, var(--sw-primary) 0%, var(--sw-primary-dark) 100%);
    color: #fff;
    padding: 18px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.sw-serie-hero-brand {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
}

.sw-serie-hero-thumb-link {
    display: inline-flex;
    flex-shrink: 0;
    text-decoration: none !important;
}

.sw-serie-hero-thumb {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid rgba(255, 255, 255, 0.9);
    background: #fff;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25);
    flex-shrink: 0;
}

.sw-nov-thumb {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid var(--sw-border);
    background: #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    flex-shrink: 0;
}

.sw-serie-hero-title {
    margin: 0;
    font-size: 1.65rem;
    font-weight: 800;
    color: #fff;
}

.sw-serie-hero-aka {
    margin: 4px 0 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
}

.sw-serie-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 8px 16px;
    background: var(--sw-primary-light);
    border-top: 1px solid var(--sw-border);
    list-style: none;
    margin: 0;
}

.sw-serie-tabs li a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 15px;
    border-radius: 7px;
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--sw-primary-deep);
    text-decoration: none;
    transition: all 0.15s;
}

.sw-serie-tabs li a:hover {
    background: rgba(94, 119, 185, 0.18);
    color: var(--sw-primary-deep);
    text-decoration: none;
}

.sw-serie-tabs li a.active,
.sw-serie-tabs li a.active:hover {
    background: var(--sw-primary);
    color: #fff !important;
    box-shadow: 0 2px 6px rgba(94, 119, 185, 0.3);
}

/* Badges & Pills */
.sw-badge,
a.sw-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    background: var(--sw-primary);
    color: #fff !important;
    line-height: 1.2;
    text-decoration: none !important;
}

a.sw-badge:hover {
    background: var(--sw-primary-dark);
    color: #fff !important;
    text-decoration: none !important;
}

.sw-badge-pink,
a.sw-badge-pink,
a.sw-badge-pink:hover {
    background: var(--sw-pink);
    color: #fff !important;
}

.sw-badge-light,
a.sw-badge-light,
.sw-card-header a.sw-badge-light {
    background: #FFFFFF;
    color: var(--sw-primary-deep) !important;
    border: 1px solid var(--sw-border);
}

a.sw-badge-light:hover,
.sw-card-header a.sw-badge-light:hover {
    background: var(--sw-primary-light);
    color: #162F4A !important;
    border-color: #B8C7E0;
    text-decoration: none !important;
}

.sw-badge-success,
a.sw-badge-success,
a.sw-badge-success:hover {
    background: #047857;
    color: #fff !important;
}

.sw-badge-warning,
a.sw-badge-warning,
a.sw-badge-warning:hover {
    background: #FEF3C7;
    color: #92400E !important;
    border: 1px solid #F59E0B;
}

/* List Items */
.sw-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sw-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border-bottom: 1px solid var(--sw-border);
    gap: 12px;
    transition: background 0.12s;
}

.sw-list-item:last-child {
    border-bottom: none;
}

.sw-list-item:hover {
    background: #F8FAFE;
}

/* Tables */
.sw-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.sw-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.93rem;
}

.sw-table th,
.sw-table td {
    padding: 10px 13px;
    text-align: left;
    border-bottom: 1px solid var(--sw-border);
}

.sw-table th {
    background: var(--sw-primary-light);
    color: var(--sw-primary-deep);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.sw-table tr:hover td {
    background-color: #F8FAFE;
}

/* Actor Cards & Thumbnails */
.sw-actor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 16px;
}

.sw-actor-card {
    background: #fff;
    border: 1px solid var(--sw-border);
    border-radius: var(--sw-radius);
    padding: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: transform 0.15s, box-shadow 0.15s;
}

.sw-actor-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--sw-shadow-hover);
}

.sw-actor-thumb {
    width: 56px;
    height: 70px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid var(--sw-border);
    background: var(--sw-primary-light);
    flex-shrink: 0;
}

/* Buttons */
.sw-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 7px;
    font-weight: 600;
    font-size: 0.9rem;
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none !important;
    transition: all 0.15s;
}

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

.sw-btn-primary:hover {
    background: var(--sw-primary-dark);
}

.sw-btn-outline {
    background: #fff;
    color: var(--sw-primary-dark) !important;
    border-color: var(--sw-primary);
}

.sw-btn-outline:hover {
    background: var(--sw-primary-light);
}

.sw-btn-danger {
    background: var(--sw-danger);
    color: #fff !important;
}

.sw-btn-success {
    background: var(--sw-success);
    color: #fff !important;
}

.sw-btn-sm {
    padding: 4px 10px;
    font-size: 0.8rem;
}

/* Forms */
.sw-form-group {
    margin-bottom: 14px;
}

.sw-form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.88rem;
    margin-bottom: 5px;
    color: var(--sw-primary-deep);
}

.sw-input,
.sw-select,
.sw-textarea {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid var(--sw-border);
    border-radius: 7px;
    font-size: 0.93rem;
    font-family: inherit;
    color: var(--sw-text);
    background: #fff;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.sw-input:focus,
.sw-select:focus,
.sw-textarea:focus {
    outline: none;
    border-color: var(--sw-primary);
    box-shadow: 0 0 0 3px rgba(94, 119, 185, 0.18);
}

/* Alerts */
.sw-alert {
    padding: 13px 16px;
    border-radius: 8px;
    margin-bottom: 18px;
    border-left: 4px solid var(--sw-primary);
    background: var(--sw-primary-light);
    color: var(--sw-primary-deep);
}

.sw-alert-success {
    background: #ECFDF5;
    border-left-color: var(--sw-success);
    color: #065F46;
}

.sw-alert-danger {
    background: #FEF2F2;
    border-left-color: var(--sw-danger);
    color: #991B1B;
}

/* Footer */
.sw-footer {
    background: linear-gradient(135deg, var(--sw-primary-deep) 0%, var(--sw-primary-dark) 100%);
    color: rgba(255, 255, 255, 0.88);
    padding: 28px 0;
    margin-top: auto;
    font-size: 0.9rem;
}

.sw-footer a {
    color: #fff;
    font-weight: 600;
}

.sw-footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.sw-footer-links {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}
