/* ==============================================================
   ESTILOS PARA LANDINGS Y HOME DE UNIDADES POR ZONA CORPORAL (CRO)
   Clínica JANDJ - L'Eliana
   ============================================================== */

/* --- HOME: SECCIÓN DE 4 UNIDADES CENTRALES --- */
.cjj-unidades-home-section {
    padding: 32px 0 40px 0;
    background: #f8fafc;
}

.cjj-unidades-home-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin: 22px 0 32px 0;
}

@media (max-width: 1199px) {
    .cjj-unidades-home-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 640px) {
    .cjj-unidades-home-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }
}

.cjj-unit-card {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-decoration: none !important;
    color: inherit;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    height: 100%;
}

.cjj-unit-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 30px rgba(0, 122, 50, 0.12);
    border-color: #10b981;
}

.cjj-unit-img-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 2.8;
    background: #022c22;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cjj-unit-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.cjj-unit-card:hover .cjj-unit-img-wrap img {
    transform: scale(1.04);
}

.cjj-unit-body {
    padding: 22px 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.cjj-unit-tag {
    display: inline-block;
    align-self: flex-start;
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    padding: 3px 10px;
    border-radius: 12px;
    margin-bottom: 10px;
}

.cjj-unit-title {
    font-size: 18px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 10px 0;
    line-height: 1.3;
}

.cjj-unit-desc {
    font-size: 14px;
    color: #64748b;
    line-height: 1.55;
    margin: 0 0 18px 0;
    flex-grow: 1;
}

.cjj-unit-cta {
    font-size: 13.5px;
    font-weight: 700;
    color: #007a32;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    transition: gap 0.2s ease, color 0.2s ease;
}

.cjj-unit-card:hover .cjj-unit-cta {
    color: #047857;
    gap: 12px;
}

/* --- BLOQUE SECUNDARIO DE FORMULARIO COMPACTO EN HOME --- */
.cjj-home-compact-form-wrap {
    max-width: 820px;
    margin: 35px auto 25px auto;
    background: #ffffff;
    border: 1.5px solid #d1fae5;
    border-radius: 16px;
    padding: 30px 28px;
    box-shadow: 0 8px 24px rgba(0, 122, 50, 0.05);
}

.cjj-home-compact-form-wrap h3 {
    font-size: 21px;
    font-weight: 800;
    color: #0f172a;
    margin-top: 0;
    margin-bottom: 8px;
    text-align: center;
}

.cjj-home-compact-form-wrap p {
    font-size: 14.5px;
    color: #475569;
    text-align: center;
    max-width: 650px;
    margin: 0 auto 20px auto;
}

.cjj-form-grid-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 14px;
    margin-bottom: 14px;
}

@media (max-width: 767px) {
    .cjj-form-grid-3 {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

.cjj-form-input,
.cjj-form-select {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid #cbd5e1;
    border-radius: 10px;
    font-size: 14.5px;
    color: #1e293b;
    background: #ffffff;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}

.cjj-form-input:focus,
.cjj-form-select:focus {
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

.cjj-form-legal-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 8px;
}

.cjj-form-legal-row label {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.cjj-btn-primary-form {
    background: linear-gradient(135deg, #008c35 0%, #006827 100%);
    color: #ffffff;
    font-weight: 700;
    font-size: 15px;
    border: none;
    border-radius: 10px;
    padding: 12px 24px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 122, 50, 0.25);
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.cjj-btn-primary-form:hover {
    background: linear-gradient(135deg, #007a2e 0%, #005520 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 122, 50, 0.35);
    color: #ffffff;
}

/* --- BLOQUE DE OTRAS ESPECIALIDADES (HOME SECUNDARIO) --- */
.cjj-other-services-wrap {
    margin-top: 45px;
    padding-top: 35px;
    border-top: 1px dashed #cbd5e1;
}

.cjj-other-services-title {
    font-size: 18px;
    font-weight: 700;
    color: #334155;
    text-align: center;
    margin-bottom: 18px;
}

.cjj-other-services-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    max-width: 950px;
    margin: 0 auto;
}

.cjj-pill-item {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #334155;
    font-size: 13.5px;
    font-weight: 600;
    padding: 7px 14px;
    border-radius: 20px;
    text-decoration: none !important;
    transition: all 0.2s ease;
}

.cjj-pill-item:hover {
    background: #ecfdf5;
    border-color: #10b981;
    color: #065f46;
    transform: translateY(-1px);
}

/* --- ESTILOS COMPARTIDOS PARA LANDINGS DE UNIDAD --- */
.cjj-landing-hero {
    background: linear-gradient(135deg, #022c22 0%, #064e3b 100%);
    color: #ffffff;
    padding: 70px 20px 60px 20px;
    text-align: center;
    position: relative;
}

.cjj-landing-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: #6ee7b7;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 6px 16px;
    border-radius: 30px;
    margin-bottom: 18px;
}

.cjj-landing-hero h1 {
    font-size: 38px;
    font-weight: 800;
    color: #ffffff;
    margin: 0 auto 16px auto;
    max-width: 900px;
    line-height: 1.25;
}

@media (max-width: 767px) {
    .cjj-landing-hero h1 {
        font-size: 27px;
    }
}

.cjj-landing-hero p.hero-lead {
    font-size: 18px;
    color: #cbd5e1;
    max-width: 760px;
    margin: 0 auto 28px auto;
    line-height: 1.6;
}

.cjj-landing-hero-ctas {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 30px;
}

.cjj-btn-cta-hero {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff !important;
    font-weight: 700;
    font-size: 16px;
    padding: 13px 28px;
    border-radius: 30px;
    text-decoration: none !important;
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.35);
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 9px;
}

.cjj-btn-cta-hero:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.45);
}

.cjj-btn-cta-phone {
    background: #ffffff;
    color: #065f46 !important;
    border: 1.5px solid #a7f3d0;
    font-weight: 700;
    font-size: 16px;
    padding: 13px 26px;
    border-radius: 30px;
    text-decoration: none !important;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 9px;
}

.cjj-btn-cta-phone:hover {
    background: #ecfdf5;
    transform: translateY(-2px);
}

.cjj-pathology-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-left: 4px solid #10b981;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
    transition: all 0.2s ease;
    height: 100%;
}

.cjj-pathology-card:hover {
    transform: translateY(-2px);
    border-color: #cbd5e1;
    border-left-color: #047857;
    box-shadow: 0 6px 16px rgba(0, 122, 50, 0.08);
}

.cjj-pathology-card h3 {
    font-size: 17px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 8px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cjj-pathology-card h3 i {
    color: #059669;
    font-size: 15px;
}

.cjj-pathology-card p {
    font-size: 14.5px;
    color: #475569;
    line-height: 1.55;
    margin: 0;
}

