/* Magazine template - Bold visual magazine layout */

:root {
    --mag-accent: #e91e63;
    --mag-accent-dark: #c2185b;
    --mag-dark: #1a1a2e;
    --mag-darker: #16213e;
    --mag-card-bg: #0f3460;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--mag-dark);
    color: #e0e0e0;
}

/* Header */
.magazine-header {
    background: var(--mag-darker);
    padding: 1.2rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.header-brand {
    font-size: 1.8rem;
    font-weight: 800;
    color: white;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.header-brand:hover { color: var(--mag-accent); }

.header-tagline {
    color: rgba(255,255,255,0.5);
    font-size: 0.9rem;
    margin-left: 1rem;
}

.header-contact {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    font-size: 0.9rem;
}

.header-contact:hover { color: var(--mag-accent); }

/* Accent bar */
.accent-bar {
    height: 4px;
    background: linear-gradient(90deg, var(--mag-accent), #ff6f00, var(--mag-accent));
}

/* Hero card */
.hero-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    min-height: 400px;
    background: var(--mag-card-bg);
}

.hero-image {
    width: 100%;
    height: 450px;
    object-fit: cover;
    display: block;
}

.hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.85));
    padding: 3rem 2rem 2rem;
}

.hero-badge {
    background: var(--mag-accent);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-title {
    font-size: 2rem;
    font-weight: 800;
    margin: 0.8rem 0;
    line-height: 1.2;
}

.hero-title a {
    color: white;
    text-decoration: none;
}

.hero-title a:hover { color: var(--mag-accent); }

.hero-desc {
    color: rgba(255,255,255,0.8);
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.hero-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
}

.hero-link {
    color: var(--mag-accent);
    text-decoration: none;
    font-weight: 600;
}

.hero-link:hover { color: white; }

/* Magazine cards */
.mag-card {
    background: var(--mag-card-bg);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.mag-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.4);
}

.mag-card-img-wrapper {
    position: relative;
    overflow: hidden;
}

.mag-card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.mag-card:hover .mag-card-img {
    transform: scale(1.05);
}

.play-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.6);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    backdrop-filter: blur(4px);
}

.mag-card-no-img {
    height: 120px;
    background: linear-gradient(135deg, var(--mag-darker), var(--mag-card-bg));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.source-badge {
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.7);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
}

.mag-card-body {
    padding: 1.25rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.mag-card-meta {
    color: rgba(255,255,255,0.5);
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mag-card-title {
    font-weight: 700;
    font-size: 1.1rem;
    line-height: 1.3;
    margin-bottom: 0.5rem;
}

.mag-card-title a {
    color: white;
    text-decoration: none;
}

.mag-card-title a:hover { color: var(--mag-accent); }

.mag-card-desc {
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
    line-height: 1.5;
    flex-grow: 1;
}

/* Article page */
.back-btn {
    border-color: rgba(255,255,255,0.3);
    color: rgba(255,255,255,0.7);
}

.back-btn:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.5);
    color: white;
}

.article-content {
    background: var(--mag-card-bg);
    padding: 2.5rem;
    border-radius: 16px;
    margin-top: 1rem;
}

.article-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: white;
    line-height: 1.2;
    margin-bottom: 0.5rem;
}

.article-meta {
    color: rgba(255,255,255,0.5);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.article-content .lead {
    color: rgba(255,255,255,0.8);
    font-size: 1.1rem;
    line-height: 1.7;
}

.btn-accent {
    background: var(--mag-accent);
    border-color: var(--mag-accent);
    color: white;
}

.btn-accent:hover {
    background: var(--mag-accent-dark);
    border-color: var(--mag-accent-dark);
    color: white;
}

/* Map (homepage) */
.map-section {
    display: block;
    margin: 0 calc(-50vw + 50%) 2rem;
    width: 100vw;
    padding: 1.5rem 0 0;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}
.map-section:hover .map-title { opacity: 0.8; }
.map-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 1rem;
    text-align: center;
    transition: opacity 0.25s;
}
.map-wrapper {
    overflow: hidden;
    position: relative;
}
.map-wrapper iframe {
    width: 100%;
    height: 450px;
    border: none;
    display: block;
    pointer-events: none;
}

/* Map page (/mapa/) */
.map-page-title {
    font-size: 2rem;
    font-weight: 800;
    color: white;
    margin-bottom: 1.5rem;
}
.map-page-wrapper {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.08);
}
.map-page-wrapper iframe {
    width: 100%;
    height: 70vh;
    border: none;
    display: block;
}
.map-page-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

/* Footer */
.magazine-footer {
    background: var(--mag-darker);
    color: rgba(255,255,255,0.8);
    margin-top: 3rem;
}

.footer-brand {
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.magazine-footer a {
    color: var(--mag-accent);
    text-decoration: none;
}

.magazine-footer a:hover { color: white; }

@media (max-width: 768px) {
    .hero-image { height: 280px; }
    .hero-title { font-size: 1.4rem; }
    .hero-overlay { padding: 2rem 1.2rem 1.2rem; }
    .mag-card-img { height: 180px; }
    .article-content { padding: 1.5rem; }
    .article-title { font-size: 1.6rem; }
}
