
/* pages.css - subpaginas Radio Caleta */

body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    line-height: 1.65;
    background: #fff;
}

/* Banner full-width - NO usa clase .hero del index */
.page-banner {
    display: block;
    width: 100%;
    box-sizing: border-box;
    margin: 0 !important;
    padding: 48px 5% !important;
    border: none !important;
    background: linear-gradient(135deg, #6927ff 0%, #e20b50 100%) !important;
    color: #fff !important;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.page-banner::before { display: none !important; content: none !important; }
.page-banner h1 {
    margin: 0 auto 12px;
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 800;
    color: #fff !important;
    max-width: 900px;
}
.page-banner p {
    margin: 0 auto;
    max-width: 720px;
    font-size: 1.05rem;
    color: #fff !important;
    opacity: 0.95;
}
.page-banner .tagline {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 14px;
}

.page-content {
    display: block;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 32px 4% 56px;
    box-sizing: border-box;
    text-align: left;
}
.page-content .intro-box,
.page-content .intro,
.page-content .brand-header,
.page-content .content-section,
.page-content .guide-card {
    max-width: none;
}
.page-content p,
.page-content li {
    font-size: 1.05rem;
    line-height: 1.75;
    max-width: none;
}

.breadcrumb { font-size: 0.9rem; color: #777; margin: 0 0 18px; }
.breadcrumb a { color: #6927ff; text-decoration: none; }

.intro-box, .intro, .brand-header {
    background: #f8f7ff;
    border-left: 4px solid #6927ff;
    border-radius: 0 12px 12px 0;
    padding: 18px 22px;
    margin: 0 0 24px;
    text-align: left;
}

.page-content h2,
.page-content h2.section,
.section-title {
    color: #6927ff;
    font-size: 1.35rem;
    margin: 28px 0 14px;
    text-align: left;
}
.page-content h3 { font-size: 1.1rem; margin: 16px 0 8px; color: #1e1e1e; }
.page-content p, .page-content li { text-align: left; }

.software-grid, .soft-grid, .card-grid, .guide-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 18px;
    margin: 18px 0 28px;
}
.software-card, .soft-card, .card, .guide-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
    text-align: left;
}
.software-image {
    background: linear-gradient(135deg, #6927ff, #8b5cf6);
    min-height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px;
}
.software-image img {
    max-height: 88px;
    max-width: 100%;
    object-fit: contain;
    background: #fff;
    border-radius: 8px;
    padding: 8px;
}
.software-info { padding: 16px 18px 18px; flex: 1; }
.software-info h3 { margin-top: 0; color: #6927ff; }
.software-meta {
    display: flex; flex-wrap: wrap; gap: 8px;
    margin-top: 10px; align-items: center;
}
.badge-free, .software-price {
    display: inline-block;
    background: #e8f8ef; color: #1a7f4b;
    padding: 3px 10px; border-radius: 12px;
    font-size: 0.85rem; font-weight: 600;
}
.btn-dl, .btn-download, .download-btn {
    display: inline-flex; align-items: center; gap: 8px;
    background: linear-gradient(135deg, #6927ff, #7c3aed);
    color: #fff !important; text-decoration: none; font-weight: 700;
    padding: 10px 16px; border-radius: 10px; margin-top: 10px;
}
.btn-secondary {
    display: inline-flex; align-items: center; gap: 8px;
    background: #fff; color: #6927ff !important;
    border: 2px solid #6927ff; text-decoration: none; font-weight: 700;
    padding: 8px 14px; border-radius: 10px;
}



.meta-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.tag {
    display: inline-block; padding: 4px 12px; border-radius: 14px;
    font-size: 0.85rem; font-weight: 600;
}
.tag-free { background: #e8f8ef; color: #1a7f4b; }
.tag-win, .tag-mac { background: #e8f1ff; color: #1a4d9e; }
.tag-tool { background: #fff3e0; color: #b45309; }

.ok-box, .ok {
    background: #f0fdf4; border: 1px solid #86efac;
    border-radius: 12px; padding: 16px 18px; margin: 18px 0; text-align: left;
}
.rec-box, .tip, .warning-box {
    background: #fff8e6; border: 1px solid #f0d78c;
    border-radius: 12px; padding: 16px 18px; margin: 18px 0; text-align: left;
}
.steps {
    background: #fff; border: 1px solid #eee; border-radius: 12px;
    padding: 18px 22px; margin: 16px 0 24px; text-align: left;
}
.chip-row, .related, .related-links {
    display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 20px;
}
.chip, .related a, .related-links a {
    background: #f0edff; color: #6927ff;
    padding: 6px 12px; border-radius: 16px;
    font-size: 0.85rem; font-weight: 600; text-decoration: none;
}
.faq-item { border-bottom: 1px solid #eee; padding: 14px 0; text-align: left; }
.cta, .cta-bottom {
    text-align: center;
    background: linear-gradient(135deg, #f8f7ff, #fff);
    border: 1px solid #ebe6ff; border-radius: 14px;
    padding: 28px 18px; margin: 28px 0;
}
.content-section {
    margin: 0 0 28px !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
    text-align: left !important;
}
.content-section::before { display: none !important; content: none !important; }

.map-section {
    width: 100%;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
}
.map-section::before { display: none !important; content: none !important; }
.footer-map-full { width: 100%; height: 400px; }
.footer-map-full iframe { display: block; width: 100%; height: 100%; border: 0; }

@media (max-width: 768px) {
    .page-banner { padding: 36px 4% !important; }
    
    .footer-map-full { height: 280px; }
}


/* Grid unificado de software (Hikvision / Dahua / Axis / etc.) */
.software-grid,
.video-grid,
.soft-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
    gap: 20px !important;
    margin: 20px 0 32px !important;
    width: 100% !important;
    align-items: stretch;
}

.software-card,
.video-card,
.soft-card {
    background: #fff !important;
    border: 1px solid #eee !important;
    border-radius: 14px !important;
    overflow: hidden !important;
    box-shadow: 0 4px 14px rgba(0,0,0,0.06) !important;
    display: flex !important;
    flex-direction: column !important;
    text-align: left !important;
    height: 100%;
    margin: 0 !important;
}

.software-image,
.video-thumbnail {
    background: linear-gradient(135deg, #6927ff, #8b5cf6) !important;
    min-height: 120px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 16px !important;
}

.software-image img,
.video-thumbnail img {
    max-height: 90px !important;
    max-width: 100% !important;
    object-fit: contain !important;
    background: #fff !important;
    border-radius: 10px !important;
    padding: 8px !important;
}

.software-info,
.video-info {
    padding: 16px 18px 18px !important;
    flex: 1 !important;
    display: flex;
    flex-direction: column;
}

.software-info h3,
.video-info h3,
.software-card h3,
.soft-card h3 {
    margin: 0 0 8px !important;
    color: #6927ff !important;
    font-size: 1.1rem !important;
}

.software-info p,
.video-info p {
    flex: 1;
    margin: 0 0 12px !important;
    color: #555 !important;
    font-size: 0.95rem !important;
}

.compatibility-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 8px 0 12px;
}
.compatibility-badge {
    display: inline-block;
    background: #f0edff;
    color: #6927ff;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

.software-version {
    font-size: 0.85rem;
    color: #888;
    margin-right: 8px;
}

.download-btn,
.btn-dl,
.btn-download {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #6927ff, #7c3aed) !important;
    color: #fff !important;
    text-decoration: none !important;
    font-weight: 700 !important;
    padding: 10px 16px !important;
    border-radius: 10px !important;
    margin-top: auto !important;
    border: none !important;
    width: fit-content;
}

.software-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin: 8px 0;
}

@media (max-width: 640px) {
    .software-grid,
    .video-grid,
    .soft-grid {
        grid-template-columns: 1fr !important;
    }
}


/* Contacto / Ubícanos */
.contact-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin: 20px 0 32px;
}
.contact-info {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 14px;
    padding: 22px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.05);
}
.contact-info h3 {
    margin-top: 0;
    color: #6927ff;
}
.contact-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin: 16px 0;
}
.contact-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6927ff, #e20b50);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.contact-details h4 {
    margin: 0 0 4px;
    font-size: 1rem;
    color: #1e1e1e;
}
.contact-details p {
    margin: 0;
    color: #555;
}
.radio-player-container {
    margin-top: 12px;
}



.software-card .software-image img[src*="ultraviewer"],
.software-card .software-image img[src*="teamviewer"] {
    width: 180px !important;
    height: auto !important;
    max-width: 90% !important;
    max-height: 120px !important;
    object-fit: contain;
    padding: 12px;
}

.software-image {
    min-height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9ff;
}


/* ===== Soft header: logo izquierda + info derecha ===== */
.soft-header {
    display: grid !important;
    grid-template-columns: 200px 1fr !important;
    gap: 24px 28px !important;
    align-items: center !important;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 16px;
    padding: 20px 24px;
    margin: 12px 0 28px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.05);
    overflow: hidden;
}
.soft-header > img {
    width: 180px !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: 110px !important;
    object-fit: contain !important;
    justify-self: center;
    background: #f5f7ff;
    border-radius: 12px;
    padding: 12px;
}
.soft-header > div {
    min-width: 0;
}
.soft-header h2 {
    margin: 0 0 10px !important;
    color: #6927ff;
    font-size: 1.45rem;
    line-height: 1.25;
}
.soft-header .meta-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 12px;
}
.soft-header .tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
}
.soft-header .tag-free { background: #e8f8ef; color: #1a7a45; }
.soft-header .tag-win { background: #fff3e0; color: #b36b00; }
.soft-header .tag-tool { background: #fde8ef; color: #c2185b; }
.soft-header p {
    margin: 0 0 14px !important;
    color: #555;
    line-height: 1.5;
}
.soft-header .btn-download,
.soft-header .btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 4px 8px 4px 0;
    padding: 10px 16px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.92rem;
}
.soft-header .btn-download {
    background: #6927ff;
    color: #fff !important;
}
.soft-header .btn-secondary {
    background: #fff;
    color: #6927ff !important;
    border: 2px solid #6927ff;
}
@media (max-width: 700px) {
    .soft-header {
        grid-template-columns: 1fr !important;
        text-align: center;
    }
    .soft-header .meta-tags,
    .soft-header > div {
        justify-content: center;
    }
    .soft-header .btn-download,
    .soft-header .btn-secondary {
        justify-content: center;
    }
}


/* ===== Publicidad solo laterales (SUBPÁGINAS, no index) ===== */
.page-with-ads {
    display: grid;
    grid-template-columns: 160px minmax(0, 1fr) 160px;
    gap: 20px;
    max-width: 1480px;
    margin: 0 auto;
    padding: 8px 16px 40px;
    align-items: start;
    box-sizing: border-box;
}
.page-main-col {
    min-width: 0;
    width: 100%;
}
.page-main-col .page-content {
    max-width: 100% !important;
    margin: 0 auto;
}
.page-main-col .page-banner {
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
}
.ad-sidebar {
    position: sticky;
    top: 90px;
    width: 160px;
    flex-shrink: 0;
}
.ad-sidebar-inner {
    width: 160px;
}
.ad-sidebar .adsbygoogle {
    display: block;
    width: 160px;
    min-height: 600px;
}
@media (max-width: 1100px) {
    .page-with-ads {
        grid-template-columns: 1fr;
        max-width: 1100px;
        padding: 8px 4% 40px;
    }
    .ad-sidebar { display: none !important; }
}
