/* Variables */
:root {
    --color-primary: #5D1FC6;
    --color-secondary: #E30613;
    --color-dark: #1a1a2e;
    --color-light: #f8f9fa;
    --color-white: #ffffff;
    --color-gray: #6c757d;
    --color-gray-light: #e9ecef;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

.container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Floating Header */
.header-floating {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    padding: 0.75rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 
        0 8px 32px rgba(93, 31, 198, 0.12),
        0 2px 8px rgba(0, 0, 0, 0.04);
    border-bottom: 3px solid transparent;
    border-image: linear-gradient(90deg, var(--color-primary), var(--color-secondary)) 1;
}

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

.logo-section {
    flex-shrink: 0;
    position: relative;
    width: 220px;
    height: 65px;
    overflow: visible;
}

.logo-main {
    height: 220px;
    position: absolute;
    top: -70px;
    left: 0;
    z-index: 2;
    transition: var(--transition);
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.12));
    width: auto;
    max-width: none;
}

.logo-main:hover {
    filter: brightness(1.02);
}

.radio-section-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex: 1;
    justify-content: flex-end;
}

.radio-info-compact {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.radio-icon-compact {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    animation: float 3s ease-in-out infinite;
}

.radio-text {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.radio-label {
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--color-dark);
}

.live-badge {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--color-secondary);
}

.live-dot {
    width: 7px;
    height: 7px;
    background: var(--color-secondary);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.radio-player-header {
    max-width: 380px;
    flex-shrink: 0;
}

.radio-player-header iframe {
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 80px;
}

.radio-player-header iframe:hover {
    box-shadow: var(--shadow-md);
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
}

/* Main Content */
.main-content {
    padding: 3rem 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(93, 31, 198, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(227, 6, 19, 0.03) 0%, transparent 50%),
        linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
    position: relative;
}

.main-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 400px;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%235d1fc6' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
    pointer-events: none;
    z-index: 0;
}

.main-content > .container {
    position: relative;
    z-index: 1;
}

.main-content-top {
    background: 
        radial-gradient(circle at 10% 20%, rgba(93, 31, 198, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(227, 6, 19, 0.08) 0%, transparent 50%),
        linear-gradient(135deg, #f8f9fa 0%, #ffffff 50%, #f1f3f5 100%);
    padding-top: 3rem;
}

/* Espacios publicitarios */
.ad-banner-carousel {
    position: relative;
    margin-bottom: 2rem;
    min-height: 100px;
}

.ad-banner {
    position: absolute;
    width: 100%;
    border-radius: 16px;
    padding: 1.5rem;
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    pointer-events: none;
}

.ad-banner.active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
    position: relative;
}

/* Variante 1 - Morado suave */
.ad-banner-variant-1 {
    background: linear-gradient(135deg, rgba(93, 31, 198, 0.08), rgba(147, 51, 234, 0.08));
    border: 2px dashed #b794f6;
}

.ad-banner-variant-1:hover {
    background: linear-gradient(135deg, rgba(93, 31, 198, 0.12), rgba(147, 51, 234, 0.12));
    border-color: var(--color-primary);
}

/* Variante 2 - Rojo suave */
.ad-banner-variant-2 {
    background: linear-gradient(135deg, rgba(227, 6, 19, 0.08), rgba(239, 68, 68, 0.08));
    border: 2px dashed #fca5a5;
}

.ad-banner-variant-2:hover {
    background: linear-gradient(135deg, rgba(227, 6, 19, 0.12), rgba(239, 68, 68, 0.12));
    border-color: var(--color-secondary);
}

/* Variante 3 - Verde suave */
.ad-banner-variant-3 {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08), rgba(52, 211, 153, 0.08));
    border: 2px dashed #6ee7b7;
}

.ad-banner-variant-3:hover {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.12), rgba(52, 211, 153, 0.12));
    border-color: #10b981;
}

/* Variante 4 - Naranja suave */
.ad-banner-variant-4 {
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.08), rgba(251, 146, 60, 0.08));
    border: 2px dashed #fdba74;
}

.ad-banner-variant-4:hover {
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.12), rgba(251, 146, 60, 0.12));
    border-color: #f97316;
}

.ad-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.ad-text {
    flex: 1;
}

.ad-label {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--color-gray);
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.ad-message {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-dark);
    margin: 0;
}

.ad-contact {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: var(--color-white);
    padding: 0.875rem 1.5rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.ad-contact:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.ad-box {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    border-radius: 24px;
    padding: 3rem;
    margin-top: 4rem;
    box-shadow: var(--shadow-lg);
}

.ad-box-content {
    display: flex;
    align-items: center;
    gap: 2rem;
    color: var(--color-white);
}

.ad-icon {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.ad-box-text {
    flex: 1;
}

.ad-box-text h3 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
}

.ad-box-text p {
    font-size: 1.15rem;
    opacity: 0.95;
    margin-bottom: 1.5rem;
}

.ad-box-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--color-white);
    color: var(--color-primary);
    padding: 0.875rem 1.75rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.ad-box-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    background: var(--color-light);
}

.ad-card {
    background: linear-gradient(135deg, rgba(93, 31, 198, 0.05), rgba(227, 6, 19, 0.05));
    border: 2px dashed var(--color-gray-light);
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
}

.ad-card:hover {
    border-color: var(--color-primary);
    background: linear-gradient(135deg, rgba(93, 31, 198, 0.08), rgba(227, 6, 19, 0.08));
}

.ad-card-content {
    text-align: center;
    padding: 2rem;
}

.ad-card-label {
    display: block;
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--color-gray);
    letter-spacing: 1.5px;
    margin-bottom: 1rem;
}

.ad-card-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 1.5rem;
}

.ad-card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: var(--color-white);
    padding: 0.75rem 1.25rem;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
}

.ad-card-link:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
}

.section-top {
    margin-top: 0;
}

.section-header-main {
    margin-bottom: 3rem;
    text-align: center;
    padding-bottom: 2rem;
    position: relative;
}

.section-header-main::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    border-radius: 2px;
}

.section-title-main {
    font-size: 3rem;
    font-weight: 800;
    color: var(--color-dark);
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0;
    position: relative;
    display: inline-block;
    text-shadow: 0 0 40px rgba(93, 31, 198, 0.1);
}

.section-title-main::before {
    content: '📰';
    position: absolute;
    left: -60px;
    opacity: 0.3;
    font-size: 2.5rem;
}

.section {
    margin-bottom: 4rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-dark);
    position: relative;
    padding-bottom: 0.5rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--color-secondary), var(--color-primary));
    border-radius: 2px;
}

.admin-controls {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.btn-add-news, .btn-login, .btn-logout {
    border: none;
    padding: 0.875rem 1.75rem;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-add-news {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: var(--color-white);
    box-shadow: var(--shadow-sm);
}

.btn-add-news:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-login {
    background: transparent;
    border: 1.5px solid var(--color-gray-light);
    color: var(--color-gray);
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    box-shadow: none;
}

.btn-login:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background: rgba(93, 31, 198, 0.05);
}

.btn-login svg {
    width: 16px;
    height: 16px;
}

.btn-logout {
    background: var(--color-gray-light);
    color: var(--color-gray);
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.btn-logout:hover {
    background: var(--color-gray);
    color: var(--color-white);
}

/* News Grid */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.news-card,
.servired-card,
.ad-card {
    animation: fadeInUp 0.6s ease-out backwards;
}

.news-card:nth-child(1) { animation-delay: 0.1s; }
.news-card:nth-child(2) { animation-delay: 0.2s; }
.news-card:nth-child(3) { animation-delay: 0.3s; }
.news-card:nth-child(4) { animation-delay: 0.4s; }
.news-card:nth-child(5) { animation-delay: 0.5s; }
.news-card:nth-child(6) { animation-delay: 0.6s; }
.news-card:nth-child(7) { animation-delay: 0.7s; }
.news-card:nth-child(8) { animation-delay: 0.8s; }

.news-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.98));
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.08),
        0 0 0 1px rgba(93, 31, 198, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    position: relative;
}

.news-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    opacity: 0;
    transition: var(--transition);
}

.news-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 
        0 20px 40px rgba(93, 31, 198, 0.15),
        0 0 0 1px rgba(93, 31, 198, 0.1);
}

.news-card:hover::before {
    opacity: 1;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.news-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: var(--transition);
}

.news-card:hover .news-image {
    transform: scale(1.05);
}

.news-content {
    padding: 1.5rem;
}

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

.news-category {
    display: inline-block;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: var(--color-white);
    padding: 0.375rem 0.875rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.news-date {
    font-size: 0.875rem;
    color: var(--color-gray);
}

.news-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--color-dark);
    line-height: 1.3;
}

.news-read-more {
    display: inline-block;
    color: var(--color-primary);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.95rem;
    transition: var(--transition);
    margin-bottom: 1rem;
}

.news-read-more:hover {
    color: var(--color-secondary);
    gap: 0.5rem;
}

.news-card {
    cursor: pointer;
}

/* Modal de lectura de noticias */
.read-news-content {
    padding: 1rem 0;
}

.read-news-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 16px;
    margin-bottom: 1.5rem;
}

.read-news-meta {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1.5rem;
}

.read-news-body {
    color: var(--color-dark);
    line-height: 1.8;
    font-size: 1.05rem;
    margin-bottom: 2rem;
}

.read-news-body strong {
    font-weight: 700;
}

.read-news-body em {
    font-style: italic;
}

.read-news-body u {
    text-decoration: underline;
}

.read-news-body ul {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.read-news-body p {
    margin-bottom: 1rem;
}

.news-source-large {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-primary);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    padding: 0.75rem 1.25rem;
    border: 2px solid var(--color-primary);
    border-radius: 12px;
    transition: var(--transition);
}

.news-source-large:hover {
    background: var(--color-primary);
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.news-source-large svg {
    flex-shrink: 0;
}

.news-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.btn-delete {
    background: var(--color-secondary);
    color: var(--color-white);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
}

.btn-delete:hover {
    background: #c00510;
    transform: scale(1.05);
}

/* ServiRED Section */
.servired-section {
    margin-top: 4rem;
    padding: 0;
    background: transparent;
}

/* Banner principal ServiRED */
.servired-banner {
    background: 
        linear-gradient(135deg, rgba(14, 165, 233, 0.95), rgba(6, 182, 212, 0.95)),
        url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ffffff' fill-opacity='0.05' fill-rule='evenodd'/%3E%3C/svg%3E");
    border-radius: 28px;
    padding: 4rem 3rem;
    box-shadow: 
        0 20px 60px rgba(14, 165, 233, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    margin-bottom: 3rem;
}

.servired-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: rotate 30s linear infinite;
}

.servired-banner-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.servired-info {
    color: var(--color-white);
}

.servired-main-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.servired-description {
    font-size: 1.15rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    opacity: 0.95;
}

.servired-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--color-white);
    color: #0ea5e9;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: var(--transition);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    margin-top: 1rem;
}

.servired-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
    background: #f0f9ff;
}

.servired-logo-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
}

.servired-logo {
    max-width: 100%;
    height: auto;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.3));
    animation: float 6s ease-in-out infinite;
}

.servired-decorations {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.servired-circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.servired-circle-1 {
    width: 150px;
    height: 150px;
    top: 20%;
    left: 10%;
    animation: float 4s ease-in-out infinite;
}

.servired-circle-2 {
    width: 100px;
    height: 100px;
    bottom: 20%;
    right: 15%;
    animation: float 5s ease-in-out infinite reverse;
}

.servired-circle-3 {
    width: 80px;
    height: 80px;
    top: 60%;
    left: 20%;
    animation: float 3s ease-in-out infinite;
}

/* Sección de noticias ServiRED */
.servired-news-section {
    padding: 2rem 0;
}

.servired-news-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.servired-news-title {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #0ea5e9, #06b6d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
}


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

.servired-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.98));
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 
        0 4px 20px rgba(14, 165, 233, 0.15),
        0 0 0 1px rgba(14, 165, 233, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: 1px solid rgba(14, 165, 233, 0.2);
    backdrop-filter: blur(10px);
    position: relative;
}

.servired-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #0ea5e9, #06b6d4);
    opacity: 0;
    transition: var(--transition);
}

.servired-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 
        0 20px 40px rgba(14, 165, 233, 0.25),
        0 0 0 1px rgba(14, 165, 233, 0.2);
    border-color: #0ea5e9;
}

.servired-card:hover::before {
    opacity: 1;
}

.servired-card .news-image {
    height: 200px;
    object-fit: cover;
}

.servired-card .news-category {
    background: linear-gradient(135deg, #0ea5e9, #06b6d4);
    color: var(--color-white);
}

.btn-add-servired {
    background: linear-gradient(135deg, #0ea5e9, #06b6d4);
    color: var(--color-white);
    border: none;
    padding: 0.875rem 1.75rem;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.btn-add-servired:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(14, 165, 233, 0.3);
}

/* Radio Section */
.radio-section {
    margin-top: 4rem;
}

.radio-card {
    background: 
        linear-gradient(135deg, rgba(93, 31, 198, 0.95) 0%, rgba(227, 6, 19, 0.95) 100%),
        url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ffffff' fill-opacity='0.05' fill-rule='evenodd'/%3E%3C/svg%3E");
    border-radius: 28px;
    padding: 3rem;
    text-align: center;
    color: var(--color-white);
    box-shadow: 
        0 20px 60px rgba(93, 31, 198, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.radio-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.radio-card-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.radio-card-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
}

.pulse-indicator {
    width: 16px;
    height: 16px;
    background: var(--color-white);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.3);
    }
}

.radio-description {
    font-size: 1.25rem;
    opacity: 0.95;
    margin-bottom: 2rem;
}

.radio-player-large {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.radio-player-large iframe {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Equalizer Decoration */
.equalizer-decoration {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 8px;
    height: 60px;
    margin-top: 2rem;
    opacity: 0.6;
}

.bar {
    width: 8px;
    background: var(--color-white);
    border-radius: 4px;
    animation: equalize 1s ease-in-out infinite;
}

.bar:nth-child(1) { animation-delay: 0s; }
.bar:nth-child(2) { animation-delay: 0.2s; }
.bar:nth-child(3) { animation-delay: 0.4s; }
.bar:nth-child(4) { animation-delay: 0.6s; }
.bar:nth-child(5) { animation-delay: 0.8s; }

@keyframes equalize {
    0%, 100% { height: 20px; }
    50% { height: 60px; }
}

/* Footer */
.footer {
    background: 
        linear-gradient(135deg, rgba(26, 26, 46, 0.98) 0%, rgba(15, 15, 30, 0.98) 100%),
        url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%235d1fc6' fill-opacity='0.08' fill-rule='evenodd'/%3E%3C/svg%3E");
    color: var(--color-white);
    padding: 3rem 0 2rem;
    margin-top: 4rem;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-logo {
    height: 60px;
    margin-bottom: 1rem;
}

.visit-counter {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
}

.visit-counter svg {
    opacity: 0.7;
}

.visit-counter span {
    font-weight: 700;
    color: var(--color-white);
    font-size: 1rem;
}

.footer-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-text {
    opacity: 0.8;
    margin-bottom: 0.5rem;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--color-white);
    border-radius: 24px;
    padding: 2rem;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease;
}

.modal-small {
    max-width: 450px;
}

.modal-large {
    max-width: 900px;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.modal-header h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-dark);
}

.modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--color-gray);
    cursor: pointer;
    transition: var(--transition);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.modal-close:hover {
    background: var(--color-gray-light);
    color: var(--color-dark);
}

.form-group {
    margin-bottom: 1.5rem;
}

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

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.875rem;
    border: 2px solid var(--color-gray-light);
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(93, 31, 198, 0.1);
}

/* Editor de texto enriquecido */
.editor-toolbar {
    display: flex;
    gap: 0.25rem;
    padding: 0.5rem;
    background: var(--color-light);
    border: 2px solid var(--color-gray-light);
    border-bottom: none;
    border-radius: 12px 12px 0 0;
    align-items: center;
}

.editor-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: var(--color-white);
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition);
    color: var(--color-dark);
}

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

.editor-btn:active {
    transform: scale(0.95);
}

.editor-divider {
    width: 1px;
    height: 24px;
    background: var(--color-gray-light);
    margin: 0 0.25rem;
}

.editor-color-btn {
    position: relative;
    cursor: pointer;
    width: 32px;
    height: 32px;
    background: var(--color-white);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.editor-color-btn:hover {
    background: var(--color-light);
}

.editor-color-btn input[type="color"] {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.editor-color-btn span {
    font-weight: 700;
    font-size: 16px;
    pointer-events: none;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.editor-content {
    min-height: 200px;
    max-height: 400px;
    overflow-y: auto;
    padding: 1rem;
    border: 2px solid var(--color-gray-light);
    border-radius: 0 0 12px 12px;
    font-family: inherit;
    font-size: 1rem;
    line-height: 1.6;
    background: var(--color-white);
}

.editor-content:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(93, 31, 198, 0.1);
}

.editor-content:empty:before {
    content: attr(data-placeholder);
    color: var(--color-gray);
    font-style: italic;
}

.editor-content strong {
    font-weight: 700;
}

.editor-content em {
    font-style: italic;
}

.editor-content u {
    text-decoration: underline;
}

.editor-content ul {
    margin-left: 1.5rem;
    margin-bottom: 0.5rem;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
}

.btn-primary,
.btn-secondary {
    padding: 0.875rem 1.75rem;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: var(--color-white);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: var(--color-gray-light);
    color: var(--color-dark);
}

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

.error-message {
    background: #fee;
    border: 2px solid var(--color-secondary);
    color: #c00;
    padding: 0.875rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-weight: 500;
    text-align: center;
}

.login-info {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: var(--color-light);
    border-radius: 12px;
    border-left: 4px solid var(--color-primary);
}

.login-info p {
    margin-bottom: 0.5rem;
}

.login-info code {
    background: var(--color-white);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    color: var(--color-primary);
    font-weight: 600;
}

/* Botón volver arriba */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: var(--color-white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(93, 31, 198, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    visibility: hidden;
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(93, 31, 198, 0.5);
}

.back-to-top:active {
    transform: translateY(-2px);
}

/* Skeleton Loader */
.skeleton {
    background: linear-gradient(
        90deg,
        rgba(240, 240, 240, 0.8) 25%,
        rgba(230, 230, 230, 0.8) 50%,
        rgba(240, 240, 240, 0.8) 75%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 16px;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.skeleton-card {
    background: var(--color-white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    padding: 0;
}

.skeleton-image {
    width: 100%;
    height: 220px;
    background: linear-gradient(
        90deg,
        #f0f0f0 25%,
        #e0e0e0 50%,
        #f0f0f0 75%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

.skeleton-content {
    padding: 1.5rem;
}

.skeleton-header {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.skeleton-badge {
    width: 80px;
    height: 24px;
    border-radius: 12px;
}

.skeleton-date {
    width: 100px;
    height: 24px;
    border-radius: 12px;
}

.skeleton-title {
    width: 100%;
    height: 28px;
    margin-bottom: 0.75rem;
    border-radius: 8px;
}

.skeleton-title-short {
    width: 70%;
    height: 28px;
    border-radius: 8px;
}

/* Compartir en redes sociales */
.share-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid var(--color-light);
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.share-label {
    font-weight: 600;
    color: var(--color-dark);
    font-size: 1rem;
}

.share-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.share-btn {
    width: 45px;
    height: 45px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: var(--color-white);
}

.share-whatsapp {
    background: #25D366;
}

.share-whatsapp:hover {
    background: #20BA5A;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4);
}

.share-facebook {
    background: #1877F2;
}

.share-facebook:hover {
    background: #0E6AE3;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 20px rgba(24, 119, 242, 0.4);
}

.share-twitter {
    background: #1DA1F2;
}

.share-twitter:hover {
    background: #0C8FDB;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 20px rgba(29, 161, 242, 0.4);
}

.share-copy {
    background: var(--color-gray);
}

.share-copy:hover {
    background: var(--color-dark);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 20px rgba(109, 114, 120, 0.4);
}

.share-copy.copied {
    background: #10b981;
}

/* Responsive */
@media (max-width: 768px) {
    .header-floating {
        padding: 0.5rem 0;
    }
    
    .header-main {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .logo-section {
        width: 100%;
        text-align: center;
        height: 75px;
    }
    
    .logo-main {
        height: 180px;
        left: 50%;
        top: -60px;
        transform: translateX(-50%);
        max-width: none;
    }
    
    .radio-section-header {
        width: 100%;
        flex-direction: column;
        gap: 1rem;
        background: var(--color-light);
        padding: 1rem;
        border-radius: 12px;
    }
    
    .radio-info-compact {
        justify-content: center;
    }
    
    .radio-player-header {
        width: 100%;
        max-width: 100%;
    }
    
    .radio-player-header iframe {
        width: 100%;
    }
    
    .main-content-top {
        padding-top: 2rem;
    }
    
    .section-title-main {
        font-size: 2rem;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .admin-controls {
        width: 100%;
        justify-content: center;
    }
    
    .radio-card {
        padding: 2rem 1.5rem;
    }
    
    .ad-content {
        flex-direction: column;
        text-align: center;
    }
    
    .ad-box {
        padding: 2rem 1.5rem;
    }
    
    .ad-box-content {
        flex-direction: column;
        text-align: center;
    }
    
    .ad-box-text h3 {
        font-size: 1.5rem;
    }
    
    .ad-box-text p {
        font-size: 1rem;
    }
    
    .servired-banner {
        padding: 2.5rem 2rem;
    }
    
    .servired-banner-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .servired-main-title {
        font-size: 2rem;
    }
    
    .servired-description {
        font-size: 1rem;
    }
    
    .servired-logo-container {
        min-height: 200px;
        order: -1;
    }
    
    .servired-news-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .servired-grid {
        grid-template-columns: 1fr;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
    
    .share-section {
        flex-direction: column;
        align-items: flex-start;
    }
}
