/* Cullera Natura - página específica */

/* Tamaños de fuente iguales a la sección Cullera Natura de la página principal */
.cn-page,
.cn-page p {
    font-size: 1.1rem;
    line-height: 1.9;
}

.cn-page .section-subtitle {
    font-size: 1.2rem;
    color: #666;
}

.cn-page .benefit-card h3,
.cn-page .cn-info-card h4 {
    font-size: 1.3rem;
}

.cn-page .benefit-card h3 {
    line-height: 1.2;
}

.cn-page .benefit-card p,
.cn-page .cn-info-card p {
    font-size: 1rem;
    line-height: 1.6;
}

.cn-page .cn-ruta-desc {
    font-size: 1rem;
}

.cn-page .cn-ruta-nombre {
    font-size: 1.1rem;
}

.cn-page .cn-organiza {
    font-size: 1rem;
}

.cn-page .cn-rutas-intro {
    font-size: 1.1rem;
}

/* Bloque visual intro: imagen con marco y caption */
.cn-intro-visual {
    margin-top: 6rem;
    margin-bottom: 0.5rem;
}

.cn-intro-visual--spaced {
    margin-top: 1rem;
    margin-bottom: 5rem;
}

.cn-intro-visual__frame {
    max-width: 900px;
    margin: 0 auto;
    padding: 6px;
    background: #e8e8e8;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.cn-intro-visual__img {
    display: block;
    max-width: 100%;
    height: auto;
    width: 100%;
    object-fit: contain;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.cn-intro-visual__caption {
    padding: 1rem 1.25rem;
    background: #2E7D32;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.cn-intro-visual__label {
    font-weight: 700;
    font-size: 1.1rem;
    color: #fff;
    letter-spacing: 0.05em;
}

.cn-intro-visual__tagline {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

@media (max-width: 600px) {
    .cn-intro-visual__frame {
        border-radius: 10px;
        padding: 4px;
    }
}

.section-subtitle {
    font-size: 1.25rem;
    color: #555;
    margin-top: -0.5rem;
    margin-bottom: 1rem;
}

/* Grid de tarjetas (qué es / por qué participar) */
.cn-benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.cn-benefits-grid .benefit-card {
    margin-bottom: 0;
}

/* Bloques Cuándo / Dónde */
.cn-info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.cn-info-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 1.5rem;
    border-top: 4px solid var(--primary-color);
    text-align: center;
}

.cn-info-card i {
    font-size: 1.75rem;
    color: var(--primary-dark);
    margin-bottom: 0.75rem;
    display: block;
}

.cn-info-card h4 {
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.cn-info-card p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Sección calendario de rutas */
.cn-rutas-section {
    margin-top: -2rem;
}

.cn-rutas-intro {
    margin-bottom: 1.5rem;
}

.cn-rutas-list {
    list-style: none;
    padding: 0;
    margin: 0;
    margin-top: 7rem;
}

.cn-ruta-item {
    display: flex;
    align-items: stretch;
    gap: 0;
    margin-bottom: 2rem; /* Aumentado de 1.25rem a 2rem para dar más espacio entre cards */
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08),
                2px 2px 12px rgba(0, 0, 0, 0.15),
                -2px -2px 12px rgba(0, 0, 0, 0.1),
                2px -2px 12px rgba(0, 0, 0, 0.1),
                -2px 2px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cn-ruta-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1),
                4px 4px 20px rgba(0, 0, 0, 0.2),
                -4px -4px 20px rgba(0, 0, 0, 0.15),
                4px -4px 20px rgba(0, 0, 0, 0.15),
                -4px 4px 20px rgba(0, 0, 0, 0.15);
}

.cn-ruta-fecha {
    flex: 0 0 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 0.75rem;
    background: var(--primary-dark);
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    line-height: 1.25;
    text-align: center;
}

.cn-ruta-content {
    flex: 1;
    min-width: 0;
    padding: 1.75rem 1.5rem 1.25rem; /* Aumentado el padding-top de 1.25rem a 1.75rem */
}

.cn-ruta-nombre {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    color: #1a1a1a;
    font-weight: 700;
    line-height: 1.3;
}

.cn-ruta-desc {
    margin: 0;
    font-size: 0.95rem;
    color: #555;
    line-height: 1.5;
}

/* Ruta realizada: badge a la derecha y fecha con color distinto */
.cn-ruta-item--realizada .cn-ruta-fecha {
    background: #546E7A;
    color: rgba(255, 255, 255, 0.95);
}

.cn-ruta-badge {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    align-self: center;
    margin-right: 1rem;
    padding: 0.35rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #1B5E20;
    background: #E8F5E9;
    border-radius: 6px;
}

.cn-ruta-badge::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
}

.cn-ruta-badge--link {
    text-decoration: none;
    background: var(--secondary-color);
    color: rgb(46, 46, 44);
    box-shadow: 0 4px 12px rgba(255, 160, 0, 0.3);
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.cn-ruta-badge--link::before {
    content: none;
}

.cn-ruta-badge--link:hover {
    background: var(--secondary-dark);
    color: rgb(46, 46, 44);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 111, 0, 0.4);
}

/* Badge Organiza / Colaboran */
/* Badge institucional Organiza / Colaboran */
.cn-organiza {
    margin-top: 2.5rem;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    justify-content: center;
    gap: 0;
    max-width: 560px;
    min-width: 280px;
    padding-top: 4px;
    background: linear-gradient(180deg, rgba(232, 245, 233, 0.6) 0%, rgba(241, 248, 241, 0.95) 100%);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 0 0 1px rgba(46, 125, 50, 0.2),
                0 8px 24px rgba(0, 0, 0, 0.12),
                0 4px 12px rgba(0, 0, 0, 0.08);
}

.cn-organiza::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
}

.cn-organiza__block {
    flex: 1;
    min-width: 200px;
    padding: 1.25rem 1.5rem;
    text-align: center;
}

.cn-organiza__divider {
    width: 1px;
    min-height: 100%;
    background: linear-gradient(to bottom, transparent, rgba(46, 125, 50, 0.25), transparent);
}

.cn-organiza__label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--primary-dark);
    margin-bottom: 0.35rem;
}

.cn-organiza__name {
    display: block;
    font-size: 0.95rem;
    color: #333;
    line-height: 1.4;
    font-weight: 500;
}

@media (max-width: 520px) {
    .cn-organiza {
        flex-direction: column;
    }

    .cn-organiza__divider {
        width: 100%;
        height: 1px;
        min-height: 0;
        background: linear-gradient(to right, transparent, rgba(46, 125, 50, 0.25), transparent);
    }
}

.cn-page .cta-section {
    margin-top: 5rem;
    padding: 2rem 2rem;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35),
                0 4px 16px rgba(0, 0, 0, 0.25),
                4px 4px 20px rgba(0, 0, 0, 0.2),
                -2px -2px 12px rgba(0, 0, 0, 0.15);
}

@media (max-width: 768px) {
    .cn-page .section-header h2 {
        margin-top: -2rem;
    }
    .cn-page .section-header .underline {
        margin-top: -0.5rem;
    }
}

@media (max-width: 600px) {
    .cn-ruta-item {
        flex-direction: column;
    }

    .cn-ruta-fecha {
        flex: none;
        min-height: auto;
        padding: 0.75rem 1rem;
    }

    .cn-ruta-content {
        padding: 1rem 1.25rem;
    }

    .cn-ruta-badge {
        margin: 0 auto 1.25rem;
        align-self: center;
        justify-content: center;
        width: fit-content;
    }
}
