/* HISTORIAS PAGE - Todas las historias */

.hist-page-header {
    padding: 80px 40px 40px;
    background: #080808;
    border-bottom: 1px solid #1a1a1a;
    text-align: center;
}

.hist-page-header h1 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 2.8rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.hist-page-header .hist-subtitle {
    font-family: 'Inter', sans-serif;
    color: #888;
    font-size: 1rem;
    font-weight: 300;
    font-style: italic;
    margin-bottom: 24px;
}

.hist-page-header .hist-count {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hist-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    color: #888;
    text-decoration: none;
    transition: color 0.2s;
}

.hist-back-link:hover { color: #E772A7; }
.hist-back-link i { font-size: 0.7rem; }

.hist-stories-section {
    padding: 40px;
    background: #080808;
    min-height: 60vh;
}

.hist-stories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.hist-empty {
    text-align: center;
    padding: 80px 20px;
    color: #555;
}

.hist-empty i {
    font-size: 3rem;
    margin-bottom: 16px;
    opacity: 0.3;
    display: block;
}

.hist-empty h3 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.2rem;
    color: #777;
    margin-bottom: 8px;
}

.hist-empty p {
    font-size: 0.85rem;
}

.hist-cta {
    text-align: center;
    padding: 40px 20px 60px;
    background: #080808;
}

.hist-cta a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: 1px solid #333;
    color: #ccc;
    padding: 14px 36px;
    border-radius: 50px;
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    transition: border-color 0.3s, color 0.3s, background 0.3s;
}

.hist-cta a:hover {
    border-color: #E772A7;
    color: #E772A7;
    background: rgba(231,114,167,0.05);
}

.hist-footer {
    background: #000;
    padding: 60px 40px;
}

.hist-footer .tags-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 50px;
}

.hist-footer .tag {
    border: 2px solid white;
    padding: 10px 30px;
    border-radius: 50px;
    text-transform: uppercase;
    font-size: 0.9rem;
    font-weight: bold;
    color: #fff;
    text-decoration: none;
    transition: 0.3s;
}

.hist-footer .tag:hover {
    background: white;
    color: black;
}

.hist-footer .site-footer {
    text-align: right;
    font-size: 0.8rem;
}

.hist-footer .site-footer a {
    color: #fff;
    text-decoration: none;
}

.hist-footer .site-footer a:hover { color: #E772A7; }

.hist-footer .social-icons {
    display: flex;
    gap: 15px;
}

.hist-footer .social-icons a {
    color: #fff;
    font-size: 14px;
    transition: 0.3s;
}

.hist-footer .social-icons a:hover { color: #E772A7; }

/* Modal reuse stories styles */
.hist-modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(6px);
    z-index: 3000;
    justify-content: center;
    align-items: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hist-modal-overlay.active {
    display: flex;
    opacity: 1;
}

.hist-modal {
    background: #111;
    border: 1px solid #222;
    border-radius: 8px;
    width: 100%;
    max-width: 680px;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    transform: translateY(20px) scale(0.97);
    transition: transform 0.3s ease;
}

.hist-modal-overlay.active .hist-modal {
    transform: translateY(0) scale(1);
}

.hist-modal::-webkit-scrollbar { width: 6px; }
.hist-modal::-webkit-scrollbar-track { background: #111; }
.hist-modal::-webkit-scrollbar-thumb { background: #333; border-radius: 3px; }

.hist-modal-close {
    position: absolute;
    top: 12px; right: 12px;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    border: 1px solid #333;
    color: #ccc;
    width: 44px; height: 44px;
    border-radius: 50%;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: background 0.2s, color 0.2s;
}

.hist-modal-close:hover { background: #333; color: #fff; }
.hist-modal-close:focus-visible { outline: 2px solid #E772A7; outline-offset: 2px; }

.hist-modal-image {
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    border-radius: 8px 8px 0 0;
}

.hist-modal-image img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    filter: saturate(0.9);
}

.hist-modal-content { padding: 32px 36px 28px; }

.hist-modal-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.hist-modal-meta span {
    font-family: 'Inter', sans-serif;
    font-size: 0.72rem;
    color: #777;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hist-modal-meta .modal-divider {
    width: 3px; height: 3px;
    background: #444;
    border-radius: 50%;
}

.hist-modal-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.6rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 20px;
    line-height: 1.25;
}

.hist-modal-author {
    font-family: 'Inter', sans-serif;
    font-size: 0.82rem;
    color: #999;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid #1e1e1e;
}

.hist-modal-author strong { color: #ddd; font-weight: 600; }

.hist-modal-story {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: #bbb;
    line-height: 1.75;
    margin-bottom: 28px;
}

.hist-modal-story p + p { margin-top: 16px; }

.hist-modal-song {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #0d0d0d;
    border: 1px solid #1e1e1e;
    border-radius: 6px;
    padding: 14px 18px;
    margin-bottom: 28px;
}

.hist-modal-song i { color: #E772A7; font-size: 0.9rem; }

.hist-modal-song span {
    font-family: 'Inter', sans-serif;
    font-size: 0.78rem;
    color: #999;
}

.hist-modal-song strong { color: #ddd; font-weight: 600; }

.hist-modal-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 20px;
    border-top: 1px solid #1e1e1e;
}

.hist-modal-like-btn {
    background: none;
    border: 1px solid #2a2a2a;
    color: #888;
    padding: 10px 20px;
    border-radius: 50px;
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.hist-modal-like-btn:hover { border-color: #E772A7; color: #E772A7; }
.hist-modal-like-btn:focus-visible { outline: 2px solid #E772A7; outline-offset: 2px; }

.hist-modal-like-btn.liked {
    border-color: #E772A7;
    color: #E772A7;
    background: rgba(231,114,167,0.08);
}

.hist-modal-like-btn.liked i { animation: histHeartBeat 0.4s ease; }

@keyframes histHeartBeat {
    0% { transform: scale(1); }
    30% { transform: scale(1.3); }
    60% { transform: scale(0.95); }
    100% { transform: scale(1); }
}

.hist-modal-date {
    font-family: 'Inter', sans-serif;
    font-size: 0.72rem;
    color: #555;
}

/* Responsive */
@media (max-width: 1024px) {
    .hist-stories-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .hist-page-header { padding: 50px 16px 30px; }
    .hist-page-header h1 { font-size: 1.8rem; }
    .hist-stories-section { padding: 20px 16px; }
    .hist-stories-grid { grid-template-columns: 1fr; gap: 16px; }
    .hist-modal { max-height: 90vh; border-radius: 6px; }
    .hist-modal-content { padding: 24px 20px 20px; }
    .hist-modal-title { font-size: 1.3rem; }
    .hist-modal-overlay { padding: 10px; }
    .hist-footer { padding: 40px 16px; }
}
