/* Curso Agrario - Base visual del portal 2.0. Scoped to the site or selected groups. */
:is(.cda-brand, .editor-styles-wrapper) {
    --cda-navy: #000030;
    --cda-gold: #B08A3E;
    --cda-white: #FFFFFF;
    --cda-background: #F4F5F8;
    --cda-ink: #22263A;
    --cda-muted: #535D70;
    --cda-border: #D7DDE7;
    --cda-radius: 8px;
    font-family: 'Source Sans 3', Arial, sans-serif !important;
    font-weight: 500 !important;
    font-size: 16px;
    line-height: 1.6;
    color: var(--cda-ink);
    background-color: var(--cda-background);
    font-synthesis: none;
    overflow-wrap: break-word;
}
:is(.cda-brand, .editor-styles-wrapper) :is(p, li, dt, dd, td, th, input, textarea, select, button, label, .wp-block-button__link, .wp-element-button, .elementor-button) {
    font-family: 'Source Sans 3', Arial, sans-serif !important;
}
:is(.cda-brand, .editor-styles-wrapper) :is(p, li, dt, dd, td, input, textarea, select) {
    font-weight: 500 !important;
}
:is(.cda-brand, .editor-styles-wrapper) :is(p, li) {
    font-size: 16px;
    line-height: 1.6;
}
:is(.cda-brand, .editor-styles-wrapper) :is(h1, h2, h3, h4, h5, h6, .wp-block-post-title, .elementor-heading-title) {
    font-family: Merriweather, Georgia, serif !important;
    font-weight: 700 !important;
    font-style: normal;
    line-height: 1.3;
    color: var(--cda-navy);
    letter-spacing: -0.015em;
    text-transform: none;
}
:is(.cda-brand, .editor-styles-wrapper) h1 {
    font-size: clamp(30px, 4.2vw, 48px);
    line-height: 1.2;
}
:is(.cda-brand, .editor-styles-wrapper) h2 {
    font-size: clamp(24px, 3vw, 32px);
}
:is(.cda-brand, .editor-styles-wrapper) h3 {
    font-size: clamp(22px, 2.5vw, 26px);
}
:is(.cda-brand, .editor-styles-wrapper) h4 { font-size: 22px; }
:is(.cda-brand, .editor-styles-wrapper) :is(h5, h6) { font-size: 20px; }
:is(.cda-brand, .editor-styles-wrapper) :is(strong, b) { font-weight: 600; }
:is(.cda-brand, .editor-styles-wrapper) :is(small, figcaption, .has-small-font-size, .cda-help) {
    font-family: 'Source Sans 3', Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
}
:is(.cda-brand, .editor-styles-wrapper) .cda-help { color: var(--cda-muted); }
:is(.cda-brand, .editor-styles-wrapper) a:not(.wp-element-button, .wp-block-button__link, .elementor-button, .cda-button, .button) {
    color: var(--cda-navy);
    text-underline-offset: 0.18em;
}
:is(.cda-brand, .editor-styles-wrapper) :is(a, button, input, select, textarea):focus-visible {
    outline: 2px solid var(--cda-navy);
    outline-offset: 3px;
    box-shadow: 0 0 0 3px var(--cda-white);
}
:is(.cda-brand, .editor-styles-wrapper) :is(label, th) {
    font-weight: 600 !important;
    font-size: 16px;
}
:is(.cda-brand, .editor-styles-wrapper) :is(input:not([type]), input[type='text'], input[type='email'], input[type='tel'], input[type='password'], input[type='number'], input[type='search'], input[type='url'], input[type='date'], input[type='time'], input[type='datetime-local'], select, textarea) {
    display: block;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 48px;
    margin: 8px 0 16px;
    padding: 10px 14px;
    border: 1px solid #9DA8BB;
    border-radius: var(--cda-radius);
    background: var(--cda-white);
    color: var(--cda-ink);
    font-size: 16px;
    font-weight: 500;
    line-height: 1.5;
}
:is(.cda-brand, .editor-styles-wrapper) textarea { min-height: 140px; }
:is(.cda-brand, .editor-styles-wrapper) :is(input, textarea)::placeholder {
    color: var(--cda-muted);
    opacity: 1;
}
:is(.cda-brand, .editor-styles-wrapper) :is(input[type='checkbox'], input[type='radio']) {
    accent-color: var(--cda-navy);
    width: 18px;
    height: 18px;
}
:is(.cda-brand, .editor-styles-wrapper) :is(.wp-element-button, .wp-block-button__link, .elementor-button, .cda-button, input[type='submit'], button[type='submit']) {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    max-width: 100%;
    padding: 12px 24px;
    border: 1px solid var(--cda-navy);
    border-radius: var(--cda-radius);
    background: var(--cda-navy);
    color: var(--cda-white);
    font-size: 16px;
    font-weight: 600 !important;
    line-height: 1.4;
    text-align: center;
    text-decoration: none;
    white-space: normal;
    cursor: pointer;
}
:is(.cda-brand, .editor-styles-wrapper) :is(.wp-element-button, .wp-block-button__link, .elementor-button, .cda-button, input[type='submit'], button[type='submit']):hover {
    background: #171750;
    color: var(--cda-white);
    border-color: #171750;
}
:is(.cda-brand, .editor-styles-wrapper) :is(.cda-button--secondary, .is-style-cda-secundario .wp-block-button__link, .is-style-outline .wp-block-button__link) {
    background: var(--cda-white);
    color: var(--cda-navy);
    border: 1px solid var(--cda-navy);
}
:is(.cda-brand, .editor-styles-wrapper) :is(.cda-button--secondary, .is-style-cda-secundario .wp-block-button__link, .is-style-outline .wp-block-button__link):hover {
    background: var(--cda-background);
    color: var(--cda-navy);
    border-color: var(--cda-navy);
}
:is(.cda-brand, .editor-styles-wrapper) :is(.cda-button--gold, .is-style-cda-dorado .wp-block-button__link) {
    background: var(--cda-gold);
    color: var(--cda-navy);
    border-color: var(--cda-gold);
}
:is(.cda-brand, .editor-styles-wrapper) :is(.cda-button--gold, .is-style-cda-dorado .wp-block-button__link):hover {
    background: #C09B50;
    color: var(--cda-navy);
    border-color: #C09B50;
}
:is(.cda-brand, .editor-styles-wrapper) :is(button, input, select, textarea):disabled {
    opacity: .65;
    cursor: not-allowed;
}
:is(.cda-brand, .editor-styles-wrapper) :is(.cda-hero, .is-style-cda-azul) {
    padding: clamp(24px, 5vw, 48px);
    border-radius: var(--cda-radius);
    background: var(--cda-navy);
    color: var(--cda-white);
}
:is(.cda-brand, .editor-styles-wrapper) :is(.cda-hero, .is-style-cda-azul) :is(h1, h2, h3, h4, h5, h6, p, li, a:not(.wp-block-button__link, .wp-element-button, .elementor-button, .cda-button)) {
    color: var(--cda-white);
}
:is(.cda-brand, .editor-styles-wrapper) :is(.cda-hero, .is-style-cda-azul) .cda-accent {
    color: var(--cda-gold);
    font-weight: 600;
}
:is(.cda-brand, .editor-styles-wrapper) :is(.cda-hero, .is-style-cda-azul) :is(a, button, input, select, textarea):focus-visible {
    outline-color: var(--cda-gold);
}
:is(.cda-brand, .editor-styles-wrapper) :is(.cda-card, .is-style-cda-tarjeta) {
    padding: clamp(24px, 4vw, 32px);
    border: 1px solid var(--cda-border);
    border-radius: var(--cda-radius);
    background: var(--cda-white);
    color: var(--cda-ink);
}
:is(.cda-brand, .editor-styles-wrapper) .cda-message {
    padding: 16px 20px;
    border-left: 4px solid var(--cda-navy);
    background: var(--cda-white);
    color: var(--cda-ink);
}
:is(.cda-brand, .editor-styles-wrapper) .cda-message--error { border-left-color: #B3261E; }
:is(.cda-brand, .editor-styles-wrapper) .cda-message--success { border-left-color: #1D6B4F; }
@media (max-width: 600px) {
    :is(.cda-brand, .editor-styles-wrapper) h1 { font-size: 32px; }
    :is(.cda-brand, .editor-styles-wrapper) h2 { font-size: 26px; }
}
