@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

.ods-form-wrap *,
.ods-confirmacion * {
    box-sizing: border-box !important;
    font-family: 'Inter', sans-serif !important;
    text-transform: none !important;
    letter-spacing: normal !important;
}

.ods-form-wrap {
    max-width: 620px;
    margin: 0 auto;
    padding: 32px;
    background: #ffffff !important;
    border: none !important;
    border-radius: 20px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05) !important;
}

.ods-form-header {
    text-align: center;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 2px solid #E7F1E3;
}

.ods-form-header h2 {
    color: #27486B !important;
    font-size: 22px !important;
    font-weight: 700 !important;
    margin: 0 0 6px !important;
}

.ods-form-header p {
    color: #666;
    font-size: 14px;
    margin: 0;
}

.ods-campo {
    margin-bottom: 20px;
}

.ods-campo label {
    display: block !important;
    font-weight: 600 !important;
    margin-bottom: 7px !important;
    color: #27486B !important;
    font-size: 14px !important;
}

.ods-campo input,
.ods-campo select {
    width: 100% !important;
    max-width: none !important;
    height: auto !important;
    padding: 11px 14px !important;
    margin: 0 !important;
    border: 1.5px solid #C9D5C4 !important;
    border-radius: 8px !important;
    font-size: 15px !important;
    line-height: 1.4 !important;
    color: #333 !important;
    background: #fff !important;
    box-shadow: none !important;
    transition: border-color 0.2s, box-shadow 0.2s;
    appearance: none;
    -webkit-appearance: none;
}

.ods-campo select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%237FB173' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

.ods-campo input:focus,
.ods-campo select:focus {
    outline: none !important;
    border-color: #7FB173 !important;
    box-shadow: 0 0 0 3px rgba(127, 177, 115, 0.15) !important;
}

.ods-campo input::placeholder {
    color: #aaa !important;
    font-size: 14px !important;
}

.ods-fila-doble {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.ods-resumen-pago {
    background: #E7F1E3 !important;
    border: 1.5px solid #C9D5C4 !important;
    border-radius: 10px;
    padding: 16px 20px;
    margin: 24px 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.ods-resumen-pago .ods-resumen-label {
    font-size: 14px;
    color: #6F7C87;
    font-weight: 500;
}

.ods-resumen-pago strong {
    font-size: 24px;
    color: #27486B;
    font-weight: 700;
    margin-left: auto;
}

.ods-btn-pagar {
    background: #7FB173 !important;
    color: #fff !important;
    border: none !important;
    text-decoration: none !important;
    padding: 15px 32px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    width: 100% !important;
    max-width: none !important;
    box-sizing: border-box !important;
    transition: background 0.2s, transform 0.1s;
    letter-spacing: 0.3px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: 'Inter', sans-serif !important;
    text-transform: none !important;
}

.ods-btn-pagar:hover,
.ods-btn-pagar:focus,
.ods-btn-pagar:active {
    background: #6ea063 !important;
    color: #fff !important;
    border: none !important;
}

.ods-btn-pagar:active {
    transform: scale(0.99);
}

.ods-nota-seguridad {
    text-align: center;
    font-size: 12px;
    color: #888;
    margin-top: 14px;
}

.ods-nota-seguridad a {
    color: #7FB173 !important;
    text-decoration: none !important;
}

.ods-badge {
    display: inline-block;
    background: #E7F1E3 !important;
    color: #27486B !important;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ods-confirmacion {
    max-width: 620px;
    margin: 0 auto;
    text-align: center;
    padding: 48px 32px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.ods-icono {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 38px;
    margin: 0 auto 24px;
}

.ods-icono-exito {
    background: #E7F1E3;
    color: #4a8a3d;
}

.ods-icono-error {
    background: #FBE9E9;
    color: #C0392B;
}

.ods-exito h2 {
    color: #2d6a2d;
    font-size: 26px;
    margin: 0 0 12px;
}

.ods-anulado h2,
.ods-rechazado h2 {
    color: #C0392B;
    font-size: 26px;
    margin: 0 0 12px;
}

.ods-confirmacion p {
    color: #555;
    font-size: 15px;
    margin: 0 0 8px;
}

.ods-causas-lista {
    text-align: left;
    max-width: 420px;
    margin: 20px auto;
    background: #FBF3F3;
    border: 1px solid #F3D9D9;
    border-radius: 14px;
    padding: 18px 22px;
    list-style: none;
}

.ods-causas-lista li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
    font-size: 14px;
    color: #7a5252;
    line-height: 1.5;
}

.ods-causas-lista li:last-child {
    margin-bottom: 0;
}

.ods-causas-lista li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #C0392B;
}

.ods-detalle-tabla {
    margin: 28px auto;
    text-align: left;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #C9D5C4;
}

.ods-detalle-tabla table {
    width: 100%;
    border-collapse: collapse;
}

.ods-detalle-tabla td {
    padding: 12px 16px;
    border-bottom: 1px solid #E7F1E3;
    font-size: 14px;
}

.ods-detalle-tabla tr:last-child td {
    border-bottom: none;
}

.ods-detalle-tabla tr:nth-child(even) td {
    background: #F7F7F7;
}

.ods-detalle-tabla tr td:first-child {
    color: #6F7C87;
    font-weight: 500;
    width: 45%;
}

.ods-detalle-tabla tr td:last-child {
    color: #333;
    font-weight: 600;
}

.ods-nota {
    font-size: 13px;
    color: #888;
    margin-top: 20px;
    line-height: 1.5;
}

.ods-nota a {
    color: #27486B !important;
    text-decoration: none !important;
    font-weight: 500;
}

.ods-btn-volver {
    display: inline-block;
    margin-top: 24px;
    background: #27486B !important;
    color: #fff !important;
    border: none !important;
    padding: 13px 32px;
    border-radius: 8px;
    text-decoration: none !important;
    font-weight: 600;
    font-size: 15px;
    transition: background 0.2s;
}

.ods-btn-volver:hover,
.ods-btn-volver:focus,
.ods-btn-volver:active {
    background: #1d374f !important;
    color: #fff !important;
    text-decoration: none !important;
}

.ods-alerta {
    padding: 16px 20px;
    border-radius: 8px;
    margin: 20px 0;
    font-size: 15px;
    text-align: center;
}

.ods-error {
    background: #FBE9E9;
    border: 1px solid #F3D9D9;
    color: #C0392B;
}

.ods-alerta a {
    color: #C0392B !important;
    font-weight: 600;
}

.ods-divisor {
    border: none;
    border-top: 1px solid #E7F1E3;
    margin: 20px 0;
}

@media (max-width: 520px) {

    .ods-form-wrap,
    .ods-confirmacion {
        padding: 20px 16px;
        border-radius: 8px;
        box-shadow: none;
    }

    .ods-fila-doble {
        grid-template-columns: 1fr;
    }

    .ods-resumen-pago {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .ods-resumen-pago strong {
        margin-left: 0;
    }
}


.ods-pago-page {
    margin: 0;
    padding: 0;
    background: #D1E4DD !important;
}

.ods-pago-page .ods-site-content {
    background: #D1E4DD !important;
    padding: 40px 20px 60px;
    min-height: 40vh;
}

.ods-site-header {
    background-color: #C0DDAC !important;
    background-image: url("https://redcompromisoconeldesarrollosustentable.uestatales.cl/wp-content/uploads/2024/10/fondo_2.png") !important;
    width: 100%;
}

.ods-header-inner {
    max-width: 1300px;
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
}

.ods-logo-link {
    display: block;
    line-height: 0;
    flex: 0 0 42.346%;
    max-width: 42.346%;
}

.ods-logo-img {
    display: block;
    width: 100%;
    height: auto;
}

.ods-ministerio {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 23.59%;
    max-width: 23.59%;
}

.ods-ministerio-img {
    display: block;
    width: 50%;
    height: auto;
}

.ods-social {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: flex-start;
    flex: 0 0 36%;
    max-width: 36%;
}

.ods-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #649F75 !important;
    color: #fff !important;
    text-decoration: none !important;
    font-size: 14px;
    transition: background 0.2s;
}

.ods-social a:hover {
    background: #547f5c !important;
}

.ods-site-nav {
    background-color: #649F75 !important;
    width: 100%;
}

.ods-nav-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
}

.ods-site-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0;
}

.ods-site-nav ul li a {
    display: block;
    padding: 13px 16px;
    color: #fff !important;
    text-decoration: none !important;
    font-size: 13px;
    font-weight: 600;
    transition: background 0.2s;
    white-space: nowrap;
}

.ods-site-nav ul li a:hover,
.ods-site-nav ul li.current-menu-item a {
    background: rgba(0, 0, 0, 0.15) !important;
}

.ods-site-footer {
    background-color: #5b966d !important;
    border-top: 10px solid #649F75 !important;
    padding: 0 0 20px;
    margin-top: 60px;
    width: 100%;
}

.ods-footer-logo-img {
    display: block;
    width: 80%;
    max-width: 80%;
    height: auto;
    margin: 0 auto;
}

.ods-footer-texto {
    max-width: 1200px;
    margin: 14px auto 0;
    padding: 0 24px;
    text-align: center;
}

.ods-footer-texto p {
    color: rgba(255, 255, 255, 0.85) !important;
    font-size: 12px;
    margin: 0;
    line-height: 1.5;
}

@media (max-width: 600px) {
    .ods-header-inner {
        justify-content: center;
        flex-wrap: wrap;
        padding: 16px;
    }

    .ods-logo-link,
    .ods-ministerio,
    .ods-social {
        flex: 0 0 auto;
        max-width: none;
    }

    .ods-logo-img {
        width: 220px;
        height: auto;
    }

    .ods-ministerio-img {
        width: 70px;
        height: auto;
    }

    .ods-site-nav ul li a {
        padding: 10px 12px;
        font-size: 12px;
    }
}


.ods-combo {
    position: relative !important;
}

.ods-combo-lista {
    display: none;
    position: absolute !important;
    top: calc(100% + 4px) !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 9999 !important;
    max-height: 240px;
    overflow-y: auto;
    margin: 0 !important;
    padding: 6px !important;
    list-style: none !important;
    background: #fff !important;
    border: 1.5px solid #C9D5C4 !important;
    border-radius: 10px !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.10) !important;
}

.ods-combo-lista.ods-combo-abierta {
    display: block;
}

.ods-combo-lista li {
    padding: 9px 12px !important;
    margin: 0 !important;
    border-radius: 7px !important;
    font-size: 14px !important;
    color: #27486B !important;
    list-style: none !important;
    cursor: pointer;
    transition: background 0.12s ease;
}

.ods-combo-lista li:hover,
.ods-combo-lista li.ods-combo-activo {
    background: #E7F1E3 !important;
}

.ods-combo-lista::-webkit-scrollbar {
    width: 8px;
}

.ods-combo-lista::-webkit-scrollbar-thumb {
    background: #C9D5C4;
    border-radius: 4px;
}

.ods-combo-tipo .ods-combo-input {
    cursor: pointer;
    background: #fff !important;
}

.ods-combo::after {
    content: "";
    position: absolute;
    right: 14px;
    top: 50%;
    width: 10px;
    height: 10px;
    margin-top: -3px;
    border-right: 2px solid #7FB173;
    border-bottom: 2px solid #7FB173;
    transform: rotate(45deg);
    transform-origin: center;
    pointer-events: none;
    transition: transform 0.18s ease, margin-top 0.18s ease;
}

.ods-combo.ods-combo-desplegado::after {
    transform: rotate(-135deg);
    margin-top: 1px;
}

.ods-combo .ods-combo-input {
    padding-right: 38px !important;
}