#ca-contenedor {
    max-width: 600px;
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    margin: 20px auto;
    border: 1px solid #e0e0e0;
}

/* Header Selector Verde */
.ca-header-select select {
    width: 100%;
    background-color: #d1e7dd;
    /* Verde claro */
    color: #0f5132;
    padding: 15px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    appearance: none;
    /* Quita flecha default fea */
    -webkit-appearance: none;
    background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%230f5132%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E');
    background-repeat: no-repeat;
    background-position: right 15px top 50%;
    background-size: 12px auto;
    cursor: pointer;
}

.ca-titulo-input {
    display: block;
    color: #002e5d;
    /* Azul oscuro */
    font-size: 18px;
    font-weight: 700;
    margin-top: 20px;
    text-transform: uppercase;
}

.ca-subtitulo {
    font-size: 13px;
    color: #666;
    margin: 5px 0 15px 0;
}

/* Grupo Input + Moneda */
.ca-input-moneda-group {
    display: flex;
    align-items: flex-end;
    gap: 15px;
}

.ca-input-moneda-group input {
    flex-grow: 1;
    padding: 12px;
    font-size: 18px;
    border: 1px solid #ccc;
    border-radius: 4px;
    text-align: right;
}

.ca-moneda-switch {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.ca-tasa-label {
    font-size: 11px;
    font-weight: bold;
    margin-bottom: 4px;
}

.ca-botones-moneda {
    display: flex;
    border: 1px solid #002e5d;
    border-radius: 4px;
    overflow: hidden;
}

.ca-botones-moneda .ca-btn-moneda {
    all: unset;
    /* elimina estilos heredados del theme */
    box-sizing: border-box;
    background: #fff;
    color: #002e5d;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    font-weight: bold;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.ca-botones-moneda .ca-btn-moneda.active {
    background: #002e5d;
    color: #fff;
}

.ca-resumen-monto {
    margin-top: 10px;
    font-weight: bold;
    color: #002e5d;
    font-size: 16px;
}

.ca-input-simple {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-bottom: 15px;
}

/* Botones Servicio (Azul vs Blanco) */
.ca-tipo-servicio-group {
    display: flex;
    gap: 15px;
    margin: 25px 0;
}

.ca-btn-servicio {
    flex: 1;
    padding: 15px;
    border: 1px solid #ddd;
    background: #fff;
    color: #333;
    font-weight: bold;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.ca-btn-servicio.active {
    background: #002e5d;
    color: #fff;
    border-color: #002e5d;
}

#ca-btn-calcular {
    width: 100%;
    padding: 15px;
    background-color: #d1e7dd;
    /* Verde claro boton */
    color: #0f5132;
    border: none;
    border-radius: 6px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
}

#ca-btn-calcular:hover {
    background-color: #badbcc;
}

/* Resultados */
#ca-resultados {
    margin-top: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 6px;
}

.ca-fila {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
    border-bottom: 1px solid #e9ecef;
}

.ca-fila.total {
    border-bottom: none;
    font-size: 1.2em;
    color: #002e5d;
    font-weight: 800;
    margin-top: 10px;
}


/* ACCIONES */
.ca-acciones {
    display: flex;
    gap: 15px;
    margin-top: 25px;
    justify-content: center;
}

.ca-btn-accion {
    padding: 10px 20px;
    background: #002e5d;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.ca-btn-accion.outline {
    background: transparent;
    border: 1px solid #002e5d;
    color: #002e5d;
}


/* MODAL DE RESULTADOS */
#ca-resultados-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 46, 93, 0.9);
    /* Fondo azul oscuro transparente */
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.ca-resultados-box {
    background: #fff;
    width: 100%;
    max-width: 550px;
    padding: 30px;
    border-radius: 8px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.ca-close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #666;
}

.ca-res-titulo {
    text-align: center;
    color: #002e5d;
    margin-top: 0;
}

.ca-res-cuantia {
    text-align: left;
    color: #002e5d;
    margin-bottom: 20px;
    font-size: 16px;
}

/* TARJETA AZUL */
.ca-tarjeta-azul {
    border: 1px solid #002e5d;
    border-radius: 8px;
    overflow: hidden;
}

.ca-tarjeta-header {
    background: #002e5d;
    /* Azul oscuro */
    color: white;
    padding: 15px 20px;
}

.ca-tarjeta-header small {
    display: block;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.ca-tarjeta-header h3 {
    margin: 5px 0 0;
    color: white;
    font-size: 18px;
}

.ca-tarjeta-body {
    padding: 20px;
}

/* SWITCH ARBITRO VS TRIBUNAL */
.ca-switch-arbitro {
    display: flex;
    margin-bottom: 20px;
    gap: 10px;
}

.ca-btn-arbitro {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    color: #333;
    font-size: 13px;
}

.ca-btn-arbitro.active {
    background: #6ab0de;
    /* Azul claro boton activo */
    color: white;
    border-color: #6ab0de;
}

.ca-fila-res {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    font-size: 14px;
    color: #444;
}

.ca-fila-res.subtotal {
    font-weight: bold;
    color: #000;
    border-top: 2px solid #eee;
    margin-top: 10px;
    padding-top: 10px;
}

.ca-fila-res.total {
    font-size: 16px;
    font-weight: 800;
    color: #000;
    border-bottom: none;
    padding-top: 15px;
}

/* ACCIONES */
.ca-acciones {
    display: flex;
    gap: 15px;
    margin-top: 25px;
    justify-content: center;
}

.ca-btn-accion {
    padding: 10px 20px;
    background: #002e5d;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.ca-btn-accion.outline {
    background: transparent;
    border: 1px solid #002e5d;
    color: #002e5d;
}





/*new*/

.ca-acciones {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    justify-content: center;
}

.ca-btn {
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    font-size: 16px;
}

.ca-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.ca-btn-primary:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.ca-btn-secondary {
    background: #6c757d;
    color: white;
}

.ca-btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
}