/**
 * Cosa Nuestra SEO Suite — Public CSS
 * Templates: single-cn_event.php, landing-en.php, landing-fr.php
 */

/* ==========================================================================
   EVENTO SINGLE
   ========================================================================== */

.cn-event-hero {
    padding: 48px 20px 0;
    display: flex;
    justify-content: center;
}

.cn-event-hero img {
    display: block;
    max-width: 480px;
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.cn-event-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.cn-event-header {
    margin-bottom: 32px;
}

.cn-event-title {
    font-size: clamp(26px, 5vw, 48px);
    margin-bottom: 16px;
    line-height: 1.2;
}

.cn-event-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 24px;
}

.cn-event-meta-label {
    opacity: .6;
    font-size: 13px;
    display: block;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cn-event-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 32px;
}

.cn-btn-primary {
    display: inline-block;
    padding: 14px 28px;
    background: #e8192c !important;
    background-color: #e8192c !important;
    color: #fff !important;
    font-weight: 700;
    text-decoration: none !important;
    border-radius: 4px;
    text-align: center;
    box-sizing: border-box;
}

.cn-btn-secondary {
    display: inline-block;
    padding: 14px 32px;
    border: 2px solid currentColor;
    font-weight: 700;
    text-decoration: none !important;
    border-radius: 4px;
    text-align: center;
    box-sizing: border-box;
}

.cn-event-content {
    font-size: 17px;
    line-height: 1.8;
    margin-bottom: 40px;
}

.cn-event-footer {
    border-top: 1px solid rgba(255, 255, 255, .1);
    padding-top: 32px;
    margin-top: 32px;
}

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

.cn-footer-contact p {
    margin: 0;
    opacity: .6;
    font-size: 14px;
}

.cn-footer-contact a {
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
}

.cn-footer-back {
    opacity: .6;
    font-size: 14px;
    text-decoration: none;
}

/* ==========================================================================
   LANDINGS INTERNACIONALES
   ========================================================================== */

.cn-landing {
    max-width: 900px;
    margin: 80px auto 60px;
    padding: 0 24px;
    box-sizing: border-box;
}

.cn-landing h1 {
    font-size: clamp(26px, 5vw, 48px);
    margin-bottom: 20px;
    line-height: 1.2;
}

.cn-landing h2 {
    font-size: clamp(20px, 3vw, 32px);
    margin-bottom: 16px;
}

.cn-landing > p {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 32px;
}

.cn-landing ul {
    font-size: 17px;
    line-height: 2;
    margin-bottom: 40px;
    padding-left: 24px;
}

.cn-landing-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 48px;
}

.cn-btn-red {
    display: inline-block;
    padding: 14px 32px;
    background: #e8192c;
    color: #fff !important;
    font-weight: 700;
    text-decoration: none !important;
    border-radius: 4px;
    text-align: center;
    box-sizing: border-box;
}

.cn-btn-outline {
    display: inline-block;
    padding: 14px 32px;
    border: 2px solid currentColor;
    font-weight: 700;
    text-decoration: none !important;
    border-radius: 4px;
    text-align: center;
    box-sizing: border-box;
}

.cn-events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 48px;
}

.cn-event-card {
    display: block;
    text-decoration: none !important;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .1);
}

.cn-event-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.cn-event-card-body {
    padding: 12px;
}

.cn-event-card-title {
    display: block;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 4px;
}

.cn-event-card-date {
    font-size: 12px;
    opacity: .6;
}

.cn-faq-section h2 {
    margin-bottom: 24px;
}

.cn-faq-item {
    margin-bottom: 24px;
}

.cn-faq-item h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.cn-faq-item p {
    font-size: 16px;
    line-height: 1.7;
    opacity: .85;
}

.cn-final-cta {
    text-align: center;
    padding: 40px 20px;
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 12px;
    margin-bottom: 40px;
    box-sizing: border-box;
}

.cn-final-cta-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
}

.cn-final-cta-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

/* ==========================================================================
   RESPONSIVE — TABLET (max 768px)
   ========================================================================== */

@media (max-width: 768px) {
    .cn-landing {
        margin-top: 40px;
    }
    .cn-event-hero {
        padding-top: 32px;
    }
}

/* ==========================================================================
   RESPONSIVE — MÓVIL (max 600px)
   ========================================================================== */

@media (max-width: 600px) {

    /* --- Evento single --- */
    .cn-event-hero {
        padding: 20px 16px 0;
    }

    .cn-event-container {
        margin: 20px auto;
        padding: 0 16px;
    }

    .cn-event-ctas {
        flex-direction: column;
    }

    .cn-btn-primary,
    .cn-btn-secondary {
        width: 100%;
        padding: 16px 20px;
    }

    .cn-event-footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    /* --- Landings --- */
    .cn-landing {
        margin: 20px auto 32px;
        padding: 0 16px;
    }

    .cn-landing-ctas {
        flex-direction: column;
        margin-bottom: 32px;
    }

    .cn-btn-red,
    .cn-btn-outline {
        width: 100%;
        padding: 16px 20px;
    }

    .cn-events-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .cn-final-cta {
        padding: 24px 16px;
    }

    .cn-final-cta-btns {
        flex-direction: column;
    }

    .cn-final-cta-btns .cn-btn-red,
    .cn-final-cta-btns .cn-btn-outline {
        width: 100%;
    }
}

/* ==========================================================================
   RESPONSIVE — MÓVIL PEQUEÑO (max 380px)
   ========================================================================== */

@media (max-width: 380px) {
    .cn-events-grid {
        grid-template-columns: 1fr;
    }

    .cn-event-card img {
        height: 160px;
    }
}
